/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    --primary: #0056b3;
    --primary-dark: #004494;
    --accent: #ffc107; /* Dorado para VIP */
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 12px;
}

* {
    box-sizing: border-box; /* Crucial para que el padding no rompa el ancho en móvil */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER Y BUSCADOR (RESPONSIVE)
   ========================================= */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    border-bottom: 5px solid var(--accent);
}

.logo {
    font-size: clamp(2rem, 8vw, 3.5rem); /* Tamaño fluido según pantalla */
    margin: 0;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.logo span { color: var(--accent); }

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 35px;
    padding: 0 10px;
}

/* Contenedor elástico del buscador */
.buscador-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#buscador {
    width: 100%;
    padding: 16px 25px;
    font-size: 16px; /* Evita zoom automático en iPhone */
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    outline: none;
    transition: transform 0.2s;
}

#buscador:focus {
    transform: scale(1.02);
}

/* =========================================
   3. LISTA DE RESULTADOS (DROPDOWN)
   ========================================= */
#resultados {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    overflow: hidden;
    text-align: left;
}

.resultado-item {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.resultado-item:last-child { border-bottom: none; }

.resultado-item:hover { background: #f0f7ff; }

/* Estilo para Clientes VIP ($500) */
.vip-premium {
    background-color: #fffef2 !important;
    border-left: 6px solid var(--accent);
}

.badge-vip {
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* =========================================
   4. SECCIÓN DE CONTENIDO E INFERIOR
   ========================================= */
.content-area {
    margin-top: -30px;
    padding-bottom: 50px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.populares {
    margin-top: 25px;
    font-size: 0.9rem;
}

.populares a {
    color: var(--white);
    margin: 0 8px;
    text-decoration: underline;
    opacity: 0.8;
}

/* =========================================
   5. BOTÓN FLOTANTE WHATSAPP (PARA LANDINGS)
   ========================================= */
.btn-whatsapp-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    font-size: 0.9rem;
}

.btn-whatsapp-flotante img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* =========================================
   6. MEDIA QUERIES (AJUSTES FINALES)
   ========================================= */
@media (max-width: 480px) {
    .main-header {
        padding: 40px 0;
    }
    
    .feature-card {
        padding: 20px;
    }

    #buscador {
        padding: 14px 20px;
    }
}