@font-face {
    font-family: 'general';
    src: url('../assets/fonts/Montserrat-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'titles';
    src: url('../assets/fonts/Montserrat-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'titles_light';
    src: url('../assets/fonts/Montserrat-ExtraLight.ttf') format('truetype');
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

*{
	margin: 0px;
	padding: 0px;
    font-family: 'general';
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

p {
    font-size: 16px;
    color: #415a6c;
    line-height: 1.3;
    margin-bottom: 18px;
}

a {
    text-decoration: none;
}

h2{
    font-family: 'titles_light';
    font-size: 38px;
    letter-spacing: 1px;
    color: #415a6c;
    text-align: center;
}

h3 {
    font-family: 'titles_light';
    font-size: 24px;
    color: #415a6c;
}

.font-icon{
    display: block;
    width: 22px;
    height: 22px;
    background-color: #415a6c;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: all 0.3s ease;
}

.email {
    -webkit-mask-image: url('../assets/icons/outline/mail.svg');
    mask-image: url('../assets/icons/outline/mail.svg');
}

.whatsapp {
    -webkit-mask-image: url('../assets/icons/social/whatsapp.svg');
    mask-image: url('../assets/icons/social/whatsapp.svg');
}

.facebook {
    -webkit-mask-image: url('../assets/icons/social/facebook.svg'); 
    mask-image: url('../assets/icons/social/facebook.svg'); 
}

.instagram {
    -webkit-mask-image: url('../assets/icons/social/instagram.svg'); 
    mask-image: url('../assets/icons/social/instagram.svg'); 
}

.linkedin {
    -webkit-mask-image: url('../assets/icons/social/linkedin.svg'); 
    mask-image: url('../assets/icons/social/linkedin.svg'); 
}

.youtube {
    -webkit-mask-image: url('../assets/icons/social/youtube.svg'); 
    mask-image: url('../assets/icons/social/youtube.svg'); 
}

.align-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main_banner{
    position: relative;
    background: url('../assets/img/home_banner.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    height: calc(100vh + 270px);
    display: flex;
    flex-direction: column; 
    align-items: center;
    overflow: hidden;
}

.asesoria_banner{
    position: relative;
    background: url('../assets/img/asesoria_main_banner.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    height: calc(100vh + 270px);
    display: flex;
    flex-direction: column; 
    align-items: center;
    overflow: hidden;
}

.hipotecario_banner{
    position: relative;
    background: url('../assets/img/hipotecario_banner.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    height: calc(100vh + 270px);
    display: flex;
    flex-direction: column; 
    align-items: center;
    overflow: hidden;
}

.main_menu {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: auto;            
    white-space: nowrap;    
    box-sizing: border-box; 
    transition: all 0.4s ease;
}

.main_menu nav{
    display: flex;
    justify-content: center;
}

.main_menu a{
    display: inline-block;
    padding: 5px 20px;
    color: #fff;
    text-transform: uppercase;
    font-family: 'general';
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
    transition: all ease .3s;
}

.main_menu a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -2px;
    color: rgba(255, 255, 255, 0.5);
}

.main_menu a:hover {
    opacity: 0.7;    
}

.main_menu_mobile {
    display: none;
}

.main_logo{
    position: absolute;
    top: 300px;
    width: 600px;
}

.small_logo{
    width: 100px;
    margin: 0px auto;
}

.main_logo_hipotecario{
    position: absolute;
    top: 200px;
    width: 600px;
}

.main_logo_hipotecario p{
   color: #eee;
   font-size: 20px;
   text-align: center;
   margin-top: 30px;
   font-family: 'titles_light';
}

.main_logo_hipotecario img{
    width: 50%;
    margin-left: 25%;
}

.main_logo img, .small_logo img{
    width: 100%;
}

.bottom_gradient{
    position: absolute;
    padding: 50px 0px;
    bottom: 0px;
    left: 0px;
    width: 100%;    
    background: linear-gradient(180deg,rgba(65, 90, 108, 0) 0%, rgba(65, 90, 108, 0.75) 50%, rgba(65, 90, 108, 1) 100%);
}

.bottom_gradient_green{
    position: absolute;
    padding: 50px 0px;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background: linear-gradient(180deg,rgba(65, 90, 108, 0) 0%, rgba(111, 160, 100, 0.55) 50%, rgba(111, 160, 100, 1) 100%);    
}

.bottom_gradient h3, .bottom_gradient_green h3{
    color: #fff;
    text-align: center;
    padding: 5px 0px;
    font-size: 40px;
}

.main_content{
    max-width: 1280px;
    margin: 0px auto;
}

.content_margin{
    margin: 50px 0px;
}

.margin_space{
    width: 100%;
    height: 30px;
}

.specific_text{
    margin: 80px 0px;
}

.specific_text h3{
    text-transform: uppercase;
    font-size: 30px;
    margin-bottom: 15px;
}

.specific_text p{
    font-family: 'titles_light';
    font-size: 26px;
}

.edificios{
    background: url('../assets/img/edificios.jpg') no-repeat center center/cover;
    opacity: 0.5;
}

.cols {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    align-items: stretch;
    & > div {
        flex: 1; 
        min-width: 0;
    }

    @media (max-width: 1024px) {
        flex-direction: column;
        gap: 0px;
    }
}

.three-cols {
    grid-template-columns: repeat(3, 1fr) !important;
}

.half-split > .fixed-text-col {
    flex: 0 0 50% !important; 
    max-width: 50%;
    padding-right: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.half-split > .full-right {
    flex: 1;
    min-width: 50%;
    background: url('../assets/img/edificios_logo.jpeg') no-repeat center center/cover;
    opacity: 0.8;
    margin-right: calc((100% - 100vw) / 2) !important;
    position: relative;
    min-height: 450px;
}

.half-split > .full-left {
    flex: 1;
    min-width: 50%;
    background: url('../assets/img/equipo.jpeg') no-repeat center center/cover;
    margin-left: calc((100% - 100vw) / 2) !important;
    position: relative;
    min-height: 500px;
}

.half-split > .fixed-text-col.right-align {
    padding-right: 0;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.fixed-text-col.right-align p{
    text-align: left;
}

.fade-edge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
    z-index: 1;
}

.fade-edge-left::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
    z-index: 1;
}

.card_pilares {
    background-color: #415a6c;
    position: relative;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0% 100%);
    padding: 150px 30px 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card_content img {
    width: 100px;
    margin-bottom: 20px;
}

.card_pilares h4 {
    color: #6fa064;
    font-family: 'titles';
    font-size: 20px;
    margin-bottom: 15px;
}

.card_pilares p {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}

.full_banner {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start;
    padding-top: 32vh;    
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
}

.mision{
    background: url('../assets/img/slider_msion.jpg') no-repeat center center/cover;
}

.vision{
    background: url('../assets/img/slider_vision.jpg') no-repeat center center/cover;
}

.valores{
    background: url('../assets/img/slider_valores.jpg') no-repeat center center/cover;
}

.banner_text {
    max-width: 800px;
    color: #fff;
}

.banner_text h2 {
    font-family: 'titles';
    font-size: 80px;
    margin-bottom: 20px;
    color: #fff;
}

.banner_text p {
    font-family: 'general';
    font-size: 20px;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 0;
}

.custom_slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.custom_slides_container {
    width: 100%;
    height: 100vh;
    position: relative;
}

.custom_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.custom_slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slider_tabs {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 999;
}

.tab_btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'titles';
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab_btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.tab_btn.active {
    background: #6fa064;
    border-color: #6fa064;
    box-shadow: 0 4px 15px rgba(111, 160, 100, 0.4);
}

.slider_progress_bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 999;
}

.progress_line {
    width: 100%;
    height: 100%;
    background: #6fa064;
    transform-origin: left center;
    transform: scaleX(0);
}

.progress_line.animate {
    transform: scaleX(1);
    transition: transform 5s linear; 
}

.menu_toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: #415a6c;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.menu_toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.servicios_grid h2 {
    margin-bottom: 50px;
    color: #415a6c;
}

.grid_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1px;
    background-color: rgba(65, 90, 108, 0.1);
    overflow: hidden;
}

.servicio_item {
    position: relative;
    background-color: #415a6c;
    min-height: 320px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.servicio_item:nth-child(7) {
    background-color: #6fa064;
}

.servicio_item a{
    display: block;
    margin: 15px auto 0 auto;
    padding: 10px 20px;
    color: #fff;
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.15);
    width: fit-content;
    border-radius: 10px;
    transition: all ease .3s;
}

.servicio_item a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.bg_hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1.1);
    z-index: 1;
}

.bg_hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(65, 90, 108, 0.5) 0%, rgba(65, 90, 108, 0.8) 100%);
}

.servicio_item:nth-child(7):hover .bg_hover::after {
    background: linear-gradient(180deg, rgba(111, 160, 100, 0.5) 0%, rgba(111, 160, 100, 0.8) 100%);
}

.default_content, .hover_content {
    position: relative;
    z-index: 2;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.default_content h3 {
    font-family: 'titles';
    font-size: 70px;
    color: rgba(65, 90, 108, 0.15);
    margin-bottom: 10px;
}

.default_content p {
    font-family: 'titles';
    font-size: 22px;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: bold;
}

.default_content h3{
    color: #fff;
}

.hover_content {
    opacity: 0;
    transform: translateY(30px);
    position: absolute;
    bottom: 40px;
    width: 80%;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hover_content p {
    font-family: 'general';
    font-size: 15px;
    color: #fff;
    line-height: 1.4;
}

.servicio_item:hover .icon_container {
    transform: translateY(-20px);
}

.servicio_item:hover .bg_hover {
    opacity: 1;
    transform: scale(1);
}

.servicio_item:hover .default_content {
    opacity: 0;
    transform: translateY(-10px);
}

.servicio_item:hover .hover_content {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    margin-top: 10px;
}

.icon_container {
    position: relative;
    z-index: 3;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease;
}

.icon_container img {
    width: 80px;
    height: auto;
}

.target_item {
    background-color: #6fa064;
    min-height: 800px;
}

.target_item .bg_hover::after {
    background: linear-gradient(180deg, rgba(111, 160, 100, 0.4) 0%, rgba(111, 160, 100, 0.85) 100%);
}

.target_item .hover_content {
    width: 85%;
    bottom: 50px;
}

.target_item .hover_content h4 {
    color: #fff;
    font-family: 'titles';
    font-size: 22px;
    margin-bottom: 15px;
}

.contact_info h4, .contact_form h4 {
    font-family: 'titles';
    font-size: 18px;
    color: #415a6c;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.contact_links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.direct_link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #415a6c;
    font-family: 'general';
    font-size: 18px;
    transition: opacity 0.3s;
}

.direct_link:hover {
    opacity: 0.7;
}

.contact_form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact_form input, .contact_form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #415a6c;
    border-radius: 10px;
    font-family: 'general';
    font-size: 16px;
    color: #415a6c;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
}

.contact_form input::placeholder, .contact_form textarea::placeholder {
    color: rgba(65, 90, 108, 0.5);
}

.btn_send {
    background-color: #415a6c;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-family: 'titles';
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn_send:hover {
    background-color: #212d36;
}

.map_container {
    width: 100%;
    height: 300px;
    border: 1px solid #415a6c;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main_footer {
    background-color: #415a6c;
    padding: 30px 0;
    color: #fff;
}

.footer_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer_logo img {
    height: 50px;
    width: auto;
}

.footer_copy p {
    color: #fff;
    margin-bottom: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer_socials {
    display: flex;
    gap: 15px;
}

.alert_success {
    position: fixed;
    width: calc(50% - 40px);
    top: 100px;
    left: 25%;
    background-color: #6fa064;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeInDown 0.5s ease-out;
    z-index: 10000;
}

.alert_success p {
    color: #fff;
    margin-bottom: 0;
    font-size: 15px;
    text-align: center;
}

.alert_success .font-icon {
    background-color: #fff;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    -webkit-mask-image: url('../assets/icons/outline/check-circle.svg');
    mask-image: url('../assets/icons/outline/check-circle.svg');
}

.circle_img_container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.circle_img_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title_large {
    font-size: 48px;
    margin-bottom: 30px;
    color: #415a6c;
}

.title_large b {
    font-family: 'titles';
    font-weight: bold;
}

.title_large_left{
    font-size: 48px;
    margin-bottom: 30px;
    color: #415a6c;
    text-align: left;
    margin: 70px 0px;
}

.text_block_centered {
    max-width: 850px;
    margin: 0 auto;
}

.text_block_centered p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.grid_servicios_especificos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;    
}

.item_especifico {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 30px;
    gap: 25px;
    background-color: #6fa064;
}

.item_especifico.full_width {
    margin-top: 15px;
    justify-content: center;
    padding: 40px 10%;
}

.item_icon {
    flex: 0 0 80px; /* Ancho fijo para el icono */
    text-align: center;
}

.item_icon img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1); /* Si tus iconos son oscuros, esto los vuelve blancos */
}

.item_text h4 {
    color: #fff;
    font-family: 'titles';
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.item_text p {
    color: #fff;
    font-size: 14px;
    margin-bottom: 0;
    opacity: 0.9;
}

.grid_servicios_especificos > div:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.3);
}

.ventajas_container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-bottom: 60px;
}

.ventaja_item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ventaja_circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(65, 90, 108, 0.1);
}

.ventaja_circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.ventaja_item:hover .ventaja_circle img {
    filter: grayscale(0%);
}

.ventaja_item h4 {
    color: #415a6c;
    font-family: 'titles';
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ventaja_item p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.five-cols {
    margin: 100px 60px;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    background-color: transparent;
}

.five-cols .servicio_item {
    min-height: 700px;
    border-radius: 15px;
    overflow: hidden;
}

.five-cols .icon_container img {
    filter: brightness(0) invert(1);
}

.five-cols .servicio_item:hover .bg_hover {
    opacity: 1;
    transform: scale(1);
}

.five-cols .servicio_item:hover .default_content {
    opacity: 0;
    transform: translateY(-10px);
}

.five-cols .servicio_item:hover .hover_content {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    margin-top: 10px;
}

.full_bleed {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.para_ti_grid {
    gap: 1px !important;
    background-color: transparent;
}

.para_ti_item {
    background-color: #6fa064;
    min-height: 700px;
}

.para_ti_item .default_content p {
    font-family: 'titles';
    font-size: 24px;
    color: #fff;
    line-height: 1.2;
}

.para_ti_item .bg_hover {
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.para_ti_item:hover .bg_hover {
    opacity: 1;
    transform: translateY(0);
}

.para_ti_item:hover .default_content {
    opacity: 1 !important;
    transform: translateY(-60px) !important;    
}

.para_ti_item .bg_hover::after {
    background: linear-gradient(180deg, rgba(111, 160, 100, 0.15) 0%, rgba(111, 160, 100, 0.65) 100%);
}

.para_ti_item .hover_content p {
    font-size: 15px;
}

.footer_socials .font-icon {
    background-color: #fff;
    width: 24px;
    height: 24px;
}

.footer_legal a {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer_legal a:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .main_banner{
        height: calc(100vh + 310px);
    }

    .banner_text h2 {
        font-size: 50px;
    }

    .banner_text p {
        font-size: 18px;
    }

    .card_pilares {
        clip-path: none; 
        margin-bottom: 0px;
        padding: 40px 20px;
        border-bottom: 1px solid #212d36;
    }

    .half-split > div {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
    }

    .half-split > .fixed-text-col {
        padding-right: 0 !important; 
        padding-left: 0 !important;
    }

    .half-split > .full-left {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .half-split > .fixed-text-col.right-align {
        padding-left: 0 !important;
    }

    .content_margin {
        margin: 40px 20px;
    }

    .fade-edge::before {
        width: 100%;
        height: 30%;
        background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0));
    }

    .fade-edge-left::before {
        width: 100%;
        height: 30%;
        top: auto;
        bottom: 0;
        background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
    }

    .main_menu {
        margin: 20px auto;
        padding: 10px 15px;
        width: 90%;
        border-radius: 20px;
    }

    .main_menu nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main_menu a {
        font-size: 13px;
        padding: 5px 10px;
        margin: 2px 0;
    }

    .main_menu a:not(:last-child)::after {
        content: ""; 
    }

    .main_logo {
        width: 300px;
        top: 30vh;        
    }

    .main_menu { display: none; }

    .menu_toggle { display: flex; }

    .main_menu_mobile {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 50%;
        min-width: 200px;
        height: 100vh;
        background: rgba(65, 90, 108, 0.5);        
        padding: 80px 40px;
        transform: translateX(-115%);
        transition: transform 0.4s ease-in-out;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        border-right: 1px solid rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(10px);
        z-index: 999;
    }

    .main_menu_mobile.active {
        transform: translateX(0);
    }

    .main_menu_mobile nav {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .main_menu_mobile a {
        display: inline-block;
        padding: 10px 0px;
        color: #fff;
        text-transform: uppercase;
        font-family: 'general';
        font-size: 16px;                        
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .main_menu_mobile a:last-child {
        border-bottom: none;
    }

    .menu_toggle.open span:nth-child(1) { 
        transform: translateY(8px) rotate(45deg); 
    }

    .menu_toggle.open span:nth-child(2) { 
        opacity: 0; 
    }

    .menu_toggle.open span:nth-child(3) { 
        transform: translateY(-8px) rotate(-45deg); 
    }

    .icon_container {
        transform: translateY(-10px);
        margin-bottom: 20px;
    }

    .grid_container {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicio_item {
        min-height: 250px;
        padding: 40px;
    }

    .default_content { 
        display: block !important; 
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 10px;
    }

    .default_content h3 {
        font-size: 50px;
    }

    .default_content p {
        font-size: 18px !important;
        color: #fff;
    }

    .bg_hover {
        opacity: 1;
        transform: scale(1);
    }

    .bg_hover::after {
        background: rgba(65, 90, 108, 0.7);
    }

    .servicio_item:nth-child(7) .bg_hover::after {
        background: rgba(111, 160, 100, 0.8);
    }

    .hover_content {
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        width: 100% !important;
        bottom: auto !important;
    }

    .contact_form {
        margin-top: 40px;
    }

    .footer_container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .margin_space{
        height: 10px;
    }

    .three-cols {
        grid-template-columns: 1fr !important;
    }
    
    .target_item {
        min-height: 350px;
    }

    .target_item .bg_hover {
        opacity: 1;
        transform: scale(1);
    }
    
    .target_item .default_content {
        display: none !important;
    }
    
    .target_item .hover_content {
        opacity: 1;
        transform: translateY(0);
        position: relative;
    }

    .ventajas_container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    
    .ventaja_item {
        flex: 0 0 30%;
    }

    .five-cols {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        margin-bottom: 40px;
    }

    .five-cols .servicio_item {
        min-height: 400px;
        border-radius: 15px;
    }

    @media (max-width: 1024px) {
    .para_ti_grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .para_ti_item {
        min-height: 450px;
    }

    .para_ti_item .bg_hover {
        opacity: 1;
        transform: translateY(0);
    }

    .para_ti_item .default_content {
        
    }

    .para_ti_item .hover_content {
        opacity: 1 !important;
        transform: translateY(0) !important;
        position: relative !important;
        width: 100% !important;
        bottom: auto !important;
    }
}
}

@media (max-width: 768px) {
    .grid_container {
        grid-template-columns: 1fr;
    }
    
    .servicio_item {
        min-height: 250px;
    }

    .circle_img_container {
        width: 250px;
        height: 250px;
    }
    .title_large {
        font-size: 32px;
    }

    .text_block_centered p {
        font-size: 16px;
    }

    .grid_servicios_especificos {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .grid_servicios_especificos > div:nth-child(odd) {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }

    .main_logo_hipotecario{
        position: absolute;
        top: 100px;
        width: 80%;
        margin-left: 10%;
    }

    .item_especifico {
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .item_especifico.full_width{
        margin-top: 5px;
    }

    .ventaja_item {
        flex: 0 0 100%;
    }
    
    .ventaja_circle {
        width: 220px;
        height: 220px;
    }

    .slider_tabs {
        top: 13%;
        width: 95%;
        justify-content: center;
        gap: 8px;
    }

    .tab_btn {
        padding: 8px 12px;
        font-size: 11px;
        letter-spacing: 0.5px;
        white-space: nowrap;
        flex: 1;
        text-align: center;
    }

    .five-cols {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 40px;
    }

    .five-cols .servicio_item {
        min-height: 320px;
        border-radius: 15px;
    }
}