/* =========================================================================
   site.css — La Isabel · estilos globales (contraste y componentes)
   ========================================================================= */

:root {
  --paper:   #FFFFFF;
  --cream:   #F7F6F1;
  --sand:    #EEF1E8;
  --line:    #E1E6DC;
  --ink:     #18221B;
  --muted:   #4D5A50;   /* texto secundario legible */
  --dim:     #4D5A50;
  --moss:    #4E7D4A;
  --leaf:    #8BBF5A;
  --forest:  #1F3D2B;
  --terra:   #D0693A;
  --clay:    #D9A566;
  --sun:     #F2B544;
  --header-h: 64px;
  --bottomnav-h: 0px;
}
@media (max-width: 767px) {
  :root { --bottomnav-h: calc(64px + env(safe-area-inset-bottom)); }
}

/* --- Tipografía -------------------------------------------------------- */
h1, h2, h3, .font-display {
  font-family: 'Fraunces', serif;
  font-feature-settings: 'opsz' on;
}

body {
  color: var(--ink);
}

/* Texto secundario: nunca gris claro sobre fondos medios */
.text-dim,
.text-muted {
  color: var(--muted) !important;
}

/* Menú móvil Daisy: texto legible */
.menu li > a {
  color: var(--ink) !important;
}
.menu li > a:hover,
.menu li > a:focus {
  background-color: rgba(92, 122, 80, 0.12) !important;
  color: var(--forest) !important;
}

/* --- DaisyUI: evitar hovers ilegibles en enlaces ----------------------- */
a {
  color: inherit;
}

header.site-header nav a.site-nav-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

header.site-header nav a.site-nav-link:hover,
header.site-header nav a.site-nav-link:focus-visible {
  background-color: rgba(92, 122, 80, 0.14) !important;
  color: var(--forest) !important;
}

header.site-header .site-nav-cta {
  background-color: var(--forest) !important;
  color: var(--cream) !important;
}

header.site-header .site-nav-cta:hover {
  background-color: var(--moss) !important;
  color: var(--cream) !important;
}

header.site-header .site-nav-ghost {
  border: 1px solid var(--line);
  color: var(--ink) !important;
}

header.site-header .site-nav-ghost:hover {
  background-color: var(--sand) !important;
  color: var(--forest) !important;
  border-color: var(--moss) !important;
}

/* Botones: colores explícitos, sin sorpresas de tema */
.btn-primary {
  background-color: var(--moss) !important;
  border-color: var(--moss) !important;
  color: var(--cream) !important;
}
.btn-primary:hover {
  background-color: var(--forest) !important;
  border-color: var(--forest) !important;
}

.btn-secondary {
  background-color: var(--terra) !important;
  border-color: var(--terra) !important;
  color: var(--cream) !important;
}
.btn-secondary:hover {
  filter: brightness(0.92);
}

.btn-outline {
  background-color: transparent !important;
}

/* Outline: solo fondo al hover, texto siempre legible */
.btn-outline-forest {
  border: 1px solid var(--forest) !important;
  color: var(--forest) !important;
  background-color: transparent !important;
}
.btn-outline-forest:hover,
.btn-outline-forest:focus-visible {
  background-color: rgba(47, 74, 53, 0.1) !important;
  border-color: var(--forest) !important;
  color: var(--forest) !important;
}

.btn-outline-moss {
  border: 1px solid var(--moss) !important;
  color: var(--moss) !important;
  background-color: transparent !important;
}
.btn-outline-moss:hover,
.btn-outline-moss:focus-visible {
  background-color: rgba(92, 122, 80, 0.12) !important;
  border-color: var(--moss) !important;
  color: var(--moss) !important;
}

/* --- Hero -------------------------------------------------------------- */
.hero-leaves {
  background-image:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(92, 122, 80, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 88% 5%, rgba(201, 154, 107, 0.16), transparent 60%),
    linear-gradient(165deg, #FFFDF8 0%, #F5EDE0 48%, #FBF7F0 100%);
}

/* --- Secciones alternadas (sin base-200 de Daisy) ---------------------- */
.section-sand {
  background: linear-gradient(180deg, #F5EDE0 0%, var(--sand) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-cream {
  background: var(--cream);
}

.section-elevated {
  background: linear-gradient(180deg, var(--cream) 0%, #F7F0E4 100%);
}

/* Encabezado de sección reutilizable */
.section-eyebrow {
  display: inline-block;
  font: 500 0.7rem 'JetBrains Mono', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  color: var(--forest);
  margin-top: 0.35rem;
}

.section-lead {
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 42rem;
  line-height: 1.6;
}

/* --- Tarjetas ---------------------------------------------------------- */
.card-paper {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(31, 27, 22, 0.04),
    0 8px 24px -12px rgba(47, 74, 53, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card-paper:hover {
  border-color: rgba(92, 122, 80, 0.35);
}

.card-paper-interactive:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 rgba(31, 27, 22, 0.04),
    0 16px 36px -14px rgba(47, 74, 53, 0.2);
}

/* Stat cards en home */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-bar, var(--moss));
  border-radius: 16px 16px 0 0;
}
.stat-card[data-accent="warning"]::before { background: #D89A3C; }
.stat-card[data-accent="terra"]::before { background: var(--terra); }

/* Tarjetas de documento PDF */
.doc-card {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.doc-card-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(47, 74, 53, 0.08);
  color: var(--forest);
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.doc-card:hover .doc-card-icon {
  background: rgba(92, 122, 80, 0.18);
}
.doc-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--forest);
  transition: color 0.15s ease;
}
.doc-card:hover .doc-card-title {
  color: var(--moss);
}
.doc-card-action {
  color: var(--moss);
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* Categorías info útil */
.cat-card {
  text-decoration: none;
  color: inherit;
}

/* --- Footer oscuro (alto contraste) ------------------------------------ */
.site-footer {
  margin-top: 4rem;
  background: linear-gradient(180deg, var(--forest) 0%, #243a2a 100%);
  color: #EDE6D8;
  border-top: 3px solid var(--moss);
}

.site-footer a {
  color: #EDE6D8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .footer-heading {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer .footer-col-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.site-footer .footer-muted {
  color: rgba(237, 230, 216, 0.85);
  line-height: 1.6;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(237, 230, 216, 0.7);
  font-size: 0.75rem;
}

/* --- Map embed --------------------------------------------------------- */
.map-frame {
  background: #07090d;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.map-frame .map-overlay-fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
  border-radius: 18px;
}

/* Pills de estado de lote */
.estado-pill {
  display: inline-block;
  font: 500 11px 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
}
.estado-pill[data-s="free"]     { background: rgba(92, 122, 80, 0.12);  color: #2F4A35; }
.estado-pill[data-s="reserved"] { background: rgba(216, 154, 60, 0.16); color: #8B5A1F; }
.estado-pill[data-s="sold"]     { background: rgba(181, 64, 79, 0.10);  color: #8C2E3A; }

/* Foco accesible */
:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
  border-radius: 6px;
}

/* =========================================================================
   Panel admin (/admin-panel/)
   ========================================================================= */

.admin-shell {
  background: linear-gradient(180deg, var(--cream) 0%, #F5EDE0 100%);
  min-height: calc(100vh - 4rem);
}

.admin-sidebar {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.admin-sidebar-label {
  font: 500 0.65rem 'JetBrains Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.75rem 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-group {
  font: 500 0.65rem 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 0.75rem 0.25rem;
  margin-top: 0.25rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

.admin-nav-link:hover {
  background-color: rgba(92, 122, 80, 0.12) !important;
  color: var(--forest) !important;
}

.admin-nav-link.is-active {
  background-color: var(--forest) !important;
  color: var(--cream) !important;
}

.admin-nav-link.is-active:hover {
  background-color: var(--moss) !important;
  color: var(--cream) !important;
}

.admin-nav-link-muted {
  color: var(--muted) !important;
  font-weight: 400;
}

.admin-nav-link-muted:hover {
  color: var(--forest) !important;
}

.admin-sidebar-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.admin-sidebar-user {
  font: 400 0.65rem 'JetBrains Mono', monospace;
  color: var(--muted);
  padding: 0.25rem 0.75rem 0;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  font: 600 0.65rem 'JetBrains Mono', monospace;
}

.admin-badge-warn {
  background: #D89A3C;
  color: #1F1B16;
}

.admin-nav-link.is-active .admin-badge-warn {
  background: var(--cream);
  color: var(--forest);
}

.admin-main {
  min-width: 0;
  color: var(--ink);
}

.admin-page-header {
  margin-bottom: 1.5rem;
}

.admin-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 3vw, 2rem);
  color: var(--forest);
  line-height: 1.2;
}

.admin-lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}

.admin-back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-decoration: none !important;
}

.admin-back:hover {
  color: var(--forest) !important;
}

.admin-footer-strip {
  background: var(--sand);
  border-top: 1px solid var(--line);
  margin-top: 0;
}

/* Formularios e inputs en admin */
.admin-main .input,
.admin-main .select,
.admin-main .textarea,
.admin-main select,
.auth-form .input,
.auth-form .select,
.auth-form .textarea {
  background-color: var(--paper) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}

/* Override del fondo oscuro que aplica el autofill del navegador
   (Chrome/Safari pintan un fondo amarillento/oscuro cuando autocompletan
   un campo guardado, y eso es lo que hacía verse mal el input de Usuario
   en /admin-panel/login/). El truco del box-shadow inset gigante repinta
   el fondo "encima" de la capa del autofill.
   Aplica a TODOS los inputs claros del sitio. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}

.admin-main select,
.admin-main .select {
  min-height: 2.5rem;
  line-height: 1.4;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  appearance: auto;
  cursor: pointer;
}

.admin-main select option {
  color: var(--ink);
  background-color: var(--paper);
}

.admin-main .input::placeholder,
.admin-main .textarea::placeholder {
  color: #8A8178;
}

.admin-main label {
  color: var(--ink);
  font-weight: 500;
}

.admin-form {
  padding: 1.5rem;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* Tablas */
.admin-table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  font-size: 0.875rem;
}

.admin-table thead th {
  font: 500 0.65rem 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(241, 233, 216, 0.6);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 1rem;
}

.admin-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

.admin-table tbody tr:hover td {
  background: rgba(255, 253, 248, 0.8);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Tabs de filtro */
.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.admin-tab {
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.admin-tab:hover {
  background: rgba(92, 122, 80, 0.1) !important;
  color: var(--forest) !important;
}

.admin-tab.is-active {
  background: var(--forest) !important;
  color: var(--cream) !important;
}

/* Botones dentro del admin */
.admin-main .btn-ghost {
  color: var(--ink) !important;
  background: transparent !important;
}

.admin-main .btn-ghost:hover {
  background: rgba(92, 122, 80, 0.12) !important;
  color: var(--forest) !important;
}

.admin-main .btn-outline.btn-error,
.admin-main .btn-error.btn-outline {
  border-color: #B5404F !important;
  color: #8C2E3A !important;
  background: transparent !important;
}

.admin-main .btn-outline.btn-error:hover {
  background: rgba(181, 64, 79, 0.1) !important;
  color: #8C2E3A !important;
}

.admin-main .badge-ghost {
  background: rgba(79, 72, 63, 0.1) !important;
  color: var(--muted) !important;
  border: 1px solid var(--line);
}

.admin-main .badge-success {
  background: rgba(92, 122, 80, 0.15) !important;
  color: var(--forest) !important;
  border: none;
}

.admin-stat-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.admin-stat-link:hover .card-paper {
  transform: translateY(-2px);
}

.admin-alert-warn {
  background: rgba(216, 154, 60, 0.15);
  border: 1px solid rgba(216, 154, 60, 0.4);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--ink);
}

.admin-list-divider > li + li {
  border-top: 1px solid var(--line);
}

/* =========================================================================
   HERO de la home — dinámico (blobs animados, mapa embebido)
   ========================================================================= */

/* Acento del título del hero */
.hero-title-accent {
  background: linear-gradient(180deg, #2F4A35 0%, #5C7A50 60%, #6F8E5C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Blobs decorativos detrás del hero */
.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.hero-blob--moss {
  top: -8rem; left: -10rem;
  width: 28rem; height: 28rem;
  background: radial-gradient(circle, rgba(92, 122, 80, 0.42), rgba(92, 122, 80, 0) 70%);
  animation: blob-float 16s ease-in-out infinite;
}
.hero-blob--clay {
  top: 30%; right: -12rem;
  width: 32rem; height: 32rem;
  background: radial-gradient(circle, rgba(201, 154, 107, 0.40), rgba(201, 154, 107, 0) 70%);
  animation: blob-float 22s ease-in-out infinite reverse;
}
.hero-blob--cream {
  bottom: -10rem; left: 30%;
  width: 22rem; height: 22rem;
  background: radial-gradient(circle, rgba(255, 253, 248, 0.85), rgba(255, 253, 248, 0) 70%);
  animation: blob-float 28s ease-in-out infinite;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(2.5rem, -1.5rem) scale(1.08); }
  66%      { transform: translate(-1.8rem, 2rem) scale(0.95); }
}

/* CTA con flecha que se desliza */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-cta-arrow {
  transition: transform 0.2s ease;
}
.hero-cta:hover .hero-cta-arrow {
  transform: translateX(3px);
}

/* Píldoras de stats abajo del hero */
.hero-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 32rem;
}
.hero-pill {
  background: rgba(255, 253, 248, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-pill:hover {
  background: rgba(255, 253, 248, 0.95);
  border-color: rgba(92, 122, 80, 0.35);
  transform: translateY(-2px);
}
.hero-pill dt {
  font: 500 0.65rem 'JetBrains Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-pill dd {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  color: var(--forest);
  margin: 0.25rem 0 0;
  line-height: 1.05;
}
.hero-pill-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Auras decorativas en las cards "Participar" */
.participar-aura {
  position: absolute;
  width: 14rem; height: 14rem;
  border-radius: 9999px;
  filter: blur(50px);
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.4s ease;
  top: -5rem; right: -5rem;
  pointer-events: none;
}
.participar-aura--terra { background: radial-gradient(circle, rgba(181, 97, 47, 0.55), transparent 70%); }
.participar-aura--moss  { background: radial-gradient(circle, rgba(92, 122, 80, 0.55), transparent 70%); }
.group:hover .participar-aura {
  opacity: 0.55;
  transform: scale(1.15);
}

/* Card interactiva — refuerza el efecto de hover */
.card-paper-interactive {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.card-paper-interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 122, 80, 0.45);
  box-shadow:
    0 1px 0 rgba(31, 27, 22, 0.04),
    0 20px 40px -20px rgba(47, 74, 53, 0.30);
}

/* =========================================================================
   ANIMACIONES generales
   ========================================================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fade-up 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.animation-delay-150 { animation-delay: 0.15s; }
.animation-delay-300 { animation-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .animate-fade-up,
  .card-paper-interactive { animation: none !important; transition: none !important; }
}


/* =========================================================================
   Rediseño 2026 — capa moderna. Va al final para ganar sobre lo anterior.
   ========================================================================= */

body { background: var(--cream); padding-bottom: var(--bottomnav-h); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(31, 61, 43, 0.08);
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--moss), var(--forest));
  color: var(--sun);
  box-shadow: 0 6px 14px -6px rgba(31, 61, 43, 0.6);
  transition: transform .2s;
}
a:hover > .brand-mark { transform: rotate(-6deg) scale(1.05); }
header.site-header nav a.site-nav-link {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-weight: 500;
}
header.site-header nav a.site-nav-link:hover { background: var(--sand) !important; color: var(--forest) !important; }
header.site-header nav a.site-nav-link.is-active { background: var(--sand); color: var(--forest); font-weight: 600; }
header.site-header .site-nav-cta {
  padding: 8px 18px; border-radius: 999px; font-weight: 600;
  background: var(--forest) !important; color: #fff !important;
  transition: background .15s, transform .15s;
}
header.site-header .site-nav-cta:hover { background: var(--moss) !important; transform: translateY(-1px); }

/* --- Bottom nav (celular) ---------------------------------------------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  height: var(--bottomnav-h);
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid rgba(31, 61, 43, 0.08);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 500; color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}
.bottomnav svg { width: 24px; height: 24px; padding: 0; transition: transform .15s; }
.bottomnav a.is-active { color: var(--forest); font-weight: 700; }
.bottomnav a.is-active svg { color: var(--moss); transform: translateY(-1px); }
.bottomnav a:active svg { transform: scale(.9); }

/* --- Tipografía de secciones ------------------------------------------- */
.eyebrow, .section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px 'Inter', system-ui, sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--moss);
}
.eyebrow::before, .section-eyebrow::before {
  content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--sun);
}
.eyebrow--light { color: var(--leaf); }
.section-title {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1;
  color: var(--forest); margin-top: .5rem; letter-spacing: -0.01em;
}
.section-lead { color: var(--muted); margin-top: .5rem; max-width: 40rem; line-height: 1.6; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }

/* --- Botones pill ------------------------------------------------------- */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill:active { transform: translateY(0); }
.btn-pill svg { transition: transform .2s; }
.btn-pill:hover svg { transform: translateX(3px); }
.btn-pill--sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(242, 181, 68, .8); }
.btn-pill--sun:hover { background: #F6C35F; }
.btn-pill--glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-pill--glass:hover { background: rgba(255,255,255,.2); }
.btn-pill--dark { background: var(--forest); color: #fff; }
.btn-pill--dark:hover { background: var(--moss); }
.btn-pill--outline { border: 1.5px solid var(--forest); color: var(--forest); }
.btn-pill--outline:hover { background: var(--forest); color: #fff; }

/* Botones daisy existentes: más redondos y con la paleta nueva */
.btn { border-radius: 999px; text-transform: none; font-weight: 600; }
.btn-primary { background-color: var(--forest) !important; border-color: var(--forest) !important; color: #fff !important; }
.btn-primary:hover { background-color: var(--moss) !important; border-color: var(--moss) !important; }
.btn-secondary { background-color: var(--terra) !important; border-color: var(--terra) !important; color: #fff !important; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(139, 191, 90, .35), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(242, 181, 68, .22), transparent 60%),
    linear-gradient(160deg, #173222 0%, #1F3D2B 45%, #2D5A3A 100%);
}
.hero::before {
  /* curvas de nivel sutiles */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: repeating-radial-gradient(circle at 70% 30%, transparent 0 38px, rgba(255,255,255,.6) 39px 40px);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-pines { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; color: var(--cream); }
.hero-accent {
  background: linear-gradient(90deg, var(--sun), #FFD98A 60%, var(--leaf));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 32px; }
@media (max-width: 480px) { .hero-stats { gap: 12px 20px; } .hero-stats dt { font-size: 11px; } .hero-stats dd { font-size: 1.6rem; } }
.hero-stats dt { font-size: 12px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }
.hero-stats dd { font: 600 2rem/1.1 'Fraunces', serif; color: #fff; margin-top: 2px; }
.hero .map-frame { border-color: rgba(255,255,255,.15); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }

/* --- Accesos rápidos ---------------------------------------------------- */
.quick-tile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px; border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px -20px rgba(31, 61, 43, .35), 0 1px 2px rgba(31,61,43,.06);
  transition: transform .2s, box-shadow .2s;
}
.quick-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -20px rgba(31, 61, 43, .45); }
.quick-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 10px;
  display: grid; place-items: center; font-size: 24px;
  background: color-mix(in srgb, var(--c) 16%, white);
}
.quick-title { font-weight: 700; color: var(--forest); font-size: 16px; }
.quick-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* --- Tarjetas ----------------------------------------------------------- */
.card-soft, .card-paper {
  background: #fff;
  border: 1px solid rgba(31, 61, 43, .07);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(31, 61, 43, .05), 0 10px 30px -18px rgba(31, 61, 43, .25);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card-soft--link:hover, .card-paper-interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(78, 125, 74, .3);
  box-shadow: 0 22px 44px -22px rgba(31, 61, 43, .4);
}
.cat-icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
  background: var(--sand);
}
.doc-icon {
  flex: none; width: 52px; height: 60px; border-radius: 10px 18px 10px 10px;
  display: grid; place-items: center;
  font: 700 12px 'Inter', sans-serif; letter-spacing: .05em;
  color: #fff; background: linear-gradient(160deg, var(--terra), #B04F24);
}
.empty-state { text-align: center; padding: 40px 24px; border-radius: 20px; border: 2px dashed var(--line); background: #fff; }

/* Secciones viejas: fondos claros en vez de beige "papel" */
.section-sand { background: var(--sand); border: none; }
.section-elevated, .section-cream, .hero-leaves { background: var(--cream); }

/* --- Banda de CTA ------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: 36px 28px; border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(242, 181, 68, .25), transparent 60%),
    linear-gradient(140deg, #1F3D2B, #2D5A3A);
}
@media (min-width: 768px) { .cta-band { padding: 56px; } }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: #142A1D; color: rgba(255,255,255,.75); }
.site-footer .footer-heading { font: 600 1.4rem 'Fraunces', serif; color: #fff; }
.site-footer .footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); margin-bottom: 12px; }
.site-footer .footer-muted { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--sun); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* --- Formularios: inputs más amables ------------------------------------ */
.input, .textarea, .select { border-radius: 14px; }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid rgba(78,125,74,.35); outline-offset: 1px; border-color: var(--moss); }

/* --- Página del mapa en celular: pantalla completa ---------------------- */
@media (max-width: 767px) {
  .page-map main { display: flex; flex-direction: column; }
  .page-map .map-frame { border-radius: 20px; }
}
.site-footer { border-top: none; }

/* =========================================================================
   Páginas internas — encabezado con la identidad de la home
   ========================================================================= */
.page-hero, .hero-leaves {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 80% at 90% 0%, rgba(139, 191, 90, .32), transparent 60%),
    radial-gradient(ellipse 45% 70% at 0% 100%, rgba(242, 181, 68, .20), transparent 60%),
    linear-gradient(160deg, #173222 0%, #1F3D2B 50%, #2D5A3A 100%);
}
.page-hero::before, .hero-leaves::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .10; pointer-events: none;
  background-image: repeating-radial-gradient(circle at 80% 20%, transparent 0 38px, rgba(255,255,255,.7) 39px 40px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
          mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
/* Siluetas de pinos que funden el encabezado con el contenido */
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; z-index: -1;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V150l40-60 30 45 45-85 40 70 30-40 45 80 35-55 50 90 40-70 45 50 30-45 55 75 40-60 35 40 50-95 45 80 30-35 40 55 45-75 35 50 50-60 40 70 30-40 45 55 40-65 50 80 35-45 40 50V200Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V150l40-60 30 45 45-85 40 70 30-40 45 80 35-55 50 90 40-70 45 50 30-45 55 75 40-60 35 40 50-95 45 80 30-35 40 55 45-75 35 50 50-60 40 70 30-40 45 55 40-65 50 80 35-45 40 50V200Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.page-hero-inner { padding: 40px 0 84px; }
@media (min-width: 768px) { .page-hero-inner { padding: 64px 0 108px; } }
.page-hero .section-eyebrow, .page-hero .eyebrow { color: var(--leaf); }
.page-hero h1 {
  font: 600 clamp(2.2rem, 5vw, 3.4rem)/1.05 'Fraunces', serif;
  color: #fff; margin-top: 12px; letter-spacing: -0.01em;
}
.page-hero h1 em { font-style: normal; }
.page-hero h1 em, .page-hero .accent {
  background: linear-gradient(90deg, var(--sun), #FFD98A 60%, var(--leaf));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .lead { color: rgba(255,255,255,.8) !important; font-size: 1.05rem; line-height: 1.6; margin-top: 14px; max-width: 40rem; }
.page-hero .lead a { color: var(--sun); font-weight: 600; }
.page-hero .lead a:hover { text-decoration: underline; }
.page-hero .lead strong { color: #fff; }
/* Contenido que "sube" y se apoya sobre el encabezado */
.page-lift { position: relative; z-index: 2; margin-top: -56px; }
@media (min-width: 768px) { .page-lift { margin-top: -72px; } }

/* Login / recupero: tarjeta flotando sobre el verde */
.hero-leaves .card-paper { box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); border: none; }

/* =========================================================================
   Información útil
   ========================================================================= */
.cat-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 28px -16px rgba(31, 61, 43, .5), 0 1px 2px rgba(31,61,43,.08);
  transition: transform .15s, box-shadow .15s;
}
.cat-chip:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(31, 61, 43, .55); }
.cat-chip-icon {
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 16px;
  background: color-mix(in srgb, var(--c) 18%, white);
}
.cat-chip-count { font-size: 12px; font-weight: 700; color: var(--c); }

.cat-block { scroll-margin-top: calc(var(--header-h) + 16px); }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat-head-icon {
  flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 22%, white), color-mix(in srgb, var(--c) 8%, white));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent);
  transform: rotate(-4deg);
}
.cat-head h2 { font: 600 1.7rem/1.1 'Fraunces', serif; color: var(--forest); }
.cat-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.cat-head-line { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), transparent); min-width: 24px; }

.info-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; padding: 20px 20px 18px;
  border: 1px solid rgba(31, 61, 43, .07);
  box-shadow: 0 1px 2px rgba(31, 61, 43, .05), 0 10px 30px -18px rgba(31, 61, 43, .25);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.info-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c);
}
.info-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--c) 60%, rgba(31,61,43,.4)); }
.info-card h3 { font: 600 1.15rem/1.25 'Fraunces', serif; color: var(--forest); }
.info-card .desc { color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }
.info-meta { margin-top: 12px; display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.info-meta div { display: flex; gap: 8px; align-items: flex-start; }
.info-meta svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--c); }
.info-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.info-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  background: color-mix(in srgb, var(--c) 12%, white); color: color-mix(in srgb, var(--c) 75%, black);
  transition: background .15s, transform .15s, color .15s;
}
.info-btn:hover { background: var(--c); color: #fff; transform: translateY(-1px); }
.info-btn--call { background: var(--c); color: #fff; }
.info-btn--call:hover { filter: brightness(1.08); }
.info-btn svg { width: 16px; height: 16px; }

/* Emergencias: los números bien grandes */
.info-card--urgent .info-btn--call { font-size: 17px; min-height: 46px; padding: 0 18px; }

.suggest-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px; border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 90% at 100% 0%, rgba(242, 181, 68, .35), transparent 60%),
    linear-gradient(140deg, #1F3D2B, #2D5A3A);
  color: #fff;
}
.suggest-band h3 { font: 600 1.4rem 'Fraunces', serif; }
.suggest-band p { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 2px; }

/* Revelado suave al scrollear */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
@media (min-width: 768px) { .cat-chips { flex-wrap: wrap; overflow: visible; } }

/* Pantallas de "listo": tilde que aparece con un rebote */
.success-check {
  display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 999px;
  font-size: 34px; font-weight: 700; color: var(--forest);
  background: radial-gradient(circle at 30% 30%, #FFE3A3, var(--sun));
  box-shadow: 0 0 0 10px rgba(242, 181, 68, .18), 0 16px 30px -12px rgba(242, 181, 68, .8);
  animation: pop-in .6s .15s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes pop-in { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .success-check { animation: none; } }
/* Links sueltos sobre el fondo verde (fuera de la tarjeta) */
.hero-leaves > .container > p a, .hero-leaves > .container > a, .hero-leaves > .container > div:not(.card-paper) a { color: rgba(255,255,255,.75) !important; }
.hero-leaves > .container > p a:hover, .hero-leaves > .container > a:hover { color: var(--sun) !important; }
.hero-leaves .card-paper { color: var(--ink); }
.hero-leaves .card-paper .btn-ghost { color: var(--forest) !important; }
.hero-leaves .card-paper .btn-ghost:hover { background: var(--sand) !important; }
