/**
 * GUÍA DOLORES — HOJA DE ESTILOS CRÍTICA Y ANTI-PARPADEO (ZERO-FOUC)
 * Archivo: assets/css/critical.css
 */
:root {
    --theme-color: #4883bf;
    --theme-dark: #366799;
    --theme-light: rgba(72, 131, 191, 0.12);
}
*, *::before, *::after { box-sizing: border-box; }
html, body, button, input, select, textarea {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html, body {
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #1e293b;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
}
html:not(.gd-app-ready) #root {
    opacity: 0 !important;
    visibility: hidden !important;
}
html.gd-app-ready #root {
    opacity: 1 !important;
    visibility: visible !important;
}
a { color: inherit; text-decoration: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.premium-scrollbar::-webkit-scrollbar { width: 8px; }
.premium-scrollbar::-webkit-scrollbar-track { background: rgba(0,0,0,0.02); border-radius: 10px; margin-block: 10px; }
.premium-scrollbar::-webkit-scrollbar-thumb { background: var(--theme-color); border-radius: 10px; opacity: 0.8; }
.premium-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--theme-color); opacity: 1; }
.leaflet-container { z-index: 1 !important; font-family: inherit; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.glass-header { background: #ffffff; border-bottom: 3px solid #4883bf; }
.criterio-photo-overlay {
    background: linear-gradient(to top, rgba(12, 21, 36, 0.96) 0%, rgba(12, 21, 36, 0.68) 45%, rgba(12, 21, 36, 0.12) 100%);
}
.criterio-text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
}
/* Reglas críticas del App Shell Inicial para que entre 100% diseñado de una sin parpadeo */
.gd-shell { min-height: 100vh; display: flex; flex-direction: column; background: #f4f7f9; }
.gd-topbar { background: #4883bf; color: #ffffff; font-size: 12px; line-height: 16px; border-bottom: 1px solid #366799; }
.gd-topbar-inner { max-width: 80rem; margin: 0 auto; padding: 6px 12px; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 8px; }
.gd-criterio-pill { background: #ffffff; color: #4883bf; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; line-height: 15px; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.gd-emerg-pill { background: #e11d48; color: #ffffff; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 6px; font-size: 10px; line-height: 15px; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.gd-widget-pill { display: none; background: rgba(255,255,255,0.15); color: #ffffff; font-weight: 700; padding: 4px 10px; border-radius: 6px; font-size: 11px; line-height: 16px; align-items: center; gap: 6px; white-space: nowrap; }
@media (min-width: 640px) {
    .gd-criterio-pill, .gd-emerg-pill { padding: 4px 10px; font-size: 11px; }
    .gd-widget-pill { display: inline-flex; }
}
.gd-header { background: #ffffff; border-bottom: 3px solid #4883bf; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.gd-header-inner { max-width: 80rem; margin: 0 auto; padding: 10px 12px; }
.gd-header-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; flex-wrap: nowrap; }
.gd-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gd-brand-icon { width: 38px; height: 38px; border-radius: 10px; background: #4883bf; color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; flex-shrink: 0; }
.gd-brand-title { font-size: 20px; font-weight: 900; color: #0f172a; margin: 0; line-height: 1.05; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-brand-sub { font-size: 9.5px; font-weight: 800; color: #4883bf; text-transform: uppercase; letter-spacing: 0.03em; margin: 2px 0 0; line-height: 1.15; white-space: normal; }
.gd-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gd-btn-outline { padding: 7px 10px; border-radius: 10px; font-size: 11px; font-weight: 900; background: #f0f9ff; color: #4883bf; border: 1px solid rgba(72,131,191,0.35); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.gd-btn-primary { padding: 7px 11px; border-radius: 10px; font-size: 11px; font-weight: 800; background: #4883bf; color: #ffffff; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.gd-tabs-wrap { display: flex; align-items: center; gap: 6px; width: 100%; overflow: hidden; padding-top: 8px; padding-bottom: 4px; }
.gd-tabs { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; overflow-x: auto; white-space: nowrap; flex: 1 1 0%; padding: 2px 0; }
.gd-tab-active { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-size: 11px; line-height: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; background: #4883bf; color: #ffffff; text-align: center; white-space: nowrap; }
.gd-tab-idle { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-size: 11px; line-height: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; background: #f1f5f9; color: #334155; text-align: center; white-space: nowrap; }
.gd-tab-phone { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-size: 11px; line-height: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; text-align: center; white-space: nowrap; }
.gd-search-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 6px; }
.gd-search-wrap { position: relative; flex: 1 1 0%; margin: 0; }
.gd-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #4883bf; pointer-events: none; }
.gd-search-box { width: 100%; padding: 10px 36px 10px 40px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; line-height: 20px; font-weight: 600; color: #1e293b; outline: none; }
.gd-qfilters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 6px; flex-shrink: 0; }
.gd-qfilter-btn { padding: 8px 8px; border-radius: 12px; font-size: 10px; line-height: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; border: 1px solid #e2e8f0; background: #ffffff; color: #475569; display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.flex-col { flex-direction: column; }
.items-stretch { align-items: stretch; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.pt-1\.5 { padding-top: 6px; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
@media (min-width: 640px) {
    .gd-topbar-inner { padding: 7px 24px; }
    .gd-header-inner { padding: 12px 24px; }
    .gd-brand-icon { width: 44px; height: 44px; font-size: 18px; }
    .gd-brand-title { font-size: 24px; }
    .gd-brand-sub { font-size: 10px; }
    .gd-btn-outline, .gd-btn-primary { padding: 8px 14px; font-size: 12px; }
    .gd-tab-active, .gd-tab-idle, .gd-tab-phone { padding: 8px 14px; font-size: 12px; letter-spacing: 0.05em; }
    .gd-search-row, .sm\:flex-row { flex-direction: row; align-items: center; }
    .gd-qfilters, .sm\:flex { display: flex; }
    .gd-qfilter-btn { padding: 8px 12px; font-size: 11px; letter-spacing: 0.05em; }
}
.gd-main { max-width: 80rem; margin: 0 auto; padding: 16px 12px; width: 100%; flex-grow: 1; }
.gd-urg-bar { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; margin-bottom: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
@media (min-width: 640px) {
    .gd-main { padding: 20px 24px; }
    .gd-urg-bar { flex-direction: row; align-items: center; padding: 10px 14px; }
}
/* Utilidades críticas pre-Tailwind para que al montar React nunca salten ni se desordenen los botones */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.overflow-x-auto { overflow-x: auto; }
.overflow-hidden { overflow: hidden; }
.shrink-0 { flex-shrink: 0; }
.whitespace-nowrap { white-space: nowrap; }
.w-full { width: 100%; }
.flex-1 { flex: 1 1 0%; }
.relative { position: relative; }
.gd-cats-wrap { display: flex; align-items: center; gap: 6px; width: 100%; overflow: hidden; margin-bottom: 16px; }
.gd-cats { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; overflow-x: auto; white-space: nowrap; flex: 1; padding: 2px 0; }
.gd-cat-arrow { flex-shrink: 0; width: 28px; height: 28px; border-radius: 12px; border: 1px solid rgba(72,131,191,0.35); background: #ffffff; color: #4883bf; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; line-height: 1; }
.gd-cat-pill { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 8px; font-size: 12px; line-height: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; background: #ffffff; color: #334155; border: 1px solid #e2e8f0; }
.gd-cat-pill.active { background: #4883bf; color: #ffffff; border-color: #4883bf; }
.gd-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 28px; }
@media (min-width: 768px) {
    .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:inline { display: inline !important; }
}
@media (min-width: 1024px) {
    .gd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gd-card { background: #ffffff; border-radius: 1.75rem; border: 1px solid #e2e8f0; overflow: hidden; display: flex; flex-direction: column; height: 100%; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); position: relative; }
.gd-card-media { height: 224px; background: #1e293b; position: relative; overflow: hidden; }
.gd-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-card-overlay-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; z-index: 10; }
.gd-card-cat { display: inline-block; background: #4883bf; color: #ffffff; font-size: 10px; line-height: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 6px; margin-bottom: 6px; }
.gd-card-title { font-size: 20px; font-weight: 900; color: #ffffff; margin: 0; line-height: 1.25; }
.gd-card-addr { font-size: 12px; line-height: 16px; font-weight: 700; color: rgba(255,255,255,0.95); margin: 4px 0 0; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) {
    .gd-cat-arrow { width: 32px; height: 32px; }
    .gd-card-overlay-text { padding: 20px; }
    .gd-card-title { font-size: 24px; line-height: 1.25; }
}
.gd-card-body { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; background: #ffffff; }
.gd-card-meta-strip { display: flex; align-items: center; gap: 6px; min-height: 26px; margin-bottom: 12px; font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }
.gd-card-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid #f1f5f9; margin-top: auto; }
.gd-card-btn { padding: 10px 6px; border-radius: 16px; font-size: 10px; line-height: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; background: #f8fafc; color: #475569; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.gd-card-btn.wa { background: rgba(72, 131, 191, 0.1); color: #4883bf; }
.sr-seo-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
}
