/* =========================================================
   INES MELCHOR GIMNASIO · Estilos del sitio público y clientes
   ========================================================= */
:root {
  --orange: #ef8e00;
  --orange-600: #d67f00;
  --orange-100: #fff1dc;
  --ink: #0e0e0f;
  --ink-2: #161618;
  --ink-3: #1f1f22;
  --line: #2c2c30;
  --text: #f4f2ef;
  --muted: #a9a6a1;
  --white: #ffffff;
  --ok: #2fbf71;
  --danger: #e5484d;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--ink); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); text-transform: uppercase; font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); text-transform: uppercase; font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #000; padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.kicker {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  color: var(--orange); font-size: .95rem; margin-bottom: .6em;
}

/* ---------- Botones ---------- */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font); letter-spacing: .02em; cursor: pointer; text-decoration: none !important;
  transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #111; }
.btn-primary:hover { background: #ffa21f; box-shadow: 0 10px 24px -10px var(--orange); }
.btn-outline { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn-outline:hover { background: var(--orange); color: #111; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(0,0,0,.15); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #000; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.9em; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,15,.82); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 52px; height: 52px; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a:not(.btn) { color: var(--text); font-weight: 600; font-size: .98rem; position: relative; }
.main-nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--orange); transition: right .3s var(--ease);
}
.main-nav > a:not(.btn):hover { text-decoration: none; }
.main-nav > a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--ink-2); padding: 18px 16px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s var(--ease); z-index: -1;
  }
  .main-nav > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 8px; }
  .nav-open .main-nav { transform: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; isolation: isolate;
  background: linear-gradient(100deg, rgba(14,14,15,.96) 0%, rgba(14,14,15,.75) 45%, rgba(14,14,15,.25) 100%),
              var(--hero-img) center/cover no-repeat, var(--ink-2);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 140px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--ink));
}
.hero-inner { padding: 90px 0 110px; max-width: 1200px; }
.hero h1 { max-width: 15ch; }
.hero h1 .accent { color: var(--orange); }
.hero-lead { max-width: 52ch; font-size: 1.18rem; color: #ddd8d1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 46px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 42px; }
.hero-facts li { display: flex; flex-direction: column; border-left: 3px solid var(--orange); padding-left: 14px; }
.hero-facts strong { font-family: var(--display); font-size: 2rem; line-height: 1; }
.hero-facts span { color: var(--muted); font-size: .92rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

/* =========================================================
   TARJETAS DE MEMBRESÍAS
   Hover: la tarjeta se enfoca con zoom; las demás pasan a B/N.
   ========================================================= */
.plans-grid {
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 26px; align-items: stretch; padding: 14px 0;
}
.plan {
  position: relative; display: flex; flex-direction: column; outline: none;
  transition: transform .5s var(--ease), filter .5s var(--ease), opacity .5s var(--ease);
  will-change: transform, filter;
}
.plan-card {
  position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0;
  min-height: 400px; display: flex; align-items: flex-end; isolation: isolate;
  background: var(--ink-3);
}
.plan-card::before {               /* imagen de fondo */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--plan-img) center/cover no-repeat, linear-gradient(135deg, #3a2a10, #111);
  transition: transform .8s var(--ease);
}
.plan-card::after {                /* degradado para legibilidad */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 15%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.92) 100%);
}
.plan-body { padding: 26px 24px 22px; width: 100%; }
.plan-duration {
  display: inline-block; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .85rem; color: #111; background: var(--orange);
  padding: .3em .8em; border-radius: 999px; margin-bottom: 10px;
}
.plan-name { font-size: clamp(2rem, 2.7vw, 2.6rem); overflow-wrap: anywhere; text-transform: uppercase; font-weight: 800; margin: 0; color: #fff; }
.plan-tagline { color: #e8e2da; margin: 4px 0 0; font-size: .98rem; }
.plan-benefits {
  list-style: none; padding: 0; margin: 0; font-size: .92rem; color: #eee;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s, margin .4s;
}
.plan-benefits li { padding-left: 22px; position: relative; margin: 4px 0; }
.plan-benefits li::before {
  content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}
.plan-tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.plan-save { margin-left: auto; }
.plan-badge, .plan-save {
  font-weight: 700; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .08em; padding: .45em .8em; border-radius: 999px;
}
.plan-badge { background: #fff; color: #111; }
.plan-save  { background: rgba(0,0,0,.6); color: var(--orange); border: 1px solid var(--orange); backdrop-filter: blur(4px); }

.plan-price {
  background: var(--ink-2); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); padding: 18px 22px 22px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1;
}
.plan-price del { color: var(--muted); font-size: 1rem; }
.plan-price strong { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--orange); font-weight: 800; }
.plan-permonth { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.plan-price .btn { margin-top: auto; }

.plan.is-featured .plan-card { box-shadow: inset 0 0 0 2px var(--orange); }
.plan.is-featured .plan-price { border-color: var(--orange); }

/* --- Interacción --- */
@media (hover: hover) {
  .plans-grid:has(.plan:hover) .plan:not(:hover) {
    filter: grayscale(1) brightness(.72);
    transform: scale(.96);
  }
  .plan:hover { transform: scale(1.07); z-index: 3; }
  .plan:hover .plan-card::before { transform: scale(1.14); }
  .plan:hover .plan-benefits { max-height: 220px; opacity: 1; margin-top: 12px; }
  .plan:hover .plan-card, .plan:hover .plan-price { box-shadow: 0 30px 60px -25px rgba(239,142,0,.55); }
  .plan:hover .plan-card { box-shadow: inset 0 0 0 2px var(--orange); }
  .plan:hover .plan-price { border-color: var(--orange); }
}
/* Navegación con teclado: mismo efecto al enfocar */
.plans-grid:has(.plan:focus-visible) .plan:not(:focus-visible) { filter: grayscale(1) brightness(.72); transform: scale(.96); }
.plan:focus-visible { transform: scale(1.07); z-index: 3; }
.plan:focus-visible .plan-benefits { max-height: 220px; opacity: 1; margin-top: 12px; }
/* Navegadores sin :has() */
@supports not selector(:has(*)) {
  @media (hover: hover) { .plans-grid:hover .plan:not(:hover) { filter: grayscale(1) brightness(.72); transform: scale(.96); } }
}
/* Pantallas táctiles: beneficios siempre visibles */
@media (hover: none) { .plan-benefits { max-height: none; opacity: 1; margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .plan, .plan-card::before { transition: filter .2s; }
  .plan:hover, .plan:focus-visible, .plans-grid:has(.plan:hover) .plan:not(:hover) { transform: none; }
}

@media (max-width: 1080px) { .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .plans-grid { grid-template-columns: 1fr; gap: 22px; } .plan-card { min-height: 340px; } }

/* ---------- Barra de vigencia ---------- */
.promo-bar {
  margin-top: 44px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 26px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 16px 28px;
}
.promo-bar__info { display: flex; align-items: center; gap: 10px; font-size: .98rem; }
.promo-bar__info strong { color: #fff; }
.promo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: pulse 2s infinite; }
.promo-bar__track { height: 10px; background: #2a2a2e; border-radius: 99px; overflow: hidden; position: relative; }
.promo-bar__track span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #ffb340, var(--orange) 60%, #ff6a00);
  background-size: 200% 100%; animation: shimmer 3s linear infinite;
  transition: width 1.2s var(--ease);
}
.promo-bar__count { font-size: .98rem; white-space: nowrap; color: var(--muted); }
.promo-bar__count b { color: var(--orange); font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em; }
.promo-bar.is-finalizada .promo-dot { background: var(--danger); animation: none; }
.promo-bar.is-proxima .promo-dot { background: #4aa3ff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.55); } 70% { box-shadow: 0 0 0 10px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 860px) {
  .promo-bar { grid-template-columns: 1fr; border-radius: var(--radius); text-align: left; padding: 18px 20px; }
}
.empty-state { text-align: center; background: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; }

/* ---------- Servicios ---------- */
.section-services { padding-top: 0; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--ink-2); padding: 34px 28px; transition: background .3s; }
.service:hover { background: var(--ink-3); }
.service-num { font-family: var(--display); color: var(--orange); font-weight: 800; font-size: 1.1rem; letter-spacing: .1em; }
.service h3 { margin: 10px 0 8px; text-transform: uppercase; }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Horarios ---------- */
.section-hours { background: var(--ink-2); }
.hours-layout { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
.hours-card { background: var(--orange); color: #111; border-radius: var(--radius); padding: 30px 28px; }
.hours-card h3 { text-transform: uppercase; font-size: 1.8rem; }
.hours-list { list-style: none; padding: 0; margin: 0 0 22px; }
.hours-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.18); }
.hours-list span { font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
.hours-list strong { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.hours-card .btn-outline { border-color: #111; color: #111; }
.hours-card .btn-outline:hover { background: #111; color: var(--orange); }
.classes-wrap h3 { text-transform: uppercase; font-size: 1.8rem; }
.classes-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.classes-day { background: var(--ink-3); border-radius: var(--radius-sm); padding: 16px; border-top: 3px solid var(--orange); }
.classes-day h4 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.class-item { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); }
.class-item time { color: var(--orange); font-size: .85rem; font-weight: 600; }
.class-item strong { font-size: 1.02rem; }
.class-item span { color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .hours-layout { grid-template-columns: 1fr; } }

/* ---------- Staff ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.tab {
  background: transparent; color: var(--muted); border: 2px solid var(--line); border-radius: 999px;
  padding: .7em 1.4em; font: 700 1rem var(--font); cursor: pointer; transition: all .25s;
}
.tab:hover { color: #fff; border-color: #555; }
.tab.is-active { background: var(--orange); border-color: var(--orange); color: #111; }
.staff-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.staff-grid.is-active { display: grid; animation: fadeUp .5s var(--ease); }
.staff-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.staff-card:hover { transform: translateY(-6px); border-color: var(--orange); }
.staff-photo { aspect-ratio: 4/4.2; background: radial-gradient(circle at 30% 20%, #3b2a12, #141414 70%); display: grid; place-items: center; overflow: hidden; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: filter .4s, transform .6s var(--ease); }
.staff-card:hover .staff-photo img { filter: none; transform: scale(1.05); }
.staff-initials {
  width: 120px; height: 120px; border-radius: 50%; background: var(--orange); color: #111;
  display: grid; place-items: center; font-family: var(--display); font-size: 3rem; font-weight: 800;
}
.staff-info { padding: 20px 22px 24px; }
.staff-info h3 { margin-bottom: 2px; }
.staff-specialty { color: var(--orange); font-weight: 600; margin-bottom: 10px; }
.staff-bio { color: var(--muted); font-size: .95rem; }
.staff-ig { font-weight: 600; font-size: .92rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Ubicación ---------- */
.section-location { background: var(--ink-2); }
.location-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.location-address { font-size: 1.35rem; font-weight: 600; margin-bottom: .3em; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--ink-3); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 900px) { .location-layout { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-band { background: var(--orange); color: #111; padding: 64px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { margin-bottom: .2em; }
.cta-inner p { font-size: 1.15rem; margin-bottom: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: #080809; padding: 64px 0 24px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 64px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 6px 0; }
.footer-list a, .social a, .footer-bottom a { color: var(--muted); }
.footer-list a:hover, .social a:hover, .footer-bottom a:hover { color: var(--orange); }
.social { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; border-radius: 999px; padding: 14px; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  text-decoration: none !important; transition: transform .3s var(--ease);
}
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: waPulse 2.4s infinite; z-index: -1; }
.wa-float:hover { transform: scale(1.06); }
.wa-float__label { font-weight: 700; padding-right: 6px; white-space: nowrap; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 80%,100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
@media (max-width: 600px) { .wa-float__label { display: none; } .wa-float { right: 16px; bottom: 16px; } }

/* =========================================================
   ÁREA DE CLIENTES
   ========================================================= */
.client-page { background: var(--ink); }
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 50px 16px; background: radial-gradient(circle at 80% 0%, rgba(239,142,0,.18), transparent 50%); }
.auth-card { width: min(480px, 100%); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); }
.auth-card.wide { width: min(640px, 100%); }
.auth-card h1 { font-size: 2.4rem; margin-bottom: .2em; }
.auth-card .muted { margin-bottom: 24px; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: .95rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: #ddd; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--ink); color: var(--text); font: 400 1rem var(--font); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,142,0,.25); }
.field small { color: var(--muted); font-size: .84rem; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; border-left: 4px solid; }
.alert-success { background: rgba(47,191,113,.12); border-color: var(--ok); color: #9ee6bd; }
.alert-error   { background: rgba(229,72,77,.12); border-color: var(--danger); color: #ffb3b5; }
.alert-info    { background: rgba(239,142,0,.12); border-color: var(--orange); color: #ffd59a; }

.dash { padding: 46px 0 90px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.dash-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0; }
.dash-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h2 { font-size: 1.7rem; margin-bottom: .6em; }
.panel + .panel { margin-top: 24px; }

.status-card { position: relative; overflow: hidden; }
.status-card .status-pill { display: inline-block; padding: .35em .9em; border-radius: 999px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.pill-vigente { background: rgba(47,191,113,.16); color: #7ee2a8; }
.pill-vencida { background: rgba(229,72,77,.16); color: #ff9a9d; }
.pill-proxima { background: rgba(74,163,255,.16); color: #9ccbff; }
.pill-pendiente { background: rgba(239,142,0,.16); color: #ffc46b; }
.pill-aprobada { background: rgba(47,191,113,.16); color: #7ee2a8; }
.pill-rechazada, .pill-cancelada { background: rgba(255,255,255,.08); color: var(--muted); }
.big-days { font-family: var(--display); font-size: 5rem; line-height: .9; color: var(--orange); font-weight: 800; margin: 18px 0 4px; }
.status-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.status-meta strong { display: block; color: var(--text); font-size: 1.05rem; }
.progress { height: 10px; background: #2a2a2e; border-radius: 99px; overflow: hidden; margin-top: 18px; }
.progress span { display: block; height: 100%; background: var(--orange); border-radius: inherit; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

.plan-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.plan-pick label { position: relative; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick .pick {
  display: block; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px; text-align: center; transition: all .2s;
}
.plan-pick .pick b { display: block; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; }
.plan-pick .pick span { color: var(--orange); font-weight: 700; }
.plan-pick input:checked + .pick { border-color: var(--orange); background: rgba(239,142,0,.1); }
.plan-pick input:focus-visible + .pick { outline: 3px solid var(--orange); outline-offset: 2px; }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font: 600 .9rem var(--font); padding: 0; }
