 :root {
            --primary: #2563eb;
            --primary-dark: #1e3a8a;
            --accent: #f59e0b;
            --urgent: #ef4444;
            --bg: #f8fafc;
            --text: #1e293b;
            --white: #ffffff;
            --whatsapp: #25d366;
            --star: #fbbf24;
            --open: #10b981;
        }

        body { font-family: 'Segoe UI', sans-serif; background-color: var(--bg); color: var(--text); margin: 0; line-height: 1.6; scroll-behavior: smooth; }
        
        /* HEADER */
        header {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            color: white; padding: 4rem 1rem; text-align: center;
            border-bottom: 5px solid var(--accent);
        }
        .logo { font-size: 3rem; font-weight: 800; }
        .logo span { color: #60a5fa; }

        /* BUSCADOR */
        .search-box { margin-top: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
        .search-box input {
            width: 100%; padding: 1.2rem; border-radius: 50px; border: none; font-size: 1.1rem;
            box-shadow: 0 10px 15px rgba(0,0,0,0.2); outline: none; box-sizing: border-box;
        }

        .container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
        .section-title { margin: 3rem 0 1.5rem; text-align: center; }

        /* GRID Y CARDS */
        .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
        .card {
            background: var(--white); padding: 1.5rem; border-radius: 15px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-top: 6px solid var(--primary);
            position: relative; transition: 0.3s;
        }
        .card:hover { transform: translateY(-5px); }
        .card.urgent { border-top-color: var(--urgent); }
        .hidden { display: none; }

        /* INDICADORES */
       

/* Nuevo estilo para la leyenda fuera de la imagen */
.status-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 8px; /* Espacio antes del nombre del negocio */
    text-transform: uppercase;
}

/* Colores según el estado */
.status-open {
    background-color: #dcfce7; /* Verde clarito */
    color: #166534; /* Verde oscuro */
}

.status-closed {
    background-color: #fee2e2; /* Rojo clarito */
    color: #991b1b; /* Rojo oscuro */
}

.status-unknown {
    background-color: #f1f5f9;
    color: #475569;
}
       
        .rating { color: var(--star); font-size: 1rem; margin: 5px 0; }
        .badge-urgent { background: var(--urgent); color: white; font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; position: absolute; top: 15px; right: 15px; font-weight: bold; }
        
        .btn { display: block; text-align: center; padding: 0.8rem; text-decoration: none; border-radius: 10px; margin-top: 1rem; font-weight: bold; cursor: pointer; border: none; width: 100%; }
        .btn-info { background: var(--primary); color: white; }

        /* MODALES */
        
/* Asegúrate de que el modal tenga un z-index muy alto */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; /* Para que esté por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Fondo oscuro */
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
}

@keyframes animarModal {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; color: #666; }

.price-list { 
    background: #f8fafc; 
    padding: 1.5rem; 
    border-radius: 12px; 
    margin: 1.5rem 0; 
}

.price-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 10px 0; 
    border-bottom: 1px solid #e2e8f0; 
}

.price-item:last-child { border-bottom: none; }

        /* BOTON VOLVER ARRIBA */
        .back-to-top {
            position: fixed; bottom: 25px; right: 25px; background: var(--primary);
            color: white; width: 50px; height: 50px; border-radius: 50%;
            display: none; align-items: center; justify-content: center;
            text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 99;
            font-size: 1.5rem; transition: 0.3s;
        }

        /* COMUNIDAD, FAQ Y GUIA */
        .community-area { background: white; margin-top: 4rem; padding: 4rem 0; border-radius: 40px 40px 0 0; text-align: center; }
        .trust-tag { background: #dbeafe; color: #1e40af; padding: 10px 25px; border-radius: 50px; display: inline-block; margin-bottom: 2rem; font-size: 0.9rem; }
        
        .faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 2rem; text-align: left; }
        .faq-item h4 { color: var(--primary); margin-bottom: 5px; }

        .report-box { background: #fdf2f2; padding: 2.5rem; border-radius: 20px; border: 2px dashed #f87171; margin-top: 3rem; }
        .steps { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; margin: 2rem 0; }
        .step-number { background: var(--primary); color: white; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; margin: 0 auto 10px; font-weight: bold; }

        /* STICKER */
        .sticker { width: 180px; height: 180px; background: white; border: 5px solid var(--primary); border-radius: 50%; margin: 2rem auto; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0,0,0,0.1);  }

            .sticker-section {
    text-align: center; /* Esto centra el <h3> y el contenido */
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el sticker horizontalmente si usas flex */
}

        .sticker-section h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-dark); /* O el color que estés usando */
}
        footer { background: var(--primary-dark); color: white; padding: 3rem 0; text-align: center; }
        .btn-wa { background: var(--whatsapp); color: white; padding: 1rem 2rem; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; }

        .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Esto evita que la imagen se estire */
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.card p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Corta el texto a 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ajuste para el contador de negocios */
.stats-counter {
    background: var(--white);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

/* FILTROS DE CATEGORÍA */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    color: var(--text);
}

.cat-btn:hover {
    background: #f1f5f9;
}

.cat-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Contenedor para mantener proporciones */
.card-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: #eee; /* Fondo gris mientras carga */
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el espacio sin estirarse */
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.1); /* Efecto de zoom suave al pasar el mouse */
}

/* Contenedor del Slider */
.slider-container {
    position: relative;
    max-width: 800px; /* Ajusta según prefieras */
    margin: 2rem auto;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción de la imagen */
}

/* Puntitos de navegación */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Estilo del botón Ver Detalles */
.btn-ver-mas {
    background-color: #2563eb; /* Un gris muy claro y profesional */
    color: white; /* Texto color pizarra */
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espacio entre el icono y el texto */
    transition: all 0.3s ease;
    width: 100%; /* Para que ocupe todo el ancho del footer de la card */
    margin-top: 5px;
}

/* Efecto al pasar el mouse */
.btn-ver-mas:hover {
    background-color: #13d170; /* Cambia al color principal de tu web */
    color: white; /* El texto cambia a blanco */
    transform: translateY(-2px); /* Pequeño salto hacia arriba */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* El icono dentro del botón */
.btn-ver-mas i {
    font-size: 0.9rem;
}

/* Contenedor flotante sobre el slider */
.topbar-wrapper {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

/* La Cápsula que contiene TODO (Navbar dentro del buscador) */
.search-navbar-capsule {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 5px 20px;
    border-radius: 50px; /* Forma de píldora */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    gap: 15px;
    transition: all 0.4s ease;
}

/* Estilo de los links dentro de la cápsula */
.inner-menu {
    display: flex;
    gap: 15px;
}

.inner-menu a {
    text-decoration: none;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.inner-menu a:hover {
    color: #fbbf24;
}

/* El input central */
.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    width: 250px; /* El buscador es el centro de atención */
}

#searchInput {
    border: none;
    outline: none;
    padding-left: 10px;
    font-size: 0.9rem;
    width: 100%;
}

.search-input-wrapper i {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Logo y Botón minimalistas */
.logo-min { font-weight: 800; font-size: 1rem; color: #1e293b; }
.logo-min span { color: #fbbf24; }

.btn-add-min {
    background: #fbbf24;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
}

/* Animación al enfocar: la cápsula entera reacciona */
.search-navbar-capsule:focus-within {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

#searchInput::placeholder {
    color: #94a3b8;
    transition: opacity 0.3s ease;
    font-style: italic; /* Opcional, para diferenciarlo de lo que el usuario escribe */
}

/* Evita que el placeholder parpadee bruscamente */
#searchInput:focus::placeholder {
    opacity: 0.3;
}

/* Contenedor para alinear estado y categoría */
.status-and-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Estilo del Badge de Categoría */
.category-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
}

/* Variaciones de color por categoría (Opcional) */
.card.comida .category-badge { color: #f59e0b; border-color: #fef3c7; }
.card.servicios .category-badge { color: #3b82f6; border-color: #dbeafe; }
.card.salud .category-badge { color: #10b981; border-color: #d1fae5; }
.card.emergencia .category-badge { color: #ef4444; border-color: #fee2e2; }