/* --- VARIABLES Y RESET --- */
:root {
    --bg-color: #f8f4ec; 
    --text-dark: #1a1a1a;
    --text-light: #5a5a5a;
    --accent-gold: #c4a47c; 
    --header-bg: #050505;
    --header-text: #e0e0e0;
    --menu-beige: #d8cbad; 
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Variables para que el footer y header coincidan con unisex (si no las toma de main.css) */
    --color-blanco: #ffffff;
    --color-dorado: #c5a059;
    --color-crema: #f8f4ec;
    --color-negro: #1a1a1a;
   
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body {
    font-family: var(--fuente-cuerpo);
    color: var(--color-negro);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-crema);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- HEADER (Modificado para igualar a Unisex) --- */
header {
    background-color: #000000;
    color: var(--color-blanco);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.logo img {
    display: block;
    width: 150px;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    font-size: 1rem; /* Tamaño estándar */
    gap: 1.8rem;
}

.nav-menu a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--color-dorado);
}

/* --- SUB-NAVEGACIÓN --- */
.sub-nav {
    background-color: #000000;
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center; /* Con esto alcanza para centrar verticalmente */
    flex-wrap: nowrap; 
    gap: 1.2rem;
    /* Modificá el padding y la altura así: */
    padding: 12px 15px; /* 12px arriba y abajo */
    height: 40px; /* Una altura fija (probalo con 40px o 45px) */
    /* BORRÁ EL line-height QUE TE PUSE ANTES ACÁ */
    font-size: 10.5px;
    letter-spacing: 0.10px;
    text-transform: uppercase;
    position: relative;
    z-index: 90; /* Un número menor al del header para que no lo tape */
}
.sub-nav a {
    color: var(--menu-beige);
    white-space: nowrap;
    transition: color 0.3s ease;
    font-family: var(--fuente-cuerpo);
    display: flex;
    align-items: center;
    line-height: 1; /* Mata el interlineado gigante que lo empuja hacia arriba */
}

.sub-nav a:hover {
    color: #ffffff;
}

.sub-nav a.active,
.sub-nav a.active:hover {
    color: var(--color-dorado);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-dorado);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.45em;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 5rem 5%
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    max-height: 600px;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 600px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 5rem;
    letter-spacing: 5px;
    font-weight: 400;
    margin-bottom: -10px;
}

.cursive-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 3.5rem;
    color: var(--accent-gold);
    font-weight: 400;
}

.divider {
    color: var(--accent-gold);
    margin: 15px 0;
    font-size: 1.5rem;
    text-align: center;
    width: 250px;
    position: relative;
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: var(--accent-gold);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.hero p {
    font-size: 1rem;
    font-family: var(--fuente-cuerpo);
    font-weight: 300;
    line-height: 1.8;
    margin-top: 20px;
}

/* --- SECCIONES GENERALES --- */
.section-container {
    padding: 4rem 10%;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #d1c8b8;
    margin-left: 20px;
}

/* --- ARTÍCULOS DESTACADOS (GRID) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tag {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--header-bg);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.75rem;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read-more {
    background: none;
    border: none;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: right;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
}

.btn-read-more:hover {
    color: var(--accent-gold);
}

/* --- ÚLTIMOS ARTÍCULOS Y SIDEBAR --- */
.layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 4rem;
    align-items: start; 
}

.articles-list {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #d1c8b8;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.list-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.list-item img {
    width: 100px; 
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.list-info {
    flex-grow: 1;
}

.list-info h5 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.list-info span {
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.list-item i {
    color: #ccc;
}

/* --- SIDEBAR --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.promo-banner {
    background-color: var(--header-bg);
    color: #fff;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.promo-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center center; 
    opacity: 0.6;
}

.promo-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem 2.5rem 2rem 1.5rem; 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 30%, transparent);
}

.promo-tag {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #aaa;
    text-transform: uppercase;
}

.promo-content h4 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 10px 0;
    font-weight: 400;
}

.promo-content p {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 20px;
    max-width: 80%; 
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-gold);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
}

.club-box {
    border: 1px solid #333;
    padding: 1rem; 
    border-radius: 8px;
    text-align: center;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: start; 
    height: fit-content; 
}

.club-box h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.club-box p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 90%; 
    margin-left: auto;
    margin-right: auto;
}

.club-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.circle-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    flex: 0 0 auto;
    text-decoration: none;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--header-bg);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 50%;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* --- BOTÓN FLOTANTE WHATSAPP (Igual a Unisex) --- */
.whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #111; 
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999; 
    transition: all 0.3s ease;
    border: 1px solid var(--color-dorado); 
}

.whatsapp-flotante:hover {
    transform: translateY(-3px);
}

.whatsapp-flotante i {
    font-size: 1.5rem;
}

/* =========================================
   FOOTER (Copiado exacto de unisex.css)
   ========================================= */
footer {
    background-color: #0a0a0a;
    color: var(--color-blanco);
    padding: 3rem 5% 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr 1fr; 
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.footer-logo img {
    width: 150px;
    height: auto;
    margin: 0 auto;
}

.bloque-redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    text-align: center;
    width: 100%;
}

.footer-socials {
    display: flex;
    gap: 1.5rem; 
    margin-top: 0.3rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-socials a {
    color: var(--color-blanco);
    font-size: 2.6rem; 
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.footer-socials a:hover {
    color: var(--color-dorado);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #c5a059;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-family: var(--fuente-titulos);
    letter-spacing: 1px;
    line-height: 1.3;
}

.footer-col a, .footer-col p {
    font-size: 0.75rem;
    color: #ccc;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.footer-col a:hover {
    color: var(--color-blanco);
}

.footer-text-small {
    font-size: 0.75rem;
    color: #ccc;
}

.lista-pagos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-pagos li {
    font-size: 0.75rem;
    color: #ccc;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lista-pagos li i {
    width: 1rem;
    color: var(--color-dorado);
    text-align: center;
    flex: 0 0 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: #888;
    margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .sub-nav { font-size: 11px; gap: 0.8rem; }
}

@media (max-width: 1024px) {
    .section-container { padding-block: 2rem; }
    .destacados { padding-inline: 4.2%; }
    .ultimos-articulos { padding-inline: 2.2%; }
    .cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.2rem;
    }
    .card-img { height: clamp(115px, 13vw, 140px); }
    .card-content { padding: 0.7rem; }
    .card-content h4 { font-size: 0.8rem; line-height: 1.25; }
    .card-content p { font-size: 0.7rem; margin-bottom: 0.7rem; }
    .btn-read-more { font-size: 0.65rem; }
    .tag { padding: 3px 8px; font-size: 0.6rem; }
    .layout-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 1.2rem;
    }
    .list-item { gap: 0.75rem; padding: 0.35rem 0; }
    .list-item img { width: 34%; max-width: 180px; height: 85px; flex: 0 0 auto; }
    .list-info h5 { font-size: 0.82rem; line-height: 1.25; }
    .list-info span { font-size: 0.7rem; }
    .sidebar { gap: 1rem; }
    .promo-banner { min-height: 153px; }
    .promo-content { padding: 0.8rem 1rem; }
    .promo-content h4 { font-size: 1.25rem; margin: 0.3rem 0; }
    .promo-content p { max-width: 85%; font-size: 0.7rem; margin-bottom: 0.6rem; }
    .btn-primary { padding: 0.5rem 0.75rem; font-size: 0.65rem; }
    .club-box { padding: 0.65rem; }
    .club-box h4 { font-size: 1.5rem; margin-bottom: 0.35rem; }
    .club-box p { max-width: 100%; font-size: 0.75rem; line-height: 1.35; margin-bottom: 0.6rem; }
    .club-actions { gap: 0.7rem; }
    .circle-icon { width: 32px; height: 32px; font-size: 1rem; }
    .btn-dark { padding: 0.5rem 0.8rem; font-size: 0.6rem; }
    .hero h1 { font-size: 4rem; }
    .cursive-title { font-size: 2.5rem; }
    header { padding: 1rem 2rem; }
    .sub-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    
    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .section-container { padding: 2rem 5%; }
    .destacados,
    .ultimos-articulos { padding-inline: 5%; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-grid { grid-template-columns: 1fr; }

    body.has-mobile-academy-nav > header.mobile-menu-ready {
        position: sticky;
        top: 0;
        z-index: 1102;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        min-height: 68px;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
        background: rgba(243, 240, 205, 0.84);
        border-bottom: 1px solid rgba(197, 160, 89, 0.42);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    body.has-mobile-academy-nav > header.mobile-menu-ready .logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    body.has-mobile-academy-nav > header.mobile-menu-ready .logo img {
        width: 126px;
        max-height: 44px;
    }

    body.has-mobile-academy-nav > header.mobile-menu-ready .mobile-menu-toggle {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        border: 0;
        border-radius: 0;
    }

    body.has-mobile-academy-nav > header.mobile-menu-ready .mobile-menu-toggle:focus-visible {
        outline: 1px solid var(--color-dorado);
        outline-offset: 3px;
    }

    body.has-mobile-academy-nav > header.mobile-menu-ready .header-icons {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin: 0;
    }

    body.has-mobile-academy-nav > header.mobile-menu-ready nav {
        background: rgba(243, 240, 205, 0.95);
        border-top-color: rgba(197, 160, 89, 0.42);
        border-bottom: 1px solid rgba(197, 160, 89, 0.42);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
        backdrop-filter: blur(14px);
        max-width: 300px;

    }

    body.has-mobile-academy-nav > .sub-nav {
        display: none;
    }

    .sub-nav {
        position: relative;
        top: auto;
        height: auto;
        max-width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
.hero-content{
text-align: left;
line-height: 0.7;
background: rgba(0, 0, 0, 0.5);
padding: 1.5rem; 
}
    .hero h1 { font-size: 3rem; }
    .cursive-title { font-size: 2rem; }
    .modal-content { width: 90%; }
    .logo img { max-height: 40px; }
    .promo-banner { min-height: 200px; }

    .list-item img {
        width: 34%;
        max-width: 180px;
        height: 85px;
    }

    .club-box h4 { font-size: 1.8rem; }

    .club-box p { max-width: 90%; font-size: 0.85rem; }
    
    /* Footer Responsive Móvil */
    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    
    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .whatsapp-flotante span {
        display: none; /* Solo muestra el ícono en móviles */
    }
    
    .whatsapp-flotante {
        padding: 1rem;
        border-radius: 50%;
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 520px) {
    .cards-grid { grid-template-columns: 1fr; }
    .card-img { height: 190px; }
}