/* =========================
   ENASWIM - NOSOTROS
   CSS exclusivo de nosotros.html
========================= */

:root {
    --enaswim-blue: #001e62;
    --enaswim-coral: #ff6b52;
    --enaswim-text: #414c56;
    --enaswim-side-space: clamp(10px, 2.2vw, 38px);
}

html,
body {
    min-height: 100%;
}

.nosotros-body {
    min-height: 100vh;
    margin: 0;
    color: var(--enaswim-text);

    background-color: #e3f6f9;
    background-image: url('/imagenes/fondo.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.nosotros-main {
    width: 100%;
    margin: 0;
    padding: 0 0 28px;
}

/* NAVEGACIÓN */

.nosotros-body .navbar-custom {
    position: relative;
    z-index: 50;

    background-color: #e3f6f9 !important;
    background-image: url('/imagenes/fondo_olas.png') !important;
    background-size: 280px auto !important;
    background-position: left top !important;
    background-repeat: repeat !important;

    border-bottom: 1px solid rgba(0, 30, 98, 0.10);
    box-shadow: 0 5px 18px rgba(0, 30, 98, 0.08);
}

.nosotros-body .navbar-logo {
    display: block;
    width: auto;
    height: 45px;
}

.nosotros-body .navbar-nav .nav-link {
    color: #222 !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.nosotros-body .navbar-nav .nav-link:hover,
.nosotros-body .navbar-nav .nav-link.active-link {
    color: var(--enaswim-coral) !important;
}

.nosotros-body .nav-liquidacion {
    font-weight: 800;
}

.nosotros-body .navbar-actions {
    flex-shrink: 0;
}

.nosotros-body .navbar-icon-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
}

.nosotros-body .nav-account-link,
.nosotros-body .nav-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #222 !important;
    text-decoration: none;
}

.nosotros-body .nav-account-link:hover,
.nosotros-body .nav-cart-link:hover,
.nosotros-body .navbar-icon-button:hover {
    color: var(--enaswim-coral) !important;
}

.nosotros-body .nav-icon {
    font-size: 1.2rem;
}

.nosotros-body .cuenta-texto,
.nosotros-body #carritoTotal {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

/* PORTADA */

.nosotros-hero {
    width: 100%;
    padding: 0 var(--enaswim-side-space);
}

.nosotros-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: stretch;

    width: 100%;
    min-height: clamp(390px, 52vh, 540px);
    margin: 0;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.78);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: clamp(24px, 2.2vw, 38px);
    border-bottom-right-radius: clamp(24px, 2.2vw, 38px);

    background: rgba(227, 246, 249, 0.88);
    box-shadow: 0 22px 58px rgba(0, 30, 98, 0.16);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nosotros-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding:
        clamp(40px, 5vw, 80px)
        clamp(30px, 6vw, 105px);
}

.nosotros-hero-kicker {
    margin: 0 0 12px;

    color: var(--enaswim-coral);
    font-size: 0.95rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.nosotros-hero-copy h1 {
    max-width: 720px;
    margin: 0 0 20px;

    color: var(--enaswim-blue);
    font-size: clamp(2.9rem, 5.4vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;

    text-transform: uppercase;
}

.nosotros-hero-description {
    max-width: 650px;
    margin: 0;

    color: #36414a;
    font-size: clamp(1rem, 1.1vw, 1.18rem);
    line-height: 1.72;
}

.nosotros-hero-image {
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
}

.nosotros-hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}

/* SECCIONES DE CONTENIDO */

.nosotros-content-section {
    width: 100%;
    padding:
        24px
        var(--enaswim-side-space)
        0;
}

.nosotros-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;

    width: 100%;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: clamp(24px, 2.2vw, 38px);

    background: rgba(255, 255, 255, 0.87);
    box-shadow: 0 22px 58px rgba(0, 30, 98, 0.15);

    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
}

/*
   La altura la determina el texto.
   La imagen ocupa exactamente la misma altura.
*/

.nosotros-content-image {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.nosotros-content-image img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transition: transform 0.45s ease;
}

.nosotros-content-grid:hover .nosotros-content-image img {
    transform: scale(1.025);
}

/* TEXTO */

.nosotros-content-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding:
        clamp(44px, 5vw, 88px)
        clamp(30px, 5.8vw, 105px);

    text-align: left;
}

.nosotros-content-kicker {
    margin: 0 0 8px;

    color: var(--enaswim-coral);
    font-size: 0.92rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.nosotros-content-subtitle {
    margin: 0 0 16px;

    color: #59636d;
    font-size: 1.04rem;
    font-weight: 500;
}

.nosotros-content-copy h2 {
    max-width: 760px;
    margin: 0 0 24px;

    color: var(--enaswim-blue);
    font-size: clamp(2.65rem, 4.5vw, 4.8rem);
    font-weight: 300;
    line-height: 1;

    text-transform: uppercase;
}

.nosotros-content-description {
    max-width: 820px;
    margin: 0;

    color: var(--enaswim-text);
    font-size: clamp(1rem, 1.05vw, 1.12rem);
    line-height: 1.8;

    text-align: justify;
}

/* ALINEACIÓN DERECHA */

.nosotros-content-copy-right {
    align-items: flex-end;
    text-align: right;
}

.nosotros-content-copy-right
.nosotros-content-kicker,
.nosotros-content-copy-right h2 {
    text-align: right;
}

.nosotros-content-copy-right
.nosotros-content-description {
    margin-left: auto;
}

/* LEER MÁS */

.nosotros-details {
    width: 100%;
    max-width: 820px;
    margin-top: 24px;
}

.nosotros-content-copy-right
.nosotros-details {
    margin-left: auto;
}

.nosotros-details summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 22px;

    border: 0;
    border-radius: 999px;

    background: var(--enaswim-coral);
    color: #ffffff;

    font-size: 0.84rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 0.8px;

    cursor: pointer;
    list-style: none;

    box-shadow: 0 12px 28px rgba(255, 107, 82, 0.24);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.nosotros-content-copy-right
.nosotros-details summary {
    margin-left: auto;
}

.nosotros-details summary::-webkit-details-marker {
    display: none;
}

.nosotros-details summary:hover {
    transform: translateY(-2px);
    background: #e65a43;
}

.nosotros-details summary i {
    transition: transform 0.25s ease;
}

.nosotros-details[open] summary i {
    transform: rotate(180deg);
}

.nosotros-details-content {
    padding-top: 25px;

    color: var(--enaswim-text);
    font-size: clamp(1rem, 1.05vw, 1.12rem);
    line-height: 1.8;
}

.nosotros-details-content p {
    margin-bottom: 19px;
    text-align: justify;
}

/* FOOTER */

.nosotros-body .footer-ena {
    margin-top: 28px;

    background-color: rgba(227, 246, 249, 0.96);
    background-image: url('/imagenes/fondo_olas.png');
    background-size: 280px auto;
    background-position: left top;
    background-repeat: repeat;

    border-top: 1px solid rgba(0, 30, 98, 0.10);
}

.nosotros-body .footer-logo {
    height: 55px;
}

.nosotros-body .footer-text {
    color: #333;
    font-size: 15px;
}

.nosotros-body .footer-social a {
    color: var(--enaswim-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.nosotros-body .footer-social a:hover {
    color: var(--enaswim-coral);
}

.nosotros-body .footer-copy {
    color: #555;
}

/* TABLETA */

@media (max-width: 991px) {
    .nosotros-body {
        background-attachment: scroll;
    }

    .nosotros-body .navbar-collapse {
        margin-top: 16px;
        padding: 18px;

        border-radius: 16px;
        background: rgba(255, 255, 255, 0.95);
    }

    .nosotros-body .navbar-actions {
        margin-left: auto;
    }

    .nosotros-hero-grid,
    .nosotros-content-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-hero-copy {
        order: 2;
    }

    .nosotros-hero-image {
        order: 1;
        height: 420px;
        min-height: 420px;
    }

    .nosotros-content-image {
        height: 440px;
        min-height: 440px;
    }

    .nosotros-content-image img {
        position: static;
    }

    .nosotros-content-grid-reverse
    .nosotros-content-copy {
        order: 2;
    }

    .nosotros-content-grid-reverse
    .nosotros-content-image {
        order: 1;
    }

    .nosotros-content-copy-right {
        align-items: flex-start;
        text-align: left;
    }

    .nosotros-content-copy-right
    .nosotros-content-kicker,
    .nosotros-content-copy-right h2 {
        text-align: left;
    }

    .nosotros-content-copy-right
    .nosotros-content-description,
    .nosotros-content-copy-right
    .nosotros-details,
    .nosotros-content-copy-right
    .nosotros-details summary {
        margin-left: 0;
    }
}

/* CELULAR */

@media (max-width: 767px) {
    :root {
        --enaswim-side-space: 10px;
    }

    .nosotros-hero-grid {
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
    }

    .nosotros-hero-copy,
    .nosotros-content-copy {
        padding: 44px 24px;
    }

    .nosotros-hero-copy h1 {
        font-size: clamp(2.7rem, 13vw, 4.2rem);
    }

    .nosotros-content-copy h2 {
        font-size: clamp(2.45rem, 11vw, 3.8rem);
    }

    .nosotros-content-grid {
        border-radius: 22px;
    }

    .nosotros-hero-image,
    .nosotros-content-image {
        height: 350px;
        min-height: 350px;
    }

    .nosotros-content-description,
    .nosotros-details-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .nosotros-content-description,
    .nosotros-details-content p {
        text-align: left;
    }
}

/* CELULAR PEQUEÑO */

@media (max-width: 575px) {
    .nosotros-body .navbar-logo {
        height: 39px;
    }

    .nosotros-body .navbar-actions {
        gap: 14px !important;
    }
}
