/* ========================================================
   1. Variables globales para los colores de neón 
   ======================================================== */
:root {
    --fondo-oscuro: #0a0a0f;
    --tarjeta-fondo: #12121a;
    --neon-cian: #00f2fe;
    --neon-morado: #4facfe;
    --texto-principal: #ffffff;
    --texto-secundario: #a0a0b5;
}

/* ========================================================
   2. Configuración general del cuerpo 
   ======================================================== */
body {
    background-color: var(--fondo-oscuro);
    color: var(--texto-principal);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================================================
   3. Encabezado Futurista 
   ======================================================== */
header {
    background: linear-gradient(135deg, #2e0854, #001f3f);
    border: 1px solid var(--neon-morado);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    color: var(--neon-cian);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

header p {
    color: var(--texto-secundario);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* ========================================================
   4. Contenedor de servicios 
   ======================================================== */
main {
    width: 100%;
    max-width: 600px;
}

main h2 {
    color: var(--neon-morado);
    text-shadow: 0 0 8px rgba(79, 172, 254, 0.4);
    margin-bottom: 20px;
}

/* ========================================================
   5. El efecto Glow en las tarjetas 
   ======================================================== */
.tarjeta {
    background-color: var(--tarjeta-fondo);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.1), inset 0 0 10px rgba(0, 242, 254, 0.05);
    transition: all 0.3s ease;
}

.tarjeta h3 {
    margin: 0 0 10px 0;
    color: var(--neon-cian);
}

.tarjeta p {
    margin: 0;
    color: var(--texto-secundario);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Interactividad al tocar o pasar el cursor */
.tarjeta:hover {
    border-color: var(--neon-cian);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4), inset 0 0 15px rgba(79, 172, 254, 0.2);
    transform: translateY(-2px);
}

/* ========================================================
   6. Estilos del Buscador de Barrios (Cyberpunk) 
   ======================================================== */
.contenedor-buscador {
    background-color: var(--tarjeta-fondo);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.1);
    text-align: center;
}

.contenedor-buscador h2 {
    color: var(--neon-morado);
    text-shadow: 0 0 8px rgba(79, 172, 254, 0.4);
    margin-top: 0;
}

.contenedor-buscador p {
    color: var(--texto-secundario);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* La caja de texto donde el usuario escribe */
#buscador-barrios {
    width: 100%;
    max-width: 400px;
    background-color: var(--fondo-oscuro);
    border: 2px solid rgba(0, 242, 254, 0.3);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    color: var(--texto-principal);
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-align: center;
}

/* Efecto cuando el usuario hace clic para escribir */
#buscador-barrios:focus {
    border-color: var(--neon-cian);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Espacio para las respuestas de JavaScript */
#resultado-busqueda {
    margin-top: 20px;
    min-height: 50px;
}

/* Texto del precio en neón brillante */
.precio-neon {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--neon-cian);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
    margin: 10px 0;
}

/* Mensaje cuando el barrio no está en la lista */
.error-busqueda {
    color: #ff4a4a;
    text-shadow: 0 0 5px rgba(255, 74, 74, 0.4);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Botón de WhatsApp exclusivo que aparece dinámicamente */
.btn-whatsapp-dinamico {
    display: inline-block;
    background-color: transparent;
    color: #25d366;
    padding: 12px 20px;
    border: 2px solid #25d366;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.btn-whatsapp-dinamico:hover {
    background-color: #25d366;
    color: #000000;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

/* ========================================================
   7. Botón de WhatsApp Fijo al Final 
   ======================================================== */
.btn-whatsapp {
    display: block;
    background-color: transparent;
    color: #25d366;
    text-align: center;
    padding: 15px;
    border: 2px solid #25d366;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #25d366;
    color: #000000;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
}

