:root {
    /* MODO OSCURO (Default) */
    --primary: #FBBA02;
    --bg-main: #0a0a0b; /* Gris industrial profundo */
    --bg-card: rgba(18, 18, 20, 0.85);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(251, 186, 2, 0.15); /* Borde sutil del color de la marca */
    --nav-bg: rgba(10, 10, 11, 0.9);
    --hero-overlay: rgba(0, 0, 0, 0.7);
    --glass-blur: 20px;
    --shadow: 0 30px 60px -12px rgba(0,0,0,0.5), 0 18px 36px -18px rgba(0,0,0,0.5);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    /* MODO CLARO PREMIUM */
    --bg-main: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(241, 245, 249, 0.9);
    --hero-overlay: rgba(255, 255, 255, 0.5);
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.5s var(--transition), color 0.5s var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Navigation Refined */
nav {
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-branding { display: flex; align-items: center; gap: 1.2rem; }
.nav-logo { height: 40px; filter: grayscale(0.2); }
.brand-name { font-weight: 800; letter-spacing: 2px; color: var(--primary); font-size: 1.2rem; }
.nav-tagline { font-size: 0.6rem; letter-spacing: 3px; opacity: 0.5; font-weight: 300; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 2px; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

#theme-toggle {
    background: var(--primary);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(251, 186, 2, 0.3);
    transition: 0.4s var(--transition);
}

/* Hero V3: The Carbon Experience */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    background: radial-gradient(circle at center, #1a1a1c 0%, var(--bg-main) 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.2;
    pointer-events: none;
}

.hero-card {
    background: linear-gradient(135deg, rgba(30,30,35,0.9), rgba(15,15,18,0.95));
    backdrop-filter: blur(30px);
    padding: 4rem;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow);
    text-align: center;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 2;
    transition: 0.5s var(--transition);
}

.hero-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 40px rgba(251, 186, 2, 0.1);
}

.hero-logo-large { 
    height: 180px; 
    margin-bottom: 2.5rem; 
    filter: drop-shadow(0 0 20px rgba(251, 186, 2, 0.1));
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.stat-item {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 4px;
    opacity: 0.8;
}

/* Catalog Grid 2x2 Balance */
.section { padding: 10rem 0; }
.section-title { 
    text-align: center; 
    margin-bottom: 6rem; 
    font-size: 2.5rem; 
    font-weight: 800; 
    letter-spacing: -1px;
}

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* BALANCE 2x2 */
    gap: 4rem; 
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: 0.4s var(--transition);
    position: relative;
}

.card:hover { 
    transform: translateY(-15px); 
    border-color: var(--primary); 
    z-index: 3;
}

/* THE ANIA MAGIC: Studio Stage Integration */
.img-box-real {
    height: 320px;
    background: #ffffff; /* Escenario blanco pulcro */
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px; /* Bordes más suaves */
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02); /* Sombra interna sutil */
    padding: 20px;
}

.img-box-real img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s var(--transition);
}

.card:hover .img-box-real img {
    transform: scale(1.08); /* Zoom más elegante */
}

/* Hero Logo Fix */
.hero-logo-large { 
    height: 180px; 
    margin-bottom: 2.5rem; 
    background: #ffffff;
    padding: 20px;
    border-radius: 50%; /* Logo en círculo para romper el cuadrado */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.price { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 2rem; }
.description { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

.btn-buy {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #000;
    text-align: center;
    padding: 1.3rem;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: 0.3s var(--transition);
}

.btn-buy:hover { background: #ffffff; transform: scale(1.02); }

/* Footer ANIA Premium */
footer {
    background: #050506;
    padding: 6rem 0 0 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--primary);
    margin: 1rem 0;
    letter-spacing: 2px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-logo-small {
    height: 40px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
}

.footer-section h4 {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.footer-section a, .footer-section p {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

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

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.03);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    opacity: 0.4;
    letter-spacing: 1px;
}

.ania-credit {
    margin-top: 0.5rem;
    color: var(--primary);
    opacity: 0.6 !important;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .product-grid { grid-template-columns: 1fr; }
    .hero-card { padding: 2rem; }
    .hero-stats { gap: 1rem; flex-direction: column; }
    .hero-logo-large { height: 120px; }
    .nav-tagline { display: none; }
}
/* MODAL GALERÍA INMERSIVA */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s var(--transition);
}

.modal.active { display: flex; opacity: 1; align-items: center; justify-content: center; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: 0.5s var(--transition);
}

.modal.active .modal-content { transform: scale(1); }

.modal-gallery-container {
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-right: 1px solid var(--border);
}

.main-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-view img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    transition: transform 0.5s var(--transition);
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}

.thumb {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.5;
}

.thumb.active { border-color: var(--primary); opacity: 1; transform: translateY(-5px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(15,15,18,0.2) 0%, rgba(0,0,0,0.4) 100%);
}

.info-scroll { flex: 1; overflow-y: auto; padding-right: 1rem; }
.info-scroll::-webkit-scrollbar { width: 4px; }
.info-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(251,186,2,0.1);
    border-radius: 8px;
}

.spec-item { display: flex; flex-direction: column; gap: 0.3rem; }
.spec-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); opacity: 0.7; }
.spec-value { font-size: 0.85rem; font-weight: 600; color: #fff; }

.modal-title { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.modal-price { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; opacity: 0.9; }
.modal-full-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

.close-modal {
    position: absolute;
    top: 2rem; right: 2rem;
    color: var(--primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100;
}

.close-modal:hover { transform: rotate(90deg) scale(1.1); color: #fff; }

@media (max-width: 800px) {
    .modal-content { grid-template-columns: 1fr; overflow-y: auto; }
    .modal-gallery-container { padding: 1.5rem; }
    .modal-info { padding: 2rem; }
}

/* INDUSTRIAL CAROUSEL STYLES */
.industrial-carousel {
    background: #000;
    height: 70vh;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--primary);
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active { opacity: 1; z-index: 5; }

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2);
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(251, 186, 2, 0.2);
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.slide-content p {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
    letter-spacing: 2px;
}

.carousel-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 20;
}

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

.dot.active {
    background: var(--primary);
    transform: scale(1.5);
    box-shadow: 0 0 15px var(--primary);
}

@media (max-width: 800px) {
    .industrial-carousel { height: 50vh; }
    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 0.8rem; }
}
