/* ==========================================================================
   Variables y Configuración Global
   ========================================================================== */
:root {
    --primary-color: #89F1FF; /* Azul Celeste Pastel */
    --bg-dark: #000000;      /* Negro */
    --bg-surface: #0a0e14;   /* Azul/Negro Profundo */
    --card-bg: #111620;      /* Fondo Tarjetas */
    --text-light: #FFFFFF;   /* Blanco */
    --text-muted: #a0aec0;   /* Gris Claro */
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   Navegación
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(137, 241, 255, 0.1);
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

.brand-logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Fondo Animado Tecnológico para el Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background-color: #0b0f19;
    padding: 140px 0 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Asegurar alineación del contenido del Hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Margen adecuado para el título del Hero */
.hero-title {
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.25;
}

.hero-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

/* Capa contenedora detrás del contenido */
.tech-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    filter: blur(80px); /* Difumina las formas para un efecto fluído */
    opacity: 0.5;
}

#tech-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permite hacer clic en los botones por encima */
    z-index: 1;
}

/* Formas de luz en movimiento */
.blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: #00b4d8; /* Cyan corporativo */
    top: -10%;
    left: 20%;
    animation: moveBlob1 12s infinite alternate ease-in-out;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #0077b6; /* Azul profundo secundario */
    bottom: -20%;
    right: 15%;
    animation: moveBlob2 15s infinite alternate ease-in-out;
}

/* Animaciones fluidas de desplazamiento */
@keyframes moveBlob1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(60px, 80px) scale(1.2);
    }
}

@keyframes moveBlob2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-80px, -50px) scale(1.15);
    }
}

/* Asegurar que el contenido del hero esté por encima del fondo animado */
.hero-content {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Secciones y Encabezados
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* ==========================================================================
   Sección Nosotros
   ========================================================================== */
.about {
    padding: 100px 0;
    background-color: var(--bg-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   Sección Servicios
   ========================================================================== */
.services {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 6px;
    border-top: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(137, 241, 255, 0.1);
}

.service-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Sección Contacto y Formulario
   ========================================================================== */
.contact {
    padding: 100px 0;
    background-color: var(--bg-surface);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;

}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==========================================================================
   Estilos del Footer Completo
   ========================================================================== */
.footer {
    background-color: #0b0f19; /* Fondo oscuro y elegante */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 70px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-desc {
    line-height: 1.6;
    max-width: 320px;
}

.footer-heading {
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-contact span {
    color: #FFFFFF;
    font-weight: 600;
}

/* Barra inferior de Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    background-color: #070a10;
    text-align: center;
}

.footer-bottom-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Adaptación para pantallas móviles */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none; /* Se puede agregar menú hamburguesa con JS */
    }
    
    .hero-cta {
        flex-direction: column;
    }
}
/* ==========================================================================
   Secciones Claras con Elevación Azul Neon y Formulario Estilizado
   ========================================================================== */

.section-light {
    background-color: #f8fafc;
    color: #0f172a;
    padding: 80px 0;
}

.section-light .section-header h2 {
    color: #0f172a;
}

.section-light .section-header .divider {
    background-color: #00b4d8;
}

/* --- TARJETAS CON ELEVACIÓN Y GLOW AZUL CYAN --- */
.section-light .about-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(0, 180, 216, 0.15); /* Borde sutil azul */
    box-shadow: 0 8px 20px -4px rgba(0, 180, 216, 0.12), 
                0 4px 12px rgba(15, 23, 42, 0.03); /* Sombra con resplandor azul */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

/* Efecto al pasar el mouse por las tarjetas */
.section-light .about-card:hover {
    transform: translateY(-6px); /* Elevación */
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: 0 16px 32px -6px rgba(0, 180, 216, 0.25), 
                0 8px 16px rgba(15, 23, 42, 0.05); /* Resplandor azul más intenso */
}

.section-light .about-card h3 {
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-light .about-card p {
    color: #475569;
    line-height: 1.6;
}

/* ==========================================================================
   Sección de Contacto: Cristal Moderno en Fondo Claro Corporativo
   ========================================================================== */

.contact-section-light {
    position: relative;
    padding: 90px 0;
    background-color: #f8fafc; /* Mantiene la coherencia del fondo claro */
    overflow: hidden;
}

.contact-section-light .section-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Destellos de luz ambiental muy suaves en el fondo */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

.glow-cyan {
    width: 320px;
    height: 320px;
    background: rgba(0, 180, 216, 0.18); /* Cyan corporativo suave */
    top: 20%;
    right: 10%;
}

.glow-soft {
    width: 280px;
    height: 280px;
    background: rgba(14, 165, 233, 0.12);
    bottom: 10%;
    left: 10%;
}

.contact-section-light .container {
    position: relative;
    z-index: 2;
}

/* Grid de 2 Columnas */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* Columna de Información Corporativa */
.contact-info-card {
    padding: 30px;
}

.contact-info-card h3 {
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info-card > p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(0, 180, 216, 0.1);
    color: #00b4d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.info-item span {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: #0f172a;
    font-weight: 600;
    margin: 0;
}

/* --- FORMULARIO DE CRISTAL ESMERILADO CLARO (FROST GLASS) --- */
.crystal-form {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px -5px rgba(0, 180, 216, 0.12),
                0 5px 15px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.crystal-form:hover {
    border-color: rgba(0, 180, 216, 0.45);
    box-shadow: 0 20px 40px -5px rgba(0, 180, 216, 0.2),
                0 8px 20px rgba(15, 23, 42, 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* Campos e Insumos del Formulario */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.floating-field input,
.floating-field textarea,
.crystal-form select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Floating Labels en modo claro */
.floating-field label {
    position: absolute;
    top: 14px;
    left: 16px;
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    transition: 0.25s ease all;
}

.floating-field input:focus ~ label,
.floating-field input:not(:placeholder-shown) ~ label,
.floating-field textarea:focus ~ label,
.floating-field textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00b4d8;
    background: #ffffff;
    padding: 0 6px;
    border-radius: 4px;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Enfoque dinámico al hacer clic en los campos */
.floating-field input:focus,
.floating-field textarea:focus,
.crystal-form select:focus {
    background: #ffffff;
    border-color: #00b4d8;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

/* Botón Nimbus Cyan Tecnológico */
.btn-nimbus {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
    transition: all 0.3s ease;
}

.btn-nimbus:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 180, 216, 0.45);
}
/* Corrección del color de título y subtítulo en la sección clara */
.contact-section-light .section-header h2 {
    color: #0f172a; /* Azul muy oscuro / casi negro para máximo contraste */
    font-weight: 800;
}

.contact-section-light .section-subtitle {
    color: #475569; /* Gris oscuro legible */
    font-size: 1.05rem;
    margin-top: -8px;
    margin-bottom: 15px;
}