/* ============================================================
   HÍPICA SANLÚCAR — Design System
   Paleta: cream + ink + coral (ref. "elsewhere")
   Tipografía: Playfair Display (display) + Inter (UI)
   ============================================================ */

:root {
  /* Base */
  --cream: #f7f3ee;
  --cream-2: #efe8e0;
  --cream-3: #e6ddd3;
  --paper: #ffffff;

  /* Tinta */
  --ink: #241a28;
  --ink-2: #4a3f4e;
  --ink-3: #7c7280;
  --ink-4: #a89fac;

  /* Acento coral */
  --coral: #e8604c;
  --coral-dark: #cf4a37;
  --coral-light: #f78a79;
  --coral-wash: #fdeeeb;

  /* Secundarios */
  --sage: #5c7a6a;
  --sage-wash: #eaf1ec;
  --gold: #c89a3c;
  --gold-wash: #fbf3e2;
  --sky: #4a6fa5;
  --sky-wash: #eaf0f8;

  /* Semánticos */
  --ok: #2f7d5d;
  --ok-wash: #e6f3ec;
  --warn: #c07d1e;
  --warn-wash: #fdf2e0;
  --danger: #c0392b;
  --danger-wash: #fbeae8;

  /* Fuentes */
  --f-display: 'Playfair Display', 'Georgia', serif;
  --f-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(36, 26, 40, .06), 0 1px 3px rgba(36, 26, 40, .04);
  --sh: 0 4px 14px rgba(36, 26, 40, .07), 0 1px 3px rgba(36, 26, 40, .05);
  --sh-lg: 0 18px 44px rgba(36, 26, 40, .11), 0 4px 12px rgba(36, 26, 40, .06);
  --sh-coral: 0 10px 28px rgba(232, 96, 76, .32);

  /* Layout */
  --wrap: 1200px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-ui);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.018em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.1rem; }
p { color: var(--ink-2); }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--coral);
}
.eyebrow-ink { color: var(--ink-3); }
em.accent { font-family: var(--f-display); font-style: italic; color: var(--coral); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-sm { padding-block: clamp(36px, 5vw, 64px); }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.center { display: flex; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.wrapflex { display: flex; flex-wrap: wrap; gap: 12px; }
.text-center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}.mt-5{margin-top:56px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:36px}
.hide { display: none !important; }

@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s, background .18s, color .18s;
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--sh-coral); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #352840; }
.btn-ghost { border-color: rgba(36,26,40,.18); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(36,26,40,.04); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.btn-light:hover { box-shadow: var(--sh-lg); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 700; letter-spacing: .03em;
  background: var(--cream-2); color: var(--ink-2);
}
.badge-coral { background: var(--coral-wash); color: var(--coral-dark); }
.badge-sage  { background: var(--sage-wash);  color: var(--sage); }
.badge-gold  { background: var(--gold-wash);  color: #9a7420; }
.badge-ok    { background: var(--ok-wash);    color: var(--ok); }
.badge-warn  { background: var(--warn-wash);  color: var(--warn); }
.badge-danger{ background: var(--danger-wash);color: var(--danger); }
.badge-sky   { background: var(--sky-wash);   color: var(--sky); }
.badge-outline { background: transparent; border: 1px solid var(--cream-3); color: var(--ink-3); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--cream-3);
  font-size: .88rem; font-weight: 500; color: var(--ink-2);
  transition: all .16s;
}
.chip:hover { border-color: var(--coral); color: var(--coral); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--sh); border: 1px solid rgba(36,26,40,.05);
  overflow: hidden;
}
.card-pad { padding: 26px; }
.card-hover { transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

/* ---------- Header público ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247,243,238,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(36,26,40,.07);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff; flex: none; box-shadow: 0 4px 12px rgba(232,96,76,.3);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: all .16s;
}
.nav-links a:hover { background: rgba(36,26,40,.055); color: var(--ink); }
.nav-links a.active { color: var(--coral); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--cream-3); background: #fff; place-items: center; }
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-actions .btn-hide-mobile { display: none; }
}
.mobile-nav {
  display: none; padding: 12px 0 22px; border-top: 1px solid rgba(36,26,40,.07);
  max-height: 70vh; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 14px; border-radius: 12px; font-weight: 500; color: var(--ink-2); }
.mobile-nav a:hover { background: rgba(36,26,40,.05); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 86px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(28px, 5vw, 66px); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 .ital { font-style: italic; color: var(--coral); }
/* El hueco inferior reserva el sitio de la tarjeta de localización, que va
   fuera de la foto (es absoluta y no ocupa espacio por sí misma). */
.hero-media { position: relative; padding-bottom: 58px; }
.hero-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 200px 200px var(--r-xl) var(--r-xl);
  box-shadow: var(--sh-lg);
}
@media (max-width: 920px) { .hero-img { aspect-ratio: 4/3; border-radius: var(--r-xl); } }
.hero-float {
  position: absolute; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
/* Tarjeta de localización: al 60% de su tamaño y COMPLETAMENTE fuera de la
   foto, apoyada bajo su borde inferior. Así la imagen queda limpia, sin
   ningún elemento encima. El origen a la izquierda evita que al encoger
   se desplace hacia el centro. */
.hero-float.bl {
  bottom: 0; left: 0;
  transform: scale(.6);
  transform-origin: left bottom;
}
@media (max-width: 560px) { .hero-float.bl { left: 0; bottom: 0; } }

.trust-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(36,26,40,.1); }
.trust-item .n { font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.trust-item .l { font-size: .8rem; color: var(--ink-3); margin-top: 5px; }

/* Marquee */
.marquee { overflow: hidden; background: var(--ink); color: var(--cream); padding: 13px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 36s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-size: 1.02rem; font-style: italic; opacity: .92; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Service cards ---------- */
.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-card .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.svc-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.svc-card:hover .ph img { transform: scale(1.055); }
.svc-card .bd { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-card .bd h3 { font-size: 1.22rem; }
.svc-card .foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--cream-2); }
.svc-price { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--coral); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.arrow-link svg { transition: transform .2s; }
.arrow-link:hover svg { transform: translateX(4px); }

/* Icon tile */
.itile { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.itile-coral { background: var(--coral-wash); color: var(--coral); }
.itile-sage  { background: var(--sage-wash);  color: var(--sage); }
.itile-gold  { background: var(--gold-wash);  color: #9a7420; }
.itile-sky   { background: var(--sky-wash);   color: var(--sky); }
.itile-ink   { background: rgba(36,26,40,.07); color: var(--ink); }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--ink-2); }
.check-list li svg { flex: none; margin-top: 3px; color: var(--coral); }

/* ---------- Testimonios ---------- */
.quote { background: var(--paper); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh); height: 100%; display: flex; flex-direction: column; }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-family: var(--f-display); font-size: 1.06rem; line-height: 1.55; color: var(--ink); flex: 1; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--cream-2); }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--cream-2); flex: none; }
.avatar-txt { display: grid; place-items: center; font-weight: 700; color: var(--coral); background: var(--coral-wash); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--cream-3); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 22px 0; text-align: left; font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; color: var(--ink);
}
.faq-q .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); transition: all .22s; margin-top: 2px; }
.faq-item.open .faq-q .ic { background: var(--coral); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 620px; }
.faq-a p { padding-bottom: 22px; }

/* ---------- CTA banda ---------- */
.cta-band {
  background: var(--ink); color: var(--cream); border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 62px); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,96,76,.4), transparent 68%);
  right: -130px; top: -150px; pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(247,243,238,.76); position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,243,238,.68); padding-block: 58px 28px; margin-top: 10px; }
.site-footer h4 { color: #fff; font-family: var(--f-ui); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(247,243,238,.68); font-size: .9rem; display: block; padding: 5px 0; transition: color .15s; }
.site-footer a:hover { color: var(--coral-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bot { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(247,243,238,.13); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .83rem; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-3); padding-block: 18px; }
.crumbs a:hover { color: var(--coral); }

/* ---------- Tabla precios ---------- */
.ptable { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
.ptable table { font-size: .93rem; }
.ptable th { background: var(--cream-2); text-align: left; padding: 14px 18px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.ptable td { padding: 15px 18px; border-top: 1px solid var(--cream-2); }
.ptable td:last-child { text-align: right; font-weight: 700; font-family: var(--f-display); color: var(--coral); white-space: nowrap; }

/* ---------- WhatsApp FAB ---------- */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.42);
  transition: transform .2s;
}
.fab-wa:hover { transform: scale(1.08); }
@media (max-width: 760px) { .fab-wa { bottom: 76px; } }

/* ============================================================
   ADMIN — réplica funcional Equimondo (paleta cream/coral)
   ============================================================ */
.admin-body { background: var(--cream); padding-bottom: 92px; }

.ad-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36,26,40,.08);
}
.ad-header .bar { display: flex; align-items: center; gap: 12px; height: 64px; }
.ad-logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.16rem; font-weight: 700; }
.ad-logo .mk { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--coral), var(--coral-dark)); display: grid; place-items: center; color: #fff; }
.ad-ibtn {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--cream-3);
  background: #fff; display: grid; place-items: center; position: relative; color: var(--ink-2); transition: all .15s;
}
.ad-ibtn:hover { border-color: var(--coral); color: var(--coral); }
.ad-dot { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.ad-dot-amber { background: var(--gold); }

/* Sidebar / drawer */
.ad-drawer {
  position: fixed; inset: 0; z-index: 100; display: none;
}
.ad-drawer.open { display: block; }
.ad-drawer .scrim { position: absolute; inset: 0; background: rgba(36,26,40,.45); backdrop-filter: blur(2px); }
.ad-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 86vw);
  background: #fff; box-shadow: var(--sh-lg); overflow-y: auto; padding: 18px;
  animation: slidein .24s cubic-bezier(.2,.8,.3,1);
}
@keyframes slidein { from { transform: translateX(100%); } }
/* Bloque del usuario en el menú: retrato con iniciales, sin pastilla coral */
.ad-user {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; margin-bottom: 18px;
  border-top: 1px solid var(--cream-2); border-bottom: 1px solid var(--cream-2);
}
.ad-user-ava {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--cream-2); color: var(--ink-3);
  font-family: var(--f-display); font-size: .92rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(36,26,40,.07);
}
.ad-user .nm { font-size: .93rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ad-user .rl { font-size: .78rem; color: var(--ink-3); margin-top: 1px; }

.ad-nav-group { margin-bottom: 20px; }
.ad-nav-group .t { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; padding: 0 10px 8px; }
.ad-nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: all .14s; }
.ad-nav-item:hover { background: var(--cream); color: var(--ink); }
.ad-nav-item.active { background: var(--coral-wash); color: var(--coral-dark); font-weight: 600; }
.ad-nav-item svg { flex: none; opacity: .8; }

/* Cifras del panel — minimalista: sin tiles de color ni degradados.
   Solo admin (admin-pages, bonos, comunidad-admin, galerias-admin). */
.stat-card {
  background: #fff; border-radius: var(--r-lg); padding: 18px 20px;
  box-shadow: none; border: 1px solid var(--cream-2);
}
.stat-card .ic { width: auto; height: auto; background: none !important; color: var(--ink-4) !important; display: inline-grid; place-items: center; margin-bottom: 10px; }
.stat-card .v { font-family: var(--f-display); font-size: 1.85rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-card .l { font-size: .82rem; color: var(--ink-3); margin-top: 5px; }
/* "feature" ya no es coral: solo una cifra algo mayor */
.stat-card.feature { background: #fff; color: inherit; border: 1px solid var(--cream-2); }
.stat-card.feature .l { color: var(--ink-3); }
.stat-card.feature .ic { background: none !important; color: var(--ink-4) !important; }
.stat-card.alerta .v { color: var(--danger); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 500; margin-top: 9px; color: var(--ink-4); }
.delta-up { color: var(--ok); }
.delta-down { color: var(--danger); }
.stat-card.feature .delta { background: none; color: var(--ink-4); }

/* Panel */
.panel-box { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-sm); border: 1px solid rgba(36,26,40,.05); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--cream-2); }
.panel-head h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.panel-head .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--coral-wash); color: var(--coral); display: grid; place-items: center; }
.panel-body { padding: 20px; }

/* Hero banner admin */
.ad-hero {
  background: linear-gradient(135deg, #fff 0%, var(--coral-wash) 100%);
  border: 1px solid rgba(232,96,76,.18); border-radius: var(--r-lg); padding: 22px;
}
.ad-cta-card {
  border-radius: var(--r-lg); padding: 20px; color: #fff; display: flex; align-items: center; gap: 16px;
  position: relative; overflow: hidden; transition: transform .2s;
}
.ad-cta-card:hover { transform: translateY(-3px); }
.ad-cta-card .ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.ad-cta-card .n { margin-left: auto; font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; }
.grad-coral { background: linear-gradient(120deg, #e8604c, #c0392b); }
.grad-plum  { background: linear-gradient(120deg, #6b4a7a, #40304f); }
.grad-sky   { background: linear-gradient(120deg, #4a6fa5, #2f4a73); }
.grad-sage  { background: linear-gradient(120deg, #5c7a6a, #3d5648); }
.grad-gold  { background: linear-gradient(120deg, #c89a3c, #96701f); }

/* Quick actions */
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.qa-btn { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: var(--r); background: #fff; border: 1px solid var(--cream-3); font-size: .9rem; font-weight: 600; color: var(--ink); text-align: left; transition: all .16s; }
.qa-btn:hover { border-color: var(--coral); box-shadow: var(--sh); transform: translateY(-2px); }
.qa-btn .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.qa-btn.dim { opacity: .5; }

/* Date nav */
.date-nav { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--r-lg); padding: 11px 14px; box-shadow: none; border: 1px solid var(--cream-2); }
.date-nav .lbl { flex: 1; text-align: center; }
.date-nav .lbl .d { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.date-nav .lbl .y { font-size: .78rem; color: var(--ink-4); }
.date-nav .ad-ibtn { box-shadow: none; border: 1px solid var(--cream-2); color: var(--ink-3); }
.date-nav .ad-ibtn:hover { background: var(--cream-2); color: var(--ink); }

/* Pestañas: texto subrayado, sin pastillas de color */
.tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--cream-2); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 11px 0 12px;
  border-radius: 0; background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-size: .87rem; font-weight: 500; color: var(--ink-3);
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.tab svg { color: var(--ink-4); transition: color .15s; }
.tab:hover { color: var(--ink); border-color: transparent; }
.tab:hover svg { color: var(--ink-3); }
.tab.active, .tab.active-ink { background: none; color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tab.active svg, .tab.active-ink svg { color: var(--ink-2); }

/* Rejilla de planificación */
.plan-wrap { overflow-x: auto; background: #fff; border-radius: var(--r-lg); box-shadow: none; border: 1px solid var(--cream-2); }
.plan-table { min-width: 560px; }
.plan-table th, .plan-table td { border-bottom: 1px solid var(--cream-2); border-right: 1px solid var(--cream-2); }
.plan-table th { padding: 13px 10px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); background: #fff; font-weight: 500; }
.plan-table th.day { text-align: center; }
.plan-table th.day .n { width: auto; height: auto; border-radius: 0; background: none; color: var(--ink); display: block; margin: 0 auto 2px; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; }
.plan-table td.horse { padding: 13px 14px; font-weight: 500; font-size: .89rem; min-width: 130px; position: sticky; left: 0; background: #fff; z-index: 2; }
.plan-cell { padding: 10px; text-align: center; vertical-align: middle; min-width: 120px; background: #fcfbfa; }
.plan-add { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; margin: 0 auto; color: var(--ink-4); transition: background .15s, color .15s; }
.plan-add:hover { background: var(--cream-2); color: var(--ink); }
.plan-chip { display: block; padding: 5px 9px; border-radius: 8px; font-size: .75rem; font-weight: 500; margin-bottom: 4px; background: var(--cream-2); color: var(--ink-2); }
.plan-over { display: inline-block; font-size: .72rem; font-weight: 500; color: var(--danger); margin-bottom: 4px; }

/* Fichas de listado (admin) — hairline, sin sombras ni anillo coral */
.entity-card { background: #fff; border-radius: var(--r-lg); box-shadow: none; border: 1px solid var(--cream-2); overflow: hidden; margin-bottom: 12px; transition: background .16s; }
.entity-card:hover { box-shadow: none; background: #fcfbfa; }
.entity-card.hl { border-color: var(--cream-3); }
.entity-top { display: flex; gap: 15px; padding: 17px 20px; align-items: flex-start; }
.entity-ava {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--cream-2); border: none; box-shadow: inset 0 0 0 1px rgba(36,26,40,.07);
  font-family: var(--f-display); font-size: .95rem; font-weight: 500; color: var(--ink-3); position: relative;
}
.entity-ava svg { color: var(--ink-4); }
.entity-ava .on { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.entity-meta { flex: 1; min-width: 0; }
.entity-meta .nm { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.entity-kv { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 5px; font-size: .8rem; color: var(--ink-3); line-height: 1.55; }
.entity-kv > span + span::before { content: '·'; margin: 0 7px; color: var(--ink-4); }
.entity-kv svg { display: none; }
.entity-split { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--cream-2); background: #fcfbfa; padding: 9px 14px; }
.entity-split > div, .entity-split > form { padding: 0; text-align: right; }
.entity-split > div + div { border-left: none; }
.entity-split .v { font-weight: 600; font-size: .95rem; }
.entity-split .k { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-top: 2px; }
.bg-warn-soft { background: var(--warn-wash); }
.bg-danger-soft { background: var(--danger-wash); }
.bg-ok-soft { background: var(--ok-wash); }

/* Avisos del panel — un filete de color a la izquierda, sin bloque saturado */
.flash {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--cream-2); border-left: 3px solid var(--ink-4);
  background: #fff; font-size: .87rem; color: var(--ink-2); line-height: 1.5;
}
.flash.ok   { border-left-color: var(--ok); }
.flash.warn { border-left-color: var(--warn); }
.flash.err  { border-left-color: var(--danger); color: var(--ink); }
.flash svg { flex: none; margin-top: 1px; }

/* Etiqueta sobre una miniatura (galerías) */
.ph-tag {
  position: absolute; top: 6px; display: inline-block;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(36,26,40,.74); color: #fff;
  font-size: .7rem; font-weight: 500; letter-spacing: .01em;
  backdrop-filter: blur(3px);
}
.care-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--cream-2); }
.care-row > div { padding: 12px 8px; text-align: center; }
.care-row > div + div { border-left: 1px solid var(--cream-2); }
.care-row .k { font-size: .74rem; font-weight: 600; color: var(--ink-2); }
.care-row .v { font-size: .84rem; margin-top: 4px; color: var(--ink-3); }
.expand-btn { width: 100%; padding: 13px; border-top: 1px solid var(--cream-2); font-size: .86rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 7px; }
.expand-btn:hover { background: var(--cream); color: var(--coral); }

/* Índice alfabético lateral */
.alpha-rail { position: fixed; right: 6px; top: 50%; transform: translateY(-50%); z-index: 60; background: #fff; border-radius: var(--r-pill); box-shadow: var(--sh); padding: 7px 3px; display: flex; flex-direction: column; gap: 1px; max-height: 76vh; overflow-y: auto; scrollbar-width: none; }
.alpha-rail::-webkit-scrollbar { display: none; }
.alpha-rail a, .alpha-rail span { width: 22px; height: 20px; display: grid; place-items: center; font-size: .66rem; font-weight: 700; border-radius: 6px; color: var(--ink-4); }
.alpha-rail a { color: var(--ink-2); }
.alpha-rail a:hover { background: var(--cream-2); }
.alpha-rail a.on { background: var(--coral); color: #fff; }

/* Bottom bar admin */
.ad-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(36,26,40,.08);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
}
.ad-bottom .side { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 12px; font-size: .82rem; font-weight: 600; color: var(--ink-2); position: relative; }
.ad-bottom .side:hover { background: var(--cream); }
.ad-fab-main {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--coral), var(--coral-dark)); color: #fff;
  box-shadow: var(--sh-coral); margin-top: -26px; border: 4px solid var(--cream);
  transition: transform .2s;
}
.ad-fab-main:hover { transform: scale(1.06) rotate(90deg); }
.ad-bottom .lbl { font-size: .68rem; font-weight: 700; color: var(--coral); text-align: center; margin-top: 2px; }

/* FAB stack flotante */
.fab-stack { position: fixed; right: 16px; bottom: 96px; z-index: 65; display: flex; flex-direction: column; gap: 12px; }
.fab-stack .fb { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh-lg); transition: transform .18s; }
.fab-stack .fb:hover { transform: scale(1.08); }
.fb-coral { background: var(--coral); color: #fff; }
.fb-white { background: #fff; color: var(--coral); }
.fb-ink { background: var(--ink); color: #fff; }

/* Formularios */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 15px; border-radius: var(--r); border: 1.5px solid var(--cream-3);
  background: #fff; font-size: .94rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-wash); }
.textarea { min-height: 110px; resize: vertical; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.search-box .input { padding-left: 48px; padding-block: 15px; border-radius: var(--r-lg); box-shadow: var(--sh-sm); border-color: transparent; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 14px; background: var(--cream); border-radius: var(--r-pill); padding: 5px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-sm); font-weight: 700; }
.stepper button:hover { color: var(--coral); }
.stepper .val { min-width: 62px; text-align: center; font-weight: 600; font-size: .9rem; }

/* Timeline agenda */
.ev-item { display: flex; gap: 14px; padding: 15px; border-radius: var(--r); background: #fff; border-left: 4px solid var(--coral); box-shadow: var(--sh-sm); margin-bottom: 11px; }
.ev-time { font-weight: 700; font-size: .92rem; min-width: 56px; }
.ev-time .e { font-size: .78rem; color: var(--ink-4); font-weight: 500; }
.ev-main { flex: 1; min-width: 0; }
.ev-main .t { font-weight: 700; font-size: .98rem; }
.ev-main .s { font-size: .82rem; color: var(--ink-3); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 5px 13px; }
.bl-coral { border-left-color: var(--coral); }
.bl-sage  { border-left-color: var(--sage); }
.bl-gold  { border-left-color: var(--gold); }
.bl-sky   { border-left-color: var(--sky); }
.bl-plum  { border-left-color: #6b4a7a; }

/* Progreso */
.bar-track { height: 8px; border-radius: 4px; background: var(--cream-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--coral-light), var(--coral)); }
.bar-fill.sage { background: linear-gradient(90deg, #8aab97, var(--sage)); }

/* Tabla admin */
.dtable { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.dtable .scroll { overflow-x: auto; }
.dtable table { min-width: 620px; font-size: .9rem; }
.dtable th { background: var(--cream); text-align: left; padding: 13px 16px; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; white-space: nowrap; }
.dtable td { padding: 14px 16px; border-top: 1px solid var(--cream-2); white-space: nowrap; }
.dtable tbody tr:hover { background: var(--cream); }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }

/* Variante minimalista de tabla, solo en el panel de gestión.
   La pública (partners-public) sigue con .dtable a secas. */
.dtable.flat { box-shadow: none; border: 1px solid var(--cream-2); }
.dtable.flat th {
  background: none; padding: 13px 18px; font-size: .66rem; font-weight: 500;
  color: var(--ink-4); border-bottom: 1px solid var(--cream-2);
}
.dtable.flat td { padding: 14px 18px; border-top: 1px solid var(--cream-2); }
.dtable.flat tbody tr:first-child td { border-top: none; }
.dtable.flat tbody tr:hover { background: #fcfbfa; }

/* Estados en texto (sustituye a las pastillas de color) */
.st { font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.st.ok { color: var(--ok); }
.st.warn { color: var(--warn); }
.st.danger { color: var(--danger); }
.st.ink { color: var(--ink-2); }
/* Texto gris auxiliar en celdas y líneas */
.sub-t { font-size: .78rem; color: var(--ink-4); margin-top: 2px; }

/* Chart barras */
.chart { display: flex; align-items: flex-end; gap: 7px; height: 190px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; height: 100%; }
.chart .bar { width: 100%; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--coral-light), var(--coral)); min-height: 4px; transition: opacity .15s; }
.chart .bar:hover { opacity: .8; }
.chart .cl { font-size: .66rem; color: var(--ink-4); font-weight: 600; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(145deg, var(--cream), var(--coral-wash)); }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: 38px 32px; }

/* Toast */
.toast-host { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { background: var(--ink); color: var(--cream); padding: 13px 22px; border-radius: var(--r-pill); box-shadow: var(--sh-lg); font-size: .9rem; font-weight: 500; animation: tin .26s cubic-bezier(.2,.8,.3,1); }
@keyframes tin { from { opacity: 0; transform: translateY(14px); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .62s cubic-bezier(.2,.8,.3,1), transform .62s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Utilidades extra */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rounded-img { border-radius: var(--r-lg); object-fit: cover; width: 100%; }
.bg-paper { background: var(--paper); }
.bg-cream2 { background: var(--cream-2); }
.bg-ink { background: var(--ink); color: var(--cream); }
.divider { height: 1px; background: var(--cream-3); margin-block: 26px; }

/* ---------- Logo oficial ---------- */
/* Logo con fondo transparente. El footer usa la variante clara
   (logo-light), que ya trae el texto en tono cream: no se aplica
   ningún filtro para no destruir los colores de marca. */
.logo-img { height: 46px; width: auto; display: block; }
.logo-img-footer { height: 54px; }
@media (max-width: 520px) { .logo-img { height: 38px; } }

/* ============================================================
   VENTA ONLINE / CHECKOUT / PARTNERS
   Clases añadidas para el módulo de reservas y colaboradores.
   ============================================================ */

/* Rejillas de catálogo */
.grid-2 { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Tarjeta de producto */
.hover-lift { transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--sh-lg, 0 14px 34px rgba(36,26,40,.12)); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--cream-2); }

/* Textos */
.lead { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--ink-2); line-height: 1.6; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Avisos */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r); font-size: .89rem; line-height: 1.5; }
.alert svg { flex: none; margin-top: 2px; }
.alert-danger { background: var(--danger-wash); color: var(--danger); }
.alert-warn   { background: var(--warn-wash);   color: var(--warn); }
.alert-ok     { background: var(--ok-wash);     color: var(--ok); }
.alert-info   { background: var(--sky-wash);    color: var(--sky); }

/* Formularios del checkout */
.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(2, 1fr); }
.form-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid input[type=text], .form-grid input[type=email], .form-grid input[type=tel],
.form-grid input[type=date], .form-grid input[type=time], .form-grid input[type=number],
.form-grid input[type=password], .form-grid select, .form-grid textarea {
  width: 100%; padding: 12px 15px; border-radius: var(--r); border: 1.5px solid var(--cream-3);
  background: #fff; font-size: .94rem; font-family: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-wash);
}
.field .req  { color: var(--coral); }
.field .hint { display: block; font-size: .76rem; color: var(--ink-3); margin-top: 5px; }
.check-inline { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check-inline input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--coral); }

/* Separador y tabla de importes */
.sep { border: none; border-top: 1px solid var(--cream-2); margin: 16px 0; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mini-table td { padding: 7px 0; border-bottom: 1px solid var(--cream-2); color: var(--ink-2); }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table .total td { padding-top: 11px; font-size: 1.04rem; color: var(--ink); }
.mini-table .right { text-align: right; }

/* Botón contorno */
.btn-outline { background: transparent; border: 1.5px solid var(--cream-3); color: var(--ink); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-wash); }

/* Bloque de código para la documentación de la API */
.codeblock {
  background: var(--ink); color: #e9e3ef; border-radius: var(--r);
  padding: 16px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; line-height: 1.6; overflow-x: auto; white-space: pre; margin: 0;
}
.codeblock .k { color: #f78a79; }
.code-inline {
  background: var(--cream-2); border-radius: 6px; padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em;
}
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .code-inline { flex: 1; overflow-x: auto; white-space: nowrap; padding: 9px 12px; }

/* Método HTTP */
.verb { display: inline-block; font-family: ui-monospace, monospace; font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 5px; letter-spacing: .04em; }
.verb-get  { background: var(--sky-wash);   color: var(--sky); }
.verb-post { background: var(--ok-wash);    color: var(--ok); }

/* ============================================================
   COMUNIDAD — panel de administración
   ============================================================ */
/* Navegación de sección: pestañas de texto subrayado, sin pastillas coral */
.subnav {
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--cream-2);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 11px 0 12px; font-size: .87rem; font-weight: 500; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .16s, border-color .16s;
}
.subnav a svg { opacity: .7; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.subnav a.on svg { opacity: 1; }
/* El recuento deja de ser una píldora coral y pasa a cifra gris */
.subnav-n { font-size: .78rem; font-weight: 500; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.subnav a.on .subnav-n { color: var(--ink-3); }

.panel {
  background: #fff; border-radius: var(--r-lg); box-shadow: none;
  border: 1px solid var(--cream-2); padding: 22px; margin-bottom: 14px;
}
.panel-h {
  font-size: 1rem; font-weight: 600; letter-spacing: -.005em;
  margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--cream-2);
  display: flex; align-items: center; gap: 9px; color: var(--ink);
}
/* El icono de sección deja de ser coral y pasa a un trazo gris */
.panel-h svg { color: var(--ink-4); }

.entity-body { padding: 0 18px 14px; }
.entity-foot {
  display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
  padding: 13px 18px; border-top: 1px solid var(--cream-2); background: var(--cream);
}

/* Cifras sin caja: el dato manda, el rótulo acompaña */
.stat-mini { background: none; border-radius: 0; padding: 0; text-align: left; }
.stat-mini strong {
  display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600;
  letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-mini span { display: block; font-size: .72rem; color: var(--ink-3); margin-top: 6px; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips .chip { padding: 7px 14px; font-size: .82rem; }
.chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--cream-2); box-shadow: none; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table thead th {
  text-align: left; padding: 14px 18px; font-size: .66rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-4);
  background: none; border-bottom: 1px solid var(--cream-2); white-space: nowrap;
}
.table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--cream-2); vertical-align: middle; }
.table tbody tr:hover { background: #fcfbfa; }
.table tbody tr:last-child td { border-bottom: 0; }

.badge-muted { background: var(--cream-3); color: var(--ink-3); }

.list-row {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--cream-2);
}
.list-row:last-child { border-bottom: 0; }
.row-acts { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.row-acts form { margin: 0; }

.kv { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.kv > div { display: flex; flex-direction: column; }
.kv span { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); }
.kv strong { font-size: .88rem; }

.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 7px; }
.adm-grid.lg { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 13px; }
.adm-cell { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--cream-2); }
.adm-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-cell.off img { filter: grayscale(1) opacity(.45); }
.adm-cell-acts { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.adm-cell:hover .adm-cell-acts { opacity: 1; }
.adm-cell-acts form { margin: 0; }
.adm-cell-acts button {
  border: 0; cursor: pointer; width: 26px; height: 26px; border-radius: 7px;
  background: rgba(36,26,40,.82); color: #fff; display: grid; place-items: center;
}
.adm-cell-acts button:hover { background: var(--ink); }

.adm-card { background: #fff; border: 1px solid var(--cream-2); border-radius: 13px; overflow: hidden; margin: 0; }
.adm-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.adm-card figcaption { padding: 11px 13px; }
.adm-card figcaption p { margin: 5px 0 0; color: var(--ink-2); }
.adm-card-acts { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.adm-card-acts form { margin: 0; }

.flex-between { display: flex; align-items: center; justify-content: space-between; }
.btn-xs { padding: 5px 10px; font-size: .76rem; border-radius: 8px; }
.input-sm { padding: 7px 11px; font-size: .85rem; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ============================================================
   PERFILES DE CABALLOS — minimalista
   Sin anillos de color ni píldoras: el peso visual lo llevan la
   fotografía y la tipografía. Todo lo demás son líneas finas,
   gris neutro y mucho aire. El color solo aparece al interactuar.
   ============================================================ */

/* ---------- Retrato ---------- */
.h-ava {
  width: var(--s, 66px); height: var(--s, 66px); border-radius: 50%;
  flex: none; overflow: hidden; position: relative;
  background: var(--cream-2);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(36,26,40,.07);
}
.h-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-ava .ini {
  font-family: var(--f-display); font-weight: 500;
  font-size: calc(var(--s, 66px) * .34); color: var(--ink-4); line-height: 1;
}

/* ---------- Listado ---------- */
.h-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px;
  background: var(--cream-2); border: 1px solid var(--cream-2); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 560px) { .h-grid { grid-template-columns: 1fr; } }

.h-card { background: #fff; display: flex; flex-direction: column; transition: background .16s; }
.h-card:hover { background: #fcfbfa; }
.h-card-top { display: flex; gap: 16px; padding: 20px; align-items: center; color: inherit; text-decoration: none; }
.h-card-meta { flex: 1; min-width: 0; }
.h-card-meta .nm {
  font-family: var(--f-display); font-size: 1.16rem; font-weight: 600;
  line-height: 1.25; letter-spacing: -.01em;
}

/* Datos en texto corrido, separados por puntos. Sustituye a las píldoras. */
.h-facts { font-size: .8rem; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.h-facts span + span::before { content: '·'; margin: 0 7px; color: var(--ink-4); }
.h-facts .em { color: var(--ink-2); }

/* Estado: solo un punto de color, sin fondo ni mayúsculas */
.h-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px;
  background: var(--ink-4); vertical-align: middle; position: relative; top: -1px; }
.h-dot.escuela { background: var(--coral); }
.h-dot.propietario { background: var(--gold); }
.h-dot.yeguada { background: var(--sage); }
.h-dot.jubilado { background: var(--ink-4); }

/* Cuidados: cifras discretas, sin cajas */
.h-care { display: flex; gap: 26px; padding: 0 20px 16px 20px; }
.h-care > div { min-width: 0; }
.h-care .k { font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.h-care .v { font-size: .85rem; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.h-care .v.late { color: var(--danger); }
.h-care .v.soon { color: var(--warn); }

/* ---------- Ficha ---------- */
.h-hero { border: 1px solid var(--cream-2); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.h-hero-body { display: flex; gap: 26px; padding: 30px; align-items: center; flex-wrap: wrap; }
.h-hero-ava { position: relative; flex: none; }
.h-hero h1 { font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }

/* Botón de cámara: gris hasta que se pasa por encima */
.h-ava-edit {
  position: absolute; right: 0; bottom: 0; width: 32px; height: 32px;
  border-radius: 50%; background: #fff; color: var(--ink-3); cursor: pointer;
  display: grid; place-items: center; border: 1px solid var(--cream-3);
  transition: color .16s, border-color .16s;
}
.h-ava-edit:hover { color: var(--coral); border-color: var(--coral-light); }

/* Acciones: texto en línea, alineadas a la derecha, sin rejilla ni divisores */
.h-acts {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px;
  padding: 12px 22px; border-top: 1px solid var(--cream-2); background: #fcfbfa;
}
.h-acts form { display: contents; }
.h-act {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 9px; font-size: .84rem; font-weight: 500;
  color: var(--ink-3); background: none; border: none; cursor: pointer;
  font-family: inherit; text-decoration: none; transition: color .16s, background .16s;
}
.h-act:hover { color: var(--ink); background: var(--cream-2); }
.h-act.danger:hover { color: var(--danger); background: var(--danger-wash); }
@media (max-width: 520px) { .h-acts { justify-content: stretch; } .h-act { flex: 1; justify-content: center; } }

/* ---------- Subida ---------- */
.h-drop {
  border: 1px dashed var(--cream-3); border-radius: var(--r-md);
  padding: 30px 18px; text-align: center; cursor: pointer;
  background: none; transition: border-color .16s, background .16s;
}
.h-drop:hover, .h-drop.over { border-color: var(--ink-4); background: #fcfbfa; }
.h-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-3); }
.h-drop-inner strong { font-weight: 500; font-size: .9rem; color: var(--ink-2); }
.h-drop .ic { color: var(--ink-4); margin-bottom: 6px; }
.h-previas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.h-previa { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.h-previa img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Fotos subidas ---------- */
.h-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.h-foto { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--cream-2); margin: 0; }
.h-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* La portada se marca con una línea fina, no con un marco grueso */
.h-foto.is-cover::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-md);
  box-shadow: inset 0 0 0 2px var(--ink); pointer-events: none;
}
.h-foto-tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .68rem; font-weight: 600; letter-spacing: .01em;
  padding: 3px 9px; border-radius: 40px;
}

/* Acciones de cada foto: ocultas hasta pasar por encima */
.h-foto figcaption {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: 2px;
  padding: 7px; background: linear-gradient(transparent, rgba(0,0,0,.55));
  opacity: 0; transition: opacity .18s;
}
.h-foto:hover figcaption, .h-foto:focus-within figcaption { opacity: 1; }
.h-foto figcaption .btn { padding: 6px 9px; color: #fff; }
.h-foto figcaption .btn:hover { background: rgba(255,255,255,.18); }
@media (hover: none) { .h-foto figcaption { opacity: 1; } }

/* ---------- Paneles de la ficha: sin acentos de color ---------- */
/* El icono de sección deja de ser una pastilla coral y pasa a ser un trazo gris */
.h-panel .panel-head { padding: 20px 22px 16px 22px; }
.h-panel .panel-head h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.005em; gap: 9px; }
.h-panel .panel-head .ic {
  width: auto; height: auto; background: none; color: var(--ink-4);
  display: inline-grid; place-items: center;
}
.h-panel .panel-body { padding: 0 22px 22px 22px; }

/* Botones del panel: contorno fino en lugar de relleno coral */
.h-panel .btn-primary {
  background: #fff; color: var(--ink-2); border: 1px solid var(--cream-3);
  box-shadow: none; font-weight: 500;
}
.h-panel .btn-primary:hover:not(:disabled) {
  background: var(--cream); color: var(--ink); border-color: var(--ink-4); box-shadow: none;
}
.h-panel .btn-primary:disabled { opacity: .45; }
/* Salvo el de guardar los datos, que sí es la acción principal del formulario */
.h-panel #formEditar .btn-primary,
.h-panel .btn-primary.is-main { background: var(--ink); color: #fff; border-color: var(--ink); }
.h-panel #formEditar .btn-primary:hover:not(:disabled),
.h-panel .btn-primary.is-main:hover:not(:disabled) { background: #000; color: #fff; border-color: #000; }

/* ============================================================
   LISTADOS Y FICHAS PREMIUM — alumnado y comunidad
   Primitivas compartidas con el mismo lenguaje que los perfiles
   de caballos: líneas finas, gris neutro, datos en texto corrido
   y color solo cuando informa de algo (impago, vencimiento,
   bono agotándose, cuenta suspendida).
   Prefijo .a-* por motivos históricos; las usan ambas secciones.
   ============================================================ */

/* ---------- Resumen de cabecera: cifras, no tarjetas ---------- */
.a-sum {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--cream-2); border-radius: var(--r-lg);
  background: #fff; overflow: hidden;
}
.a-sum > a, .a-sum > div {
  flex: 1 1 150px; padding: 18px 22px; color: inherit; text-decoration: none;
  border-right: 1px solid var(--cream-2); transition: background .16s;
}
.a-sum > *:last-child { border-right: 0; }
.a-sum > a:hover { background: #fcfbfa; }
.a-sum .v {
  font-family: var(--f-display); font-size: 1.85rem; font-weight: 600;
  line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.a-sum .l { font-size: .78rem; color: var(--ink-3); margin-top: 7px; }
.a-sum .v.alerta { color: var(--danger); }
@media (max-width: 620px) { .a-sum > a, .a-sum > div { flex-basis: 50%; } }

/* ---------- Filtros: texto subrayado, no píldoras coral ---------- */
.a-tabs {
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--cream-2); padding-bottom: 0;
}
.a-tabs::-webkit-scrollbar { display: none; }
.a-tab {
  padding: 11px 0 12px; font-size: .87rem; font-weight: 500; white-space: nowrap;
  color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .16s, border-color .16s;
}
.a-tab:hover { color: var(--ink); }
.a-tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.a-tab .n { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.a-tab.active .n { color: var(--ink-3); }

/* ---------- Retrato ---------- */
.a-ava {
  width: var(--s, 56px); height: var(--s, 56px); border-radius: 50%;
  flex: none; overflow: hidden; position: relative; background: var(--cream-2);
  display: grid; place-items: center; color: var(--ink-4);
  box-shadow: inset 0 0 0 1px rgba(36,26,40,.07);
}
.a-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-ava .ini {
  font-family: var(--f-display); font-weight: 500; line-height: 1;
  font-size: calc(var(--s, 56px) * .36); color: var(--ink-4);
}

/* ---------- Listado ---------- */
.a-list {
  border: 1px solid var(--cream-2); border-radius: var(--r-lg);
  background: var(--cream-2); overflow: hidden;
  display: grid; gap: 1px;
}
.a-row {
  background: #fff; display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; color: inherit; text-decoration: none;
  transition: background .16s;
}
.a-row:hover { background: #fcfbfa; }
.a-row-meta { flex: 1; min-width: 0; }
.a-row-meta .nm {
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 600;
  line-height: 1.25; letter-spacing: -.01em;
}

/* Datos en texto corrido separados por puntos */
.a-facts { font-size: .8rem; color: var(--ink-3); margin-top: 4px; line-height: 1.55; }
.a-facts span + span::before { content: '·'; margin: 0 7px; color: var(--ink-4); }
.a-facts .em { color: var(--ink-2); }
.a-facts .al { color: var(--danger); }
.a-facts .wa { color: var(--warn); }

/* Estado de suscripción: un punto de color, sin fondo ni mayúsculas */
.a-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 6px; background: var(--ink-4);
  vertical-align: middle; position: relative; top: -1px;
}
.a-dot.mensual { background: var(--sky); }
.a-dot.bono { background: var(--sage); }
.a-dot.caducada { background: var(--warn); }
.a-dot.sin_suscripcion { background: var(--ink-4); }
.a-dot.impago { background: var(--danger); }

/* Columna derecha del listado: estado y consumo, alineados */
.a-row-side { flex: none; width: 190px; text-align: right; }
@media (max-width: 720px) {
  .a-row { flex-wrap: wrap; }
  .a-row-side { width: 100%; text-align: left; padding-left: 72px; }
}
.a-row-side .st { font-size: .82rem; color: var(--ink-2); }
.a-row-side .sub { font-size: .76rem; color: var(--ink-4); margin-top: 3px; font-variant-numeric: tabular-nums; }
.a-row-side .sub.late { color: var(--danger); }
.a-row-side .sub.soon { color: var(--warn); }

/* Barra de consumo: 3px, gris; solo se tiñe si queda poco */
.a-bar { height: 3px; border-radius: 2px; background: var(--cream-2); overflow: hidden; margin-top: 7px; }
.a-bar > i { display: block; height: 100%; background: var(--ink-4); border-radius: 2px; }
.a-bar > i.low { background: var(--warn); }
.a-bar > i.none { background: var(--danger); }

/* ---------- Ficha ---------- */
.a-hero { border: 1px solid var(--cream-2); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.a-hero-body { display: flex; gap: 24px; padding: 28px 30px; align-items: center; flex-wrap: wrap; }
.a-hero h1 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; }

/* Acciones del perfil: texto a la derecha, sin rejilla ni divisores */
.a-acts {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px;
  padding: 12px 22px; border-top: 1px solid var(--cream-2); background: #fcfbfa;
}
.a-acts form { display: contents; }
.a-act {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 9px; font-size: .84rem; font-weight: 500;
  color: var(--ink-3); background: none; border: none; cursor: pointer;
  font-family: inherit; text-decoration: none; transition: color .16s, background .16s;
}
.a-act:hover { color: var(--ink); background: var(--cream-2); }
.a-act.danger:hover { color: var(--danger); background: var(--danger-wash); }
@media (max-width: 520px) { .a-acts { justify-content: stretch; } .a-act { flex: 1; justify-content: center; } }

/* ---------- Paneles de la ficha: sin acentos de color ---------- */
.a-panel .panel-head { padding: 20px 22px 16px 22px; }
.a-panel .panel-head h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.005em; gap: 9px; }
.a-panel .panel-head .ic {
  width: auto; height: auto; background: none; color: var(--ink-4);
  display: inline-grid; place-items: center;
}
.a-panel .panel-body { padding: 0 22px 22px 22px; }
.a-panel .btn-primary {
  background: #fff; color: var(--ink-2); border: 1px solid var(--cream-3);
  box-shadow: none; font-weight: 500;
}
.a-panel .btn-primary:hover:not(:disabled) {
  background: var(--cream); color: var(--ink); border-color: var(--ink-4); box-shadow: none;
}
.a-panel .btn-primary.is-main { background: var(--ink); color: #fff; border-color: var(--ink); }
.a-panel .btn-primary.is-main:hover:not(:disabled) { background: #000; border-color: #000; }

/* Cifras dentro de un panel: sin cajas ni iconos de color */
.a-kpis { display: flex; flex-wrap: wrap; gap: 30px; }
.a-kpis > div { min-width: 0; }
.a-kpis .k { font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.a-kpis .v {
  font-size: 1.05rem; color: var(--ink); margin-top: 3px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.a-kpis .v.big { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
.a-kpis .v.late { color: var(--danger); }
.a-kpis .v.soon { color: var(--warn); }

/* Franja de cierre de un bloque (importe, código, acción) */
.a-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--cream-2); font-size: .85rem; color: var(--ink-2);
}

/* Listas internas: filas separadas por hairline */
.a-lines { display: flex; flex-direction: column; }
.a-lines > div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--cream-2); font-size: .85rem;
}
.a-lines > div:last-child { border-bottom: 0; }
.a-lines .t { color: var(--ink); min-width: 0; }
.a-lines .s { font-size: .76rem; color: var(--ink-4); margin-top: 2px; }
.a-lines .r { flex: none; color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; text-align: right; }
.a-lines .r .ok { color: var(--ok); } .a-lines .r .pend { color: var(--warn); }

/* Estado de una habilidad: texto, no píldora */
.a-st { font-size: .78rem; color: var(--ink-4); }
.a-st.adquirido { color: var(--ok); }
.a-st.en_curso { color: var(--warn); }

/* Gráfico de constancia: barras finas en gris */
.a-spark { display: flex; gap: 10px; align-items: flex-end; height: 66px; margin-top: 14px; }
.a-spark > div { flex: 1; text-align: center; }
.a-spark .b { background: var(--cream-3); border-radius: 3px 3px 0 0; min-height: 3px; transition: background .16s; }
.a-spark > div:hover .b { background: var(--ink-4); }
.a-spark .m { font-size: .68rem; color: var(--ink-4); margin-top: 6px; font-variant-numeric: tabular-nums; }
.a-spark .c { font-size: .72rem; color: var(--ink-2); font-weight: 500; }

/* Anillo de progresión: trazo fino en tinta, no coral grueso */
.a-ring { position: relative; width: 72px; height: 72px; flex: none; }
.a-ring svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.a-ring .pc {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums;
}

/* Fotos del alumno */
.a-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.a-fotos a { display: block; border-radius: var(--r-md, 12px); overflow: hidden; aspect-ratio: 4/3; background: var(--cream-2); }
.a-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .16s; }
.a-fotos a:hover img { opacity: .88; }

/* Bloque plegable (alta directa): cabecera discreta, sin negrita agresiva */
.a-summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 9px;
  padding: 18px 22px; font-size: .92rem; font-weight: 500; color: var(--ink-2);
  transition: color .16s, background .16s;
}
.a-summary::-webkit-details-marker { display: none; }
.a-summary:hover { color: var(--ink); background: #fcfbfa; }
.a-summary svg { color: var(--ink-4); transition: transform .18s; }
details[open] > .a-summary { border-bottom: 1px solid var(--cream-2); color: var(--ink); }
details[open] > .a-summary svg { transform: rotate(45deg); }

/* Estados de una cuenta de la comunidad */
.a-dot.activo { background: var(--ok); }
.a-dot.suspendido { background: var(--warn); }
.a-dot.baja { background: var(--ink-4); }

/* Separador entre bloques de un mismo panel */
.a-hr { border: none; border-top: 1px solid var(--cream-2); margin: 20px 0; }

/* Foto oculta por moderación: se atenúa, no se tiñe */
.h-foto.is-off img { filter: grayscale(1); opacity: .42; }

/* Colaborador en pausa: ni activo ni de baja */
.a-dot.pausado { background: var(--warn); }

/* Venta cancelada o anulada */
.a-dot.cancelado { background: var(--danger); }

/* ============================================================
   PANEL PRINCIPAL — minimalista
   Lo primero que se ve al entrar: cifras y agenda, sin degradados
   ni tarjetas de color. El coral queda solo para el botón flotante.
   ============================================================ */

/* Mensaje del centro: recuadro de línea fina, no fondo coral */
.dash-msg {
  border: 1px solid var(--cream-2); border-radius: var(--r-lg);
  background: #fff; padding: 22px 24px;
}
.dash-msg .eyebrow {
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500;
}
.dash-msg h2 {
  font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; margin: 5px 0 0;
}
.dash-msg .txt { margin-top: 10px; color: var(--ink-2); font-size: .92rem; line-height: 1.6; }
.dash-msg .txt p { margin: 0; }

/* Navegación de día: tres controles en una pieza */
.dash-nav {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid var(--cream-2); border-radius: var(--r-pill); overflow: hidden; background: #fff;
}
.dash-nav a {
  display: grid; place-items: center; width: 36px; height: 34px;
  color: var(--ink-3); transition: background .16s, color .16s;
}
.dash-nav a:hover { background: var(--cream-2); color: var(--ink); }
.dash-nav .hoy {
  width: auto; padding: 0 14px; font-size: .82rem; font-weight: 500;
  border-left: 1px solid var(--cream-2); border-right: 1px solid var(--cream-2);
}

/* Acciones rápidas: una rejilla de texto, sin pastillas de color */
.dash-acts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--cream-2); border: 1px solid var(--cream-2);
  border-radius: var(--r-lg); overflow: hidden;
}
@media (max-width: 860px) { .dash-acts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dash-acts { grid-template-columns: 1fr; } }
.dash-acts a {
  display: flex; align-items: center; gap: 11px; padding: 15px 18px;
  background: #fff; color: var(--ink-2); font-size: .89rem; font-weight: 500;
  transition: background .16s, color .16s;
}
.dash-acts a svg { color: var(--ink-4); flex: none; transition: color .16s; }
.dash-acts a:hover { background: #fcfbfa; color: var(--ink); }
.dash-acts a:hover svg { color: var(--ink-2); }

/* Programa del día: filas con hairline y la hora como ancla */
.dash-ev { display: flex; flex-direction: column; }
.dash-ev > a {
  display: flex; gap: 18px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--cream-2);
  color: inherit; transition: background .16s;
}
.dash-ev > a:last-child { border-bottom: 0; }
.dash-ev > a:hover { background: #fcfbfa; }
.dash-ev .hr {
  flex: none; width: 54px; text-align: right;
  font-size: .95rem; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.dash-ev .hr .e { font-size: .76rem; font-weight: 400; color: var(--ink-4); margin-top: 2px; }
.dash-ev .mn { flex: 1; min-width: 0; }
.dash-ev .mn .t { font-size: .95rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.dash-ev .mn .a-facts { margin-top: 3px; }
.dash-ev .go { flex: none; color: var(--ink-4); display: grid; place-items: center; }
.dash-ev > a:hover .go { color: var(--ink-2); }
