:root {
    --bg-dark: #020617;
    --card-bg: #ffffff;
    --primary: #3b82f6;
    --danger: #ef4444;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: var(--bg-dark); color: white; line-height: 1.6; overflow-x: hidden; }

.mesh-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(239, 68, 68, 0.05) 0px, transparent 50%);
}

/* Navbar */
.top-navbar { position: sticky; top: 0; background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(10px); z-index: 1000; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-weight: 800; font-size: 1.5rem; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-item { color: white; text-decoration: none; font-size: 14px; font-weight: 600; opacity: 0.8; }
.urgent-link { color: var(--danger); opacity: 1; }

/* Header & Filters */
.main-wrapper { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header-vlp { padding: 40px 0; text-align: center; }
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h1 span { color: var(--primary); }
.search-container { position: relative; max-width: 600px; margin: 0 auto 25px; }
.search-box { background: white; border-radius: 20px; display: flex; align-items: center; padding: 5px 20px; }
.search-icon { color: var(--text-muted); }
#input-busqueda { border: none; padding: 15px; width: 100%; outline: none; font-size: 16px; }
.results-badge { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

.filter-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn-filter { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 10px 18px; border-radius: 12px; cursor: pointer; transition: 0.3s; font-weight: 600; }
.btn-filter.active { background: var(--primary); border-color: var(--primary); }

/* Switch de Abiertas */
.switch-container { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); padding: 8px 15px; border-radius: 12px; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #334155; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(18px); }

/* Vete Cards */
.vets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.vete-card { background: var(--card-bg); border-radius: 25px; padding: 25px; position: relative; color: var(--text-main); transition: 0.3s; }
.vete-card.is-fav { border: 2px solid var(--danger); background: #fffcfc; }
.fav-icon { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #cbd5e1; }
.is-fav .fav-icon { color: var(--danger); animation: pulse 0.4s ease; }
@keyframes pulse { 0% {transform: scale(1);} 50% {transform: scale(1.3);} 100% {transform: scale(1);} }

.badge-24h { background: var(--danger); color: white; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }
.zona-tag { display: block; font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; margin-bottom: 5px; }
.status-label { display: inline-block; padding: 4px 12px; border-radius: 8px; font-size: 11px; font-weight: 800; margin-top: 10px; }
.status-label.open { background: #dcfce7; color: #166534; }
.status-label.closed { background: #fee2e2; color: #991b1b; }

.card-actions { display: flex; gap: 8px; margin-top: 20px; }
.btn-action { flex: 1; text-align: center; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-call { background: var(--primary); color: white; }
.btn-ws { background: #25d366; color: white; }
.btn-map, .btn-share { background: #f1f5f9; color: var(--text-muted); }

/* Consejos */
.consejos-container { margin-top: 80px; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.consejos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.consejo-card { background: rgba(255,255,255,0.03); padding: 25px; border-radius: 20px; display: flex; gap: 15px; }
.icon-circle { width: 50px; height: 50px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.btn-emergency-fixed { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--danger); color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 800; box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4); z-index: 1000; white-space: nowrap; }