:root {
    --brand-blue: #0a2540;
    --accent-blue: #0070f3;
    --wa-green: #25d366;
    --bg-light: #f8fafc;
    --text-main: #334155;
}

/* 1. Configuración Global */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; } /* Desplazamiento suave al navegar */

body { font-family: 'Roboto', sans-serif; color: var(--text-main); line-height: 1.6; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 15px; }

/* 2. Navegación y Header */
header { 
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo img { 
    height: 80px; /* Tu ajuste actual */
    width: auto; 
    display: block;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}

.nav-links a { text-decoration: none; /*color: var(--brand-blue); */font-weight: 700; }

.btn-nav { 
    /*background: var(--brand-blue); 
    color: #fff !important; */
    padding: 6px 12px; 
    border-radius: 5px; 
    font-size: 0.9rem;
}

/* 3. Secciones Principales (Hero y Títulos) */
.hero { 
    background: linear-gradient(rgba(10,37,64,0.9), rgba(10,37,64,0.9)), 
                url('/images/fondo.png') no-repeat center/cover; 
    color: #fff; 
    padding: 50px 0; 
}

.hero h1 { font-size: 2.8rem; margin-bottom: 20px; }
.hero h1 span { color: var(--accent-blue); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; }

.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-main { padding: 12px 25px; text-decoration: none; border-radius: 5px; font-weight: bold; }
.btn-wa { padding: 12px 25px; text-decoration: none; border-radius: 5px; font-weight: bold; }

.btn-green { background: var(--wa-green); color: #ffffff; }
.btn-blue { background: var(--accent-blue); color: #ffffff; }

.section-title { text-align: center; margin: 15px 0; font-size: 2rem; color: var(--brand-blue); }

/* 4. Cards de Beneficios y Productos */
.beneficios { background: var(--bg-light); padding-bottom: 30px; }
.beneficios-grid, .productos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.b-card { background: #fff; padding: 30px; text-align: center; border-radius: 10px; border: 1px solid #e2e8f0; }
.b-card i { font-size: 2.5rem; color: var(--accent-blue); margin-bottom: 15px; }

.p-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; text-align: center; }
.p-card img {
    width: 100%;
    height: 180px;
    object-fit: contain; 
    padding: 15px 15px 5px;
    background-color: #fff;
}
.p-card h3 { padding: 0 0 5px; }
.p-card p { padding: 0 15px 15px; font-size: 0.9rem; }

/* 5. Formulario (Con tu ajuste del 50%) */
.form-container { text-align: center; background: var(--bg-light); padding: 40px; border-radius: 10px; max-width: 700px; margin: 0 auto 50px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
input, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #cbd5e1; border-radius: 5px; font-size: 1rem; }
.btn-submit { background: var(--brand-blue); color: #fff; width: 50%; padding: 15px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }

/* 6. Utilidades y Footer */
.wa-float { position: fixed; bottom: 20px; right: 20px; background: var(--wa-green); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000; text-decoration: none; }

footer { background: var(--brand-blue); color: #fff; text-align: center; padding: 15px; margin-top: 30px; }

/* Margen para navegación con ID */
section[id] {
    scroll-margin-top: 110px; /* Ajustado para tu logo de 80px */
}

/* Contenedor del logo y nombre */
.logo-link {
    display: flex;
    align-items: center; /* Centra verticalmente el texto con el logo */
    text-decoration: none; /* Quita el subrayado del link */
    gap: 15px; /* Espacio entre el logo y el nombre */
}

/* Estilo del nombre de la marca */
.brand-name {
    font-size: 1.8rem; /* Tamaño del texto */
    font-weight: 700; /* Negrita */
    color: var(--brand-blue); /* Usa tu color azul corporativo */
    letter-spacing: -1px; /* Toque moderno: letras un poco más juntas */
    font-family: 'Roboto', sans-serif;
}

/* Aseguramos que el logo mantenga su altura */
.logo img {
    height: 60px; /* Puedes subirlo a 80px si lo prefieres según tu versión anterior */
    width: auto;
    display: block;
}

/* 7. Responsive */
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .btn-submit { width: 100%; } /* Vuelve al 100% en celulares para mejor UX */
    .brand-name {
        font-size: 1.4rem;
    }
    .logo img {
        height: 50px;
    }
}