/* =========================
   ENASWIM - INICIO
   CSS exclusivo de index.html
========================= */

:root {
    --azul-enaswim: #001e62;
    --coral-enaswim: #ff6b52;
    --amarillo-enaswim: #fbc02d;
    --texto-enaswim: #38434d;
    --espacio-index: clamp(12px, 2.4vw, 42px);
}

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

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

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

.index-main {
    width: 100%;
    padding-bottom: 16px;
}

/* =========================
   NAVEGACIÓN
   fondo_olas.png solo aquí
========================= */

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

    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);
}

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

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

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

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

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

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

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

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

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

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

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

/* =========================
   PORTADA
========================= */

.index-hero {
    position: relative;
    width: 100%;
    margin: 0;
}

.index-hero .carousel,
.index-hero .carousel-inner,
.index-hero .carousel-item {
    min-height: calc(100svh - 88px);
}

.index-hero .carousel-item img {
    display: block;
    width: 100%;
    height: calc(100svh - 88px);
    min-height: 620px;

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

.index-hero .carousel::after {
    position: absolute;
    inset: 0;
    z-index: 1;

    content: "";
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 20, 72, 0.70) 0%,
            rgba(0, 30, 98, 0.34) 42%,
            rgba(0, 30, 98, 0.03) 75%
        );
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: clamp(28px, 7vw, 125px);
    z-index: 5;

    width: min(660px, calc(100% - 56px));
    transform: translateY(-50%);
    text-align: left;
}

.hero-kicker {
    margin-bottom: 14px;

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

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

.hero-title {
    margin-bottom: 20px;

    color: #ffffff;
    font-size: clamp(3.2rem, 6vw, 6.4rem);
    font-weight: 900;
    line-height: 0.94;
}

.hero-subtitle {
    max-width: 570px;
    margin-bottom: 30px;

    color: #ffffff;
    font-size: clamp(1.1rem, 1.7vw, 1.55rem);
    font-weight: 500;
    line-height: 1.5;
}

.btn-catalogo,
.btn-index-primary {
    border: 0;
    border-radius: 999px;

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

    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;

    box-shadow: 0 14px 34px rgba(255, 107, 82, 0.25);
}

.btn-catalogo {
    padding: 14px 28px;
}

.btn-index-primary {
    padding: 13px 26px;
}

.btn-catalogo:hover,
.btn-index-primary:hover {
    transform: translateY(-2px);
    background: #e65a43;
    color: #ffffff;
}

.index-hero .carousel-indicators {
    z-index: 6;
}

.index-hero .carousel-control-prev,
.index-hero .carousel-control-next {
    z-index: 6;
    width: 7%;
}

/* =========================
   SECCIONES Y BURBUJAS
========================= */

.index-section {
    width: 100%;
    padding: 22px 0 0;
}

.index-bubble {
    width: calc(100% - (var(--espacio-index) * 2));
    margin: 0 var(--espacio-index);

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

    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 30px rgba(0, 30, 98, 0.10);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.index-section-heading {
    margin-bottom: 38px;
    text-align: center;
}

.index-section-heading p,
.index-eyebrow {
    margin-bottom: 7px;

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

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

.index-section-heading h2 {
    margin-bottom: 0;

    color: var(--azul-enaswim);
    font-size: clamp(2.5rem, 4.4vw, 4.5rem);
    font-weight: 300;
    line-height: 1;
}

/* =========================
   PRODUCTOS
========================= */

.productos-bubble {
    padding: clamp(34px, 5vw, 72px);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.producto-card {
    overflow: hidden;

    border: 1px solid rgba(0, 30, 98, 0.08);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 13px 32px rgba(0, 30, 98, 0.10);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.producto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 30, 98, 0.14);
}

.producto-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.producto-card-link:hover {
    color: inherit;
}

.producto-imagen {
    display: block;
    height: 300px;
    overflow: hidden;
    background: #f7fbfc;
}

.producto-imagen img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: none;
}


.producto-info {
    padding: 18px 17px 20px;
}

.producto-categoria {
    display: block;
    margin-bottom: 5px;

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

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

.producto-info h3 {
    margin-bottom: 7px;

    color: var(--azul-enaswim);
    font-size: 1.05rem;
    font-weight: 800;
}

.producto-precio {
    margin-bottom: 0;

    color: #333;
    font-size: 0.95rem;
    font-weight: 800;
}

.productos-vacios {
    margin: 0;
    color: var(--texto-enaswim);
    font-size: 1.05rem;
    text-align: center;
}

.index-section-action {
    margin-top: 36px;
    text-align: center;
}

/* =========================
   CATEGORÍAS
========================= */

.categorias-bubble {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    overflow: hidden;
}

.categoria-copy,
.categoria-imagen {
    min-height: 470px;
}

.categoria-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 44px 30px;
    text-align: center;
}

.categoria-copy p {
    margin-bottom: 6px;

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

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

.categoria-copy h2 {
    margin-bottom: 12px;

    font-size: clamp(2rem, 2.6vw, 3rem);
    font-weight: 900;
    line-height: 1;
}

.categoria-copy span {
    margin-bottom: 28px;
    font-size: 1rem;
}

.categoria-hombre {
    background:
        linear-gradient(
            145deg,
            rgba(251, 192, 45, 0.96),
            rgba(255, 154, 44, 0.96)
        );
    color: #ffffff;
}

.categoria-mujer {
    background:
        linear-gradient(
            145deg,
            rgba(0, 30, 98, 0.96),
            rgba(84, 41, 143, 0.96)
        );
    color: #ffffff;
}

.categoria-imagen {
    overflow: hidden;
}

.categoria-imagen img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.categoria-imagen:hover img {
    transform: scale(1.04);
}

.btn-categoria {
    padding: 12px 23px;

    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;

    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
}

.btn-categoria:hover {
    background: #ffffff;
    color: var(--azul-enaswim);
}

/* =========================
   PERSONALIZADOS EN INICIO
========================= */

.personalizados-home {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
    align-items: center;

    padding: clamp(38px, 5vw, 75px);
}

.personalizados-home-copy h2 {
    margin-bottom: 18px;

    color: var(--azul-enaswim);
    font-size: clamp(2.7rem, 5vw, 5.2rem);
    font-weight: 900;
    line-height: 0.96;
}

.personalizados-home-copy > p:not(.index-eyebrow) {
    max-width: 720px;
    margin-bottom: 28px;

    color: var(--texto-enaswim);
    font-size: 1.1rem;
    line-height: 1.75;
}

.personalizados-home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.personalizados-home-icon img {
    width: min(190px, 70%);
    filter: drop-shadow(0 15px 28px rgba(0, 30, 98, 0.15));
}

/* =========================
   CIERRE
========================= */

.index-section-final {
    padding-bottom: 22px;
}

.atletas-final {
    padding: clamp(42px, 6vw, 86px);
    text-align: center;
}

.atletas-icono {
    width: 82px;
    margin-bottom: 24px;
}

.atletas-titulo {
    margin-bottom: 18px;

    color: var(--azul-enaswim);
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 300;
    line-height: 1;
}

.atletas-texto {
    max-width: 720px;
    margin: 0 auto;

    color: var(--texto-enaswim);
    font-size: 1.08rem;
    line-height: 1.7;
}

/* =========================
   FOOTER
========================= */

.index-body .footer-ena {
    margin-top: 0;

    background-color: rgba(227, 246, 249, 0.94);
    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);
}

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

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

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

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

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .categorias-bubble {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

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

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

    .index-hero .carousel,
    .index-hero .carousel-inner,
    .index-hero .carousel-item,
    .index-hero .carousel-item img {
        min-height: 660px;
        height: 660px;
    }

    .personalizados-home {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .personalizados-home-copy > p:not(.index-eyebrow) {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    :root {
        --espacio-index: 10px;
    }

    .hero-overlay {
        top: auto;
        bottom: 70px;
        left: 24px;

        width: calc(100% - 48px);
        transform: none;
    }

    .hero-title {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .index-hero .carousel,
    .index-hero .carousel-inner,
    .index-hero .carousel-item,
    .index-hero .carousel-item img {
        min-height: 620px;
        height: 620px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .productos-bubble {
        padding: 34px 16px;
    }

    .producto-info {
        padding: 15px 13px 17px;
    }

    .categorias-bubble {
        grid-template-columns: 1fr;
    }

    .categoria-copy,
    .categoria-imagen {
        min-height: 380px;
    }

    .personalizados-home {
        padding: 45px 24px;
    }

    .atletas-final {
        padding: 48px 24px;
    }
}

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

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

    .productos-grid {
        grid-template-columns: 1fr;
    }

    .producto-imagen {
        height: 320px;
    }

    .index-section-heading h2 {
        font-size: 2.5rem;
    }

    .categoria-copy,
    .categoria-imagen {
        min-height: 330px;
    }
}
