/* ==========================================================================
   MALETA TRANQUILA - DISEÑO PREMIUM 2026
   ========================================================================== */

/* --- 1. VARIABLES GLOBALES Y TOKENS --- */
:root {
    /* Paleta de Colores Institucional (TravelKit) */
    --azul-corp: #0A0A0A;      /* Reemplazado por Negro para fondos fuertes (Footer/Hero) */
    --azul-prof: #DC2626;      /* Reemplazado por Rojo principal para acentos */
    --rojo-accion: #DC2626;    /* Rojo Principal TravelKit */
    --rojo-hover: #B91C1C;     /* Rojo Hover TravelKit */
    --gris-suave: #F7F7F7;     /* Fondos grises claros TravelKit */
    --verde-exito: #22C55E;    /* Verde WhatsApp TravelKit */
    
    /* Neutros */
    --blanco: #FFFFFF;
    --texto-principal: #0A0A0A;
    --texto-secundario: #526570; /* Gris azulado textos secundarios */
    --borde: #E5E7EB;
    
    /* Efectos y Sombras (Premium Feel) */
    --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.05);
    --sombra-media: 0 10px 30px rgba(10, 36, 99, 0.08);
    --sombra-fuerte: 0 20px 40px rgba(0, 0, 0, 0.12);
    --sombra-cta: 0 8px 16px rgba(251, 54, 64, 0.25);
    
    /* Radios y Espaciados */
    --radio-sm: 8px;
    --radio-md: 16px;
    --radio-lg: 24px;
    
    /* Transiciones */
    --trans-rapida: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-suave: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. RESET Y BASES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--texto-principal);
    line-height: 1.6;
    background-color: var(--blanco);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    line-height: 1.2;
    color: var(--azul-corp);
    font-weight: 800;
}

p {
    color: var(--texto-secundario);
}

a {
    text-decoration: none;
    color: var(--azul-prof);
    transition: color var(--trans-rapida);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 3. UTILIDADES Y LAYOUT --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }

.badge {
    display: inline-block;
    background: rgba(62, 146, 204, 0.15);
    color: var(--azul-prof);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* --- 4. COMPONENTES GLOBALES --- */
/* Botón CTA de Alta Conversión */
.btn-cta {
    background: linear-gradient(135deg, var(--rojo-accion) 0%, var(--rojo-hover) 100%);
    color: var(--blanco) !important;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radio-sm);
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--sombra-cta);
    transition: all var(--trans-rapida);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(251, 54, 64, 0.35);
}

.btn-cta:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--blanco) !important;
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: var(--radio-sm);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--trans-rapida);
    display: inline-flex;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Tarjetas Elevadas (Premium) */
.card-elevated {
    background: var(--blanco);
    border-radius: var(--radio-md);
    padding: 40px;
    box-shadow: var(--sombra-suave);
    transition: all var(--trans-suave);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-elevated:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-media);
    border-color: rgba(62, 146, 204, 0.1);
}

/* --- 5. ESTRUCTURA HOME PAGE --- */
/* Navegación Glassmorphism */
.nav-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    transition: background var(--trans-rapida);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--azul-corp);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--azul-prof); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--texto-principal);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--azul-prof);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--azul-prof);
    transition: width var(--trans-rapida);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section (Home) */
.hero-home {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--azul-corp) 0%, #1F2937 100%);
    color: var(--blanco);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Fondo decorativo orgánico */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.shape-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(62,146,204,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.shape-2 {
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251,54,64,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-home .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--blanco);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
}

.glass-card-floating {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radio-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.floating-1 { bottom: 20px; left: -30px; }
.floating-2 { top: 30px; right: -20px; animation-delay: 2s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Secciones Generales */
.bg-light { background-color: var(--gris-suave); }

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(62, 146, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--azul-prof);
    margin-bottom: 24px;
    transition: transform var(--trans-rapida);
}
.card-elevated:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background: var(--azul-prof);
    color: var(--blanco);
}

/* Testimonios */
.testimonial-card {
    background: var(--blanco);
    padding: 40px;
    border-radius: var(--radio-md);
    box-shadow: var(--sombra-media);
    position: relative;
    border-top: 4px solid var(--azul-prof);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(62, 146, 204, 0.2);
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: serif;
}

/* Accordion FAQ */
.faq-item {
    background: var(--blanco);
    border-radius: var(--radio-sm);
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--borde);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--azul-corp);
    transition: background var(--trans-rapida);
}

.faq-question:hover { background: #fdfdfd; }

.faq-answer {
    padding: 0 24px 24px;
    color: var(--texto-secundario);
    display: none; /* simple control via js later or details tag */
}

/* Footer */
.main-footer {
    background: var(--azul-corp);
    color: var(--blanco);
    padding: 80px 0 40px;
}
.main-footer p {
    color: var(--blanco);
    opacity: 0.9;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
}
.footer-grid h4 {
    color: var(--blanco);
    margin-bottom: 24px;
    font-size: 1.1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--blanco);
    transition: color var(--trans-rapida);
    opacity: 0.9;
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* --- 6. ESTRUCTURA LANDING PAGE (Conversión Pura) --- */
.landing-nav {
    padding: 20px 0;
    background: var(--blanco);
    text-align: center;
    border-bottom: 1px solid var(--borde);
}
.landing-nav .logo { justify-content: center; }

.hero-landing {
    padding: 80px 0 60px;
    background: linear-gradient(to bottom, #7F1D1D 0%, #0A0A0A 100%);
    color: var(--blanco);
    position: relative;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr 480px; /* Formulario ancho */
    gap: 60px;
    align-items: center;
}

.landing-content h1 {
    font-size: 3.5rem;
    color: var(--blanco);
    margin-bottom: 20px;
    line-height: 1.1;
}

.landing-benefits {
    list-style: none;
    margin-top: 40px;
}
.landing-benefits li {
    font-size: 1.15rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.landing-benefits li::before {
    content: '✓';
    background: var(--verde-exito);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Motor de Cotización (Multi-Step Form Formato App) */
.form-container-card {
    background: var(--blanco);
    border-radius: var(--radio-lg);
    padding: 40px;
    box-shadow: var(--sombra-fuerte);
    color: var(--texto-principal);
    position: relative;
    z-index: 10;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.progress-track {
    height: 6px;
    background: var(--borde);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: var(--azul-prof);
    width: 25%;
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}

.step-card { display: none; }
.step-card.active { display: block; animation: slideInRight 0.4s ease-out forwards; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.input-group { margin-bottom: 24px; text-align: left; }
.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--texto-principal);
    font-size: 0.95rem;
}
.input-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--borde);
    border-radius: var(--radio-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--trans-rapida);
    background: #fafafa;
}
.input-control:focus {
    border-color: var(--azul-prof);
    background: var(--blanco);
    outline: none;
    box-shadow: 0 0 0 4px rgba(62, 146, 204, 0.15);
}

.btn-form-next {
    width: 100%;
    padding: 18px;
    background: var(--azul-corp);
    color: var(--blanco);
    border: none;
    border-radius: var(--radio-sm);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background var(--trans-rapida);
}
.btn-form-next:hover { background: #1F2937; }

/* Trust Strip */
.trust-strip {
    background: var(--blanco);
    padding: 40px 0;
    border-bottom: 1px solid var(--borde);
}
.trust-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    align-items: center;
}
.trust-logos span { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.5px; }

/* Sticky CTA Móvil */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--blanco);
    padding: 16px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none;
    border-top: 1px solid var(--borde);
}
.sticky-mobile-cta .btn-cta {
    width: 100%;
}

/* --- 7. MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .landing-grid {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-landing h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Ocultar menú en móvil para simpleza o usar hamburguesa */
    
    .hero-home .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content p { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    
    .landing-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .landing-benefits li { justify-content: center; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .sticky-mobile-cta { display: block; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-landing h1 { font-size: 2.2rem; }
    .section-padding { padding: 60px 0; }
    .form-container-card { padding: 30px 20px; }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px; /* Evita que choque con el Sticky CTA */
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .whatsapp-float svg { width: 30px; height: 30px; }
}
