/* ===================================
   TLO VISUAL - MAIN STYLES
   ================================ */

/* RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #050506;
    --primary-orange: #FF5722;
    --dark-gray: #0e0e11;
    --medium-gray: #8A8F98;
    --light-gray: #B4B8BF;
    --white: #EDEDEF;
    --success: #4CAF50;
    /* Cinematic dark tokens */
    --bg-deep: #020203;
    --bg-base: #0a0a0f;
    --surface: rgba(255, 255, 255, 0.04);
    --hairline: rgba(255, 255, 255, 0.08);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    /* Theme-switchable tokens */
    --accent-secondary: #FF8A50;
    --accent-glow: rgba(255, 87, 34, 0.25);
    --accent-glow-strong: rgba(255, 87, 34, 0.45);
    --accent-bg: rgba(255, 87, 34, 0.08);
    --navbar-bg-idle: rgba(5, 5, 6, 0.85);
    --navbar-bg-scroll: rgba(5, 5, 6, 0.95);
    --overlay-bg: rgba(2, 2, 3, 0.95);
    --card-backdrop: blur(12px);
    --card-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ambient LED glow — fixed light blobs behind content */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(90px);
}

body::before {
    background: radial-gradient(circle, rgba(255, 87, 34, 0.07) 0%, transparent 65%);
    top: -18vw;
    right: -14vw;
    animation: ambientDrift 26s ease-in-out infinite alternate;
}

body::after {
    background: radial-gradient(circle, rgba(94, 106, 210, 0.05) 0%, transparent 65%);
    bottom: -20vw;
    left: -16vw;
    animation: ambientDrift 32s ease-in-out infinite alternate-reverse;
}

@keyframes ambientDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(6vw, 4vw) scale(1.15); }
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

img {
    max-width: 100%;
    height: auto;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg-idle);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--primary-orange);
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* HERO VIDEO */
.video-hero {
    margin-top: 80px;
    height: 85vh;
    position: relative;
    overflow: hidden;
    background: var(--primary-black);
}

.video-hero-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.video-hero-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Vertical (9:16) Short scaled to cover landscape hero */
    width: 100vw;
    height: calc(100vw * 16 / 9);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* HERO GALLERY (kept for legacy JS references) */
.hero-gallery {
    margin-top: 80px;
    height: 85vh;
    position: relative;
    overflow: hidden;
}

.gallery-slider {
    display: flex;
    height: 100%;
    position: relative;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--overlay-bg) 0%, rgba(2, 2, 3, 0.55) 45%, transparent 100%);
    padding: 6rem 5% 4.5rem;
}

.slide-info h2 {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin-bottom: 1.25rem;
    max-width: 900px;
}

.slide-info p {
    font-size: 1.15rem;
    color: var(--light-gray);
    max-width: 560px;
    font-weight: 300;
}

.slide-category {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent-glow-strong);
    color: var(--primary-orange);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.gallery-nav {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.gallery-nav button {
    width: 50px;
    height: 50px;
    border: 2px solid var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-nav button:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.gallery-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-orange);
    width: 35px;
    border-radius: 6px;
}

/* INTRO SECTION */
.intro {
    padding: 8rem 5%;
    text-align: center;
    background: transparent;
}

.intro h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro p {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.8;
    font-weight: 300;
}

.stats-mini {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.stat-mini {
    text-align: center;
}

.stat-mini h3 {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--accent-glow);
    font-variant-numeric: tabular-nums;
}

.stat-mini p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--medium-gray);
    margin: 0;
}

/* SECTION HEADERS */
section {
    padding: 7.5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--medium-gray);
    font-weight: 300;
}

/* PANTALLAS LED SECTION */
.pantallas-led {
    background: transparent;
}

.pantallas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.pantalla-card {
    background: var(--surface);
    backdrop-filter: var(--card-backdrop);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.45s var(--ease-expo), box-shadow 0.45s var(--ease-expo), border-color 0.45s var(--ease-expo);
    cursor: pointer;
}

.pantalla-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 87, 34, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.pantalla-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.pantalla-info {
    padding: 2rem;
}

.pantalla-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.pantalla-specs {
    list-style: none;
    margin: 1.5rem 0;
}

.pantalla-specs li {
    color: var(--light-gray);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-variant-numeric: tabular-nums;
}

.spec-label {
    font-weight: 500;
    color: var(--medium-gray);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.pantalla-badge {
    display: inline-block;
    background: var(--accent-bg);
    border: 1px solid rgba(255, 87, 34, 0.4);
    color: var(--primary-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* CALCULATOR PREVIEW */
.calculator-preview {
    background: linear-gradient(135deg, var(--accent-bg), var(--accent-bg));
    padding: 5rem 5%;
}

.calculator-preview-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.calculator-preview-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.calculator-preview-text p {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-primary {
    background: var(--primary-orange);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    display: inline-block;
    box-shadow: 0 0 32px var(--accent-glow);
    transition: transform 0.35s var(--ease-expo), box-shadow 0.35s var(--ease-expo), background 0.35s var(--ease-expo);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--accent-secondary);
    box-shadow: 0 8px 48px var(--accent-glow-strong);
}

.calculator-preview-image img {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* PROYECTOS SECTION */
.proyectos {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.proyectos-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.proyectos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.proyecto-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.proyecto-item:hover img {
    transform: scale(1.1);
}

.proyecto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--overlay-bg) 0%, rgba(10, 10, 10, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proyecto-item:hover .proyecto-overlay {
    opacity: 1;
}

.proyecto-tag {
    display: inline-block;
    background: rgba(2, 2, 3, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 87, 34, 0.5);
    color: var(--primary-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    width: fit-content;
}

.proyecto-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.proyecto-overlay p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* EQUIPAMIENTO SECTION */
.equipamiento {
    background: transparent;
}

.equipamiento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.equipo-card {
    background: var(--surface);
    backdrop-filter: var(--card-backdrop);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.45s var(--ease-expo), border-color 0.45s var(--ease-expo), box-shadow 0.45s var(--ease-expo);
}

.equipo-card:hover {
    border-color: rgba(255, 87, 34, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 0 36px var(--accent-glow);
}

.equipo-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
    display: flex;
    justify-content: center;
}

.equipo-icon svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.equipo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.equipo-card p {
    color: var(--light-gray);
    line-height: 1.8;
}

/* CONTACTO SECTION */
.contacto {
    padding: 8rem 5%;
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 87, 34, 0.14) 0%, transparent 70%),
        transparent;
    border-top: 1px solid var(--hairline);
    text-align: center;
}

.contacto h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.contacto p {
    font-size: 1.1rem;
    color: var(--light-gray);
    font-weight: 300;
    margin-bottom: 3.5rem;
}

.contacto-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.contacto-method {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--hairline);
    padding: 2.25rem 2rem;
    border-radius: 16px;
    min-width: 220px;
    transition: transform 0.45s var(--ease-expo), border-color 0.45s var(--ease-expo), box-shadow 0.45s var(--ease-expo);
    text-decoration: none;
    color: var(--white);
}

.contacto-method:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 0 0 40px var(--accent-glow);
}

.contacto-method-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
    display: flex;
    justify-content: center;
}

.contacto-method-icon svg {
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.contacto-method h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contacto-method p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* FOOTER */
footer {
    background: var(--primary-black);
    padding: 3rem 5% 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
    color: var(--light-gray);
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-section p {
    color: var(--light-gray);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* SCROLL REVEAL */
.reveal-init {
    opacity: 0;
}

.revealed {
    opacity: 1;
    animation: fadeInUp 0.7s var(--ease-expo) backwards;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navbar-bg-scroll);
        backdrop-filter: blur(10px);
        padding: 1.5rem 5%;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-gallery {
        height: 60vh;
    }

    .slide-info h2 {
        font-size: 1.8rem;
    }

    .slide-info p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .proyectos-gallery {
        grid-template-columns: 1fr;
    }

    .calculator-preview-content {
        grid-template-columns: 1fr;
    }

    .stats-mini {
        gap: 2rem;
    }

    .contacto-methods {
        flex-direction: column;
        align-items: center;
    }

    .pantallas-grid,
    .equipamiento-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .intro h2 {
        font-size: 2rem;
    }

    .slide-info h2 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* ===================================
   MODAL DETALLE PANTALLA
   ================================ */

.ver-detalle-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ver-detalle-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.modal-content {
    background: var(--dark-gray);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--primary-orange);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image-col {
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

.modal-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.modal-info-col {
    padding: 2.5rem;
}

.modal-info-col h2 {
    font-size: 1.8rem;
    margin: 0.8rem 0;
    line-height: 1.2;
}

.modal-info-col p {
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-specs {
    margin-bottom: 1.5rem !important;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-wa-btn {
    text-align: center;
    padding: 0.8rem 1.5rem;
}

.modal-page-link {
    text-align: center;
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.modal-page-link:hover { opacity: 0.7; }

@media (max-width: 650px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-image-col {
        border-radius: 16px 16px 0 0;
    }
    .modal-img {
        min-height: 220px;
    }
    .modal-info-col {
        padding: 1.5rem;
    }
}

/* ===================================
   TEMA B — GLASSMORPHISM CINEMATIC
   Activo con data-theme="glass" en <html>
   ================================ */

[data-theme="glass"] {
    --primary-orange: #5E6AD2;
    --primary-black: #020203;
    --dark-gray: #0d0d14;
    --accent-secondary: #7C8DF0;
    --accent-glow: rgba(94, 106, 210, 0.3);
    --accent-glow-strong: rgba(94, 106, 210, 0.5);
    --accent-bg: rgba(94, 106, 210, 0.08);
    --navbar-bg-idle: rgba(2, 2, 3, 0.85);
    --navbar-bg-scroll: rgba(2, 2, 3, 0.95);
    --overlay-bg: rgba(2, 2, 3, 0.92);
    --card-backdrop: blur(12px);
    --card-border: rgba(255, 255, 255, 0.08);
}

[data-theme="glass"] body {
    background: linear-gradient(180deg, #0a0a0f 0%, #020203 100%);
    background-attachment: fixed;
}

[data-theme="glass"] h1,
[data-theme="glass"] h2,
[data-theme="glass"] h3,
[data-theme="glass"] h4 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

[data-theme="glass"] .pantalla-card,
[data-theme="glass"] .equipo-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="glass"] .proyecto-overlay {
    background: linear-gradient(to top, var(--overlay-bg) 0%, rgba(2, 2, 3, 0.3) 50%, transparent 100%);
}

[data-theme="glass"] .pantalla-card:hover,
[data-theme="glass"] .equipo-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-orange);
}

/* ===================================
   TEMA C — CINEMATIC GOLD
   Activo con data-theme="gold" en <html>
   ================================ */

[data-theme="gold"] {
    --primary-orange: #CA8A04;
    --primary-black: #0F0F23;
    --dark-gray: #1B1B30;
    --medium-gray: #2E2E4A;
    --accent-secondary: #D97706;
    --accent-glow: rgba(202, 138, 4, 0.3);
    --accent-glow-strong: rgba(202, 138, 4, 0.5);
    --accent-bg: rgba(202, 138, 4, 0.08);
    --navbar-bg-idle: rgba(15, 15, 35, 0.92);
    --navbar-bg-scroll: rgba(15, 15, 35, 0.98);
    --overlay-bg: rgba(8, 8, 22, 0.95);
    --card-backdrop: none;
    --card-border: rgba(202, 138, 4, 0.15);
}

[data-theme="gold"] body {
    background: linear-gradient(180deg, #0F0F23 0%, #080816 100%);
    background-attachment: fixed;
}

[data-theme="gold"] h1,
[data-theme="gold"] h2,
[data-theme="gold"] h3,
[data-theme="gold"] h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.03em;
}

[data-theme="gold"] .section-header h2 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
}

[data-theme="gold"] .slide-info h2 {
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 0.95;
}

[data-theme="gold"] .pantalla-info h3 {
    font-size: 1.8rem;
}

[data-theme="gold"] .intro {
    background: #131328;
}

[data-theme="gold"] .pantalla-card {
    background: #1B1B30;
    border: 1px solid rgba(202, 138, 4, 0.12);
}

[data-theme="gold"] .equipo-card {
    background: #1B1B30;
}

[data-theme="gold"] .proyecto-overlay {
    background: linear-gradient(to top, var(--overlay-bg) 0%, rgba(15, 15, 35, 0.3) 50%, transparent 100%);
}

/* THEME TOGGLE BUTTON */
#theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

#theme-toggle:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* ===================================
   GALLERY MODAL
   ================================ */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.gallery-modal.open { display: flex; }

.gal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
    z-index: 10;
    transition: opacity 0.2s;
}
.gal-close:hover { opacity: 1; }

.gal-header {
    text-align: center;
    margin-bottom: 1rem;
    max-width: 80vw;
}
.gal-header .proyecto-tag {
    display: inline-block;
    margin-bottom: 0.4rem;
}
.gal-header h3 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.gal-main-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 92vw;
}
.gal-main-img {
    max-width: 78vw;
    max-height: 58vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    background: #111;
}
@media (max-width: 640px) {
    .gal-main-img { max-width: 90vw; max-height: 50vh; }
    .gal-nav      { display: none; }
}

.gal-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.2s;
    flex-shrink: 0;
    user-select: none;
}
.gal-nav:hover     { background: rgba(255, 87, 34, 0.45); }
.gal-nav[hidden]   { visibility: hidden; }

.gal-thumbs-wrap {
    margin-top: 1rem;
    max-width: 90vw;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,87,34,0.4) transparent;
}
.gal-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 0;
}
.gal-thumb {
    width: 68px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.45;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.gal-thumb:hover  { opacity: 0.75; }
.gal-thumb.active { opacity: 1; border-color: var(--primary-orange); }

.gal-counter {
    margin-top: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

/* Project items clickable */
.proyecto-item { cursor: pointer; }
