/* --- 1. Configuración Global y Variables Premium --- */
:root {
    --primary-dark: #050505;
    --primary-light: #ffffff;
    
    /* GRADIENTE MEJORADO (Más vibrante) */
    --accent-gradient: linear-gradient(135deg, #0061f2 0%, #00c6ff 100%); 
    
    --accent-hover: linear-gradient(135deg, #004494 0%, #0066cc 100%);
    --text-gray: #b0b0b0;
    --bg-section: #f4f6f8;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-strong: 0 20px 50px rgba(0,0,0,0.2);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-light);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; }
ul { list-style: none; }

/* --- 2. Header Glassmorphism --- */
.header {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; }

nav ul { display: flex; gap: 2rem; }
nav a {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}
/* Efecto hover con gradiente en texto */
nav a:hover { 
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-contact {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff !important; /* Forzar blanco inicial */
    -webkit-text-fill-color: #fff !important; /* Sobrescribir el gradiente en hover para el botón */
}
.btn-contact:hover { 
    background: #fff; 
    color: #000 !important; 
    -webkit-text-fill-color: #000 !important;
}

/* --- 3. Hero Section (Impacto Visual) --- */
.hero {
    height: 90vh;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.6));
}

.hero-content { position: relative; z-index: 2; color: #fff; max-width: 800px; padding: 0 20px; }

.badge-tech {
    background: rgba(255,255,255,0.05);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Gradiente en Texto */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p { font-size: 1.2rem; color: #ddd; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 198, 255, 0.5); }

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    transition: 0.3s;
}
.btn-secondary:hover { background: #fff; color: #000; }

/* --- 4. Intro --- */
.intro { text-align: center; padding: 5rem 0; }
.intro h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.intro p { color: #666; max-width: 700px; margin: 0 auto; font-size: 1.1rem; }

/* --- 5. Servicios --- */
.services-section { background: var(--bg-section); padding: 6rem 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 4rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.4s;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: #00c6ff; 
}

.card-img-wrapper { overflow: hidden; height: 200px; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img { transform: scale(1.1); }

.card-content { padding: 2rem; position: relative; }

/* Icono con gradiente */
.card-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: absolute;
    top: -25px;
    right: 2rem;
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
}

.card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.card ul li { margin-bottom: 0.5rem; font-size: 0.9rem; color: #555; padding-left: 1.2rem; position: relative; }
.card ul li::before {
    content: "•"; color: #00c6ff; font-size: 1.5rem; position: absolute; left: 0; line-height: 1rem;
}

/* --- 6. Galería --- */
.gallery-section { padding: 6rem 0; background: #fff; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; height: 250px; cursor: pointer; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover .gallery-img { transform: scale(1.1); }

/* --- 7. Contacto (Limpio y con Gradientes) --- */
.contact-section { padding: 6rem 0; background: var(--primary-dark); color: #fff; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info a la izq, Form a la derecha */
    gap: 4rem;
    background: rgba(255,255,255,0.03);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
}

.contact-info h2 { font-size: 2.5rem; margin-bottom: 1rem; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-info p { color: var(--text-gray); margin-bottom: 2rem; }

.info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; font-size: 1.1rem; }

/* Nuevo: Iconos de contacto con fondo gradiente */
.info-icon-gradient {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.2);
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form h3 { margin-bottom: 1rem; }
.contact-form input, .contact-form textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #00c6ff; }

/* --- 8. Footer & WhatsApp --- */
footer { background: #000; padding: 3rem 0; text-align: center; color: #666; border-top: 1px solid #111; }
.footer-logo { width: 150px; margin-bottom: 1rem; opacity: 0.7; }

/* Botón WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366; /* Verde original de WhatsApp es mejor para conversión */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: 0.3s;
}
.whatsapp-float:hover { 
    transform: scale(1.1) rotate(10deg); 
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* --- 9. Animaciones Scroll --- */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: 1s all ease;
}
.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; padding: 2rem; }
    .nav-container { flex-direction: column; gap: 1rem; }
}