﻿:root {
    --text-blue: rgba(0, 62, 107, 1);
    --text-dark-blue: rgba(0, 42, 73, 1);
    --text-light-blue: rgba(0, 77, 132, 1);
}

html,
body {
    height: 100%;
    min-height: 100%;
    background-color: rgba(255, 255, 255, 1);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
    -ms-flex-direction: column;
    flex-direction: column;
}

body {
    font-family: 'Roboto', sans-serif;
}

.object-fit-cover {
    -webkit-object-fit: cover;
    object-fit: cover;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0px;
    padding: 0px;
}

p,
span,
a {
    font-size: 16px;
    line-height: 24px;
}

a {
    text-decoration: none;
}

.z-index-1 {
    z-index: 1;
}

a:active,
a:focus,
button,
a.active,
button:focus,
.navbar-toggler:focus,
.navbar-toggler:hover {
    outline: none;
}

img {
    border: none;
}

ul,
ul li {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

.b-s-5 {
    height: 5px;
}

.b-s-10 {
    height: 10px;
}

.b-s-15 {
    height: 15px;
}

.b-s-20 {
    height: 20px;
}

.b-s-25 {
    height: 25px;
}

.b-s-30 {
    height: 30px;
}

.b-s-40 {
    height: 40px;
}

.wi-50 {
    width: 50%;
}

.w-48 {
    width: 48%;
}

.w-40 {
    width: 40%;
}

.w-60 {
    width: 60%;
}

.w-35 {
    width: 35%;
}

.w-65 {
    width: 64%;
}

.p-tb-30 {
    padding: 30px 0;
}

.p-tb-40 {
    padding: 40px 0;
}

.p-tb-50 {
    padding: 50px 0;
}

.d-none-n {
    display: none;
}

main {
    flex: 1 0 auto;
    -webkit-box-flex: 1;
}

.p-lr-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.fixed-header {
    position: fixed !important;
    left: 0;
    right: 0;
    z-index: 9;
    background-color: #2966B7;
    -webkit-box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.19);
    -moz-box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.19);
    -ms-box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.19);
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.19);
}

header.fixed-header {
    padding: 15px 0;
}

    header.fixed-header .navbar-brand {
        width: 110px;
    }

.font-bebas-neue {
    font-family: 'Bebas Neue', cursive;
}

.btn-comman {
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    outline: none;
    color: #fff !important;
    background-color: rgba(0, 62, 107, 1);
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px rgba(95, 188, 255, 0.5);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    line-height: 1;
    letter-spacing: 1px;
}

    .btn-comman:hover {
        text-decoration: none;
        color: rgba(0, 62, 107, 1);
        background-color: rgba(95, 188, 255, 1);
    }

header {
    padding: 30px 0;
    z-index: 5;
}

    header .navbar-expand-lg {
        padding: 0;
    }

    header .navbar-nav .nav-item + .nav-item {
        margin-left: 25px;
    }

    header .navbar-nav .nav-item .nav-link {
        color: var(--text-blue);
        font-size: 15px;
        font-weight: normal;
        position: relative;
    }

        header .navbar-nav .nav-item .nav-link:after {
            position: absolute;
            content: "";
            bottom: 7px;
            top: auto;
            left: 0;
            right: 0;
            margin: 0 auto;
            width: calc(100% - 16px);
            height: 2px;
            background-color: rgba(104, 196, 215, 1);
            display: none;
        }

        header .navbar-nav .nav-item .nav-link:hover:after,
        header .navbar-nav .nav-item.active .nav-link:after {
            display: block;
        }

.main-banner-section::after {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    width: 2px;
    height: 100px;
    background-color: rgba(255, 255, 255, 1);
    top: auto;
    bottom: 0;
    margin: auto;
    z-index: 9;
}

.main-banner-section .banner-img::after {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.09);
}

.main-banner-section .banner-img img {
    height: 620px;
}

.main-banner-section .banner-caption {
    z-index: 9;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center; /* centra horizontal */
    align-items: center;     /* centra vertical */
    padding: 2rem 1rem;
    text-align: center;
    pointer-events: none; /* evita capturar clicks; contenido interno recupera pointer */
}

    .main-banner-section .banner-caption .for-two-ling-title {
        width: 120%;
        max-width: 1920px;
        padding: 0 1rem;
        pointer-events: auto;
    }

    /* Titular: tamaño fluido entre 1.25rem (móvil) y 2.6rem (escritorio) */
    .main-banner-section .banner-caption h1 {
        white-space: normal; /* permite envolver texto en pantallas pequeñas */
        color: #fff;
        font-weight: 700;
        font-size: clamp(1.25rem, 3.8vw, 2.6rem);
        line-height: 1.12;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
        margin: 0;
        
    }

    /* Párrafo: tamaño fluido y buena legibilidad */
    .main-banner-section .banner-caption p {
        color: #fff;
        font-size: clamp(0.95rem, 2.2vw, 1.25rem);
        line-height: 1.45;
        text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
        margin: 0;
        
    }

    /* Ajustes puntuales por breakpoint si quieres más control */
    @media (min-width: 1200px) {
        .main-banner-section .banner-caption h1 {
            font-size: 2rem;
            margin-top: 750px; /* opcional: mayor en pantallas muy grandes */
        }
        .main-banner-section .banner-caption p {
            font-size: 1.3rem;
        }
    }

    @media (max-width: 575.98px) {
        .main-banner-section .banner-caption {
            padding: 1.2rem 0.75rem;
        }
        .main-banner-section .banner-caption h1 {
            /* si necesitas ajustar aún más en móviles */
            font-size: clamp(1.1rem, 5.2vw, 1.6rem);
        }
        .main-banner-section .banner-caption p {
            font-size: clamp(0.9rem, 3.8vw, 1rem);
        }
    }

.just-sep-v::after {
    width: 2px;
    height: 100px;
    background-color: rgba(0, 62, 107, 1);
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
}

.just-sep-v {
    padding-top: 100px;
}

.conglomerate-section {
    padding: 50px 0
}

    .conglomerate-section::before {
        width: 300px;
        background: rgb(69, 223, 255);
        background: linear-gradient(-45deg, rgba(69, 223, 255, 0.51) 0%, rgba(147, 223, 239, 0.50) 100%);
        height: calc(100% - 200px);
        bottom: 0;
        position: absolute;
        content: "";
        left: 0;
        right: 0;
        top: 0;
        margin: auto;
    }

    .conglomerate-section .f-section {
        padding-bottom: 100px;
    }

        .conglomerate-section .f-section::before {
            position: absolute;
            left: 0;
            right: 0;
            content: "";
            height: 100%;
            margin: auto;
            z-index: -1;
            height: 1px;
            width: 120px;
            top: auto;
            bottom: 0;
            background-color: rgba(0, 62, 107, 1);
        }

    .conglomerate-section .fs-left-section {
        text-align: right;
        padding: 110px 30px 0;
    }

        .conglomerate-section .fs-left-section .tit-section span {
            color: var(--text-dark-blue);
            font-size: 20px;
        }

        .conglomerate-section .fs-left-section .tit-section h3 {
            color: var(--text-blue);
            font-size: 55px;
            padding-bottom: 15px;
            margin-bottom: 20px;
        }

            .conglomerate-section .fs-left-section .tit-section h3::after {
                position: absolute;
                content: "";
                left: auto;
                right: 0;
                bottom: 0;
                top: auto;
                height: 1px;
                width: 250px;
                background-color: rgba(0, 62, 107, 1);
            }

        .conglomerate-section .fs-left-section .for-width p {
            color: var(--text-blue);
            font-size: 12px;
        }

    .conglomerate-section .fs-right-section .img-area {
        padding: 0 0 0 35px;
    }

        .conglomerate-section .fs-right-section .img-area img {
            width: 100%;
            height: 520px;
        }

    .conglomerate-section .ss-left-se .img-area img {
        width: 100%;
        height: 470px;
    }

    .conglomerate-section .s-section {
        padding-top: 100px;
    }

    .conglomerate-section .ss-right-se .contain-area {
        padding: 0 20px 0 35px;
    }

        .conglomerate-section .ss-right-se .contain-area p {
            color: var(--text-light-blue);
            font-size: 16px;
        }

        .conglomerate-section .ss-right-se .contain-area h3 {
            color: var(--text-light-blue);
            font-size: 30px;
        }

.companies-financial-group {
    padding: 40px 0 70px;
}

    .companies-financial-group h2 {
        color: var(--text-blue);
        font-size: 38px;
    }

.about-us-intro-se {
    padding: 40px 0 0 0;
}

    .about-us-intro-se::after {
        position: absolute;
        content: "";
        width: 100%;
        top: 0;
        left: 0;
        background-color: rgba(242, 242, 242, 1);
        height: calc(100% - 100px);
    }

    .about-us-intro-se h1 {
        color: var(--text-blue);
        font-size: 58px;
    }

    .about-us-intro-se .about-img-area img {
        height: 530px;
    }

.about-us-text-info {
    padding: 0 0 20px 0;
}

    .about-us-text-info::after {
        position: absolute;
        left: 0;
        top: auto;
        bottom: 0;
        content: "";
        height: 1px;
        width: 120px;
        background-color: rgba(0, 62, 107, 1);
    }

    .about-us-text-info .in-detail-info {
        max-width: 84%;
        margin: 0 auto;
        padding: 0 50px 0;
    }

        .about-us-text-info .in-detail-info::after {
            position: absolute;
            content: "";
            top: -60px;
            left: 0;
            width: 100%;
            height: 60px;
            background-color: rgba(255, 255, 255, 1);
            z-index: 9;
        }

    .about-us-text-info .left-line::after {
        content: "";
        position: absolute;
        height: 140px;
        width: 1px;
        left: 15px;
        top: 0;
        background-color: rgba(0, 62, 107, 1);
    }

    .about-us-text-info .in-detail-info p {
        color: var(--text-blue);
        font-size: 14px;
        line-height: 24px;
    }

    .about-us-text-info .in-detail-info h4 {
        color: var(--text-blue);
        font-size: 32px;
    }

    .about-us-text-info .in-detail-info p + p {
        margin-top: 25px;
    }

.blank-section {
    padding: 150px 0;
}

.blank-section-two {
    padding: 50px 0;
}

.financial-holding-investor-se::after {
    content: "";
    height: 100%;
    width: 240px;
    left: 0;
    top: 0;
    right: 0;
    margin: auto;
    position: absolute;
    background-color: rgba(104, 196, 215, 0.5);
    z-index: -1;
}

/*.financial-holding-investor-se::before{position:absolute; content:""; left:calc(50% + 120px); right:auto; top:-140px; height:140px; width:1px; background-color:rgba(0,62,107,1);}*/
.financial-holding-investor-se .img-area img {
    width: 100%;
    height: 560px;
}

.financial-holding-investor-se .img-area {
    padding-right: 50px;
    top: -50px;
}

.financial-holding-investor-se .who-we-are-text {
    padding: 20px 120px 20px 0;
}

.financial-holding-investor-se .for-bottom-line::after {
    position: absolute;
    right: 0;
    content: "";
    left: auto;
    top: auto;
    bottom: 0;
    width: 140px;
    height: 1px;
    background-color: var(--text-blue);
}

.financial-holding-investor-se .who-we-are-text h6 {
    color: var(--text-dark-blue);
    font-size: 16px;
    padding-right: 50px;
}

.financial-holding-investor-se .who-we-are-text h3 {
    color: var(--text-blue);
    font-size: 50px;
}

.financial-holding-investor-se .who-we-are-text .sub-text p {
    font-size: 14px;
    color: var(--text-blue);
}

.financial-holding-investor-se .who-we-are-text .sub-text {
    padding: 0 130px 0 0;
}

    .financial-holding-investor-se .who-we-are-text .sub-text::before {
        content: "";
        top: 10px;
        left: auto;
        right: 0;
        height: 1px;
        width: 120px;
        background-color: var(--text-blue);
        position: absolute;
    }

.about-us-text-info.bussiness-page::after,
.about-us-text-info.contactopage::after,
.about-us-text-info.contactopage .left-line::after {
    display: none;
}

.about-us-text-info.bussiness-page .left-line::after {
    height: 80px;
}

.about-us-text-info.bussiness-page {
    padding: 0 0 80px 0;
}

.about-us-text-info.contactopage {
    padding: 0 0 80px 0;
}

    .about-us-text-info.contactopage .contact-form {
        margin-top: 60px;
    }

        .about-us-text-info.contactopage .contact-form .form-control {
            border-radius: 0;
            border-color: rgba(34, 79, 113, 1);
            position: relative;
        }

    .about-us-text-info.contactopage textarea {
        resize: none;
    }

    .about-us-text-info.contactopage .contact-form label {
        color: rgba(104, 196, 215, 1);
        margin-bottom: 1px;
    }

        .about-us-text_info.contactopage .contact-form label.error {
            position: absolute;
            bottom: -18px;
            top: auto;
            font-weight: 400;
            font-size: 12px;
            color: rgba(255, 0, 0, 1);
        }

        .about-us-text_info.contactopage .contact-form label#message-error.error {
            bottom: -5px;
        }

    .about-us-text-info.contactopage .contact-form [type="reset"],
    .about-us-text_info.contactopage .contact-form [type="submit"],
    .about-us-text_info.contactopage .contact-form button,
    .about-us-text_info.contactopage .contact-form [type="button"] {
        box-shadow: 0 6px rgba(0, 0, 0, 0.15);
        background-color: transparent;
        border: 1px solid rgba(0, 62, 107, 1);
        border-radius: 6px;
        padding: 15px 62px;
        line-height: 1;
        cursor: pointer;
        font-size: 22px;
        font-weight: 700;
        color: var(--text-blue);
        letter-spacing: 1px;
    }

        .about-us-text-info.contactopage .contact-form [type="reset"]:hover,
        .about-us-text_info.contactopage .contact-form [type="submit"]:hover,
        .about-us-text_info.contactopage .contact-form button:hover,
        .about-us-text_info.contactopage .contact-form [type="button"]:hover {
            color: rgba(255, 255, 255);
            background-color: var(--text-blue);
        }


footer {
    background-color: rgba(239, 239, 239, 1);
    padding: 70px 0;
}

    footer .quick-link li {
        display: inline-block;
        position: relative;
    }

        footer .quick-link li a {
            color: var(--text-light-blue);
            text-decoration: none;
            font-size: 16px;
        }

        footer .quick-link li + li {
            margin-left: 25px;
            padding-left: 25px;
        }

            footer .quick-link li + li:after {
                position: absolute;
                content: "|";
                left: 0;
                color: var(--text-light-blue);
            }

        footer .quick-link li a:hover {
            text-decoration: underline;
        }

    footer p {
        color: var(--text-light-blue);
        font-weight: 700;
        font-size: 15px;
    }

        footer p a {
            color: var(--text-light-blue);
        }

            footer p a:hover {
                color: var(--text-light-blue);
            }

    footer .copy-write p {
        font-weight: 400;
    }

.footer-transparency,
.footer-transparency a {
    font-size: 11px;
    margin-bottom: 30px;
    color: var(--text-light-blue);
}

    .footer-transparency a {
        font-weight: bold;
        text-decoration: underline;
    }

.img-aporte {
    transition: transform 0.6s ease;
}

    .img-aporte:hover {
        transform: scale(1.05);
    }

/* Estilos responsive para sección "quienes somos" */
.qs-section-title {
    font-size: 1.3rem;
    color: #31416B;
    margin: 25px;
    font-weight: bold;
    text-align: center;
}

.qs-empresa-label {
    font-size: 0.95rem;
    color: #233a5a;
    font-weight: bold;
    margin-bottom: 4px;
}

.qs-empresa-img {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    background: #e0f7fa;
    border: 4px solid #00bfff;
    object-fit: cover;
}

.qs-empresa-colmena-img {
    width: 220px;
    height: auto;
}

.qs-empresa-deco-img {
    width: 200px;
    height: auto;
    margin-right: 10px;
}

.qs-empresas-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
}

.qs-empresa {
    text-align: center;
    width: 180px;
}

.qs-empresa-colmena,
.qs-empresa-deco {
    text-align: center;
    width: 220px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.qs-empty-space {
    width: 120px;
}

.qs-timeline-img {
    width: 120%;
    max-width: none;
    height: auto;
    margin-left: -10%;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .qs-section-title {
        font-size: 1.1rem;
        margin: 18px 8px;
    }

    .qs-empresa-label {
        font-size: 0.9rem;
    }

    .qs-empresa,
    .qs-empresa-colmena,
    .qs-empresa-deco {
        width: 120px;
    }

    .qs-empresa-img {
        width: 90px;
        height: 90px;
    }

    .qs-empresa-colmena-img,
    .qs-empresa-deco-img {
        width: 110px;
    }

    .qs-empty-space {
        width: 40px;
    }

    .qs-timeline-img {
        width: 100%;
        margin-left: 0;
    }

    .qs-empresas-row {
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .qs-section-title {
        font-size: 1rem;
        margin: 12px 2px;
    }

    .qs-empresas-row {
        flex-direction: column;
        align-items: center;
    }

    .qs-empresa,
    .qs-empresa-colmena,
    .qs-empresa-deco {
        width: 100%;
        margin-bottom: 12px;
    }

    .qs-empty-space {
        display: none;
    }

    .qs-timeline-img {
        width: 100%;
        margin-left: 0;
    }
}

@media screen and (min-width:992px) {
    .for-two-ling-title {
        max-width: 2500px;
    }
}

@media screen and (min-width:1200px) {
    .conglomerate-section .ss-right-se .contain-area h3 {
        max-width: 540px;
    }

    .conglomerate-section .fs-left-section .for-width p {
        max-width: 360px
    }

    .conglomerate-section .fs-left-section .tit-section h3 {
        max-width: 630px
    }

    .footer-details {
        padding-left: 60px;
    }

    .conglomerate-section .fs-right-section .img-area {
        width: 100%;
    }
}

@media screen and (min-width:1500px) {
    .container {
        max-width: 1440px;
    }

    .financial-holding-investor-se .who-we-are-text {
        padding: 20px 54px 20px 0;
    }

    .main-banner-section .banner-img img {
        height: 700px;
    }
}

@media screen and (min-width:1600px) {
    .financial-holding-investor-se .who-we-are-text {
        padding: 20px 100px 20px 0;
    }
}

@media screen and (min-width:1920px) {
    .financial-holding-investor-se .who-we-are-text {
        padding: 20px 260px 20px 0;
    }
}

@media screen and (max-width:1300px) {
    .financial-holding-investor-se .who-we-are-text {
        padding: 20px 80px 20px 0;
    }
}

@media screen and (max-width:1199px) {
    .financial-holding-investor-se .who-we-are-text h3 {
        font-size: 36px;
    }

    .about-us-intro-se .about-img-area img {
        height: 490px;
    }
}

@media screen and (max-width:1024px) {

    .main-banner-section .banner-caption h1,
    .main-banner-section .banner-caption h2,
    .main-banner-section .banner-caption h3 {
        font-size: 45px;
    }

    .conglomerate-section .fs-left-section .tit-section h3 {
        font-size: 40px;
    }

    .companies-financial-group h2 {
        font-size: 32px;
    }
}

@media screen and (max-width:991px) {

    .main-banner-section .banner-caption h1,
    .main-banner-section .banner-caption h2,
    .main-banner-section .banner-caption h3 {
        font-size: 35px;
    }

    .main-banner-section .banner-img img {
        height: 450px;
    }

    header .navbar-brand {
        width: 130px;
    }

    header {
        padding: 20px 0;
        position: absolute;
        width: 100%;
        top: 0;
        z-index: 99 !important;
    }

        header .navbar-nav .nav-item + .nav-item {
            margin: 0;
        }

        header .navbar-nav .nav-item .nav-link {
            display: inline-block;
        }

            header .navbar-nav .nav-item .nav-link::after {
                width: 100%;
            }

    body {
        padding-top: 95px;
    }

    .financial-holding-investor-se .who-we-are-text .sub-text {
        padding: 15px 0 0 0;
    }

        .financial-holding-investor-se .who-we-are-text .sub-text::before {
            top: 0;
        }

    .about-us-intro-se .about-img-area img {
        height: 360px;
    }
}

@media screen and (max-width:767px) {
    .text-center-67 {
        text-align: center;
    }

    .flex-wrap-67 {
        -ms-flex-wrap: wrap !important;
        flex-wrap: wrap !important
    }

    .wi-100-67 {
        width: 100%;
    }

    .wi-48-67 {
        width: 48%;
    }

    .order-one-67 {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1
    }

    .order-two-67 {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2
    }

    .justify-content-start-67 {
        -webkit-box-pack: start !important;
        -ms-flex-pack: start !important;
        justify-content: flex-start !important
    }

    .d-block-67 {
        display: block;
    }

    .align-items-lg-center-67 {
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important
    }

    .main-banner-section .banner-caption h1,
    .main-banner-section .banner-caption h2,
    .main-banner-section .banner-caption h3 {
        font-size: 30px;
    }

    .main-banner-section::after {
        display: none;
    }

    .conglomerate-section::before {
        display: none;
    }

    .conglomerate-section {
        padding: 34px 0;
    }

        .conglomerate-section .fs-left-section {
            text-align: left;
        }

            .conglomerate-section .fs-left-section .tit-section h3::after {
                left: 0;
                right: auto;
            }

        .conglomerate-section .fs-right-section .img-area {
            padding: 0;
        }

            .conglomerate-section .fs-right-section .img-area img,
            .conglomerate-section .ss-left-se .img-area img {
                height: 250px;
                width: auto;
            }

        .conglomerate-section .fs-right-section::after {
            width: calc(50% + 150px);
            background: rgba(147, 223, 239, 1);
            background: linear-gradient(-45deg, rgba(147, 223, 239, 0.51) 0%, rgba(69, 223, 255, 0.5) 100%);
            height: 270px;
            bottom: -150px;
            position: absolute;
            content: "";
            left: 0;
            right: auto;
            top: auto;
            z-index: -1;
        }

        .conglomerate-section .ss-left-se::after {
            width: calc(50% + 150px);
            background: rgba(147, 223, 239, 1);
            background: linear-gradient(-45deg, rgba(147, 223, 239, 0.51) 0%, rgba(69, 223, 255, 0.5) 100%);
            height: 270px;
            bottom: -150px;
            position: absolute;
            content: "";
            left: auto;
            right: 0;
            top: auto;
            z-index: -1;
        }

        .conglomerate-section .fs-left-section {
            padding-top: 200px;
        }

        .conglomerate-section .f-section {
            padding-bottom: 50px;
        }

        .conglomerate-section .s-section {
            padding-top: 50px;
        }

        .conglomerate-section .f-section::before {
            left: auto;
            width: 50%;
        }

        .conglomerate-section::after {
            content: "";
            height: 280px;
            background-color: rgba(0, 62, 107, 1);
            left: 30px;
            top: 0;
            position: absolute;
            display: block;
            width: 1px;
        }

        .conglomerate-section .ss-right-se .contain-area {
            padding-top: 200px;
            padding-bottom: 35px;
        }

    .just-sep-v::after {
        height: 60px;
    }

    .just-sep-v {
        padding-top: 60px;
    }

    .conglomerate-section .ss-right-se .contain-area::after {
        position: absolute;
        left: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        height: calc(100% - 360px);
        content: "";
        background-color: rgba(239, 239, 239, 1);
        z-index: -1;
    }

    footer {
        padding: 30px 0;
    }

    .main-logo img {
        max-width: 70%;
    }

    .companies-financial-group {
        padding: 40px 0;
    }

    .about-us-text-info::after,
    .about-us-text-info .left-line::after,
    .financial-holding-investor-se::after {
        display: none;
    }

    .about-us-intro-se .about-img-area img {
        height: auto;
    }

    .blank-section,
    .blank-section-two {
        padding: 30px 0;
    }

    .about-us-text-info .in-detail-info {
        padding: 0;
    }

    .financial-holding-investor-se .img-area {
        padding: 0;
        top: 0;
    }

        .financial-holding-investor-se .img-area::after {
            content: "";
            height: 100%;
            width: 35%;
            left: auto;
            top: 50px;
            right: 0;
            position: absolute;
            background-color: rgba(104, 196, 215, 0.5);
            z-index: -1;
        }

        .financial-holding-investor-se .img-area img {
            width: 65%;
            height: auto;
        }

    .financial-holding-investor-se .who-we-are-text {
        padding: 100px 20px 0;
        max-width: 540px;
        margin: 0 auto;
    }

    .financial-holding-investor-se .for-bottom-line {
        padding-bottom: 50px;
    }

        .financial-holding-investor-se .for-bottom-line::after {
            width: 80px;
        }

    .financial-holding-investor-se::before {
        top: -50px;
        left: auto;
        right: 50px;
    }

    .about-us-text-info .in-detail-info::after {
        height: 30px;
        top: -30px;
    }

    .about-us-intro-se h1 {
        font-size: 48px;
    }

    .about-us-text-info .in-detail-info h4 {
        font-size: 26px;
    }

    .about-us-text_info.bussiness-page {
        padding: 0 0 80px 0;
    }
}

@media screen and (max-width:540px) {

    .conglomerate-section .fs-right-section .img-area img,
    .conglomerate-section .ss-left-se .img-area img {
        height: 200px;
    }

    .conglomerate-section .fs-right-section::after,
    .conglomerate-section .ss-left-se::after {
        width: calc(50% + 80px);
    }

    .financial-holding-investor-se .who-we-are-text h3 {
        font-size: 32px;
    }

    .about-us-text-info.contactopage .contact-form [type="reset"],
    .about-us-text_info.contactopage .contact-form [type="submit"],
    .about-us-text_info.contactopage .contact-form button,
    .about-us-text_info.contactopage .contact-form [type="button"] {
        padding: 15px 52px;
    }

    .main-banner-section .banner-img img {
        height: 600px;
    }
}

@media screen and (max-width:399px) {

    .conglomerate-section .fs-right-section .img-area img,
    .conglomerate-section .ss-left-se .img-area img {
        height: 130px;
    }

    .conglomerate-section .fs-right-section::after,
    .conglomerate-section .ss-left-se::after {
        width: calc(50% + 70px);
        height: 210px;
    }

    .financial-holding-investor-se .who-we-are-text h3 {
        font-size: 26px;
    }
}

.timeline-container {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto 0 auto;
    position: relative;
    text-align: center;
}

.timeline-image {
    width: 100%;
    height: auto;
    display: block;
}

.timeline-text {
    position: absolute;
    top: 20%; /* altura común */
    font-size: 0.8rem;
    width: 12%;
    text-align: center;
}

/* Posiciones en porcentaje (ajustan con el ancho de la imagen) */
.t1 {
    left: 0%;
}

.t2 {
    left: 10%;
}

.t3 {
    left: 22%;
}

.t4 {
    left: 35%;
}

.t5 {
    left: 52%;
}

.t6 {
    left: 65%;
}

.t7 {
    left: 75%;
}

.t8 {
    left: 90%;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .timeline-text {
        font-size: 0.6rem;
        width: 18%;
        top: 25%;
    }
}

@media (max-width: 480px) {
    .timeline-text {
        font-size: 0.5rem;
        width: 20%;
        top: 28%;
    }
}
/* Estilo base */
.custom-img {
    object-fit: cover;
    height: auto; /* Mantiene proporción */
    transition: all 0.3s ease;
}

/* Clases para ajustar ancho */
.w-80 {
    width: 80%;
}

.w-100 {
    width: 100%;
}

.w-120 {
    width: 120%;
}

.w-130 {
    width: 130%;
}

.w-150 {
    width: 130%;
}

/* Para dar espacio entre imágenes */
.col-img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; /* 👈 Espacio entre imágenes */
    box-sizing: border-box;
}

/* Alternativa más moderna: usar gap en el row */
.row.gap-20 {
    gap: 110px; /* 👈 Ajusta aquí el espacio entre columnas */
}

.urbanismo-producto-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px; /* Puedes ajustar este valor según lo que necesites */
    margin-top: 32px;
    margin-bottom: 32px;
}
.images-grid-4 {
    max-width: 1400px;
    margin: 0 auto;
    row-gap: 30px; /* Espacio entre filas */
}

/* Base: ahora usa variables para ajustar cada imagen manualmente */
.img-aporte2 {
    --img-w: 78%;
    --img-h: 400px;
    width: var(--img-w);
    height: var(--img-h);
    object-fit: cover;
    transition: transform .3s ease, box-shadow .3s ease;
    display: block;
}

    .img-aporte2:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }

@media (max-width: 768px) {
    .img-aporte2 {
        height: 250px; /* Más pequeña en móviles */
    }
}

/* -------- Hero imagen reducida (Home) -------- */
.hero-img-wrapper{
    max-width:99%;
    margin:0 auto;
    overflow:hidden;          /* Oculta la parte recortada */
    height:920px;             /* Ajusta aquí la altura deseada */
    position:relative;
}

.hero-img{
    width:100%;
    height:100%;
    object-fit:cover;          /* Mantiene recorte sin deformar */
    object-position:center;    /* Centra la porción visible */
    display:block;
}

/* Altura menor en móviles si quieres (opcional) */
@media (max-width:600px){
    .hero-img-wrapper{
        height:300px;
    }
}

/* ---- Ampliar imágenes lateralmente (galería 2x2) ---- */
.images-grid-4-expand{
    /* Elimina el padding horizontal del .container al “extender” las imágenes */
    --expand:40px;
    margin-left:calc(-1 * var(--expand));
    margin-right:calc(-1 * var(--expand));
}

@media (min-width:1400px){
    .images-grid-4-expand{ --expand:80px; }
}

.images-grid-4-expand .col-lg-6{
    padding-left:0;
    padding-right:0;
}

.img-wide{
    width:80%;
    height:420px;            /* Ajusta la altura según necesites */
    object-fit:cover;
    display:block;
    border-radius:8px;
    transition:transform .35s ease, box-shadow .35s ease;
    box-shadow:0 4px 14px rgba(0,0,0,.18);
}

/* Aumentar aún más el “impacto” en pantallas grandes extendiendo un poco fuera del contenedor */
@media (min-width:992px){
    .img-wide{
        width:calc(100% + 80px);
        margin-left:-40px;
    }
}

@media (min-width:1400px){
    .img-wide{
        width:calc(100% + 160px);
        margin-left:-80px;
    }
}

/* Hover */
.img-wide:hover{
    transform:scale(1.02);
    box-shadow:0 8px 26px rgba(0,0,0,.28);
}

/* En móviles volvemos a ancho estándar */
@media (max-width:575.98px){
    .img-wide{
        width:100%;
        margin-left:0;
        height:300px;
    }
}

/* ==========================================================================
   Crea variantes para reducir el ancho lateral de las imágenes de la galería
   sin afectar otras que usan .img-wide.
============================================================================ */

.img-wide-narrow{
    width:82% !important;
    max-width:1100px;
    margin:0 auto !important;
    height:420px;
    object-fit:cover;
    display:block;
}

.img-wide-narrow.img-h-380 { height:380px; }
.img-wide-narrow.img-h-360 { height:360px; }
.img-wide-narrow.img-h-300 { height:300px; }

.img-wide-narrow.w-78 { width:100% !important; }
.img-wide-narrow.w-75 { width:75% !important; }
.img-wide-narrow.w-70 { width:70% !important; }

.img-wide-narrow:hover{
    transform:scale(1.02);
    box-shadow:0 8px 26px rgba(0,0,0,.28);
}

/* Responsive: en móvil ancho completo para no reducir demasiado */
@media (max-width: 575.98px){
    .img-wide-narrow{
        width:100% !important;
        height:260px;
    }
}

/* ==== Ajuste solicitado: sin bordes redondeados y menos espacio entre filas ==== */

/* Quita el border-radius de las variantes de galería */
.images-grid-4-expand .img-wide,
.images-grid-4-expand .img-wide-narrow,
.img-wide,
.img-wide-narrow {
    border-radius:0 !important;
}

/* Reduce el espacio vertical entre filas (antes .mb-4 ~24px) */
.images-grid-4-expand .mb-4 {
    margin-bottom:30px !important;
}

/* Si usas .img-aporte2 en la misma zona y quieres también sin borde, descomenta: */
/* .images-grid-4-expand .img-aporte2 { border-radius:0 !important; } */

/* Opcional: compactar aún más en pantallas pequeñas */
@media (max-width: 576px){
    .images-grid-4-expand .mb-4 {
        margin-bottom:6px !important;
    }
}

/* === Reducir espacio entre columnas de la galería (.images-grid-4-expand) ===
   Coloca este bloque AL FINAL del archivo para que sobrescriba valores previos. */

.images-grid-4-expand {
    --col-gap-x: 14px;              /* Ajusta aquí el gap horizontal (antes ~15px) */
    margin-left: calc(-1 * var(--col-gap-x));
    margin-right: calc(-1 * var(--col-gap-x));
}

/* Aplica nuevo padding (gutter) reducido a cada columna inmediata */
.images-grid-4-expand > [class^="col-"],
.images-grid-4-expand > [class*=" col-"] {
    padding-left: var(--col-gap-x);
    padding-right: var(--col-gap-x);
}

/* Variante todavía más compacta si se necesita (agrega la clase extra en el contenedor) */
.images-grid-4-expand.compacto {
    --col-gap-x: 30px;
}

/* En móviles se puede usar ancho completo sin casi espacio */
@media (max-width: 576px) {
    .images-grid-4-expand {
        --col-gap-x: 2px;
    }
}

/* Asegura que las imágenes ocupen el ancho disponible sin crear huecos extra */
.images-grid-4-expand .img-wide,
.images-grid-4-expand .img-wide-narrow {
    width: 100% !important;  /* Controla el ancho con utilitarias si aún quieres reducirlo */
    margin: 0 !important;
}

/* === Overrides: aumentar altura de las imágenes de la galería ============
   Coloca este bloque al FINAL del archivo para que sobrescriba lo anterior. */

/* Altura base anterior: 420px. Nueva altura desktop: 560px */
.images-grid-4-expand .img-wide,
.images-grid-4-expand .img-wide-narrow {
    height:500px !important;
    object-fit:cover;
}

/* Si también quieres aumentar las que usan la variable (.img-aporte2) */
.img-aporte2 {
    --img-h:500px; /* antes 400px */
}

/* Utilitarios extra (puedes aplicarlos individualmente) */
.img-h-480 { height:480px !important; }
.img-h-520 { height:520px !important; }
.img-h-560 { height:560px !important; }
.img-h-600 { height:600px !important; }
.img-h-650 { height:650px !important; }

/* Ejemplo para una sola imagen específica (aplica clase adicional en el <img>) */
/* <img class="img-wide img-h-600" ...> */

/* Ajustes responsivos: reducir un poco en tablets y móviles */
@media (max-width: 1199.98px){
    .images-grid-4-expand .img-wide,
    .images-grid-4-expand .img-wide-narrow {
        height:500px !important;
    }
}
@media (max-width: 991.98px){
    .images-grid-4-expand .img-wide,
    .images-grid-4-expand .img-wide-narrow {
        height:440px !important;
    }
}
@media (max-width: 575.98px){
    .images-grid-4-expand .img-wide,
    .images-grid-4-expand .img-wide-narrow {
        height:320px !important;
    }
}

/* Imágenes pareadas (Las Palmeras) */
.side-by-side-images {
    gap: 32px;
}
.img-pareada {
    width: 100%;
    height: 430px;          /* Ajusta si necesitas otra altura */
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
@media (max-width: 767.98px) {
    .img-pareada {
        height: 240px;
    }
    .side-by-side-images {
        gap: 16px;
    }
}
/* Logos fundación: unificados y responsive */
.foundation-logos .row {
    display: flex;
    flex-wrap: wrap; /* por defecto que pueda envolver en móviles */
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-left: 0;
    margin-right: 0;
}

/* Cada logo como elemento independiente */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
}

/* Imagenes: misma altura por breakpoint, contain para preservar proporción */
.logo-foundation {
    max-height: 140px; /* default */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* si el logo vertical necesita ajuste: reducción visual del 3% */
.logo-vertical {
    max-height: 140px;
    transform: scale(0.75); /* reduce visualmente 3% */
    transform-origin: center center;
    transition: transform 180ms ease; /* suaviza el cambio al redimensionar */
}

/* Escritorio grande: forzar una sola línea y repartir el ancho equitativamente.
   Ajusta --logos-desktop si cambias el número de logos visibles en una fila. */
@media (min-width: 992px) {
    .foundation-logos .row {
        flex-wrap: nowrap;
    }
    /* Si tienes 8 logos, cada uno ocupa 1/8 de ancho máximo */
    .foundation-logos .logo-item {
        flex: 0 0 calc(100% / 8);
        max-width: calc(100% / 8);
    }

    .logo-foundation,
    .logo-vertical {
        max-height: 160px;
    }
}

/* Tablet: permitir varias columnas (ej. 4 por fila) */
@media (min-width: 768px) and (max-width: 991px) {
    .foundation-logos .logo-item {
        flex: 0 0 calc(100% / 4);
        max-width: calc(100% / 4);
    }

    .logo-foundation {
        max-height: 140px;
    }
}

/* Mobile: 2 por fila 
@media (max-width: 767px) {
    .foundation-logos .logo-item {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .logo-foundation {
        max-height: 90px;
    }
}*/
/* Hero: imagen centrada ocupando 80% en escritorio y 100% en móviles */
.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .hero-container .hero-80 {
        width: 80%;
        max-width: 1400px; /* opcional: límite razonable */
        height: auto;
        object-fit: cover;
        display: block;
    }

/* En pantallas pequeñas ocupar 100% para evitar overflow 
@media (max-width: 767px) {
    .hero-container .hero-80 {
        width: 100%;
    }
}*/

/* Ajuste intermedio si quieres mantener algo de margen en tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-container .hero-80 {
        width: 90%;
    }
}
.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
}
/* Estilos del Acordeón */
.acordeon-container {
    width: 100%;
    margin: 0 0 40px 0;
    border-bottom: 1px solid #ccc;
}

.acordeon-titulo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px 10px;
    font-size: 1.6rem;
    font-weight: 700;
    color: brown;
    transition: color .3s ease;
}

    .acordeon-titulo:hover {
        color: #8b3a3a;
    }

.acordeon-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.acordeon-activo .acordeon-contenido {
    max-height: 1200px;
}

/* Icono */
.acordeon-icono {
    font-size: 1.3rem;
    transition: transform .3s ease, color .3s ease;
    color: brown; /* color inicial del icono */
}

/* Estado abierto */
.acordeon-activo .acordeon-titulo {
    color: #7d0f28; /* Vino */
    border-bottom: 2px solid #7d0f28;
    padding-bottom: 8px;
}

    /* Icono cuando está abierto */
    .acordeon-activo .acordeon-titulo .acordeon-icono {
        transform: rotate(-180deg);
        color: red !important;
    }

/* Added styles for Quienes Somos image pair to be responsive */
.hidden-by-carousel{ display: none !important; }
.attached-thumb{ max-width:140px; width:100%; height:auto; object-fit:cover; display:inline-block; }
.circulo-thumb{ max-width:140px; width:100%; height:auto; object-fit:cover; border-radius:10px; background:#e0f7fa; border:4px solid #00bfff; }

/* Ensure .img-aporte is responsive and has nicer default sizing on desktop */
.img-aporte { width: 100%; max-width: 520px; height: auto; object-fit: cover; display: block; margin: 0; }

/* Styles for image pair used in Quienes Somos */
.image-pair {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.image-pair .image-item img {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0 auto;
}

/* Desktop: side-by-side and apply original offsets */
@media (min-width: 768px) {
    .image-pair {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0; /* remove space between images on desktop so they sit side-by-side */
    }
    /* Make each image item use its intrinsic width so images sit flush side-by-side */
    .image-pair .image-item {
        flex: 0 0 auto;
    }
    .image-pair .image-item img {
        max-height: 362px;
        margin: 0;
        width: auto; /* allow image natural width */
        max-width: 520px;
        display: block;
    }
    /* remove explicit offsets so the second image sits flush to the first */
    .image-pair .image-item:first-child img,
    .image-pair .image-item:last-child img {
        margin-left: 0;
    }
}

/* Mobile: force images to full width (stacked) */
@media (max-width: 767.98px) {
    .image-pair {
        flex-direction: column;
        gap: 20px;
    }
    .image-pair .image-item {
        flex: 0 0 100%;
    }
    .image-pair .image-item img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
}

/* Ensure both images use same fixed size on desktop and add spacing to the right */
@media (min-width: 768px) {
    .image-pair .image-item img {
        width: 620px; /* same width for both images */
        height: auto;
        max-width: none;
        object-fit: cover;
        display: block;
       
    }
    .image-pair {
        gap: 0.1px; /* space to the right between images */
    }
    .image-pair .image-item + .image-item {
        margin-left: 0; /* ensure gap controlled by gap */
    }
}

/* Mobile: images full width stacked */
@media (max-width: 767.98px) {
    .image-pair .image-item img {
        width: 90%;
        max-width: 100%;
        height: auto;
    }
}

/* Ajuste especial para la imagen izquierda */
.img-left-adjust {
    margin-left: 60px; /* Ajusta este valor según el espacio que desees */
}

/* En móviles puedes reducir el margen para que no rompa la vista */
@media (max-width: 768px) {
    .img-left-adjust {
        margin-left: 0;
    }
}

/* Solo aplica en escritorio */
@media (min-width: 992px) {

    /* Aumentar tamaño de las imágenes en el carrusel */
    .carousel-inner .carousel-item img {
        max-height: 520px !important; /* Ajusta a tu gusto (antes 420px) */
        object-fit: cover;
    }

    /* Ajustar el bloque de texto al ancho de la imagen */
    .carousel-caption {
        max-width: 90%; /* Ajusta el texto al ancho del carrusel */
        margin: 0 auto; /* Centra el texto */
        padding: 1.5rem !important;
    }

        /* Mejor proporción visual del texto */
        .carousel-caption p {
            font-size: 1.05rem !important;
            line-height: 1.45;
        }
}

/* Contenedor responsive */
.contenedor-imagenes {
    margin-left: 15px;
    margin-right: 15px;
    text-align: center;
}

/* Márgenes grandes solo en pantallas grandes */
@media (min-width: 992px) {
    .contenedor-imagenes {
        margin-left: 180px;
        margin-right: 180px;
    }
}

/* Imagen responsive */
.img-aporte {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Ajuste solo para móviles */
@media (max-width: 576px) {
    .foundation-logos .logo-item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

        .foundation-logos .logo-item img {
            width: 100% !important;
            height: auto;
            max-width: 120px !important; /* Ajusta si quieres más grande o pequeño */
            margin: 0 auto;
        }
}

/* ================================
   UNIFICAR ALTURAS DE TODOS LOS LOGOS
   ================================ */

/* Altura unificada base (escritorio y tablet) */
.foundation-logos .logo-item img {
    max-height: 120px !important; /* Altura estándar */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto;
    display: block;
}

    /* Logos verticales: ligeramente más altos para que no queden "muy pequeños" */
    .foundation-logos .logo-item img.logo-vertical {
        max-height: 150px !important;
    }

/* Móviles: reducir un poco para que queden más proporcionados */
@media (max-width: 767px) {
    .foundation-logos .logo-item img {
        max-height: 90px !important;
    }

        .foundation-logos .logo-item img.logo-vertical {
            max-height: 110px !important;
        }
}

/* === FIX DEFINITIVO: MÓVIL 2 LOGOS POR FILA === */
@media (max-width: 767px) {

    /* Asegura que el contenedor permita envolver */
    .foundation-logos .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    /* Cada logo ocupa la mitad */
    .foundation-logos .logo-item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 10px 0 !important;
        box-sizing: border-box;
    }

        /* Forzar imágenes a no crecer más de la mitad */
        .foundation-logos .logo-item img {
            width: 100% !important;
            height: auto !important;
            max-height: 100px !important;
            object-fit: contain !important;
        }
}
.main-banner-section {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.responsive-banner-img {
    width: calc(100% - 16px);
    height: auto;
    margin: 0 auto;
    display: block;
}

.banner-caption {
    position: absolute;
    top: 25%;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .main-banner-section {
        padding: 0 8px;
    }

    .responsive-banner-img {
        width: calc(100% - 16px);
        margin: 0 auto;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        opacity: 0.7;
    }
}

.urbanismo-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

/* Imagenes con tamaño ajustable manual */
.urbanismo-img img {
    width: var(--img-size, 350px); /* tamaño ajustable desde HTML */
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.urbanismo-texto {
    width: 100%;
    max-width: 320px;
    color: #002d63;
    font-family: Arial, sans-serif;
}

    /* Títulos */
    .urbanismo-texto h2 {
        margin-top: 0;
        font-size: 28px;
        font-weight: bold;
        color: #003261;
    }

/* ====== RESPONSIVE ====== */

@media (max-width: 900px) {
    .urbanismo-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .urbanismo-texto {
        max-width: 100%;
    }

    .urbanismo-img img {
        width: 90%;
    }
}
/* Ensure project title visible on mobile */
@media (max-width: 767.98px) {
    .vj-title {
        display: block !important;
        color: brown !important;
        font-size: 1.25rem !important; /* adjust as needed */
        line-height: 1.3 !important;
        text-align: center !important;
        margin-top: 18px !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        padding: 4px 0 !important;
    }
}

/* ======================================
   FOOTER GENERAL
   ====================================== */
.site-footer {
    background: #173952;
    color: #fff;
    padding: 40px 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* ======================================
   TOP AREA
   ====================================== */
.footer-top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 90px; /* Espacio entre las columnas */
    flex-wrap: nowrap;
}

/* Columnas generales */
.footer-col {
    flex: 1;
}

.col-logo {
    max-width: 330px;
}

.col-about {
    max-width: 220px;
}

.col-userinfo {
    max-width: 360px;
    text-align: right;
}

/* ======================================
   TEXTO Y LOGOS
   ====================================== */
.footer-logo img {
    height: 90px;
}

.footer-description {
    font-size: 0.95rem;
    text-align: justify;
    margin-top: 15px;
    color: #fff;
}

/* ======================================
   Títulos
   ====================================== */
.footer-title {
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* ======================================
   Enlaces
   ====================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #fff;
        text-decoration: underline;
        font-size: 0.98rem;
    }

        .footer-links a:hover {
            opacity: 0.7;
        }

/* ======================================
   BOTTOM AREA
   ====================================== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
    color: #fff;
}

    .footer-bottom p {
        margin: 5px 0;
    }

.footer-email a {
    color: #fff;
    text-decoration: underline;
 
}

.footer-address a {
    color: #fff;
 
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 991px) {
    .footer-top {
        flex-wrap: wrap;
        gap: 40px;
        text-align: left;
    }

    .col-userinfo {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px; 
    }
}

/* Aumentar espacio SOLO entre la columna 2 (Sobre nosotros)
   y la columna 3 (Información para el usuario) */

.footer-top .col-about {
    margin-right: -5px; /* Aumenta este valor para más espacio */
}

/* Aumentar espacio entre columna 1 y columna 2 */
.footer-top .col-logo {
    margin-right: 120px; /* Ajusta este valor según tu diseño */
}

/* Hacer la columna 3 más ancha */
.footer-top .col-userinfo {
    max-width: 880px; /* Aumenta el ancho */
    flex: 1.4; /* Le damos más "peso" en el flex */
}
/* Alinear todo el contenido de la columna 3 hacia la izquierda */
.footer-top .col-userinfo {
    text-align: left !important;
}

/* Hacer la columna 2 más ancha */
.footer-top .col-about {
    max-width: 320px; /* Antes: 220px */
    flex: 1.3; /* Le damos más espacio dentro del flex */
}

.footer-description {
    font-size: 1.08rem !important;
    line-height: 1.5 !important;
}

/* Aumentar tamaño del texto SOLO en la columna 2 */
.footer-top .col-about,
.footer-top .col-about * {
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
}

/* Aumentar tamaño del texto SOLO en la columna 3 */
.footer-top .col-userinfo,
.footer-top .col-userinfo * {
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
}

/* Responsive: centrar logo + descripción solo en móviles */
@media (max-width: 767px) {
  .site-footer .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer .footer-col {
    width: 100%;
    text-align: center;
    margin: 0.75rem 0;
  }

  .site-footer .col-logo .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .site-footer .col-logo .footer-logo img {
    max-width: 240px; /* ajusta según diseño */
    width: auto;
    height: auto;
    display: inline-block;
  }

  .site-footer .col-logo .footer-description {
    margin: 0 auto;
    max-width: 360px;
    text-align: center;
    padding: 0 1rem;
  }
}

/* Mobile: stronger overrides to ensure footer logo + description are centered */
@media (max-width: 767px) {
  .site-footer .footer-top {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .site-footer .footer-col {
    width: 100% !important;
    max-width: none !important;
    text-align: center !important;
    margin: 0.5rem 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Remove the desktop spacing that pushes the logo to the left */
  .site-footer .footer-top .col-logo {
    margin-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .site-footer .col-logo .footer-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 0.5rem auto !important;
  }

  .site-footer .col-logo .footer-logo img {
    max-width: 240px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    margin: 0 auto !important;
  }

  .site-footer .col-logo .footer-description,
  .site-footer .col-about,
  .site-footer .col-userinfo {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 420px !important;
    padding: 0 12px !important;
  }

  /* Ensure footer bottom is centered too on mobile */
  .site-footer .footer-bottom {
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (min-width: 992px) {
    /* --------------------------------------------------------------------------
     Fix: For the proyectos desktop gallery ensure all four images are same size
     and stay in a single row. Applied specifically to the existing
     .images-grid-4-expand.compacto container so it doesn't affect other grids.
     Adjust the height value below if you want larger/smaller thumbnails.
     -------------------------------------------------------------------------- */

    .imagesdesktop-grid-4-expand.compacto {
        display: flex; /* make the row a single flex line */
        flex-wrap: nowrap; /* prevent wrapping to multiple rows */
        gap: 0; /* we control gutters on columns */
        align-items: stretch; /* equal height columns */
    }

        /* Force each column to take 1/4 of the width on desktop */
        .imagesdesktop-grid-4-expand.compacto > [class^="col-"],
        .imagesdesktop-grid-4-expand.compacto > [class*=" col-"] {
            flex: 0 0 25%;
            max-width: 25%;
            padding-left: var(--col-gap-x, 30px);
            padding-right: var(--col-gap-x, 30px);
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Make all imagesdesktop the same size and crop using object-fit */
        .imagesdesktop-grid-4-expand.compacto img {
            width: 100%;
            height: 300px; /* uniform height for desktop; change as needed */
            object-fit: cover;
            display: block;
            border-radius: 0;
        }
}

/* Mobile-specific override: ensure selected images are fully visible (no cropping)
   This targets only images with the `mobile-full-visible` class and only on small screens.
   It uses object-fit: contain so the entire image is visible without affecting desktop
   or other images. */
@media (max-width: 576px) {
    .mobile-full-visible {
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
        max-height: 520px !important; /* cap to avoid extremely tall images on small screens */
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Mobile tweaks for specific proyecto images (Casetas / Acacios / Vestier) */
@media (max-width: 576px) {
    /* Remove large horizontal offsets on the rows that were added for desktop */
    .mobile-reset-margins {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Expand only the selected images on mobile without affecting others */
    .mobile-expand {
        width: 90% !important;         /* occupy most of the viewport width */
        max-width: 480px !important;   /* avoid extremely wide images on larger phones */
        height: auto !important;       /* keep aspect ratio */
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        object-fit: contain !important; /* show full image without aggressive cropping */
    }
}

/* Mobile-only adjustment for carousel captions to avoid thin white line under last text line */
@media (max-width: 767.98px) {
    .carousel-caption.position-static.bg-white {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px 14px 10px !important;
        width: calc(100% - 28px) !important;
        box-sizing: border-box;
        background-color: #fff !important;
        box-shadow: none !important;
        border-radius: 6px;
    }

        .carousel-caption.position-static.bg-white p {
            margin:  0 !important;
            line-height: 1.6;
        }
}

/* Fix: aumentar logo SOLO en móviles muy pequeños (~360px) y evitar que otras reglas lo sobreescriban */
@media (min-width: 320px) and (max-width: 380px) {
    /* Aumentar el tamaño del contenedor .navbar-brand para permitir el logo mayor */
    header.navbar, header.bg-white, header, header.fixed-header {
        /* no cambiar layout, sólo asegurar que el brand pueda crecer */
    }

    header .navbar-brand,
    header.fixed-header .navbar-brand,
    .navbar .navbar-brand {
        width: auto !important;
        max-width: none !important;
        display: inline-block !important;
    }

    /* Forzar el ancho del img del logo — solo este breakpoint */
    header .navbar-brand img,
    header.fixed-header .navbar-brand img,
    .navbar .navbar-brand img {
        width: 300px !important; /* tamaño objetivo para dispositivos ~360px */
        max-width: 260px !important;
        height: auto !important;
        display: block !important;
    }
}


