:root{

    --ares-black:#000000;
    --ares-dark:#111111;
    --ares-gold:#c99a3e;
    --ares-gold-light:#ddb96d;
    --ares-white:#f5f5f5;
}

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

html{
    -webkit-text-size-adjust:100%;
}

body{
    overflow-x:hidden;
    background:var(--bg-main);
    color:var(--text-main);
    font-family:'Segoe UI',sans-serif;
}

/* =======================================
   TEMA CLARO / OSCURO
   Oscuro = valores por defecto (:root).
   Claro  = html.light los sobrescribe.
   Todo color que NO sea dorado sale de aquí.
======================================= */

:root{
    color-scheme:dark;

    --bg-main:#000000;
    --text-main:#f5f5f5;
    --text-strong:#eeeeee;
    --text-soft:#dddddd;
    --text-muted:#cccccc;
    --text-faint:#888888;
    --card-bg:#111111;
    --navbar-bg:#000000;
    --cta-bg-1:#000000;
    --cta-bg-2:#111111;
    --wa-bg:rgba(0,0,0,.85);
    --overlay:rgba(0,0,0,.85);
    --float-btn-bg:rgba(0,0,0,.65);
    --gold-hover:#ddb96d;
}

html.light{
    color-scheme:light;

    --bg-main:#f8f6f2;
    --text-main:#222222;
    --text-strong:#222222;
    --text-soft:#3a3a3a;
    --text-muted:#555555;
    --text-faint:#666666;
    --card-bg:#ffffff;
    --navbar-bg:#ffffff;
    --cta-bg-1:#f8f6f2;
    --cta-bg-2:#ece7df;
    --wa-bg:rgba(255,255,255,.90);
    --overlay:rgba(20,16,10,.62);
    --float-btn-bg:rgba(255,255,255,.88);
    --gold-hover:#8f6a1a;
}

html{
    background:var(--bg-main);
}

#themeToggle{
    background:none;
    border:1px solid var(--ares-gold);
    color:var(--ares-gold);
    width:48px;
    height:48px;
    flex-shrink:0;
    margin-left:20px;
    border-radius:50%;
    cursor:pointer;
    font-size:1.2rem;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background-color .3s;
    -webkit-tap-highlight-color:transparent;
}

#themeToggle:hover{
    background:rgba(201,154,62,.15);
}

/* =======================================
   TIPOGRAFÍAS
======================================= */

h1,
h2,
h3,
.menu a{

    font-family:'Cormorant Garamond',serif;
}

/* =======================================
   NAVBAR
======================================= */

.navbar{
    background:var(--navbar-bg);
    border-bottom:1px solid rgba(201,154,62,.25);
    position:relative;
    min-height:90px;
    padding:15px 0;
}

.navbar-container{

    max-width:1400px;

    margin:auto;

    padding:15px 40px;

    position:relative;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.logo{

    height:180px;

    display:block;
}

.menu{

    list-style:none;

    display:flex;

    flex:1;

    flex-wrap:wrap;

    justify-content:center;

    gap:6px clamp(20px,2.4vw,70px);

    margin:0 0 0 20px;

    padding:0;
}

.menu a{

    font-size:clamp(1.6rem,2.5vw,3rem);

    letter-spacing:1px;

    color:var(--ares-gold);

    text-decoration:none;

    transition:.3s;
}

.menu a:hover{

    color:var(--gold-hover);
}

/* =======================================
   HERO
======================================= */

/* =======================================
   HERO
======================================= */

.hero{
    position:relative;
    overflow:hidden;
    width:100%;
    height:420px;
    background-image:url("images/hero.jpg");
    background-size:cover;
    background-position:center;
    border-bottom:2px solid var(--ares-gold);
    transition:background-image .6s ease, filter .3s ease;
}

.hero-overlay{
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(
        to bottom,
        transparent 52%,
        var(--bg-main) 100%
    );
}

html.light .hero{
    filter:brightness(.94) contrast(.96);
}

html.light .hero-overlay{
    background:
        linear-gradient(
            to bottom,
            rgba(248, 246, 242, .12) 0%,
            rgba(248, 246, 242, .04) 45%,
            var(--bg-main) 100%
        );
}

/* =======================================
   SECCIONES GENERALES
======================================= */

.section{

    padding:80px 0;
}

.section-title{

    text-align:center;

    margin-bottom:60px;
}

.section-title h2{

    color:var(--ares-gold);

    font-size:3rem;
}

.section-title p{

    margin-top:10px;

    color:var(--text-muted);

    font-size:1.2rem;
}

/* =======================================
   CARRUSEL CURSOS
======================================= */

.no-anim{
    transition:none !important;
}


.cursos-prev,
.cursos-next{

    background:none;

    border:none;

    color:var(--ares-gold);

    font-size:3rem;

    cursor:pointer;

    padding:10px;

    transition:.3s;
}

.cursos-prev:hover,
.cursos-next:hover{

    color:var(--gold-hover);
}

.cursos-carousel{

    width:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:20px;
}

.cursos-window{

    width:100%;

    overflow:hidden;

    touch-action:pan-y;
}

.cursos-track{

    display:flex;

    gap:50px;

    transition:transform .6s ease;
}

.curso-item{

    width:350px;      /* ← ancho de la tarjeta en PC, cámbialo a tu gusto */

    min-width:350px;  /* ponle el mismo valor que arriba */

    flex:0 0 350px;   /* y aquí también */

    display:flex;

    flex-direction:column;
}

.curso-card{

    width:100%;

    overflow:hidden;

    background:transparent;

    border:1px solid rgba(201,154,62,.30);

    transition:border-color .3s, box-shadow .3s;
}

/* Tarjeta clickable (abre el modal): mano en toda la tarjeta */

.curso-item,
.curso-item *{

    cursor:pointer;
}

/* Solo con mouse: resalta la tarjeta al pasar el cursor */

@media (hover:hover){

    .curso-item:hover .curso-card{

        border-color:var(--ares-gold);

        box-shadow:0 0 18px rgba(201,154,62,.25);
    }
}

.curso-card img{

    width:100%;

    aspect-ratio:4/5;

    object-fit:cover;

    object-position:center;

    display:block;
}

.curso-info{

    width:100%;

    padding:20px 5px 0;

    text-align:center;
}

.curso-info h3{

    color:var(--ares-gold);

    font-size:2.2rem;

    line-height:1.1;

    text-align:center;

    margin-bottom:20px;
}

.curso-info p{

    font-family:'Cormorant Garamond', serif;

    font-size:1.5rem;

    color:var(--text-strong);

    margin:8px 0;
}

.curso-info strong{

    color:var(--ares-gold);

    font-weight:600;
}

/* =======================================
   GALERIA
======================================= */

.gallery-grid{

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap:20px;
}

.gallery-grid img{

    width:100%;

    height:320px;

    object-fit:cover;

    display:block;

    border:1px solid rgba(201,154,62,.20);

    transition:.3s;
}

.gallery-grid img:hover{

    transform:scale(1.03);

    border-color:var(--ares-gold);
}

/* =======================================
   CONTACTO
======================================= */

.cta-section{

    padding:120px 20px;
    text-align:center;
    background:
    linear-gradient(
        180deg,
        var(--cta-bg-1),
        var(--cta-bg-2)
    );
    border-top:
    1px solid rgba(201,154,62,.20);
}
.cta-content{

    max-width:900px;

    margin:auto;
}

.cta-content h2{

    color:var(--ares-gold);

    font-size:4rem;

    font-family:'Cormorant Garamond',serif;

    margin-bottom:25px;
}

.cta-content p{

    color:var(--text-soft);

    font-size:1.4rem;

    margin-bottom:15px;

    font-family:'Cormorant Garamond',serif;
}

.cta-phone{

    color:var(--ares-gold) !important;

    font-size:2rem !important;

    margin-top:35px;
}

/* =======================================
   WHATSAPP FLOTANTE
======================================= */

.whatsapp-float{
    position:fixed;
    right:30px;
    bottom:30px;
    width:72px;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    text-decoration:none;
    /*border-radius:50%;
    border:2px solid var(--ares-gold);
    background:var(--wa-bg);*/
    background:transparent;
    border:none;
    box-shadow: none;
    backdrop-filter:blur(4px);
    animation:aresPulse 2.5s infinite;
}

.whatsapp-float svg{
    width:38px;
    height:38px;
}

.wa-path{
    /*fill:var(--ares-gold);*/
    fill:#25D366;
    }

.whatsapp-float:hover{
    transform:scale(1.08);
    /*box-shadow: 0 0 20px rgba(201,154,62,.5);*/
}

@keyframes aresPulse{

    0%{
        box-shadow:
        0 0 0 0 rgba(201,154,62,.45);
    }

    70%{
        box-shadow:
        0 0 0 12px rgba(201,154,62,0);
    }

    100%{
        box-shadow:
        0 0 0 0 rgba(201,154,62,0);
    }
}


footer{

    text-align:center;

    padding:20px;

    color:var(--text-faint);

    font-size:.9rem;

    border-top:1px solid rgba(201,154,62,.10);
}


/* =======================================
   NOSOTROS
======================================= */

.about-grid{
    max-width:1400px;
    margin:auto;
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}
.about-card{
    background:var(--card-bg);
    border:1px solid rgba(201,154,62,.20);
    padding:30px;
}

.about-card h3{

    color:var(--ares-gold);

    font-size:2.2rem;

    margin-bottom:20px;

    font-family:'Cormorant Garamond',serif;

    text-align:center;
}

.about-card p{

    font-family:'Cormorant Garamond',serif;

    color:var(--text-soft);

    line-height:1.7;

    font-size:1.5rem;
}

.about-card ul{

    list-style:none;

    display:flex;

    flex-direction:column;

    gap:12px;
}

.about-card li{

    font-family:'Cormorant Garamond',serif;

    color:var(--text-soft);

    font-size:1.5rem;
}

.about-card li::before{

    content:"✓ ";

    color:var(--ares-gold);

    font-weight:bold;
}

/* =======================================
   PROFESORES
======================================= */

.profesores-grid{

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:30px;
}

.profesor-card{

    background:transparent;


    border:1px solid rgba(201,154,62,.30);

    overflow:hidden;

    text-align:center;
}

.profesor-card img{

    width:100%;

    aspect-ratio:4/5;

    object-fit:cover;

    display:block;

    margin-bottom:20px;
}

.profesor-card h3{

    color:var(--ares-gold);

    font-size:2rem;

    margin-bottom:20px;
}



.profesor-card p{

    font-family:'Cormorant Garamond',serif;

    font-size:1.3rem;

    color:var(--text-soft);

    line-height:1.6;
}

.profesor-especialidades{

    padding:20px 10px;
}

.profesor-especialidades p{

    font-family:'Cormorant Garamond',serif;

    color:var(--ares-gold);

    font-size:1.6rem;

    font-weight:600;

    margin:6px 0;
}

#curso-modal{

    position:fixed;

    inset:0;

    background:var(--overlay);

    display:none;

    align-items:center;

    justify-content:center;

    z-index:10000;
}

#curso-modal.activo{

    display:flex;
}

.curso-modal-content{

    position:relative;

    width:min(900px,90vw);

    max-height:85vh;

    overflow:auto;

    padding:40px;

    background:var(--card-bg);

    border:1px solid rgba(
        201,
        154,
        62,
        .4
    );

    box-shadow:
        0 0 40px rgba(
            201,
            154,
            62,
            .15
        );
}

.curso-detalle-link{

    margin-top:15px;

    color:var(--ares-gold) !important;

    font-family: 'Cormorant Garamond', serif;

    font-size:1.5rem !important;

    opacity:.9;
}

.curso-detalle-link::before{

    color:var(--ares-gold);
}

#cerrar-modal{

    position:absolute;

    top:15px;

    right:15px;

    width:42px;

    height:42px;

    border:none;

    background:none;

    color:var(--ares-gold);

    font-size:2rem;

    cursor:pointer;
}

#modal-titulo{

    color:var(--ares-gold);

    font-family:
        'Cormorant Garamond',
        serif;

    font-size:3rem;

    margin-bottom:20px;
}

#modal-descripcion{

    font-family:'Cormorant Garamond',serif;

    color:var(--text-soft);

    font-size:1.7rem;

    line-height:2.5;

    margin-bottom:30px;
}

#modal-temario{

    list-style:none;

    padding:0;
}

#modal-temario li{

    font-family:'Cormorant Garamond',serif;
    
    color:var(--text-strong);

    font-size:1.2rem;

    margin:12px 0;

    padding-left:25px;

    position:relative;
}

#modal-temario li::before{

    content:"✓";

    color:var(--ares-gold);

    position:absolute;

    left:0;
}

#cerrar-modal:hover{

    color:var(--gold-hover);
}

#cerrar-modal{

    font-family:'Segoe UI',sans-serif;
}

/*Páginas administrativas*/

/* =======================================
   ADMINISTRACIÓN
======================================= */

.admin-title{

    text-align:center;

    color:var(--ares-gold);

    font-size:3rem;

    margin:40px 0;
}

.admin-form{

    max-width:800px;

    margin:0 auto 50px auto;

    padding:30px;

    border:1px solid rgba(201,154,62,.20);
}

.admin-form label{

    display:block;

    margin-bottom:15px;

    color:var(--ares-gold);

    font-family:'Cormorant Garamond',serif;

    font-size:2rem;
}

.admin-form input[type="file"]{

    width:100%;

    margin:15px 0;
}

.admin-form button{

    margin-top:15px;

    background:var(--ares-gold);

    color:#000;

    border:none;

    padding:12px 24px;

    cursor:pointer;

    display: block;
}

.admin-menu-grid{

    max-width:1200px;

    margin:40px auto;

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px,1fr)
        );

    gap:30px;

    padding:20px;
}

.admin-menu-card{

    background:var(--card-bg);

    border:1px solid rgba(
        201,
        154,
        62,
        .25
    );

    padding:30px;

    text-decoration:none;

    transition:.3s;
}

.admin-menu-card:hover{

    transform:translateY(-4px);

    border-color:var(--ares-gold);

    box-shadow:
        0 0 18px rgba(
            201,
            154,
            62,
            .15
        );
}

.admin-menu-card h2{

    color:var(--ares-gold);

    font-family:
        'Cormorant Garamond',
        serif;

    font-size:2.2rem;

    margin-bottom:15px;
}

.admin-menu-card p{

    color:var(--text-soft);

    font-family:
        'Cormorant Garamond',
        serif;

    font-size:1.3rem;

    line-height:1.5;
}


.gallery-item-admin{

    background:var(--card-bg);

    border:1px solid rgba(201,154,62,.20);

    padding:12px;

    display:flex;

    flex-direction:column;

    gap:12px;
}

.btn-eliminar{

    display:block;

    text-align:center;

    padding:10px;

    background:#300;

    color:#fff;

    text-decoration:none;

    border:1px solid #700;
}

.btn-eliminar:hover{

    background:#500;
}

.admin-gallery-grid{

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:20px;
}

.admin-form textarea{

    width:100%;

    padding:10px;

    margin:10px 0;

    background:#111;

    color:#fff;

    border:1px solid rgba(201,154,62,.25);

    resize:vertical;
}

.admin-form select{

    width:100%;

    padding:12px 16px;

    background:#111111;

    color:#ffffff;

    border:1px solid
    rgba(
        201,
        154,
        62,
        .35
    );

    border-radius:8px;

    font-family:
        'Cormorant Garamond',
        serif;

    font-size:1.1rem;
}

.admin-form select:focus{

    outline:none;

    border-color:
        var(--ares-gold);

    box-shadow:
        0 0 8px
        rgba(
            201,
            154,
            62,
            .3
        );
}

/* =======================================
   REDES Y SUCURSALES
======================================= */

.social-grid{

    max-width:1100px;

    margin:auto;

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(240px,1fr));

    gap:40px;
}

.social-card{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:20px;

    text-decoration:none;

    transition:.3s;
}

.social-card span{

    color:var(--ares-gold);

    font-size:2rem;

    font-family:'Cormorant Garamond',serif;

    text-align:center;
}

.social-card:hover{

    transform:translateY(-5px);
}

.social-icon{

    width:70px;

    height:70px;

    fill:var(--ares-gold);

    transition:.3s;
}

.social-card:hover .social-icon{

    fill:var(--gold-hover);

    transform:scale(1.08);
}


/* =======================================================
   RESPONSIVE (TODO EL BLOQUE VA AL FINAL A PROPÓSITO:
   así gana sobre las reglas base de Nosotros, Profesores,
   Redes, Sucursales y Administración)
======================================================= */

/* ---------- Evita desbordes horizontales ---------- */
/* Un solo elemento más ancho que la pantalla hace que el
   celular "aleje" la página y el botón fijo de WhatsApp
   quede fuera de la vista. */

html,
body{
    max-width:100%;
    overflow-x:hidden;
}

@supports (overflow:clip){
    html,
    body{
        overflow-x:clip;
    }
}

img{
    max-width:100%;
}

/* Teléfono tocable en el contacto (hereda el estilo actual) */

.cta-phone a{
    color:inherit;
    text-decoration:none;
}

/* ---------- Efectos hover que se "pegan" al tocar ---------- */

@media (hover:none){

    .gallery-grid img:hover,
    .social-card:hover,
    .social-card:hover .social-icon,
    .whatsapp-float:hover{
        transform:none;
    }
}


/* =======================================
   TABLET Y MENOR (hasta 1024px)
   El menú ya tiene 6 opciones: se apila
   debajo del logo para que no se encime.
======================================= */

@media (max-width:1024px){

    .container{
        padding:0 24px;
    }

    .navbar{
        min-height:0;
        padding:10px 0;
    }

    .navbar-container{
        flex-direction:column;
        gap:8px;
        padding:8px 24px;
    }

    .logo{
        height:72px;
    }

    .menu{
        flex:none;
        margin:0;
        width:100%;
        flex-wrap:wrap;
        justify-content:center;
        gap:2px 28px;
    }

    .menu a{
        display:block;
        font-size:1.8rem;
        padding:6px 4px;
    }

    .social-grid{
        padding:0 24px;
    }

    .cta-content h2{
        font-size:3rem;
    }
}


/* =======================================
   CELULAR (hasta 768px)
======================================= */

@media (max-width:768px){

    /* ---------- NAVBAR ---------- */

    .navbar-container{
        padding:8px 16px;
    }

    .logo{
        height:64px;
    }

    .menu{
        gap:0 18px;
    }

    .menu a{
        font-size:1.35rem;
        letter-spacing:.5px;
    }

    /* ---------- HERO ---------- */

    .hero{
        height:auto;
        aspect-ratio:16 / 9;
        min-height:200px;
        max-height:60vh;
        background-position:center;
        background-size:cover;
    }

    /* ---------- SECCIONES ---------- */

    .container{
        padding:0 16px;
    }

    .section{
        padding:45px 0;
    }

    .section-title{
        margin-bottom:30px;
        padding:0 16px;
    }

    .section-title h2{
        font-size:2.2rem;
    }

    /* ---------- NOSOTROS ---------- */

    .about-grid,
    .profesores-grid{
        grid-template-columns:minmax(0,1fr);
        gap:20px;
    }

    .about-card{
        padding:20px;
    }

    .about-card h3{
        font-size:1.9rem;
        margin-bottom:14px;
    }

    .about-card p,
    .about-card li{
        font-size:1.3rem;
    }

    /* ---------- PROFESORES ---------- */

    .profesor-card p{
        padding:0 16px 20px;
        font-size:1.2rem;
    }

    .profesor-especialidades{
        padding:6px 10px 14px;
    }

    .profesor-especialidades p{
        padding:0;
        font-size:1.4rem;
    }

    /* ---------- CARRUSEL ---------- */

    .cursos-carousel{
        position:relative;
        gap:0;
    }

    .cursos-track{
        gap:16px;
    }

    .curso-item{
        min-width:0;
        width:78vw;
        max-width:350px;
        flex:0 0 78vw;        
    }

    .cursos-prev,
    .cursos-next{
        position:absolute;
        top:35%;
        z-index:5;
        width:44px;
        height:44px;
        padding:0;
        font-size:1.4rem;
        line-height:1;
        display:flex;
        align-items:center;
        justify-content:center;
        border-radius:50%;
        background:var(--float-btn-bg);
        border:1px solid rgba(201,154,62,.5);
        -webkit-tap-highlight-color:transparent;
    }

    .cursos-prev{ left:6px; }
    .cursos-next{ right:6px; }

    .curso-info{
        padding-top:14px;
    }

    .curso-info p{
        font-size:1.25rem;
        margin:5px 0;
    }

    .curso-detalle-link{

    margin-top:12px;

    color:var(--ares-gold);

    font-family:'Cormorant Garamond',serif;

    font-size:1.15rem;

    opacity:.85;
    }

    /* ---------- GALERÍA ---------- */

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .gallery-grid img{
        height:170px;
    }

    /* ---------- REDES Y SUCURSALES ---------- */

    .social-grid{
        grid-template-columns:repeat(3,1fr);
        gap:12px;
        padding:0 16px;
    }

    .social-card{
        gap:10px;
    }

    .social-card span{
        font-size:1.2rem;
    }

    .social-icon{
        width:52px;
        height:52px;
    }

    /* ---------- CONTACTO ---------- */

    .cta-section{
        padding:70px 20px;
    }

    .cta-content h2{
        font-size:2.2rem;
    }

    .cta-content p{
        font-size:1.2rem;
    }

    .cta-phone{
        font-size:1.6rem !important;
        margin-top:25px;
    }

    /* ---------- WHATSAPP FLOTANTE ---------- */

    .whatsapp-float{
        right:calc(16px + env(safe-area-inset-right, 0px));
        bottom:calc(16px + env(safe-area-inset-bottom, 0px));
        width:58px;
        height:58px;
    }

    .whatsapp-float svg{
        width:30px;
        height:30px;
    }

    /* ---------- ADMINISTRACIÓN ---------- */

    .admin-title{
        font-size:2.2rem;
        margin:24px 16px;
    }

    .admin-form{
        margin:0 16px 30px;
        padding:16px;
    }

    .admin-form label{
        font-size:1.5rem;
    }

    .admin-form button{
        min-height:44px;
    }

    .admin-gallery-grid{
        grid-template-columns:minmax(0,1fr);
        padding:0 16px;
    }

    .btn-eliminar{
        padding:14px;
    }
}


/* =======================================
   CELULAR CHICO (hasta 380px)
======================================= */

@media (max-width:380px){

    .menu{
        gap:0 12px;
    }

    .menu a{
        font-size:1.15rem;
    }

    .section-title h2,
    .cta-content h2{
        font-size:1.9rem;
    }

    .gallery-grid img{
        height:140px;
    }

    .social-card span{
        font-size:1.05rem;
    }

    .social-icon{
        width:44px;
        height:44px;
    }
}


/* =======================================
   MOVIMIENTO REDUCIDO
======================================= */

@media (prefers-reduced-motion:reduce){

    .whatsapp-float{
        animation:none;
    }

    .cursos-track{
        transition-duration:.01s;
    }
}



/* =======================================
   MODAL DE CURSOS – FUNCIONAL EN CELULAR
======================================= */

/* Bloquea el scroll de la página mientras el modal está abierto */

html.modal-abierto{
    overflow:hidden;
}

#curso-modal{
    padding:16px;
}

.curso-modal-content{
    max-height:85vh;
    max-height:85dvh;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
}

#modal-titulo{
    padding-right:44px;
    overflow-wrap:anywhere;
}

@media (max-width:768px){

    .curso-modal-content{
        width:100%;
        padding:24px 20px;
        max-height:90vh;
        max-height:90dvh;
    }

    #cerrar-modal{
        top:6px;
        right:6px;
        width:44px;
        height:44px;
    }

    #modal-titulo{
        color:var(--ares-gold);
        font-family:'Cormorant Garamond',serif;
        font-size:4rem;
        line-height:1;
        margin-bottom:30px;
    }

    #modal-descripcion{
        font-family:'Cormorant Garamond',serif;
        color:var(--text-soft);
        font-size:1.45rem;
        line-height:1.7;
        margin-bottom:30px;
    }

    #modal-temario li{
        font-family:'Cormorant Garamond',serif;
        color:var(--text-strong);
        font-size:1.35rem;
        margin:14px 0;
        padding-left:25px;
        position:relative;
    }
}

#galeria-modal{

    position:fixed;

    inset:0;

    display:none;

    align-items:center;

    justify-content:center;

    background:rgba(0,0,0,.92);

    z-index:11000;
}

#galeria-modal.activo{

    display:flex;
}

#galeria-modal-img{

    max-width:90vw;

    max-height:90vh;

    object-fit:contain;

    border:1px solid rgba(
        201,
        154,
        62,
        .4
    );
}

#cerrar-galeria{

    position:absolute;

    top:20px;

    right:20px;

    width:56px;

    height:56px;

    background:#111;

    border:1px solid #fff;

    color:var(--ares-gold);

    font-size:2rem;

    cursor:pointer;
}

#cerrar-galeria:hover{

    color:var(--ares-gold-light);
}



/* =======================================
   TEMA – AJUSTES FINALES
======================================= */

/* Botón de tema en tablet/celular: arriba a la derecha,
   para no agregar una fila más al encabezado */

@media (max-width:1024px){

    #themeToggle{
        position:absolute;
        top:8px;
        right:16px;
        width:44px;
        height:44px;
        margin:0;
    }
}

/* Sobre fondo claro las tarjetas blancas necesitan separarse del fondo */

html.light .about-card{
    box-shadow:0 2px 14px rgba(0,0,0,.07);
}

/* Galería: las imágenes abren un visor, se nota con el cursor */

.gallery-grid img{
    cursor:zoom-in;
}

#galeria-modal-img{
    max-height:90vh;
    max-height:90dvh;
}

/* =======================================
   SELECTOR DE SUCURSAL (antes del carrusel)
======================================= */

.sucursal-selector{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    margin-top:28px;
}

.sucursal-btn{
    font-family:'Cormorant Garamond',serif;
    font-size:1.5rem;
    font-weight:600;
    letter-spacing:.5px;
    color:var(--ares-gold);
    background:transparent;
    border:1px solid var(--ares-gold);
    padding:8px 26px;
    min-height:44px;
    cursor:pointer;
    transition:background-color .3s, color .3s;
    -webkit-tap-highlight-color:transparent;
}

@media (hover:hover){

    .sucursal-btn:hover{
        background:rgba(201,154,62,.15);
    }
}

.sucursal-btn.activo,
.sucursal-btn.activo:hover{
    background:var(--ares-gold);
    color:#000;
}

.sucursal-btn:focus-visible{
    outline:2px solid var(--gold-hover);
    outline-offset:3px;
}

/* Tarjetas filtradas (el atributo hidden no gana contra display:flex) */

.curso-item[hidden]{
    display:none;
}

/* Pocas tarjetas que caben completas: sin carrusel, centradas */

.cursos-track.estatico{
    justify-content:center;
    transition:none;
}

.cursos-carousel.estatico .cursos-prev,
.cursos-carousel.estatico .cursos-next{
    visibility:hidden;
}

/* Sucursal sin cursos */

.cursos-carousel.vacio{
    display:none;
}

.cursos-vacio{
    text-align:center;
    font-family:'Cormorant Garamond',serif;
    font-size:1.6rem;
    line-height:1.5;
    color:var(--text-muted);
    padding:30px 16px;
}

@media (max-width:768px){

    .sucursal-selector{
        gap:8px;
        margin-top:20px;
        padding:0 4px;
    }

    .sucursal-btn{
        flex:1 1 auto;
        font-size:1.15rem;
        padding:8px 12px;
    }

    .cursos-vacio{
        font-size:1.3rem;
        padding:20px 16px;
    }
}

.btn-graduados{
    display:table;

    margin:50px auto;

    padding:14px 36px;

    background:transparent;

    border:1px solid var(--ares-gold);

    color:var(--ares-gold);

    font-family:'Cormorant Garamond',serif;
    font-size:1.6rem;
    font-weight:600;

    letter-spacing:.5px;

    cursor:pointer;

    transition:
        background-color .3s,
        color .3s,
        transform .3s;
}

.btn-graduados:hover{
    background:var(--ares-gold);
    color:#000000;
}

.btn-graduados:active{
    transform:scale(.98);
}

/* =======================================
   MODAL GRADUADOS
======================================= */

#graduados-modal{
    position:fixed;
    inset:0;
    background:var(--overlay);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:12000;
}

#graduados-modal.activo{
    display:flex;
}

.graduados-content{
    position:relative;
    width:min(1000px,90vw);
    max-height:85vh;
    overflow:hidden;

    background:var(--card-bg);

    border:1px solid rgba(
        201,
        154,
        62,
        .4
    );

    padding:40px;
}

#cerrar-graduados{
    position:absolute;
    top:15px;
    right:15px;
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:center;

    width:56px;
    height:56px;

    background:rgba(0,0,0,.85);

    border:1px solid rgba(
        201,
        154,
        62,
        .4
    );

    border-radius:50%;

    color:var(--ares-gold);

    font-size:2rem;

    cursor:pointer;

    z-index:50;
}

.graduados-lista{
    display:flex;
    flex-direction:column;
    max-height:65vh;
    overflow:auto;
}

#graduados-titulo{
    color:var(--ares-gold);

    font-family:'Cormorant Garamond',serif;

    font-size:3rem;

    margin-bottom:30px;

    text-align:center;
}

.graduados-content{
    position:relative;
    font-family:'Cormorant Garamond',serif;
}

.graduado-item{
    font-family:'Cormorant Garamond',serif;

    font-size:1.4rem;

    color:var(--text-soft);

    line-height:1.7;
}

.graduado-item div{
    margin:6px 0;
}

.graduado-item strong{
    color:var(--ares-gold);

    font-weight:600;
}

.graduado-item{
    padding:20px;
    border-bottom:1px solid rgba(
        201,
        154,
        62,
        .20
    );
}

@media (max-width:768px){

    #graduados-titulo{
        font-size:2.2rem;
    }

    .graduados-content{
        width:100%;

        padding:24px 20px;

        max-height:90vh;
        max-height:90dvh;
    }

    .graduado-item{
        font-size:1.2rem;
    }
}

.caso-exito-logo{
    width:100%;
    height:240px;

    object-fit:contain;
    object-position:center;

    padding:20px;

    background:var(--card-bg);
}

.caso-exito-direccion{
    padding:0 20px;

    text-align:center;

    font-family:'Cormorant Garamond',serif;

    font-size:1.25rem;

    color:var(--text-soft);

    line-height:1.5;
}

.caso-exito-localidad{
    padding:0 20px 20px;

    text-align:center;

    font-family:'Cormorant Garamond',serif;

    font-size:1.25rem;

    color:var(--ares-gold);
}

html.dark .graduado-item:nth-child(even){
    background:#151515;
}

html.light .graduado-item:nth-child(even){
    background:#f2ede5;
}

.graduado-item strong{
    color:var(--ares-gold);
}
