:root {
    --primary: #007bff; /* Azul Tecnológico */
    --primary-hover: #0056b3;
    --dark: #0a0a0a; /* Negro profundo */
    --light: #f9f9f9;
    --eco: #28a745; /* Verde Sostenibilidad */
    --text-dark: #222;
    --text-light: #fff;
    --shadow: 0 4px 15px rgba(0,0,0,0.15);
	--whatsapp: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light);
}

.container {
    max-width: 1300px; /* Un poco más ancho */
    margin: auto;
    padding: 0 2.5rem;
}

/* Utilitarios de Texto */
.text-center { text-align: center; }
.section-title { font-size: 2.8rem; margin-bottom: 1rem; color: var(--dark); }
.section-subtitle { max-width: 600px; margin-inline: auto; margin-bottom: 3.5rem; opacity: 0.8; }

/* 1. Header & Navbar (Transparent Over Hero) */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s;
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 2rem; color: #fff; letter-spacing: 1px; }
.logo span { color: var(--primary); font-weight: bold; }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li a { text-decoration: none; color: #fff; margin: 0 1.2rem; font-weight: 500; font-size: 0.95rem; }
.btn-cta { background: var(--primary); color: #fff !important; padding: 0.7rem 1.4rem; border-radius: 30px; }

/* 2. Hero con Video de Fondo */
.hero-video {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Superposición oscura para el texto */
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-content h2 { font-size: 4rem; margin-bottom: 1.5rem; line-height: 1.1; }
.hero-content p { font-size: 1.3rem; margin-bottom: 3rem; max-width: 800px; margin-inline: auto; opacity: 0.9; }

.btn-primary, .btn-secondary, .btn-eco {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin: 0.5rem;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #fff; color: var(--dark); }
.btn-eco { background: var(--eco); color: #fff; }

/* 3. Estilo de Secciones con Grid Moderno */
section { padding: 8rem 0; }

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content.reverse .text-box { order: 1; }
.split-content.reverse .image-box { order: 2; }

.image-box img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.tech-list { list-style: none; margin-top: 2rem; }
.tech-list li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; }
.tech-list i { color: var(--primary); font-size: 1.2rem; }

/* Seccion Oscura */
.dark-section { background-color: var(--dark); color: #fff; }
.dark-section .section-title { color: #fff; }
.eco-icon { font-size: 3rem; color: var(--eco); margin-bottom: 1rem; }

/* 4. Galería Inmersiva */
.gallery { background: #fff; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 para impacto visual */
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 2rem;
    transition: 0.4s;
    text-align: center;
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { bottom: 0; }

/* 5. Proceso de Tarjetas */
.process { background: #fff; }
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.process-card {
    background: var(--light);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 10px;
    position: relative;
}

.icon-circle {
    width: 60px; height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: bold;
    margin: -3rem auto 1.5rem auto;
}

/* Footer & Responsividad */
footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 3rem 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; }
.social-links a { color: #fff; font-size: 1.5rem; margin-left: 1rem; }

@media (max-width: 992px) {
    .split-content { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero-content h2 { font-size: 2.8rem; }
    .navbar .nav-links { display: none; } /* Idealmente un menú hamburguesa aquí */
    .hero-content p { font-size: 1.1rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Clase que se activará al hacer scroll */
.navbar.scrolled {
    background: #ffffff; /* Fondo blanco */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 0; /* Un poco más delgado */
}

/* Cambia el color de los enlaces y logo cuando hay scroll */
.navbar.scrolled .nav-links li a, 
.navbar.scrolled .logo {
    color: #1a1a1a !important; /* Texto oscuro */
}

/* Asegura que el botón de cotizar mantenga su estilo o destaque */
.navbar.scrolled .btn-cta {
    background: var(--primary);
    color: #fff !important;
}
/* --- Estilos del Footer --- */
.main-footer {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 4rem 0 0 0;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand h2 {
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    background-color: #000;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #222;
    font-size: 0.85rem;
}

.footer-bottom strong {
    color: var(--primary);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    .footer-contact p {
        justify-content: center;
    }
}

/* Contenedor principal del Hero */
.hero-video {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo del Video de fondo */
#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Lo envía al fondo */
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Evita que el video se deforme */
}

/* Capa oscura para que el texto resalte */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad según prefieras */
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    text-align: center;
    color: #fff;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.15); }
