:root {
    --bg-main: #110e0c;        /* Café Espresso Tostado Ultra Oscuro */
    --bg-secondary: #1a1512;   /* Café Profundo */
    --bg-card-glass: rgba(38, 30, 25, 0.45); /* Vidrio Traslúcido Oscuro */
    --border-glass: rgba(248, 244, 240, 0.12);
    --glass-shine: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f8f4f0;   /* Blanco Marfil */
    --text-secondary: #d1c2b6; /* Latte Suave */
    
    --accent: #c48b58;         /* Madera Dorado Cálido */
    --accent-hover: #9e5d2b;   /* Café Tostado */
    --accent-glow: rgba(196, 139, 88, 0.35);
    
    --hero-glow: rgba(196, 139, 88, 0.22);
    --hero-overlay: rgba(17, 14, 12, 0.82);
    
    --whatsapp: #25d366;
    --whatsapp-hover: #1da851;
    --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.55);
    --shadow-hover: 0 25px 60px rgba(196, 139, 88, 0.25);
    
    --font-heading: 'Rubik', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg-main: #f8f6f3;            
    --bg-secondary: #eee8e1;       
    --bg-card-glass: rgba(255, 255, 255, 0.65); /* Vidrio Traslúcido Claro */
    --border-glass: rgba(141, 84, 40, 0.18);
    --glass-shine: rgba(255, 255, 255, 0.6);
    
    --text-primary: #1e1915;       
    --text-secondary: #5a4b40;     
    
    --accent: #8d5428;             
    --accent-hover: #6a3d1b;       
    --accent-glow: rgba(141, 84, 40, 0.22);
    
    --hero-glow: rgba(141, 84, 40, 0.12);
    --hero-overlay: rgba(248, 246, 243, 0.88);
    
    --shadow-glass: 0 15px 35px rgba(28, 25, 23, 0.08);
    --shadow-hover: 0 20px 45px rgba(141, 84, 40, 0.18);
}

/* ==========================================
   RESET & BASE CON AMBIENTE ORB
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.4s, color 0.4s;
    overflow-x: hidden;
    position: relative;
}

/* Luces flotantes de fondo para potenciar el efecto vidrio */
body::before, body::after {
    content: '';
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 14s infinite alternate ease-in-out;
}

body::before { top: -100px; left: -100px; }
body::after { bottom: 10%; right: -100px; animation-delay: -7s; }

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(60px, 80px) scale(1.15); opacity: 0.8; }
    100% { transform: translate(-40px, 40px) scale(0.95); opacity: 0.5; }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .logo-mark {
    font-family: var(--font-heading);
}

/* ==========================================
   ANIMACIONES SCROLL
   ========================================== */
.reveal, .reveal-left, .reveal-right, .reveal-zoom {
    opacity: 0;
    will-change: opacity, transform;
    transition: var(--transition);
}

.reveal { transform: translateY(45px); }
.reveal-left { transform: translateX(-55px); }
.reveal-right { transform: translateX(55px); }
.reveal-zoom { transform: scale(0.9); }

.active {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

.stagger-1 { transition-delay: 0.12s; }
.stagger-2 { transition-delay: 0.24s; }
.stagger-3 { transition-delay: 0.36s; }

/* ==========================================
   COMPONENTES GLASS & ESTRUCTURA
   ========================================== */
.section-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 110px 24px;
    position: relative;
    z-index: 2;
}

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

.section-subtitle {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.6rem;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 55px auto;
    font-size: 1.08rem;
}

.text-accent { color: var(--accent); }

/* TARJETAS GLASS (VIDRIO) */
.glass-card {
    background: var(--bg-card-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

/* BOTONES GLASS BRILLANTES */
.btn-primary, .btn-secondary, .btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
    font-size: 0.98rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card-glass);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    background: var(--accent-glow);
}

.btn-quote {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-quote:hover {
    transform: translateY(-2px) scale(1.03);
}

/* ==========================================
   HEADER & NAVEGACIÓN GLASS
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-card-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.nav-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fef3c7 0%, var(--accent) 50%, #8c5228 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-title { font-weight: 800; font-size: 1.15rem; letter-spacing: 1px; }
.logo-slogan { font-size: 0.6rem; letter-spacing: 2px; color: var(--text-secondary); display: block; }

.nav-menu { display: flex; gap: 32px; }

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active { color: var(--accent); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.control-btn {
    background: var(--bg-card-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px) scale(1.05);
}

.lang-btn {
    width: auto;
    padding: 0 16px;
    border-radius: 20px;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hamburger { display: none; }

/* ==========================================
   HERO ULTRA-ELEGANTE
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 90px 24px;
    background: 
        radial-gradient(circle at 50% 30%, var(--hero-glow) 0%, var(--bg-main) 85%), 
        linear-gradient(180deg, var(--hero-overlay) 0%, var(--bg-main) 100%), 
        url('https://images.unsplash.com/photo-1513694203232-719a280e022f?q=80&w=1800&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
}

.hero-glass-box {
    background: var(--bg-card-glass);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid var(--border-glass);
    padding: 60px 40px;
    border-radius: 28px;
    box-shadow: var(--shadow-glass);
    max-width: 900px;
}

.slogan-top {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin: 0 auto 42px auto;
    max-width: 700px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-glass);
}

.about-img {
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-img-wrapper:hover .about-img {
    transform: scale(1.04);
}

.about-card {
    padding: 40px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 35px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item i {
    font-size: 2.2rem;
    color: var(--accent);
}

.stat-item h4 { font-size: 1.3rem; }
.stat-item p { font-size: 0.88rem; color: var(--text-secondary); }

/* ==========================================
   VIDEOS & GALERÍA DE PROYECTOS
   ========================================== */
.video-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.video-card {
    text-align: left;
}

.video-thumb {
    position: relative;
    border-bottom: 1px solid var(--border-glass);
}

.video-thumb video {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.video-info {
    padding: 24px;
}

.video-tag {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.video-info h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 14, 12, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--accent);
    font-size: 2rem;
}

.glass-card:hover .gallery-overlay { opacity: 1; }
.glass-card:hover .gallery-img { transform: scale(1.08); }

/* ==========================================
   BEFORE & AFTER SLIDER
   ========================================== */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 45px;
}

.ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    --pos: 50%;
}

.ba-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.img-before {
    clip-path: polygon(0 0, var(--pos) 0, var(--pos) 100%, 0 100%);
}

.ba-range {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.ba-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: var(--pos);
    width: 3px;
    background-color: var(--accent);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.ba-handle i {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 42px; height: 42px;
    background-color: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.ba-badge {
    position: absolute;
    bottom: 16px;
    padding: 6px 16px;
    background: var(--bg-card-glass);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 4;
    border: 1px solid var(--border-glass);
}

.badge-before { left: 16px; }
.badge-after { right: 16px; }

/* ==========================================
   PRICING & FOOTER GLASS
   ========================================== */
.pricing-card {
    padding: 60px 40px;
    max-width: 850px;
    margin: 0 auto;
}

.footer {
    position: relative;
    padding: 90px 24px 35px 24px;
    border-top: 1px solid var(--border-glass);
}

.footer-container {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 45px;
    margin-bottom: 60px;
}

.footer-logo-title { margin: 12px 0 4px 0; }
.footer-slogan { font-size: 0.75rem; color: var(--accent); letter-spacing: 2px; font-weight: 700; }
.footer-tagline { font-size: 0.88rem; color: var(--text-secondary); margin: 14px 0; }

.footer-license {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--accent);
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 38px; height: 2px;
    background-color: var(--accent);
}

.footer-list li {
    margin-bottom: 14px;
    font-size: 0.94rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-list a:hover { color: var(--accent); }

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.facebook-link-btn, .instagram-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.facebook-link-btn { background-color: #1877f2; }
.instagram-link-btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.facebook-link-btn:hover, .instagram-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.footer-qr {
    border-radius: 12px;
    border: 2px solid var(--border-glass);
}

.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 62px;
    height: 62px;
    background-color: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-4px);
    background-color: var(--whatsapp-hover);
}