/* ==========================================================================
   1. VARIABLES DE ENTORNO (Guía de Estilo Oficial)
   ========================================================================== */
:root {
    /* Colores Base Reales */
    --primary-blue: #292A72;       /* Azul Marino Institucional */
    --silver-platinum: #E2E8F0;    /* Plata Platino / Slate Claro */
    
    /* Variaciones de Contraste y Soporte */
    --dark-blue: #1E1F52;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #475569;
    
    /*Efecto Metálico (Gradients) */
    --metallic-silver: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #94A3B8 100%);
    --metallic-text: linear-gradient(135deg, #FFFFFF, #CBD5E1, #94A3B8);
    --blue-gradient: linear-gradient(180deg, #292A72 0%, #1E1F52 100%);
    
    /* Parámetros del Sistema */
    --font-system: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(41, 42, 114, 0.1), 0 2px 4px -1px rgba(41, 42, 114, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(41, 42, 114, 0.15);
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* ==========================================================================
   2. RESET & ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-system);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   3. COMPONENTES GLOBALES (Botones y Tipografía)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px; /* Estilo píldora como en la captura */
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--silver-platinum);
}

.btn-secondary:hover {
    background-color: rgba(226, 232, 240, 0.1);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sección Tags e Identificadores */
.section-tag, .hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.hero-tag { color: var(--silver-platinum); }
.section-tag { color: var(--primary-blue); }

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* ==========================================================================
   4. HEADER & NAV (Navegación Fija)
   ========================================================================== */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid rgba(41, 42, 114, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Tratamiento de Logotipo */
.logo {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    line-height: 1;
}
.logo-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}
.logo-brand {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.main-nav a:hover {
    color: var(--text-muted);
}

/* ==========================================================================
   5. SECCIÓN HERO / PORTADA
   ========================================================================== */
.hero-section {
    background: var(--blue-gradient);
    color: var(--white);
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

/* Grid de métricas */
.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--metallic-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--silver-platinum);
    text-transform: uppercase;
}

/* Contenedor Visual Cromado Derecha */
.hero-visual {
    display: flex;
    justify-content: center;
}

.product-slider {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--metallic-silver);
    width: 24px;
    border-radius: 4px;
}

/* ==========================================================================
   6. SECCIÓN MARCAS / PRODUCTOS
   ========================================================================== */
.brands-section {
    padding: 6rem 1.5rem;
    background-color: var(--white);
    text-align: center;
}

.brands-section .section-subtitle {
    margin: 0 auto 4rem auto;
}

.brands-grid {
    max-width: 140.75rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Tarjetas de Marcas */
.brand-card {
    background-color: var(--light-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(41, 42, 114, 0.05);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
}

/* Logotipo */
.brand-logo-container {
    width: 100%;
    height: 11rem;          
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Galería interna de miniaturas */
.brand-thumbnails {
    display: flex;
    gap: 2.5rem;
    background-color: var(--white);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.brand-thumbnails img {
    width: 11rem;
    height: 9.5rem;
    object-fit: contain;
    padding: 0.35rem;
    border-radius: 8px;
    background-color: #f1f5f9;
    border: 1px solid rgba(41, 42, 114, 0.05);
}

.brand-tagline {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}

.brand-name {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.brand-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.brand-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.brand-link:hover {
    letter-spacing: 1px;
}

/* ==========================================================================
   7. SECCIÓN PROPUESTA DE VALOR / POR QUÉ DEC
   ========================================================================== */
.features-section {
    padding: 6rem 1.5rem;
    background-color: var(--light-bg);
}

.features-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Items con fondo cromado sutil */
.feature-item {
    background-color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-blue); /* Acento institucional */
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--metallic-silver); /* Degradado plata pulida */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.feature-item-title {
    font-size: 1.15rem;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.feature-item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   8. SECCIÓN COTIZACIÓN & FORMULARIO
   ========================================================================== */
.quote-section {
    padding: 6rem 1.5rem;
    background-color: var(--white);
}

.quote-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quote-bullets {
    list-style: none;
    margin-top: 2rem;
}

.quote-bullets li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Bullet personalizado usando el azul marino */
.quote-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 900;
}

/* Tarjeta del Formulario */
.quote-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(41, 42, 114, 0.08);
}

.card-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin: 0.25rem 0 0.5rem 0;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Elementos interactivos del Formulario */
.interactive-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.interactive-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.interactive-form input,
.interactive-form select {
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: var(--font-system);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    background-color: var(--light-bg);
}

/* Focus corporativo nítido */
.interactive-form input:focus,
.interactive-form select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(41, 42, 114, 0.15);
}

.btn-submit {
    grid-column: span 2;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--dark-blue);
}

.form-disclaimer {
    grid-column: span 2;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* ==========================================================================
   9. FOOTER (Cierre Institucional)
   ========================================================================== */
.main-footer {
    background-color: var(--primary-blue);
    color: var(--silver-platinum);
    padding: 3rem 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    text-align: center;
}

.main-footer .logo-brand {
    color: var(--white);
}

.footer-logo-image {
    max-width: 100%;
    margin-right: 1rem;
}

/* ==========================================================================
   10. MEDIA QUERIES (Adaptabilidad Móvil)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container,
    .features-layout,
    .quote-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-section { text-align: center; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .brands-grid { grid-template-columns: 1fr 1fr; }
    .hero-visual { order: -1; } /* Sube la imagen del producto arriba en móviles */
}

@media (max-width: 768px) {
    .brands-grid { grid-template-columns: 1fr; }
    .header-container { flex-direction: column; gap: 1rem; }
    .main-nav ul { gap: 1.5rem; }
    .interactive-form { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .btn-submit, .form-disclaimer { grid-column: span 1; }
    .hero-title { font-size: 2.5rem; }
    .footer-container { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* ==========================================================================\
   11. BOTÓN DE WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: 50px; /* Diseño tipo píldora */
    display: flex;
    align-items: center;
    gap: 8px; /* Espaciado entre el icono y el texto */
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999; /* Siempre visible por encima de sliders o mapas */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.05); /* Efecto sutil al pasar el mouse */
}

/* CONTROL DIRECTO DEL TAMAÑO DEL SVG */
.whatsapp-btn .whatsapp-icon {
    width: 24px;  /* Cambia este valor si lo quieres más chico o más grande */
    height: 24px;
    display: block;
}

/* Control del texto al lado del icono */
.whatsapp-btn .whatsapp-text {
    font-size: 0.95rem;
    color: #FFFFFF;
}

/* Adaptación para pantallas de celulares (Responsivo) */
@media (max-width: 480px) {
    .whatsapp-btn {
        padding: 12px;
        border-radius: 50%; /* Se vuelve círculo en móviles */
        bottom: 16px;
        right: 16px;
        width: 48px;  /* Tamaño fijo del círculo */
        height: 48px;
        justify-content: center;
    }
    .whatsapp-btn .whatsapp-text {
        display: none; /* Oculta el texto en móviles para no estorbar el UX */
    }
    .whatsapp-btn .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}