/* Variables de Estilo Corporativo y Minimalista */
:root {
    --primary: #0a192f;
    --primary-light: #112240;
    --accent: #25D366; 
    --accent-hover: #128C7E;
    --text-white: #ffffff;
    --text-gray: #cbd5e1;
    --border-alpha: rgba(255, 255, 255, 0.1);
}

/* Reset Global */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-white); background: var(--primary); line-height: 1.6; overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--accent); }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 20px; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* Tipografías */
h1, h2, h3 { font-family: 'Teko', sans-serif; font-weight: 500; letter-spacing: 1px; line-height: 1.1; }
h1 { font-size: 3.5rem; margin: 15px 0; }
h2 { font-size: 2.5rem; margin-bottom: 10px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--accent); }
.subtitle { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 40px; }

/* Secciones con Imagen de Fondo de Alta Calidad */
.bg-section {
    padding: 90px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Suave efecto parallax nativo */
}

/* Capas Superpuestas (Overlays Oscuros para legibilidad de textos) */
.overlay { position: absolute; inset: 0; background: rgba(10, 25, 47, 0.85); z-index: 1; }
.overlay-blue { position: absolute; inset: 0; background: rgba(17, 34, 64, 0.90); z-index: 1; }

/* Grid Estructurados */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.align-center { align-items: center; }

/* Botones con Microinteracciones */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; border: none; font-family: 'Inter', sans-serif;}
.btn-whatsapp { background: var(--accent); color: white; }
.btn-whatsapp:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2); }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.btn-outline { border: 2px solid var(--accent); color: var(--text-white); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #000; }

/* Cabecera Fija */
.header { background: var(--primary); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; filter: brightness(0) invert(1); }
.badge { background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.2); }

/* ANIMACIÓN MARQUESINA: PARTNERS */
.partners { background: #060f1e; padding: 20px 0; border-bottom: 1px solid var(--border-alpha); overflow: hidden; }
.marquee-partners-container { display: flex; overflow: hidden; width: 100%; }
.marquee-partners-track { display: flex; width: max-content; gap: 60px; animation: scrolling-partners 25s linear infinite; align-items: center; }
.marquee-partners-track img { height: 35px; opacity: 0.6; filter: grayscale(100%) brightness(200%); transition: 0.1s; }
.marquee-partners-track img:hover { filter: grayscale(0%) brightness(100%); opacity: 1; }

@keyframes scrolling-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Tarjetas Transparentes Avanzadas (Glassmorphism) */
.glass-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-alpha); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 30px; border-radius: 12px; transition: 0.3s; }
.glass-card:hover { transform: translateY(-5px); border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.glass-card.dark { background: rgba(0, 0, 0, 0.4); }

/* Listas de Verificación */
.check-list { list-style: none; margin-bottom: 20px; }
.check-list li { margin-bottom: 15px; position: relative; padding-left: 30px; color: var(--text-gray); }
.check-list li::before { content: '✓'; color: var(--accent); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; }

/* ANIMACIÓN MARQUESINA: 20 RESEÑAS EN DOS FILAS CONTRAPUESTAS */
.marquee-reviews-container { display: flex; overflow: hidden; width: 100%; padding: 15px 0; mask-image: linear-gradient(to right, transparent, #000000 90%, #000000 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000000 1%, #000 100%, transparent); }
.marquee-reviews-track { display: flex; width: max-content; gap: 20px; }
.review-card { width: 310px; text-align: left; flex-shrink: 0; }
.review-card p { font-size: 0.95rem; font-style: italic; color: var(--text-gray); }
.review-card h4 { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--accent); margin: 15px 0 2px; }
.review-card span { font-size: 0.8rem; color: rgb(255, 255, 255); }

/* Controladores de dirección de marquesinas */
.to-left .marquee-reviews-track { animation: scroll-left 35s linear infinite; }
.to-right .marquee-reviews-track { animation: scroll-right 35s linear infinite; }

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* Pausar animación al pasar el cursor sobre las reseñas para legibilidad */
.marquee-reviews-container:hover .marquee-reviews-track { animation-play-state: paused; }

/* ESTILOS DEL ACORDEÓN DE PREGUNTAS FRECUENTES (PARA ANIMACIÓN JS) */
.faq-accordion-js { display: flex; flex-direction: column; gap: 15px; }
.accordion-item { background: rgba(255,255,255,0.02); border: 1px solid var(--border-alpha); border-radius: 8px; overflow: hidden; transition: border-color 0.3s; }
.accordion-item.active { border-color: var(--accent); background: rgba(255,255,255,0.04); }

.accordion-header { width: 100%; background: transparent; border: none; padding: 20px; text-align: left; color: var(--text-white); font-weight: 600; font-size: 1.05rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Inter', sans-serif; }
.accordion-icon { color: var(--accent); font-size: 1.4rem; transition: transform 0.3s ease; display: inline-block; }

/* Altura inicial cero configurada para recibir animación suave en JS */
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 0 20px; }
.accordion-body p { color: var(--text-gray); pb: 20px; padding-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }

/* Footer */
.footer { background: #050d1a; padding: 60px 0 20px; font-size: 0.9rem; color: var(--text-gray); border-top: 1px solid var(--border-alpha); }
.footer h4 { color: var(--text-white); font-family: 'Inter', sans-serif; font-size: 1.2rem; margin-bottom: 20px; }
.footer p { margin-bottom: 10px; }
.logo img { height: 45px; filter: brightness(0) invert(1); }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type="email"] { padding: 12px; border-radius: 6px; border: 1px solid var(--border-alpha); background: rgba(255,255,255,0.05); color: white; }
.terms-label { font-size: 0.8rem; margin-top: 5px; cursor: pointer; }
.copyright { border-top: 1px solid var(--border-alpha); margin-top: 40px; padding-top: 20px; }

/* Widget de Cotización Flotante Inteligente */
#float-soat-container { position: fixed; bottom: 20px; right: 20px; width: 270px; background: #0a192f; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.6); z-index: 999; border: 1px solid var(--border-alpha); overflow: hidden; }
.soat-header { background: var(--accent); color: #000000; padding: 14px; font-weight: 700; text-align: center; font-size: 0.95rem; }
.soat-body { padding: 20px; }
#placa-float { width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 6px; border: 1px solid var(--border-alpha); background: rgba(255,255,255,0.08); color: white; text-align: center; font-size: 1.2rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
#placa-float:focus { border-color: var(--accent); outline: none; }

/* Responsive adaptativo */
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 25px; }
    h1 { font-size: 2.6rem; }
    h2 { font-size: 2.1rem; }
    .header-btn { display: none; }
    .bg-section { background-attachment: scroll; padding: 60px 0; } /* Optimización de rendimiento móvil */
}


#float-soat-container { position: fixed; bottom: 20px; right: 20px; background: rgb(1, 70, 55); border: 1px solid rgb(1, 70, 55); padding: 15px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); width: 280px; }
.soat-header { display: flex; justify-content: space-between; align-items: center; font-weight: bold; margin-bottom: 10px; }
#close-float-btn { background: none; border: none; cursor: pointer; font-size: 20px; }
.soat-body input, .soat-body select { width: 100%; margin: 5px 0 10px 0; padding: 8px; box-sizing: border-box; }
.btn-whatsapp { background-color: #25d366; color: white; border: none; padding: 10px; cursor: pointer; border-radius: 5px; }