/* =========================================
   VARIABLES DE COLOR Y DISEÑO
========================================= */
:root {
    --primary-color: #0A2540;     /* Azul oscuro muy elegante */
    --accent-color: #00D4FF;      /* Celeste vibrante (estilo óptico/luz) */
    --text-main: #333333;         /* Gris oscuro para textos largos (mejor lectura) */
    --text-muted: #666666;        /* Gris claro para subtítulos */
    --bg-color: #F7F9FC;          /* Fondo gris azulado muy sutil */
    --surface-color: #FFFFFF;     /* Color de las tarjetas */
    --shadow-soft: 0 10px 30px rgba(10, 37, 64, 0.08); /* Sombra elegante */
    --transition: all 0.3s ease;  /* Animación suave estándar */
}

/* =========================================
   RESET BÁSICO
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; /* Nueva tipografía */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
}

/* =========================================
   BARRA DE NAVEGACIÓN (Efecto Cristal)
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95); /* Ligeramente transparente */
    backdrop-filter: blur(10px); /* Desenfoque moderno */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo { height: 45px; }

.brand-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

/* Efecto de línea debajo del enlace al pasar el ratón */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* =========================================
   SECCIÓN HERO (Banner Principal)
========================================= */
.hero {
    min-height: 85vh; /* Más alto para verse majestuoso */
    /* Un degradado oscuro sobre la imagen para que el texto resalte */
    background: linear-gradient(to right, rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.4)), url('../img/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alineado a la izquierda */
    padding: 0 10%;
    color: #fff;
    margin-top: 70px;
}

.small-hero {
    min-height: 40vh;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to right, rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.8));
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease; /* Animación de entrada */
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   BOTONES PREMIUM
========================================= */
.btn-cta {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px; /* Bordes redondeados */
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-cta:hover {
    transform: translateY(-3px); /* Se eleva un poco */
    box-shadow: 0 15px 25px rgba(0, 212, 255, 0.4);
    background: #fff;
}

/* =========================================
   DISEÑO DE TARJETAS (Cards)
========================================= */
.section {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--surface-color);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px); /* Efecto flotante al pasar el ratón */
    border-bottom: 4px solid var(--accent-color);
}

.card-icon, .product-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* =========================================
   CONTACTO Y FORMULARIOS
========================================= */
.contact-info {
    text-align: left;
}

.info-item { margin-bottom: 25px; }

.info-item p { margin-bottom: 5px; }

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #E0E5EC;
    border-radius: 8px;
    background-color: #F9FAFC;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background-color: #FFF;
}

.btn-full { width: 100%; }

/* =========================================
   MAPA Y FOOTER
========================================= */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* =========================================
   ADAPTACIÓN PARA MÓVILES (Responsive)
========================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: none;
    gap: 5px;
}

.bar {
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: -100%; /* Menú oculto fuera de la pantalla */
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 30px 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-links.active { left: 0; /* Aparece deslizándose */ }
    .menu-toggle { display: flex; }
}

/* =========================================
   ANIMACIONES CLAVE
========================================= */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}