:root{
    --header-height:80px;
    --band-height:28px;
    --subnav-height:46px;
}

html.header-scrolled{
    --header-height:56px;
    --band-height:22px;
    --subnav-height:38px;
}
html.header-scrolled .logo img{
    height:34px;
}
html.header-scrolled .subnav a{
    font-size:12.5px;
}

body{
    margin:0;
    font-family:'Roboto',sans-serif;
    background:#f2f2f2;
    color:#1a1a1a;
    scroll-behavior:smooth;
    padding-top:var(--header-height);
    transition:padding-top 0.3s ease;
}



.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

header{
    width:100%;
    height:var(--header-height);
    padding:11px 0;
    position:fixed;
    top:0;
    left:0;
    background:#ffffff;
    box-shadow:0 4px 20px rgba(0,0,0,0.25);
    z-index:1000;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    transition:height 0.3s ease;
}

.header-inner{
    display:flex;
    justify-content:center;
    align-items:center;
}

.accred-band{
    text-align:center;
    font-size:13px;
    padding:5px;
    background:#005cb8;
    color:#fff;
    font-weight:600;
    position:sticky;
    top:var(--header-height);
    z-index:900;
    box-sizing:border-box;
    height:var(--band-height);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:top 0.3s ease, height 0.3s ease;
}

/* 👇 BARRA DE NAVEGACIÓN SECUNDARIA */
.subnav{
    width:100%;
    height:var(--subnav-height);
    background:#141b3d;
    position:sticky;
    top:calc(var(--header-height) + var(--band-height));
    z-index:800;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    transition:top 0.3s ease, height 0.3s ease;
}

.subnav a{
    color:#ffffff;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    margin:0 22px;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.subnav a:hover{
    color:#efba0f;
}

.subnav a.active{
    color:#efba0f;
    text-decoration:underline;
    text-underline-offset:4px;
}

@media(max-width:600px){
    .subnav{
        overflow-x:auto;
        justify-content:flex-start;
        padding:0 14px;
    }
    .subnav a{
        margin:0 12px 0 0;
        font-size:13px;
        white-space:nowrap;
    }
}

@media(max-width:400px){
    .subnav a{
        margin:0 9px 0 0;
        font-size:12px;
    }
}

.logo img{
    height:48px;
    display:block;
    transition:height 0.3s ease;
}

nav a{
    color:#0a0e1a;
    margin-left:20px;
    text-decoration:none;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight:600;
}

nav a:hover{
    color:#005eff;
}

.btn{
    background:linear-gradient(45deg,#00c2ff,#005eff);
    color:#ffffff;
    padding:13px 28px;
    border-radius:50px;
    text-decoration:none;
    font-weight:700;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display:inline-block;
    letter-spacing:0.5px;
    box-shadow:0 4px 15px rgba(0,194,255,0.3);
}

.btn:hover{
    transform:translateY(-3px);
    box-shadow:0 0 25px rgba(0,194,255,0.8);
}

.section{
    padding:64px 0;
    position:relative;
}

#proximas-actividades{
    padding-top:28px;
    padding-bottom:28px;
}

#trayectoria-constante{
    padding-top:28px;
    padding-bottom:28px;
}

#sobre-el-instituto{
    padding-top:28px;
    padding-bottom:28px;
}

#estudian-en-el-instituto{
    padding-top:28px;
    padding-bottom:28px;
}

#eventos-forenses{
    padding-top:28px;
}

.section h2{
    font-size:40px;
    font-weight:800;
    letter-spacing:-0.5px;
    margin-bottom:18px;
    text-align:center;
    color:#141b3d;
}

/* 👇 HERO SLIDER */
.hero-slider{
    position:relative;
    width:100%;
    height:70vh;
    overflow:hidden;
    background:#e8e8e8;
}

.hero-slider-track{
    display:flex;
    height:100%;
    transition:transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide{
    min-width:100%;
    height:100%;
}

.hero-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hero-slider-dots{
    position:absolute;
    bottom:24px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:4px;
    z-index:10;
}

.hero-slider-dots button{
    width:24px;
    height:24px;
    padding:0;
    border:none;
    background:transparent;
    cursor:pointer;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-slider-dots button::after{
    content:"";
    width:11px;
    height:11px;
    border-radius:50%;
    border:2px solid #ffffff;
    background:rgba(255,255,255,0.4);
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider-dots button.active::after{
    background:#ffffff;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.hero-slider:focus-visible{
    outline:3px solid #efba0f;
    outline-offset:-3px;
}

@media(max-width:768px){
    .hero-slider{
        height:50vh;
    }
}

/* 👇 BLOQUE FORMACIÓN CONTÍNUA */
.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.stat-card{
    background:linear-gradient(135deg,#0055fa,#003cb0);
    border-radius:14px;
    padding:30px 20px;
    text-align:center;
    color:#ffffff;
    box-shadow:0 10px 30px rgba(0,85,250,0.25);
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover{
    transform:translateY(-8px);
    box-shadow:0 16px 40px rgba(0,85,250,0.4);
}

.stat-card .stat-number{
    display:block;
    font-size:36px;
    font-weight:900;
    margin-bottom:8px;
}

.stat-card .stat-label{
    display:block;
    font-size:14px;
    font-weight:600;
    line-height:1.4;
}

@media(max-width:900px){
    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:480px){
    .stats-grid{
        grid-template-columns:1fr;
    }
}

/* 👇 CTA INTERMEDIO */
.mid-cta{
    background:#141b3d;
    text-align:center;
    padding:36px 20px;
}

.mid-cta p{
    color:#ffffff;
    font-size:18px;
    font-weight:700;
    margin:0 0 16px 0;
}

.mid-cta a{
    background:#efba0f;
    color:#000000;
    padding:12px 32px;
    border-radius:50px;
    text-decoration:none;
    font-weight:800;
    font-size:14px;
    letter-spacing:0.3px;
    display:inline-block;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mid-cta a:hover{
    background:#00c853;
    color:#ffffff;
    transform:translateY(-3px);
}

/* 👇 BLOQUE CONTACTO */
.contact-form{
    max-width:600px;
    margin:0 auto;
}

.contact-form .form-group{
    margin-bottom:18px;
    text-align:left;
}

.contact-form label{
    display:block;
    font-size:13px;
    font-weight:700;
    color:#141b3d;
    margin-bottom:6px;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    box-sizing:border-box;
    padding:12px 14px;
    border:1px solid #d5d5d5;
    border-radius:8px;
    font-family:'Roboto',sans-serif;
    font-size:14px;
    color:#1a1a1a;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline:none;
    border-color:#0055fa;
    box-shadow:0 0 0 3px rgba(0,85,250,0.12);
}

.contact-form textarea{
    resize:vertical;
    min-height:110px;
}

.contact-form .form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

@media(max-width:600px){
    .contact-form .form-row{
        grid-template-columns:1fr;
    }
}

.contact-captcha{
    display:flex;
    align-items:center;
    gap:12px;
    background:#f5f5f5;
    border:1px solid #d5d5d5;
    border-radius:8px;
    padding:14px;
    margin-bottom:22px;
}

.contact-captcha img{
    border-radius:4px;
    display:block;
}

.contact-captcha input{
    width:90px;
    flex:none;
}

.contact-form .submit-btn{
    background:#0055fa;
    color:#ffffff;
    border:none;
    width:100%;
    padding:15px;
    border-radius:50px;
    font-family:'Roboto',sans-serif;
    font-weight:700;
    font-size:15px;
    letter-spacing:0.3px;
    cursor:pointer;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form .submit-btn:hover{
    background:#003fc7;
    transform:translateY(-2px);
}

.char-counter{
    display:block;
    text-align:right;
    font-size:11px;
    color:#9a9a9a;
    margin-top:4px;
}

.contact-form-note{
    text-align:center;
    font-size:12px;
    color:#9a9a9a;
    margin-top:14px;
}

.contact-form-error{
    text-align:center;
    font-size:13px;
    font-weight:700;
    color:#d32f2f;
    margin:0 0 18px 0;
}

/* 👇 ANIMACIÓN DE ENTRADA AL SCROLL */
.reveal{
    opacity:0;
    transform:translateY(24px);
    transition:opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}

/* 👇 SKELETON LOADER PARA IMÁGENES CON LAZY LOADING */
img[loading="lazy"]{
    background:linear-gradient(90deg, #0d0d0d 25%, #2a2a2a 37%, #0d0d0d 63%);
    background-size:400% 100%;
    animation:skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer{
    0%{ background-position:100% 50%; }
    100%{ background-position:0% 50%; }
}

@media (prefers-reduced-motion: reduce){
    img[loading="lazy"]{
        animation:none;
        background:#1a1a1a;
    }
}

@media (prefers-reduced-motion: reduce){
    .reveal{
        opacity:1;
        transform:none;
        transition:none;
    }
}

.section > .container > p{
    font-size:17px;
    color:#000000;
    margin-bottom:35px;
    font-weight:600;
    text-align:justify;
}



.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

/* 👇 AJUSTE SOLO PARA LOGOS */
.logos-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    max-width:700px;
    margin:0 auto;
}

.logos-grid .card{
    padding:10px;
}

.logos-grid .card img{
    height:80px;
    object-fit:contain;
    background:#fff;
    padding:10px;
    border-radius:6px;
}

/* 👇 CONTENIDO "SOBRE EL INSTITUTO" */
.about-content{
    max-width:680px;
    margin:0 auto;
    text-align:left;
}

.about-content-center{
    text-align:center;
}

.about-content-center p{
    text-align:center;
    margin-bottom:0;
}

.about-content p{
    font-size:16px;
    line-height:1.7;
    color:#000000;
    margin:0 0 20px 0;
    text-align:justify;
}

.about-list{
    list-style:none;
    margin:0 0 25px 0;
    padding:0;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
}

.about-list li{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:15px;
    font-weight:600;
    color:#000000;
}

.about-list li svg{
    width:18px;
    height:18px;
    min-width:18px;
    margin-top:2px;
    fill:none;
    stroke:#01875f;
    stroke-width:3;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.about-cta-line{
    font-size:18px;
    font-weight:800;
    color:#00c2ff;
    margin-top:10px;
}

@media(max-width:600px){
    .about-list{
        grid-template-columns:1fr;
    }
}
.official-block{
    text-align:left;
}

.official-block .official-title-row{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:10px;
}

.official-check{
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:50%;
    background:#0a8f3c;
    display:flex;
    align-items:center;
    justify-content:center;
}

.official-check svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:#ffffff;
    stroke-width:3;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.official-block h2{
    margin-bottom:0;
}

.official-block p{
    font-size:17px;
    color:#7fd8ff;
    font-weight:600;
    margin:0 0 6px 0;
}

.official-block img{
    height:90px;
    margin-top:30px;
    background:#fff;
    padding:14px 22px;
    border-radius:10px;
}

/* 👇 TARJETAS DE LIBROS */
.books-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    max-width:820px;
    margin:0 auto;
}

.book-card{
    background:rgba(15,18,28,0.85);
    border-radius:12px;
    overflow:hidden;
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,0.08);
    transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align:center;
}

.book-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,0.18);
}

.book-card img{
    width:100%;
    aspect-ratio:2/3;
    object-fit:cover;
    display:block;
}

.book-content{
    padding:18px 16px 22px 16px;
}

.book-content h3{
    font-size:15px;
    font-weight:800;
    line-height:1.35;
    margin:0 0 10px 0;
    color:#ffffff;
}

.book-content .book-format{
    font-size:12px;
    font-weight:700;
    color:#9a9a9a;
    text-transform:uppercase;
    letter-spacing:0.5px;
    margin:0 0 16px 0;
}

.book-content .book-sold-out{
    display:block;
    font-size:14px;
    font-weight:800;
    color:#ff3b3b;
    letter-spacing:0.5px;
    padding:12px 0;
}

.book-content .btn{
    display:block;
    text-align:center;
    width:100%;
    box-sizing:border-box;
    padding:14px 16px;
    font-size:13px;
}

@media(max-width:600px){
    .books-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:420px){
    .books-grid{
        grid-template-columns:1fr;
        max-width:280px;
    }
}

.institute-gallery{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:15px;
    margin-top:35px;
}

.institute-gallery .card{
    padding:0;
    overflow:hidden;
}

.institute-gallery .card img{
    width:100%;
    height:150px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:0;
    display:block;
}

@media(max-width:900px){
    .institute-gallery{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:600px){
    .institute-gallery{
        grid-template-columns:repeat(2,1fr);
    }
}

.card{
    background:rgba(15,18,28,0.85);
    padding:20px;
    border-radius:12px;
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,0.08);
    transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align:center;
}

.card:hover{
    transform:translateY(-10px) scale(1.02);
    box-shadow:0 20px 45px rgba(0,0,0,0.18);
}

.card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:8px;
    margin-bottom:12px;
}

/* 👇 TARJETAS DE PRÓXIMAS ACTIVIDADES */
.activities-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
    gap:25px;
}

.activity-card{
    background:rgba(15,18,28,0.85);
    border-radius:12px;
    overflow:hidden;
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,0.08);
    transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align:left;
    position:relative;
}

.activity-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,0.18);
}

.credential-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:rgba(239,186,15,0.12);
    color:#efba0f;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
    letter-spacing:0.3px;
    margin-bottom:12px;
    border:1px solid rgba(239,186,15,0.35);
}

.credential-badge svg{
    width:15px;
    height:15px;
    fill:none;
    stroke:#efba0f;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.credential-subtext{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:11px;
    color:#c7c7c7;
    font-weight:600;
    margin:-6px 0 12px 0;
}

.credential-subtext .verified-check{
    width:14px;
    height:14px;
    min-width:14px;
    border-radius:50%;
    background:#0a8f3c;
    display:flex;
    align-items:center;
    justify-content:center;
}

.credential-subtext .verified-check svg{
    width:8px;
    height:8px;
    fill:none;
    stroke:#ffffff;
    stroke-width:3.5;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.activity-card img{
    width:100%;
    aspect-ratio:1700/410;
    object-fit:cover;
    display:block;
}

.activity-content{
    padding:22px 22px 26px 22px;
}

.activity-content h3{
    font-size:18px;
    font-weight:800;
    line-height:1.35;
    margin:0 0 18px 0;
    color:#ffffff;
}

.activity-meta{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-bottom:20px;
    padding-bottom:20px;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.activity-meta .meta-label{
    display:block;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.5px;
    color:#9a9a9a;
    font-weight:700;
    margin-bottom:4px;
}

.activity-meta .meta-value{
    display:block;
    font-size:13px;
    font-weight:700;
    color:#ffffff;
}

.activity-content .btn{
    display:block;
    text-align:center;
    width:100%;
    box-sizing:border-box;
    padding:14px 24px;
}

.cta{
    text-align:center;
    padding:130px 20px;
    background:url('/fotos/productos/icf-institutoforense-argentina.png');
    background-size:cover;
    background-position:center;
    color:#fff;
    position:relative;
    overflow:hidden;
}

.cta-panel{
    display:inline-block;
    background:rgba(0,0,0,0.4);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    padding:28px 36px;
    border-radius:14px;
    max-width:820px;
    margin-bottom:30px;
}

.cta h2{
    margin-bottom:15px;
    font-size:44px;
    font-weight:900;
    color:#ffffff;
    letter-spacing:-0.5px;
    line-height:1.15;
    text-shadow:0 3px 18px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.9);
}

.cta p{
    font-size:20px;
    font-weight:600;
    margin-bottom:0;
    color:#ffffff;
    text-shadow:0 3px 16px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.9);
}

.cta-btn{
    background:#efba0f;
    color:#000000;
    padding:18px 44px;
    border-radius:50px;
    text-decoration:none;
    font-weight:800;
    font-size:16px;
    letter-spacing:0.5px;
    display:inline-block;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
}

.cta-btn:hover{
    background:#00c853;
    color:#ffffff;
    transform:translateY(-4px);
    box-shadow:0 14px 36px rgba(0,200,83,0.45);
}

footer{
    background:#f2f2f2;
    padding:50px 20px 0 20px;
    color:#333333;
    font-size:14px;
}

.footer-flex{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
    flex-wrap:wrap;
    padding-bottom:30px;
    border-bottom:1px solid rgba(0,0,0,0.1);
}

.footer-left{
    text-align:left;
    max-width:480px;
}

.footer-left img{
    height:52px;
    margin-bottom:16px;
    display:block;
}

.footer-left p{
    margin:4px 0;
    line-height:1.5;
    color:#333333;
}

.footer-left p:first-of-type{
    color:#0a0e1a;
    font-weight:700;
    font-size:15px;
}

.footer-social{
    text-align:left;
}

.footer-sitemap{
    text-align:left;
}

.footer-sitemap h4{
    color:#0a0e1a;
    font-weight:800;
    font-size:17px;
    margin:0 0 16px 0;
}

.footer-sitemap ul{
    list-style:none;
    margin:0;
    padding:0;
}

.footer-sitemap li{
    margin-bottom:8px;
}

.footer-sitemap a{
    color:#333333;
    text-decoration:none;
    font-size:14px;
    font-weight:400;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display:inline-block;
    padding:6px 0;
}

.footer-sitemap a:hover{
    color:#1ea7fd;
    text-decoration:underline;
}

.footer-social h4{
    color:#0a0e1a;
    font-weight:800;
    font-size:17px;
    margin:0 0 16px 0;
}

.social-icons{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.social-icons a{
    color:#333333;
    text-decoration:none;
    font-size:14px;
    font-weight:400;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display:flex;
    align-items:center;
    gap:10px;
    padding:2px 0;
}

.social-icons a:hover{
    color:#1ea7fd;
}

.social-icons a:hover .social-icon-circle{
    background:#1ea7fd;
}

.social-icon-circle{
    width:30px;
    height:30px;
    min-width:30px;
    border-radius:50%;
    background:#141b3d;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-circle svg{
    width:15px;
    height:15px;
    fill:#ffffff;
}

.footer-legal-links{
    list-style:none;
    margin:22px 0 0 0;
    padding:0;
}

.footer-legal-links li{
    margin-bottom:8px;
}

.footer-legal-links a{
    color:#333333;
    text-decoration:none;
    font-size:14px;
    font-weight:400;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display:inline-block;
    padding:6px 0;
}

.footer-legal-links a:hover{
    color:#1ea7fd;
    text-decoration:underline;
}

.footer-bottom{
    width:100%;
    background:#141b3d;
    color:#ffffff;
    text-align:center;
    padding:16px 20px;
    font-size:13px;
    font-weight:600;
    box-sizing:border-box;
    margin-top:20px;
}

@media(max-width:600px){
    .footer-flex{
        flex-direction:column;
    }
}

@media(max-width:768px){
    .logos-grid{
        grid-template-columns:repeat(3,1fr);
    }
    .cta h2{
        font-size:30px;
    }
}

/* 👇 DETALLE DE ACTIVIDAD */
.detail-banner{
    width:100%;
    max-height:420px;
    overflow:hidden;
}

.detail-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.detail-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:40px;
    align-items:start;
}

@media(max-width:900px){
    .detail-layout{
        grid-template-columns:1fr;
    }
}

.detail-main h2.detail-h1{
    font-size:32px;
    font-weight:900;
    color:#141b3d;
    margin:0 0 24px 0;
    text-align:left;
}

.detail-block{
    margin-bottom:28px;
}

.detail-block h3{
    font-size:14px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.3px;
    color:#ffffff;
    background:#141b3d;
    display:inline-block;
    padding:8px 16px;
    border-radius:6px;
    margin:0 0 12px 0;
}

.detail-block p{
    font-size:15px;
    line-height:1.7;
    color:#333333;
    margin:0 0 10px 0;
}

.detail-block ul{
    margin:0;
    padding-left:20px;
    list-style:disc;
}

.detail-block ul li{
    margin-bottom:6px;
}

.detail-block ul li p{
    margin:0;
}

.detail-divider{
    border:none;
    border-top:1px dashed #d5d5d5;
    margin:26px 0;
}

.detail-price{
    font-size:20px;
    font-weight:800;
    color:#005eff;
}

.detail-map iframe{
    width:100%;
    height:280px;
    border:0;
    border-radius:10px;
    margin-top:12px;
}

.detail-inscribir{
    margin:24px 0;
}

.detail-inscribir .btn{
    border:none;
    cursor:pointer;
    font-family:'Roboto',sans-serif;
    font-size:15px;
}

.detail-sidebar{
    background:rgba(15,18,28,0.95);
    border-radius:14px;
    padding:26px 24px;
    color:#ffffff;
}

.detail-sidebar h3{
    font-size:14px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.3px;
    color:#efba0f;
    margin:22px 0 14px 0;
}

.detail-sidebar h3:first-child{
    margin-top:0;
}

.detail-info-row{
    margin-bottom:14px;
}

.detail-info-row .label{
    display:block;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.5px;
    color:#9a9a9a;
    font-weight:700;
    margin-bottom:3px;
}

.detail-info-row .value{
    display:block;
    font-size:14px;
    font-weight:600;
    color:#ffffff;
}

.detail-sidebar hr{
    border:none;
    border-top:1px solid rgba(255,255,255,0.1);
    margin:20px 0;
}

.detail-professional{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.detail-professional img{
    width:52px;
    height:52px;
    border-radius:50%;
    object-fit:cover;
}

.detail-professional h4{
    margin:0;
    font-size:14px;
    font-weight:700;
    color:#ffffff;
}

.detail-professional p{
    margin:2px 0 0 0;
    font-size:12px;
    color:#c7c7c7;
}

.detail-share{
    display:flex;
    gap:12px;
}

.detail-share a{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#1f2a52;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor:pointer;
}

.detail-share a:hover{
    background:#005eff;
}

.detail-share svg{
    width:17px;
    height:17px;
    fill:#ffffff;
}

/* 👇 STORE (PUBLICACIONES / LIBROS) */
.store-layout{
    display:grid;
    grid-template-columns:2.2fr 1fr;
    gap:40px;
    align-items:start;
}

@media(max-width:900px){
    .store-layout{
        grid-template-columns:1fr;
    }
}

.family-heading{
    font-size:15px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.3px;
    color:#ffffff;
    background:#141b3d;
    display:inline-block;
    padding:8px 16px;
    border-radius:6px;
    margin:0 0 18px 0;
}

.family-heading:not(:first-child){
    margin-top:36px;
}

.book-content .book-price{
    font-size:17px;
    font-weight:800;
    color:#005eff;
    margin:0 0 14px 0;
}

.book-content .secondary-link{
    display:block;
    text-align:center;
    font-size:12px;
    color:#7fd8ff;
    margin-top:10px;
    text-decoration:underline;
}

.book-content .secondary-link:hover{
    color:#ffffff;
}

.detail-sidebar .mini-activity{
    display:block;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,0.1);
    text-decoration:none;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-sidebar .mini-activity:last-child{
    border-bottom:none;
}

.detail-sidebar .mini-activity:hover{
    padding-left:6px;
}

.detail-sidebar .mini-activity .mini-activity-title{
    display:block;
    font-size:13px;
    font-weight:700;
    color:#ffffff;
    margin-bottom:4px;
}

.detail-sidebar .mini-activity .mini-activity-meta{
    display:block;
    font-size:11px;
    color:#9a9a9a;
}

.detail-meta-row{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:10px 0;
    border-bottom:1px solid #ececec;
    font-size:14px;
}

.detail-meta-row .label{
    font-weight:700;
    color:#141b3d;
}

.detail-meta-row .value{
    color:#333333;
    text-align:right;
}

.detail-book-cover{
    width:100%;
    max-width:220px;
    aspect-ratio:2/3;
    object-fit:cover;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    display:block;
    margin:0 auto 28px auto;
}

/* 👇 MENSAJES (E-LEARNING) */
.message-thread{
    display:flex;
    flex-direction:column;
}

.message-bubble{
    display:flex;
    gap:16px;
    background:rgba(15,18,28,0.9);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:12px;
    padding:18px 20px;
    margin-bottom:16px;
}

.message-bubble.own{
    background:rgba(10,143,60,0.12);
}

.message-bubble img{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
    flex:none;
}

.message-bubble .message-body{
    flex:1;
    min-width:0;
}

.message-bubble .message-author{
    margin:0;
    font-size:14px;
    font-weight:800;
    color:#90e6db;
}

.message-bubble .message-date{
    font-size:11px;
    color:#9a9a9a;
    margin:2px 0 10px 0;
}

.message-bubble .message-title{
    font-size:14px;
    font-weight:700;
    color:#ffffff;
    margin:0 0 8px 0;
}

.message-bubble .message-text{
    font-size:14px;
    color:#e0e0e0;
    line-height:1.6;
    margin:0;
}

.message-bubble .message-text a{
    color:#7fd8ff;
}

.message-bubble .message-attachment{
    display:inline-block;
    margin-top:10px;
    font-size:12px;
    font-weight:700;
    color:#efba0f;
    text-decoration:none;
}

.message-bubble .message-attachment:hover{
    text-decoration:underline;
}

.message-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:20px;
}

.message-form-panel{
    display:none;
    margin-bottom:24px;
}

.message-form-panel.open{
    display:block;
}

.login-form-panel .contact-form textarea,
.login-form-panel .contact-form select{
    background:#0f121c;
    border:1px solid rgba(255,255,255,0.15);
    color:#ffffff;
}

.login-form-panel .contact-form textarea:focus,
.login-form-panel .contact-form select:focus{
    border-color:#0055fa;
    box-shadow:0 0 0 3px rgba(0,85,250,0.25);
}

.login-form-panel .contact-form input[type="file"]{
    background:#0f121c;
    border:1px solid rgba(255,255,255,0.15);
    color:#c7c7c7;
    padding:10px 14px;
}

/* 👇 VIDEO CLASE (E-LEARNING) */
.video-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:40px;
    align-items:start;
}

@media(max-width:900px){
    .video-layout{
        grid-template-columns:1fr;
    }
}

.video-player-wrap video{
    width:100%;
    border-radius:12px;
    background:#000000;
    display:block;
}

.video-meta{
    margin:18px 0;
}

.video-meta h3{
    margin:0 0 6px 0;
    font-size:20px;
    font-weight:800;
    color:#141b3d;
}

.video-meta .video-duration{
    display:flex;
    align-items:center;
    gap:8px;
    color:#666666;
    font-size:14px;
}

.video-list-panel{
    background:rgba(15,18,28,0.95);
    border-radius:14px;
    padding:22px;
}

.video-list-panel h3{
    color:#efba0f;
    font-size:15px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.3px;
    margin:0 0 16px 0;
}

.video-list-item{
    display:block;
    width:100%;
    box-sizing:border-box;
    text-align:left;
    background:#1f2a52;
    color:#90e6db;
    border:none;
    padding:14px 18px;
    border-radius:8px;
    margin-bottom:10px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    text-decoration:none;
    font-family:'Roboto',sans-serif;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-list-item:hover{
    background:#2a3968;
}

.video-list-item.active{
    background:#efba0f;
    color:#141b3d;
}

/* 👇 CONTENIDO DE TEMA (E-LEARNING) */
.material-list{
    display:flex;
    flex-direction:column;
    gap:14px;
    max-width:900px;
    margin:0 auto;
}

.material-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:14px;
    background:rgba(15,18,28,0.9);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:10px;
    padding:18px 22px;
}

.material-row h3{
    margin:0;
    font-size:15px;
    font-weight:700;
    color:#90e6db;
}

.material-row p{
    margin:4px 0 0 0;
    font-size:13px;
    color:rgba(255,255,255,0.55);
}

.status-badge{
    padding:6px 16px;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
    letter-spacing:0.5px;
    white-space:nowrap;
}

.status-badge.present{ background:rgba(0,204,0,0.15); color:#4ade80; }
.status-badge.absent{ background:rgba(204,0,0,0.15); color:#f87171; }

/* 👇 EXAMEN / AUTOEXAMEN */
.exam-timer{
    display:inline-block;
    background:rgba(15,18,28,0.9);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:10px;
    padding:12px 20px;
    color:#efba0f;
    font-weight:700;
    margin-bottom:20px;
}

.exam-question{
    background:rgba(15,18,28,0.9);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:10px;
    padding:22px;
    margin-bottom:20px;
}

.exam-question h3{
    margin:0 0 12px 0;
    color:#90e6db;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

.exam-question p{
    margin:0 0 18px 0;
    color:#ffffff;
    font-size:16px;
    font-weight:600;
}

.exam-options{
    list-style:none;
    margin:0;
    padding:0;
}

.exam-options li{
    padding:12px 16px;
    border-radius:8px;
    margin-bottom:8px;
    background:rgba(255,255,255,0.04);
    color:rgba(255,255,255,0.85);
}

.exam-options li label{
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
}

.exam-options li.ok{ background:rgba(0,204,0,0.15); color:#4ade80; }
.exam-options li.wrong{ background:rgba(204,0,0,0.15); color:#f87171; }

.exam-nav{
    display:flex;
    gap:12px;
    margin-top:10px;
}

.material-row .btn{
    padding:12px 24px;
    font-size:13px;
    white-space:nowrap;
}

.material-row .btn.video{ background:#f03554; box-shadow:0 4px 15px rgba(240,53,84,0.3); }
.material-row .btn.doc{ background:#3985fd; box-shadow:0 4px 15px rgba(57,133,253,0.3); }
.material-row .btn.link{ background:#ff4f1f; box-shadow:0 4px 15px rgba(255,79,31,0.3); }

/* 👇 FICHA DE CURSO (E-LEARNING) */
.detail-sidebar .payment-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,0.08);
    font-size:13px;
}

.detail-sidebar .payment-row:last-child{
    border-bottom:none;
}

.detail-sidebar .payment-row .payment-date{
    color:#9a9a9a;
    white-space:nowrap;
}

.detail-sidebar .payment-row .payment-desc{
    flex:1;
    color:#ffffff;
}

.detail-sidebar .payment-row .payment-status{
    font-weight:800;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.3px;
    padding:3px 10px;
    border-radius:12px;
    white-space:nowrap;
}

.detail-sidebar .payment-row .payment-status.paid{
    background:rgba(10,143,60,0.2);
    color:#3ddc84;
}

.detail-sidebar .payment-row .payment-status.pending{
    background:rgba(239,186,15,0.15);
    color:#efba0f;
}

/* 👇 MIS ACTIVIDADES */
.owned-list{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.owned-item{
    background:rgba(15,18,28,0.9);
    border-radius:14px;
    padding:22px;
    border:1px solid rgba(255,255,255,0.08);
}

.owned-item-header{
    display:flex;
    gap:18px;
    align-items:flex-start;
    flex-wrap:wrap;
}

.owned-item-header img{
    width:110px;
    height:110px;
    object-fit:cover;
    border-radius:10px;
    flex:none;
}

.owned-item-info{
    flex:1;
    min-width:200px;
}

.owned-item-info h3{
    margin:0 0 4px 0;
    font-size:18px;
    font-weight:800;
    color:#efba0f;
}

.owned-item-info p.subtitle{
    margin:0;
    font-size:13px;
    color:#9a9a9a;
}

.owned-item-meta{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
    gap:14px;
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid rgba(255,255,255,0.08);
}

.owned-item-meta .label{
    display:block;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.5px;
    color:#9a9a9a;
    font-weight:700;
    margin-bottom:3px;
}

.owned-item-meta .value{
    display:block;
    font-size:13px;
    font-weight:700;
    color:#ffffff;
}

.owned-item-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:16px;
}

.owned-item-actions .btn{
    padding:10px 20px;
    font-size:13px;
}

.attendance-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    border-radius:50%;
    color:#ffffff;
    font-size:20px;
    font-weight:800;
    text-decoration:none;
    border:none;
}

.attendance-badge.pending{ background:#0033cc; cursor:default; }
.attendance-badge.blocked{ background:#cc0000; cursor:default; }
.attendance-badge.warning{ background:#00b3b3; cursor:default; }
.attendance-badge.done{ background:#00b300; cursor:pointer; }

.attendance-btn{
    display:inline-block;
    background:#3161a1;
    color:#ffffff;
    padding:8px 16px;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.3px;
    cursor:pointer;
    border:none;
    font-family:'Roboto',sans-serif;
}

.cuatrimestre-block{
    margin-top:18px;
}

.cuatrimestre-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background:#141b3d;
    color:#ffffff;
    padding:12px 18px;
    border-radius:8px;
    font-size:14px;
    font-weight:800;
    text-transform:uppercase;
    margin:0 0 12px 0;
}

.accordion-btn{
    width:100%;
    text-align:left;
    background:#1f2a52;
    color:#ffffff;
    border:none;
    padding:14px 18px;
    font-size:14px;
    font-weight:700;
    border-radius:8px;
    margin-top:10px;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-family:'Roboto',sans-serif;
}

.accordion-btn .unread-badge{
    background:#efba0f;
    color:#141b3d;
    border-radius:20px;
    padding:2px 10px;
    font-size:11px;
    font-weight:800;
}

.accordion-panel{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.3s ease;
}

.accordion-panel-inner{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:14px 4px;
}

.tema-card{
    background:#005fb9;
    border-radius:8px;
    padding:14px 18px;
    color:#ffffff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
}

.tema-card h4{
    margin:0;
    font-size:14px;
    font-weight:700;
}

.tema-card .btn{
    padding:8px 16px;
    font-size:12px;
}

.empty-state{
    text-align:center;
    padding:60px 20px;
}

.empty-state h3{
    font-size:20px;
    font-weight:800;
    color:#141b3d;
    margin:0 0 12px 0;
}

.empty-state p{
    color:#666666;
    margin:0 0 24px 0;
}

/* 👇 CARGA ASINCRÓNICA POR SECCIONES (mis actividades) */
.section-loading{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    padding:60px 20px;
    color:#666666;
    grid-column:1 / -1;
}

.section-loading .spinner{
    width:34px;
    height:34px;
    border:3px solid rgba(0,94,255,0.15);
    border-top-color:#005eff;
    border-radius:50%;
    animation:section-spin 0.8s linear infinite;
}

@keyframes section-spin{
    to{ transform:rotate(360deg); }
}

.section-error{
    text-align:center;
    padding:40px 20px;
    color:#c0392b;
    grid-column:1 / -1;
}

@media (prefers-reduced-motion: reduce){
    .section-loading .spinner{
        animation:none;
        border-top-color:rgba(0,94,255,0.4);
    }
}

/* 👇 CARRITO DE COMPRAS */
.cart-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.cart-item{
    display:flex;
    gap:18px;
    background:rgba(15,18,28,0.85);
    border-radius:12px;
    padding:16px;
    border:1px solid rgba(255,255,255,0.08);
    align-items:center;
    flex-wrap:wrap;
}

.cart-item img{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:8px;
    flex:none;
}

.cart-item-info{
    flex:1;
    min-width:160px;
}

.cart-item-info h3{
    margin:0 0 4px 0;
    font-size:15px;
    font-weight:800;
    color:#ffffff;
}

.cart-item-info p{
    margin:0;
    font-size:12px;
    color:#9a9a9a;
}

.cart-item-remove{
    display:inline-block;
    margin-top:6px;
    color:#ff6b6b;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
}

.cart-item-remove:hover{
    text-decoration:underline;
}

.cart-item-actions{
    display:flex;
    align-items:center;
    gap:16px;
    flex:none;
    margin-left:auto;
}

.cart-item-actions select{
    padding:8px 10px;
    border-radius:6px;
    border:1px solid rgba(255,255,255,0.2);
    background:#0f121c;
    color:#ffffff;
    font-family:'Roboto',sans-serif;
    font-size:13px;
}

.cart-item-price{
    font-size:17px;
    font-weight:800;
    color:#efba0f;
    white-space:nowrap;
    min-width:110px;
    text-align:right;
}

.cart-summary-row{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,0.1);
    font-size:14px;
    color:#ffffff;
}

.cart-summary-row.total{
    font-size:19px;
    font-weight:800;
    color:#efba0f;
    border-bottom:none;
    margin-top:6px;
    padding-top:16px;
}

.cart-pay-btn{
    display:block;
    width:100%;
    box-sizing:border-box;
    text-align:center;
    border:none;
    cursor:pointer;
    font-family:'Roboto',sans-serif;
    font-size:15px;
    margin-top:20px;
}

@media(max-width:600px){
    .cart-item{
        flex-direction:column;
        align-items:stretch;
        text-align:center;
    }
    .cart-item img{
        width:100%;
        height:160px;
        margin:0 auto;
    }
    .cart-item-actions{
        margin-left:0;
        justify-content:space-between;
    }
}

/* 👇 SUBNAV DE CURSO (e-learning: contenidos/examenes/foro/asistencia/calificaciones/mensajes) */
.course-subnav{
    margin-bottom:28px;
}

.course-subnav h2{
    margin:0 0 20px 0;
}

.course-jump{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:14px;
    margin-bottom:20px;
    padding:16px;
    background:#f5f7fb;
    border-radius:10px;
}

.course-jump .form-group{
    margin:0;
    min-width:200px;
    flex:1;
}

.course-jump label{
    display:block;
    font-size:12px;
    font-weight:700;
    color:#141b3d;
    margin-bottom:6px;
}

.course-jump select{
    width:100%;
    box-sizing:border-box;
    padding:10px 12px;
    border:1px solid #d5d5d5;
    border-radius:8px;
    font-family:'Roboto',sans-serif;
    font-size:14px;
    color:#1a1a1a;
    background:#ffffff;
}

.course-jump .btn{
    padding:10px 24px;
    font-size:14px;
    flex:none;
}

.course-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    border-bottom:2px solid #eeeeee;
}

.course-tabs a{
    padding:10px 18px;
    border-radius:8px 8px 0 0;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    color:#666666;
    background:transparent;
    transition:all 0.2s ease;
}

.course-tabs a:hover{
    color:#005eff;
    background:#f5f7fb;
}

.course-tabs a.active{
    color:#ffffff;
    background:linear-gradient(45deg,#00c2ff,#005eff);
}

@media(max-width:700px){
    .course-jump{
        flex-direction:column;
        align-items:stretch;
    }
    .course-tabs{
        overflow-x:auto;
        flex-wrap:nowrap;
    }
}

/* 👇 LOGIN / MI CUENTA */
.login-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:start;
    max-width:900px;
    margin:0 auto;
}

@media(max-width:768px){
    .login-layout{
        grid-template-columns:1fr;
    }
}

.login-info h3{
    font-size:22px;
    font-weight:800;
    color:#141b3d;
    margin:0 0 16px 0;
}

.login-info p{
    font-size:15px;
    line-height:1.7;
    color:#333333;
}

.login-form-panel{
    background:rgba(15,18,28,0.95);
    border-radius:14px;
    padding:32px;
}

.login-form-panel h3{
    font-size:20px;
    font-weight:800;
    color:#ffffff;
    margin:0 0 22px 0;
}

.login-form-panel .contact-form label{
    color:#ffffff;
}

.login-form-panel .contact-form input{
    background:#0f121c;
    border:1px solid rgba(255,255,255,0.15);
    color:#ffffff;
}

.login-form-panel .contact-form input:focus{
    border-color:#0055fa;
    box-shadow:0 0 0 3px rgba(0,85,250,0.25);
}

.login-form-panel .contact-form input::placeholder{
    color:#8a8a8a;
}

.login-error{
    color:#ff6b6b;
    font-size:13px;
    font-weight:700;
    margin-top:14px;
    text-align:center;
}

/* 👇 GALERÍA - LIGHTBOX */
.gallery-page .institute-gallery .card{
    cursor:pointer;
}

.lightbox-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.92);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:2000;
    padding:40px;
    box-sizing:border-box;
}

.lightbox-overlay.open{
    display:flex;
}

.lightbox-overlay img{
    max-width:100%;
    max-height:100%;
    border-radius:8px;
    box-shadow:0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-nav{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,0.1);
    border:1px solid rgba(255,255,255,0.3);
    color:#ffffff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-close:hover,
.lightbox-nav:hover{
    background:rgba(255,255,255,0.2);
}

.lightbox-close{
    top:24px;
    right:30px;
    width:44px;
    height:44px;
    font-size:22px;
    line-height:1;
}

.lightbox-nav{
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    font-size:24px;
}

.lightbox-prev{ left:24px; }
.lightbox-next{ right:24px; }

@media(max-width:600px){
    .lightbox-nav{ width:38px; height:38px; font-size:18px; }
    .lightbox-overlay{ padding:16px; }
}

/* 👇 BARRA DE NAVEGACIÓN LATERAL (SCROLLBAR) */
::-webkit-scrollbar{
    width:12px;
}

::-webkit-scrollbar-track{
    background:#000000;
}

::-webkit-scrollbar-thumb{
    background:#0055fa;
    border-radius:10px;
    border:2px solid #000000;
}

::-webkit-scrollbar-thumb:hover{
    background:#2f74ff;
}

body{
    scrollbar-width:thin;
    scrollbar-color:#0055fa #000000;
}

[id]{
    scroll-margin-top:116px;
}

/* 👇 BOTÓN VOLVER ARRIBA */
#back-to-top{
    position:fixed;
    bottom:30px;
    right:30px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:#efba0f;
    border:1px solid rgba(0,0,0,0.15);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transform:translateY(15px);
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index:998;
    box-shadow:0 6px 20px rgba(0,0,0,0.5);
}

#back-to-top.visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

#back-to-top:hover{
    background:#d9a70d;
}

#back-to-top svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:#000000;
    stroke-width:2.5;
    stroke-linecap:round;
    stroke-linejoin:round;
}
