:root {
    --bg-dark: #090B0F;
    --bg-card: #121820;
    --text-light: #F5F5F5;
    --text-muted: #8E9BAE;
    --gold: #D4AF37;
    --gold-hover: #b8972e;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

@media (pointer: fine) {
    body { cursor: none; }
}

/* Cursor Personalizado */
.cursor-personalizado {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.3s;
    opacity: 0; 
}
.cursor-personalizado.expandido {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.2);
    border-color: transparent;
}

/* Utilidades Comunes */
h1, h2, h3, h4 { font-weight: 500; }
.gold-text { color: var(--gold); }
.section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Botones */
.btn-primary {
    background-color: var(--gold);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s ease;
    font-size: 1rem;
}
.btn-primary:hover { background-color: var(--gold-hover); }

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
    background: transparent;
}
.btn-outline:hover { background-color: var(--gold); color: #000; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(9, 11, 15, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img { height: 40px; width: auto; display: block; }
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

/* Menú Hamburguesa (Oculto en PC) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.menu-toggle .bar {
    width: 25px; height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}
.mobile-only { display: none; }

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background: url('background_montana.png') no-repeat right center;
    background-size: cover;
    background-attachment: fixed;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, var(--bg-dark) 30%, rgba(9,11,15,0.8) 50%, transparent 100%);
    z-index: 1;
}
.hero-container {
    max-width: 1300px; width: 100%; margin: 0 auto; padding: 0 2rem;
    position: relative; z-index: 2;
}
.hero-content { max-width: 650px; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 600; letter-spacing: -1.5px; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.6; }
.hero-features { margin-top: 3rem; display: flex; align-items: center; gap: 1.2rem; color: var(--text-muted); font-size: 0.9rem; }
.gold-icon { color: var(--gold); font-size: 1rem; margin-right: 5px; }

/* Clientes */
.clientes-logos { max-width: 1300px; margin: 2rem auto 6rem; text-align: center; }
.logos-grid { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 3rem 2rem; margin-top: 1rem; flex-wrap: wrap; gap: 2rem;}
.cliente-texto { color: var(--text-muted); font-size: 1.2rem; letter-spacing: 2px; text-align: center; line-height: 1.2; }

/* Servicios */
.servicios-wrapper { max-width: 1300px; margin: 0 auto 8rem; padding: 0 2rem; }
.servicios-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; gap: 2rem;}
.header-izq h2 { font-size: 3rem; line-height: 1.1; }
.header-der p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; text-align: right; }
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.servicio-card { background-color: var(--bg-card); padding: 3rem 2rem; border-radius: 4px; transition: transform 0.3s; border: 1px solid transparent; }
.servicio-card:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.2); }
.servicio-card .icon { font-size: 2rem; color: var(--gold); margin-bottom: 2rem; }
.servicio-card h3 { margin-bottom: 1rem; font-size: 1.4rem; line-height: 1.3; }
.servicio-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Casos (Petra) */
.casos-wrapper { max-width: 1300px; margin: 0 auto 8rem; padding: 0 2rem; }
.casos-layout { display: flex; gap: 4rem; align-items: flex-start; }
.casos-info { flex: 1; max-width: 400px; }
.casos-info h2 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 1.5rem; }
.casos-info p { color: var(--text-muted); line-height: 1.6; margin-bottom: 2.5rem; font-size: 1.05rem;}
.casos-stats { flex: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat-card { background: var(--bg-card); padding: 2.5rem 2rem; border-radius: 4px; }
.stat-icon { color: var(--gold); font-size: 1.5rem; margin-bottom: 2rem; }
.stat-number { display: block; font-size: 3.5rem; font-weight: 300; margin-bottom: 0.5rem; line-height: 1; }
.stat-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; display: block; }

/* CTA Final y Gráfico SVG */
.cta-final {
    max-width: 1300px; margin: 0 auto; padding: 4rem 2rem 8rem;
    display: flex; justify-content: space-between; align-items: center; gap: 4rem;
}
.cta-content { flex: 1; max-width: 500px; }
.cta-content h2 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.1;}
.cta-content p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.1rem; }
.roadmap-visual { flex: 1; width: 100%; display: flex; justify-content: center; align-items: center;}
.svg-roadmap { width: 100%; max-width: 600px; height: auto; }

/* Footer */
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 2rem; }
.footer-container { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap;}
.footer-links a, .socials a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.socials { display: flex; gap: 1.5rem; }
.footer-links a:hover, .socials a:hover { color: var(--gold); }

/* Animaciones de aparición */
.animar-fade-in { opacity: 0; transition: opacity 1.2s ease-out; }
.animar-slide-up { opacity: 0; transform: translateY(40px); transition: opacity 1s ease-out, transform 1s ease-out; }
.animar-fade-in.visible { opacity: 1; }
.animar-slide-up.visible { opacity: 1; transform: translateY(0); }


/* =========================================
   DISEÑO RESPONSIVE (CELULARES Y TABLETS)
========================================= */
@media (max-width: 900px) {
    /* Hero adjustments for tablets */
    .hero h1 { font-size: 3.5rem; }
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
    .casos-layout { flex-direction: column; }
    .casos-info { max-width: 100%; }
    .cta-final { flex-direction: column; text-align: center; }
    .cta-content { max-width: 100%; margin-bottom: 3rem; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block; margin-top: 1rem; }
    
    /* Navbar Hamburguesa */
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg-dark); flex-direction: column; gap: 0;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out;
    }
    .nav-links.active { max-height: 400px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 1.5rem; font-size: 1.1rem; }
    
    /* Hero */
    .hero { background-position: center center; }
    .hero::before { background: linear-gradient(to bottom, rgba(9,11,15,0.9) 20%, rgba(9,11,15,0.7) 60%, var(--bg-dark) 100%); }
    .hero-content { margin-top: 4rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero-features { flex-direction: column; gap: 0.8rem; align-items: center; }

    /* Secciones Generales */
    .logos-grid { justify-content: center; gap: 3rem; }
    .servicios-header { flex-direction: column; align-items: flex-start; text-align: left; }
    .header-der p { text-align: left; margin-top: 1rem; }
    .servicios-grid, .casos-stats { grid-template-columns: 1fr; }
    
    /* Gráfico SVG en móvil */
    .svg-roadmap { transform: scale(1.1); margin-top: 1rem; }
    
    /* Footer */
    .footer-container { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}