/* ============================================================
   Veterinaria 5 de Abril — Sistema de diseño "Azul elevado"
   Solo público. Tipografía de sistema. Sin dependencias.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Marca */
  --navy-900: #081c36;
  --navy-800: #0b2247;
  --navy-700: #12386a;
  --blue-600: #0284c7;
  --blue-500: #0ea5e9;
  --blue-400: #38bdf8;
  --turq: #14b8a6;

  /* Compatibilidad con clases heredadas */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-deep: #075985;
  --sky-50: #f4f9ff;
  --sky-100: #e6f3ff;
  --sky-200: #cfe8ff;
  --sky-300: #a8d8ff;
  --green: #22c55e;
  --green-dark: #16a34a;
  --wa: #25d366;

  /* Texto */
  --bg: #f4f9ff;
  --card: #ffffff;
  --text: #0b2247;
  --muted: #5a6b85;
  --border: #dcebfb;

  /* Forma y profundidad */
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 28, 54, .04), 0 4px 12px rgba(8, 28, 54, .05);
  --shadow-md: 0 6px 18px rgba(8, 28, 54, .08), 0 18px 44px rgba(8, 28, 54, .10);
  --shadow-lg: 0 24px 60px rgba(8, 28, 54, .18);

  --font: 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, Arial, sans-serif;
  --track: -0.02em;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-600); }
img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: 1.12;
  color: var(--text);
}

:focus-visible {
  outline: 3px solid rgba(14, 165, 233, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--turq);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--turq); border-radius: 2px; }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky; top: 0; z-index: 120;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem clamp(1rem, 4vw, 2.4rem);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(11, 34, 71, .08);
}
.navbar .logo {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--text); text-decoration: none;
}
.navbar .logo:hover { color: var(--text); }
.logo-ico { width: 42px; height: 42px; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(8, 28, 54, .18)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text .t { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-text small { font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }

.nav-links {
  display: flex; align-items: center; gap: .35rem; margin-left: auto;
}
.nav-links a:not(.btn-wa) {
  color: var(--navy-700); font-weight: 600; font-size: .95rem;
  padding: .45rem .7rem; border-radius: 10px; transition: background .15s, color .15s;
}
.nav-links a:not(.btn-wa):hover { background: var(--sky-100); color: var(--primary-dark); }
.nav-links a.active { background: var(--sky-100); color: var(--primary-dark); }

.nav-burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-burger span { width: 20px; height: 2.4px; background: var(--navy-800); border-radius: 3px; transition: transform .2s ease, opacity .2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* Botones */
.btn-wa {
  display: inline-flex; align-items: center; gap: .45rem;
  background: linear-gradient(180deg, #2ee072, var(--green));
  color: #fff; padding: .6rem 1.15rem; border-radius: 12px; font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 16px rgba(34, 197, 94, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-wa:hover { background: linear-gradient(180deg, #27d26a, var(--green-dark)); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(34, 197, 94, .38); }

.btn-wa-lg {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(180deg, #2ee072, var(--green));
  color: #fff; padding: 1rem 1.9rem; border-radius: 16px; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 14px 30px rgba(34, 197, 94, .34), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-wa-lg:hover { background: linear-gradient(180deg, #27d26a, var(--green-dark)); color: #fff; transform: translateY(-2px); box-shadow: 0 20px 42px rgba(34, 197, 94, .42); }

.btn-wa-sm {
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(180deg, #2ee072, var(--green));
  color: #fff; padding: .5rem 1.05rem; border-radius: 11px; font-weight: 700; font-size: .85rem;
  box-shadow: 0 6px 14px rgba(34, 197, 94, .26);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-wa-sm:hover { background: linear-gradient(180deg, #27d26a, var(--green-dark)); color: #fff; transform: translateY(-1px); }

.btn-sec {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(180deg, #1fb4f5, var(--primary-dark));
  color: #fff; padding: 1rem 1.9rem; border-radius: 16px; font-weight: 800; font-size: 1.02rem;
  box-shadow: 0 14px 30px rgba(2, 132, 199, .34), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-sec:hover { background: linear-gradient(180deg, #14a6ea, #0369a1); color: #fff; transform: translateY(-2px); box-shadow: 0 20px 42px rgba(2, 132, 199, .42); }

/* ============ HERO ============ */
.hero, .land-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(52% 60% at 78% 12%, rgba(14, 165, 233, .55), transparent 62%),
    radial-gradient(46% 55% at 8% 90%, rgba(20, 184, 166, .40), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 46%, #0e3a6b 100%);
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4.6rem) 0;
}
.hero::after, .land-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.4px, transparent 1.5px);
  background-size: 34px 34px;
  opacity: .35;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.hero .container, .land-hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.hero h1, .land-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  color: #fff; letter-spacing: -0.03em; margin: .9rem 0 .8rem;
}
.hero h1 em, .land-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-400), var(--turq)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p, .land-hero .lead {
  color: #cfe2ff; font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 34rem; margin-bottom: 1.1rem;
}
.hero .addr {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  color: #e8f4ff; font-weight: 600; font-size: .95rem;
  padding: .5rem 1rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1rem; font-size: .8rem; color: rgba(207, 226, 255, .8); }

/* Arte del héroe */
.hero-art { position: relative; min-height: 340px; }
.hero-fig {
  width: min(430px, 100%); height: auto; margin-inline: auto;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .92);
  color: var(--navy-800); font-weight: 700; font-size: .84rem;
  padding: .5rem .85rem; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.chip.c1 { top: 6%; left: 2%; animation-delay: .4s; }
.chip.c2 { top: 30%; right: 0%; animation-delay: 1.1s; }
.chip.c3 { bottom: 12%; left: 6%; animation-delay: .7s; }

/* ============ TRUST STRIP ============ */
.trust-strip {
  display: flex; justify-content: center; gap: clamp(.6rem, 2vw, 2rem); flex-wrap: wrap;
  padding: .9rem clamp(1rem, 4vw, 2rem);
  background: #fff; border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--muted); font-weight: 600;
}
.trust-strip span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-strip b { color: var(--text); }
.tick-ico {
  width: 20px; height: 20px; border-radius: 7px; flex: 0 0 auto;
  background: var(--sky-100); color: var(--primary-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
}

/* ============ SECCIONES ============ */
.cats-section { padding: clamp(1.6rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem); }
.cats-section .section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.cats-section .section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: .6rem 0 .4rem; }
.cats-section .section-head p { color: var(--muted); }

.cat-group { margin-bottom: 3rem; }
.cat-group > h3 {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 1.25rem; color: var(--navy-800);
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, var(--sky-100), transparent);
  border-radius: 0 12px 12px 0;
  padding: .55rem 1.1rem; margin-bottom: 1.2rem;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }

/* ============ CARD SERVICIO ============ */
.card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--sky-200); }

.card-media { position: relative; height: 190px; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

/* Portada por defecto (sin foto) — degradado + huella + etiqueta */
.no-img {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: .9rem 1rem;
  color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .28), transparent 30%),
    linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #075985 100%);
}
.no-img::before {
  content: "";
  position: absolute; right: 12px; bottom: 8px;
  width: 92px; height: 92px; opacity: .35;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><circle cx="7" cy="9" r="2.6"/><circle cx="12" cy="6.8" r="3"/><circle cx="17" cy="9" r="2.6"/><path d="M12 10.5c2.4 0 4.4 2 5.3 4.2.6 1.4-.5 3-2.2 3H8.9c-1.7 0-2.8-1.6-2.2-3C6.6 12.5 9.6 10.5 12 10.5Z"/></svg>');
  background-size: cover;
  transform: rotate(-14deg);
}
.no-img > span { position: relative; z-index: 1; }

/* Variantes de tono según categoría (rotan) */
.card-tone-0 .no-img { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 70%, #1e3a8a 100%); }
.card-tone-1 .no-img { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 70%, #115e59 100%); }
.card-tone-2 .no-img { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 70%, #4c1d95 100%); }
.card-tone-3 .no-img { background: linear-gradient(135deg, #f59e0b 0%, #d97706 70%, #92400e 100%); }

.card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-body h4 { font-size: 1.08rem; margin-bottom: .35rem; }
.card-body p { color: var(--muted); font-size: .88rem; flex: 1; margin-bottom: .6rem; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: .5rem; }
.card-price { font-size: 1.22rem; font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.card-price small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.card-dur {
  color: var(--primary-deep); font-weight: 700; font-size: .78rem;
  background: var(--sky-100); border-radius: 999px; padding: .25rem .7rem;
}
.card .card-cta { margin-top: 1rem; }

/* Card compacta (landing) */
.card.mini { padding: 1.15rem 1.2rem; gap: .8rem; }
.card.mini h4 { font-size: 1rem; margin: 0; }
.mini-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card.mini .card-meta { margin-top: 0; }

/* CTA de sección */
.sec-cta { text-align: center; margin-top: 2rem; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(8, 28, 54, .82); backdrop-filter: blur(6px);
  color: #fff; padding: .3rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
}

/* ============ QUOTES (testimonios) ============ */
.quote {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.4rem;
  display: flex; flex-direction: column; gap: .9rem;
  box-shadow: var(--shadow-sm);
  position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote::before {
  content: "“"; position: absolute; top: .4rem; right: 1.1rem;
  font-size: 4rem; line-height: 1; font-weight: 800;
  color: var(--sky-200); font-family: Georgia, serif;
}
.quote-text { color: var(--text); font-size: .94rem; line-height: 1.6; flex: 1; }
.q-meta { display: flex; align-items: center; gap: .7rem; border-top: 1px solid var(--sky-100); padding-top: .9rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue-500), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; box-shadow: 0 4px 12px rgba(2, 132, 199, .3);
}
.stars { color: #fbbf24; font-size: .95rem; letter-spacing: .06em; }

/* ============ INFO / VET SECTION ============ */
.vet-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; height: 100%; box-shadow: var(--shadow-sm);
}
.info-list { list-style: none; margin: .4rem 0 1.1rem; }
.info-list li {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .55rem 0; border-bottom: 1px dashed var(--sky-200);
  color: var(--text); font-size: .95rem;
}
.info-list li:last-child { border-bottom: 0; }
.info-list .ic {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px;
  background: var(--sky-100); color: var(--primary-deep);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
}
.map-tile {
  overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); min-height: 280px; background: #dbeafe;
}
.map-tile iframe { border: 0; display: block; width: 100%; height: 100%; min-height: 280px; }

/* ============ LEAD BOX ============ */
.lead-box {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center; margin: 2.6rem auto; max-width: 760px;
  color: #fff;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(20, 184, 166, .5), transparent 60%),
    radial-gradient(55% 90% at 5% 100%, rgba(14, 165, 233, .55), transparent 60%),
    linear-gradient(150deg, var(--navy-800), #0e3a6b);
  box-shadow: var(--shadow-lg);
}
.lead-box h3 { color: #fff; font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin-bottom: .4rem; }
.lead-box p { color: #cfe2ff; font-size: .95rem; margin-bottom: 1.2rem; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: .7rem; align-items: center; }
.lead-grid input {
  padding: .8rem 1rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 13px;
  font-size: .95rem; width: 100%; box-sizing: border-box;
  background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(6px);
  transition: background .15s ease, border-color .15s ease;
}
.lead-grid input::placeholder { color: rgba(207, 226, 255, .75); }
.lead-grid input:focus { background: rgba(255, 255, 255, .2); border-color: var(--blue-400); outline: 3px solid rgba(56, 189, 248, .25); }
.lead-grid .btn-new { height: 100%; padding: .8rem 1.5rem; border-radius: 13px; }
.lead-note { font-size: .75rem; color: rgba(207, 226, 255, .75); margin-top: .85rem; }
.lead-flash { max-width: 700px; margin: 1.5rem auto 0; text-align: center; }

/* ============ AGENDA ============ */
.agenda-sect { max-width: 1000px; margin: clamp(1.5rem, 4vw, 3rem) auto; padding: 0 clamp(1rem, 4vw, 1.5rem); }
.agenda-head { margin-bottom: 1.6rem; }
.agenda-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: .6rem 0 .4rem; }
.agenda-head .sub { color: var(--muted); }
.agenda-wrap { display: grid; grid-template-columns: 1fr 330px; gap: 1.6rem; align-items: start; }

/* ============ FORMS ============ */
.form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow-md);
}
.agenda-form { background: transparent; border: 0; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-full { grid-column: 1 / -1; }
.form-group { margin-bottom: .2rem; display: flex; flex-direction: column; }
.form-group label { font-size: .84rem; font-weight: 700; margin-bottom: .35rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .78rem .95rem;
  border: 1px solid var(--sky-200); border-radius: 13px; font-size: .95rem;
  font-family: inherit; background: #fff; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(14, 165, 233, .14);
}
.form-actions { display: flex; gap: .75rem; margin-top: 1.1rem; align-items: center; flex-wrap: wrap; }

.btn-new {
  background: linear-gradient(180deg, #1fb4f5, var(--primary-dark));
  color: #fff; padding: .72rem 1.4rem; border-radius: 12px; font-weight: 800; border: none;
  cursor: pointer; font-size: .95rem; box-shadow: 0 8px 18px rgba(2, 132, 199, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-new:hover { background: linear-gradient(180deg, #14a6ea, #0369a1); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(2, 132, 199, .36); }

.btn-cancel {
  display: inline-flex; align-items: center;
  background: #f1f5f9; color: var(--text); padding: .72rem 1.4rem;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .95rem;
  transition: background .15s ease;
}
.btn-cancel:hover { background: var(--sky-100); }

/* Sidebar agenda */
.agenda-side { display: flex; flex-direction: column; gap: 1rem; }
.side-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.3rem; box-shadow: var(--shadow-sm);
}
.side-card h4 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin-bottom: .5rem; }
.side-card h4 .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--sky-100); color: var(--primary-deep); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.side-card p, .side-card div { color: var(--muted); font-size: .9rem; }
.side-card strong { color: var(--text); }
.side-wa {
  margin-top: .7rem; display: block; text-align: center;
}
.agenda-map { min-height: 180px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.agenda-map iframe { width: 100%; min-height: 180px; border: 0; display: block; }
.agenda-ok, .agenda-err { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 500; }

/* ============ FLASH ============ */
.flash { padding: .85rem 1.1rem; border-radius: 13px; margin-bottom: 1rem; font-weight: 600; font-size: .92rem; }
.flash-ok { background: #d9f7e6; color: #0b5d35; border: 1px solid #b2ecd0; }
.flash-err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-flat { max-width: 700px; margin: 0 auto; }

/* ============ LEGAL ============ */
.page-head {
  background:
    radial-gradient(50% 120% at 80% 0%, rgba(14, 165, 233, .5), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff; padding: clamp(2rem, 5vw, 3.2rem) clamp(1rem, 4vw, 2rem);
}
.page-head h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-top: .6rem; }
.page-head .eyebrow { color: var(--blue-400); }
.page-head .eyebrow::before { background: var(--blue-400); }
.legal-sect { max-width: 840px; margin: 2.5rem auto; padding: 0 clamp(1rem, 4vw, 1.5rem); }
.legal-sect h1 { color: var(--navy-800); margin-bottom: .4rem; font-size: 1.9rem; }
.legal-sect h2 { color: var(--primary-deep); font-size: 1.12rem; margin: 1.8rem 0 .5rem; }
.legal-sect p, .legal-sect li { color: #27354d; font-size: .96rem; line-height: 1.75; }
.legal-sect ul { padding-left: 1.3rem; }
.legal-sect a { text-decoration: underline; text-underline-offset: 3px; }
.legal-strong { color: var(--muted); font-size: .86rem; }

/* ============ FOOTER ============ */
.footer {
  background: #fff; border-top: 1px solid var(--border);
  margin-top: 3rem; padding: clamp(1.6rem, 4vw, 2.2rem) clamp(1rem, 4vw, 2rem);
  text-align: center; color: var(--muted); font-size: .88rem;
}
.footer .f-logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--navy-800); font-size: 1.05rem; margin-bottom: .6rem; }
.footer .f-logo img { width: 30px; height: 30px; }
.footer .f-links { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin: .5rem 0 .3rem; }
.footer .f-links a { color: var(--primary-deep); font-weight: 600; }
.footer .f-links a:hover { color: var(--blue-600); }
.footer .f-copy { font-size: .8rem; color: var(--muted); }

/* WhatsApp flotante (landing) */
.wa-fixed {
  position: fixed; right: 1.2rem; bottom: 1.4rem; z-index: 200;
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(180deg, #2ee072, var(--green));
  color: #fff; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 800;
  box-shadow: 0 14px 34px rgba(34, 197, 94, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-fixed:hover { color: #fff; transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 42px rgba(34, 197, 94, .5); }

/* ============ ADMIN (compatibilidad) ============ */
.admin-wrap { max-width: 1100px; margin: 2rem auto; padding: 0 1.2rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-header h1 { font-size: 1.5rem; color: var(--navy-800); }
.card-admin { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.stat-box .label { color: var(--muted); font-size: .85rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem; text-align: left; border-bottom: 1px solid var(--sky-100); font-size: .9rem; }
th { background: var(--sky-100); font-size: .82rem; font-weight: 700; color: var(--navy-800); }
tr:hover { background: var(--sky-50); }
table img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
table .actions { display: flex; gap: .4rem; }
table .actions a, table .actions button { padding: .3rem .7rem; border-radius: 8px; font-size: .8rem; border: none; cursor: pointer; }
.btn-edit { background: var(--sky-100); color: var(--primary-deep); font-weight: 600; }
.btn-del { background: #fee2e2; color: #dc2626; font-weight: 600; }
.btn-view { background: #d9f7e6; color: #0b5d35; font-weight: 600; }

/* Login */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background:
    radial-gradient(50% 60% at 80% 10%, rgba(14, 165, 233, .5), transparent 60%),
    radial-gradient(45% 60% at 5% 100%, rgba(20, 184, 166, .45), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.login-box {
  background: rgba(255, 255, 255, .97); padding: 2.4rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; border: 1px solid rgba(255, 255, 255, .4);
}
.login-box h1 { text-align: center; margin-bottom: .25rem; font-size: 1.45rem; color: var(--navy-800); }
.login-box .sub { text-align: center; color: var(--muted); font-size: .86rem; margin-bottom: 1.4rem; }

/* Mensajes (admin) */
.msg-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm); }
.msg-card.unread { border-left: 5px solid var(--primary); }
.msg-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.msg-text { font-size: .9rem; line-height: 1.5; }
.btn-mark { font-size: .75rem; background: #f1f5f9; border: 1px solid var(--border); padding: .3rem .7rem; border-radius: 8px; cursor: pointer; }
.btn-mark:hover { background: var(--sky-100); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: 2; min-height: 300px; }
  .agenda-wrap { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    margin: 0; padding: .8rem 1rem 1.1rem;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn-wa), .nav-links .btn-wa { justify-content: center; text-align: center; }
  .navbar .logo-text .t { font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .hero p { font-size: 1rem; }
  .chip.c1 { left: 0; } .chip.c3 { left: 2%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}