/* ==========================================================================
   Grey's Braids & Glam - Hoja de Estilos Principal
   Paleta: Beige cálido, Blanco puro, Marrón Espresso, Negro Mate, Verde Oliva y Dorado
   ========================================================================== */

@import url('fonts.css');

:root {
    --bg-cream: #F8F4EC;
    --bg-beige: #EAE0D0;
    --bg-beige-dark: #DBCBB2;
    --bg-white: #FFFFFF;
    --text-black: #181512;
    --text-espresso: #3A2A1D;
    --text-muted: #6E5D4F;
    --olive: #5E6B47;
    --olive-hover: #4A5536;
    --gold: #C5A059;
    --gold-light: #DFC690;
    --border-gold: rgba(197, 160, 89, 0.55);
    --shadow-soft: 0 14px 36px rgba(58, 42, 29, 0.08);
    --shadow-card: 0 8px 24px rgba(58, 42, 29, 0.06);
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-black);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 244, 236, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.28);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
}

.brand-logo {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--text-black);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo span.amp {
    color: var(--gold);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-espresso);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--text-black);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.btn-olive {
    background-color: var(--olive);
    color: #FFFFFF;
    border-color: rgba(197, 160, 89, 0.45);
    box-shadow: 0 4px 14px rgba(94, 107, 71, 0.25);
}

.btn-olive:hover {
    background-color: var(--olive-hover);
    transform: translateY(-1px);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--text-espresso);
    border: 1px solid var(--gold);
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: #FFFFFF;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-espresso);
    cursor: pointer;
}

/* ==========================================================================
   HERO BANNER (Fiel al boceto aprobado)
   ========================================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(90deg, #EBE1D1 0%, #EFE7DA 48%, rgba(239, 231, 218, 0.2) 100%);
    padding: 56px 0 96px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-espresso);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border-gold);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 4.5vw, 4.1rem);
    font-weight: 600;
    line-height: 1.08;
    color: var(--text-black);
    margin-bottom: 14px;
}

/* Lema en fuente manuscrita caligráfica */
.hero-slogan {
    font-family: var(--font-script);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    color: var(--text-espresso);
    font-weight: 400;
    margin-bottom: 26px;
    line-height: 1.25;
}

.hero-subtext {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 20px 45px rgba(40, 26, 15, 0.18);
}

.hero-image-frame img {
    width: 100%;
    height: 490px;
    object-fit: cover;
    object-position: center top;
}

/* ==========================================================================
   BARRA FLOTANTE DE RESERVAS RÁPIDAS
   ========================================================================== */
.quick-booking-wrapper {
    margin-top: -52px;
    position: relative;
    z-index: 10;
    margin-bottom: 56px;
}

.quick-booking-bar {
    background: var(--bg-beige-dark);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.qb-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-espresso);
    margin-bottom: 6px;
}

.qb-control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 160, 89, 0.65);
    background: var(--bg-cream);
    color: var(--text-black);
    font-family: var(--font-sans);
    font-size: 0.92rem;
}

.qb-control:focus {
    outline: none;
    border-color: var(--olive);
}

/* ==========================================================================
   TARJETAS DESTACADAS (Especialidades debajo del buscador)
   ========================================================================== */
.section {
    padding: 64px 0;
}

.section-white {
    background-color: var(--bg-white);
}

.section-cream {
    background-color: var(--bg-cream);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.section-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--olive);
    font-weight: 700;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    color: var(--text-black);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 16px;
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--gold);
}

.pillar-card img {
    width: 135px;
    height: 165px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 160, 89, 0.4);
}

.pillar-info h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--text-black);
    margin-bottom: 8px;
}

.pillar-info p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pillar-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-espresso);
    border-bottom: 1.5px solid var(--gold);
    padding-bottom: 2px;
}

/* ==========================================================================
   CATÁLOGO DE SERVICIOS Y PRECIOS DINÁMICOS
   ========================================================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.filter-btn {
    padding: 9px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-gold);
    background: var(--bg-white);
    color: var(--text-espresso);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--olive);
    color: #FFFFFF;
    border-color: var(--olive);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 26px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.service-img-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrap img {
    transform: scale(1.04);
}

.service-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(24, 21, 18, 0.82);
    color: var(--gold-light);
    font-size: 0.74rem;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
}

.service-duration-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(248, 244, 236, 0.94);
    color: var(--text-espresso);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--gold);
}

.service-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--text-black);
    margin-bottom: 6px;
}

.service-hair-badge {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--olive);
    font-weight: 600;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.service-pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed rgba(197, 160, 89, 0.45);
    margin-bottom: 16px;
}

.price-block span.label {
    display: block;
    font-size: 0.73rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-block strong {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--text-espresso);
}

/* ==========================================================================
   GALERÍA DE TRABAJOS
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--border-gold);
    height: 330px;
    background: var(--bg-beige);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(24, 21, 18, 0.92), rgba(24, 21, 18, 0.05));
    color: #FFFFFF;
    padding: 28px 18px 16px;
}

.gallery-caption span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gold-light);
}

.gallery-caption h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
}

.gallery-caption p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   ARTÍCULOS, PRODUCTOS Y CONSEJOS
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.article-card img {
    height: 195px;
    width: 100%;
    object-fit: cover;
}

.article-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-cat {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--olive);
    font-weight: 700;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin: 6px 0 10px;
    color: var(--text-black);
}

.article-summary {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(197, 160, 89, 0.25);
}

.article-price {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-espresso);
}

/* ==========================================================================
   HORARIOS Y RESERVA COMPLETA
   ========================================================================== */
.booking-horarios-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 34px;
    align-items: start;
}

.booking-card,
.schedule-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-espresso);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(197, 160, 89, 0.6);
    border-radius: var(--radius-sm);
    background: var(--bg-cream);
    font-family: var(--font-sans);
    font-size: 0.93rem;
    color: var(--text-black);
}

.slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.slot-pill {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gold);
    background: var(--bg-cream);
    color: var(--text-espresso);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-pill:hover,
.slot-pill.selected {
    background: var(--olive);
    color: #FFFFFF;
    border-color: var(--olive);
}

.schedule-list {
    list-style: none;
    margin-top: 18px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(197, 160, 89, 0.35);
    font-size: 0.92rem;
}

.schedule-item .day {
    font-weight: 600;
    color: var(--text-espresso);
}

.schedule-item .hours {
    color: var(--text-muted);
}

.schedule-item .closed {
    color: #A94442;
    font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--text-black);
    color: var(--bg-cream);
    padding: 54px 0 28px;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.footer-brand p.slogan {
    font-family: var(--font-script);
    font-size: 1.7rem;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(248, 244, 236, 0.8);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(197, 160, 89, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: rgba(248, 244, 236, 0.65);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Móvil y Tablet)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .quick-booking-bar {
        grid-template-columns: 1fr 1fr;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .booking-horarios-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: var(--bg-cream);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 2px solid var(--gold);
        box-shadow: var(--shadow-soft);
    }
    .nav-links.open {
        display: flex;
    }
    .quick-booking-bar {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   VENTANA INICIAL DE ACCESO PRIVADO (LOGIN ROLES USUARIO / ADMIN)
   ========================================================================== */
body.auth-locked {
    overflow: hidden;
}

body.auth-locked > *:not(.auth-gate-overlay) {
    visibility: hidden;
    pointer-events: none;
}

.auth-gate-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #FDFBF7 0%, var(--bg-cream) 55%, var(--bg-beige) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.auth-gate-box {
    width: 100%;
    max-width: 440px;
    background: var(--bg-white);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 40px 34px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.auth-gate-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--olive);
    background: rgba(94, 107, 71, 0.1);
    border: 1px solid rgba(94, 107, 71, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.auth-gate-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-black);
    margin-bottom: 2px;
}

.auth-gate-slogan {
    font-family: var(--font-script);
    font-size: 1.65rem;
    color: var(--text-espresso);
    margin-bottom: 16px;
}

.auth-gate-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.auth-gate-error {
    color: #8A1F17;
    background: #FDECEA;
    border: 1px solid rgba(138, 31, 23, 0.25);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    margin-top: 14px;
    display: none;
    text-align: center;
}

.nav-session-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.nav-admin-link {
    background: rgba(197, 160, 89, 0.18);
    color: var(--text-espresso);
    border: 1px solid var(--gold);
}

.nav-admin-link:hover {
    background: var(--gold);
    color: var(--text-black);
}

.nav-logout-btn {
    background: transparent;
    color: var(--text-espresso);
    border: 1px solid rgba(58, 42, 29, 0.3);
}

.nav-logout-btn:hover {
    background: var(--text-espresso);
    color: #FFFFFF;
}

/* ==========================================================================
   CATEGORÍAS DINÁMICAS, DIFERENCIACIÓN HOMBRES/MUJERES Y SECCIÓN FORMACIÓN
   ========================================================================== */
.category-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.cat-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 40px;
    background: var(--bg-cream);
    border: 1.5px solid var(--gold);
    color: var(--text-espresso);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.cat-hero-btn:hover,
.cat-hero-btn.active {
    background: var(--olive);
    color: #FFFFFF;
    border-color: var(--olive);
    transform: translateY(-2px);
}

.cat-hero-btn:hover .gender-pill,
.cat-hero-btn.active .gender-pill {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.45);
}

.gender-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.gender-pill.chicas {
    background: #FDF0F3;
    color: #8A2E4B;
    border-color: rgba(138, 46, 75, 0.25);
}

.gender-pill.chicos {
    background: #EDF3F8;
    color: #1F4E78;
    border-color: rgba(31, 78, 120, 0.25);
}

.gender-pill.ambos {
    background: #F3EFE6;
    color: #5E4B32;
    border-color: rgba(197, 160, 89, 0.45);
}

.gender-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.gender-tab-btn {
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gold);
    background: var(--bg-white);
    color: var(--text-espresso);
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 4px 12px rgba(58, 42, 29, 0.05);
}

.gender-tab-btn:hover,
.gender-tab-btn.active {
    background: var(--text-espresso);
    color: var(--gold-light);
    border-color: var(--gold);
}

.active-category-banner {
    background: var(--bg-white);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-card);
}

.service-gender-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.service-gender-tag.chicas {
    background: rgba(253, 240, 243, 0.95);
    color: #8A2E4B;
    border: 1px solid rgba(138, 46, 75, 0.35);
}

.service-gender-tag.chicos {
    background: rgba(237, 243, 248, 0.95);
    color: #1F4E78;
    border: 1px solid rgba(31, 78, 120, 0.35);
}

.service-gender-tag.ambos {
    background: rgba(248, 244, 236, 0.95);
    color: var(--text-espresso);
    border: 1px solid var(--gold);
}

/* ==========================================================================
   SECCIÓN DE FORMACIÓN Y CURSOS
   ========================================================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.course-card {
    background: var(--bg-cream);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--gold);
}

.course-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-img-wrap img {
    transform: scale(1.04);
}

.course-level-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(24, 21, 18, 0.86);
    color: var(--gold-light);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.course-duration-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(248, 244, 236, 0.95);
    color: var(--text-espresso);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid var(--gold);
}

.course-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-modality {
    display: inline-block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--olive);
    font-weight: 700;
    margin-bottom: 6px;
}

.course-title {
    font-family: var(--font-serif);
    font-size: 1.48rem;
    line-height: 1.22;
    color: var(--text-black);
    margin-bottom: 10px;
}

.course-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.course-includes {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--text-espresso);
    margin-bottom: 16px;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed rgba(197, 160, 89, 0.45);
}

.course-price-block span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.course-price-block strong {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--text-espresso);
}

@media (max-width: 768px) {
    .courses-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gender-tab-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Páginas Legales (Aviso Legal, Privacidad, Cookies)
   ========================================================================== */
.legal-page-header {
    background: var(--text-black);
    color: var(--bg-cream);
    padding: 24px 0;
    border-bottom: 1px solid var(--border-gold);
}
.legal-page-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.legal-brand-link {
    text-decoration: none;
    color: var(--bg-cream);
    display: inline-flex;
    flex-direction: column;
}
.legal-brand-link h1 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    margin: 0;
}
.legal-brand-link span {
    font-family: var(--font-script);
    font-size: 1.15rem;
    color: var(--bg-cream);
    opacity: 0.85;
}
.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}
.legal-back-btn:hover {
    background: var(--gold);
    color: var(--text-black);
}
.legal-container {
    max-width: 920px;
    margin: 48px auto;
    padding: 0 20px 80px 20px;
}
.legal-article {
    background: var(--bg-white);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-soft);
}
@media (max-width: 600px) {
    .legal-article {
        padding: 24px 18px;
    }
}
.legal-article h1.legal-title {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    color: var(--text-espresso);
    margin-bottom: 8px;
    line-height: 1.2;
}
.legal-update-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    display: block;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}
.legal-article h2 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--text-espresso);
    margin: 32px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(219, 203, 178, 0.5);
}
.legal-article h3 {
    font-size: 1.15rem;
    color: var(--text-espresso);
    margin: 20px 0 8px 0;
}
.legal-article p,
.legal-article li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.legal-article strong {
    color: var(--text-espresso);
}
.legal-article ul {
    margin: 8px 0 18px 22px;
}
.legal-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 26px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.legal-info-table th,
.legal-info-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(219, 203, 178, 0.4);
}
.legal-info-table th {
    background: var(--bg-beige);
    color: var(--text-espresso);
    font-weight: 600;
    width: 32%;
}
.legal-info-table td {
    background: #FFFDF9;
    color: var(--text-black);
}
.footer-legal-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 0.82rem;
}
.footer-legal-links a {
    color: rgba(248, 244, 236, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-legal-links a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

