/* ============================================================
   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); }
.hero-media { position: relative; }
.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;
}
.hero-float.bl { bottom: 26px; left: -14px; }
.hero-float.tr { top: 26px; right: -14px; }
@media (max-width: 560px) { .hero-float.bl { left: 8px; bottom: 12px; } .hero-float.tr { right: 8px; top: 12px; } }

.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%); } }
.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; }

/* Stat cards */
.stat-card { background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm); border: 1px solid rgba(36,26,40,.05); }
.stat-card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; }
.stat-card .v { font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .l { font-size: .85rem; color: var(--ink-3); margin-top: 6px; }
.stat-card.feature { background: linear-gradient(140deg, var(--coral), var(--coral-dark)); color: #fff; border: 0; }
.stat-card.feature .l { color: rgba(255,255,255,.85); }
.stat-card.feature .ic { background: rgba(255,255,255,.2); color: #fff; }
.delta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; margin-top: 10px; }
.delta-up { background: var(--ok-wash); color: var(--ok); }
.delta-down { background: var(--danger-wash); color: var(--danger); }
.stat-card.feature .delta { background: rgba(255,255,255,.22); color: #fff; }

/* 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: 12px; box-shadow: var(--sh-sm); }
.date-nav .lbl { flex: 1; text-align: center; }
.date-nav .lbl .d { font-family: var(--f-display); font-size: 1.22rem; font-weight: 700; }
.date-nav .lbl .y { font-size: .8rem; color: var(--ink-3); }

/* Tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 18px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--cream-3); font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: all .15s; }
.tab:hover { border-color: var(--coral); }
.tab.active { background: var(--coral); color: #fff; border-color: var(--coral); box-shadow: var(--sh-coral); }
.tab.active-ink { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Planning grid */
.plan-wrap { overflow-x: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.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: 14px 10px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: #fff; }
.plan-table th.day { text-align: center; }
.plan-table th.day .n { width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; margin: 0 auto 5px; font-family: var(--f-display); font-size: .95rem; font-weight: 700; }
.plan-table td.horse { padding: 14px 12px; font-weight: 600; font-size: .9rem; 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: linear-gradient(180deg, rgba(92,122,106,.03), rgba(232,96,76,.03)); }
.plan-add { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin: 0 auto; color: var(--ink-4); transition: all .15s; }
.plan-add:hover { background: var(--coral-wash); color: var(--coral); }
.plan-chip { display: block; padding: 6px 9px; border-radius: 9px; font-size: .75rem; font-weight: 600; margin-bottom: 4px; background: var(--coral-wash); color: var(--coral-dark); }

/* Listas de fichas (cavaliers / chevaux) */
.entity-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-sm); border: 1px solid rgba(36,26,40,.05); overflow: hidden; margin-bottom: 14px; transition: all .18s; }
.entity-card:hover { box-shadow: var(--sh); }
.entity-card.hl { border-color: var(--coral); }
.entity-top { display: flex; gap: 14px; padding: 18px; align-items: flex-start; }
.entity-ava { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--cream-2); border: 2.5px solid var(--coral-light); font-size: 1.6rem; position: relative; }
.entity-ava .on { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; 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.2rem; font-weight: 700; }
.entity-kv { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; font-size: .8rem; color: var(--ink-3); }
.entity-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--cream-2); }
.entity-split > div { padding: 13px; text-align: center; }
.entity-split > div + div { border-left: 1px solid var(--cream-2); }
.entity-split .v { font-weight: 700; font-size: 1.02rem; }
.entity-split .k { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-top: 3px; }
.bg-warn-soft { background: var(--warn-wash); }
.bg-danger-soft { background: var(--danger-wash); }
.bg-ok-soft { background: var(--ok-wash); }
.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; }

/* 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; } }
