/* ========================================= */
/* PALETA DARK MODE                          */
/* ========================================= */
:root {
    --bg-main: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1c1c1e;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --accent-blue: #2997ff;
    --border: #333336;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    line-height: 1.5; 
    background: var(--bg-main);
    -webkit-font-smoothing: antialiased; 
}

/* --- Tipografía Global --- */
h2 { font-size: 2.2rem; color: var(--text-main); margin-bottom: 10px; letter-spacing: -0.5px; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 40px auto; }

/* --- Navegación --- */
nav {
    position: fixed; width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(20px); z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.logo { font-weight: 600; font-size: 0.9rem; letter-spacing: 2px; text-decoration: none; color: var(--text-main); text-transform: uppercase; display: flex; align-items: center;}
.logo svg { margin-right: 10px; color: var(--accent-blue); }
.nav-links a { text-decoration: none; color: var(--text-main); margin-left: 25px; font-size: 0.8rem; font-weight: 400; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-blue); }
/* --- Botón de Contacto en el Header (Estilo Store) --- */
.nav-links .nav-cta {
    background-color: #0071e3; /* Azul estilo Apple/DJI */
    color: #ffffff !important; /* Texto blanco forzado */
    padding: 8px 20px;
    border-radius: 6px; /* Bordes redondeados como en tu imagen */
    font-weight: 600;
    margin-left: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-links .nav-cta:hover {
    background-color: #005bb5; /* Azul un poco más oscuro al pasar el mouse */
    color: #ffffff;
    transform: scale(1.05); /* Pequeño efecto de crecimiento */
}

/* --- Hero Section --- */
.hero {
    height: 100vh; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 0 10%; overflow: hidden; 
}
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.7; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%); z-index: 1;
}
.hero-content { position: relative; z-index: 2; color: white; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content p { font-size: 1.1rem; opacity: 0.8; max-width: 750px; font-weight: 300; margin: 0 auto; color: var(--text-muted); }

/* --- Secciones Globales --- */
section { scroll-margin-top: 70px; } 

/* --- Pilares de Valor --- */
.pilares {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; padding: 100px 10%; background: var(--bg-main);
}
.pilar-item h3 { font-size: 1.1rem; margin-bottom: 15px; border-left: 3px solid var(--accent-blue); padding-left: 15px; color: var(--text-main); }
.pilar-item p { font-size: 0.9rem; color: var(--text-muted); }

/* --- Workflow --- */
.workflow { padding: 100px 10%; background: var(--bg-secondary); border-radius: 50px 50px 0 0; border-top: 1px solid var(--border); }
.workflow p { color: var(--text-muted); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.step { text-align: center; }
.step-num { font-size: 0.8rem; font-weight: 600; color: var(--accent-blue); display: block; margin-bottom: 10px; }

/* --- Entregables & Modelo 3D --- */
.entregables { padding: 100px 10%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; background: var(--bg-main); }
.entregables p { color: var(--text-muted); margin-top: 10px; }
.file-list { list-style: none; margin-top: 30px; }
.file-list li { padding: 15px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 0.9rem; }
.file-type { font-weight: 600; color: var(--accent-blue); }

.mesh-container {
    background: var(--bg-secondary); border-radius: 30px; display: flex; align-items: center; justify-content: center; 
    overflow: hidden; width: 100%; height: 400px; border: 1px solid var(--border);
}
.mesh-container iframe { width: 100%; height: 100%; }

/* --- Contacto y Formulario --- */
.contact { padding: 100px 10%; text-align: center; background: var(--bg-main); }
.contact p { color: var(--text-muted); margin-top: 10px; }
.form-card { max-width: 600px; margin: 50px auto; text-align: left; }

input, textarea { 
    width: 100%; padding: 18px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 12px; 
    font-family: inherit; background: var(--bg-tertiary); color: var(--text-main); font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: #666; }
input:focus, textarea:focus { outline: none; border-color: var(--accent-blue); }

.btn-submit { 
    background: var(--text-main); color: var(--bg-main); width: 100%; padding: 18px; border: none; 
    border-radius: 12px; font-weight: 600; cursor: pointer; transition: opacity 0.3s; font-size: 1rem;
}
.btn-submit:hover { opacity: 0.8; }

/* --- Footer y Redes Sociales --- */
footer { 
    padding: 50px 20px; 
    border-top: 1px solid var(--border); 
    background: var(--bg-main); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
}
footer p { 
    color: var(--text-muted); 
    font-size: 0.8rem; 
    text-align: center;
}
.social-links { 
    display: flex; 
    gap: 25px; 
}
.social-links a { 
    color: var(--text-muted); 
    transition: color 0.3s ease, transform 0.3s ease; 
    display: flex; 
}
.social-links a:hover { 
    color: var(--text-main); /* Se iluminan en blanco al pasar el mouse */
    transform: scale(1.15); /* Crecen un poquito */
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; 
    color: #FFF; border-radius: 50px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
    z-index: 1000; display: flex; align-items: center; justify-content: center; 
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #20b858; }

/* --- Animaciones de Scroll (Reveal) --- */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ========================================= */
/* OPTIMIZACIÓN MÓVIL                        */
/* ========================================= */
@media (max-width: 768px) { 
    nav { flex-direction: column; padding: 15px; gap: 10px; }
    .nav-links a { margin: 0 10px; font-size: 0.85rem; }
    .pilares, .workflow, .entregables, .contact { padding: 60px 5%; }
    .step-grid, .entregables { grid-template-columns: 1fr; gap: 40px; } 
    .mesh-container { height: 300px; }
    .workflow { border-radius: 30px 30px 0 0; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
    .nav-links .nav-cta { margin-top: 10px; margin-left: 0; }
}