/* Fidod — portal responsive · móvil + PC */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --fd-blue: #0B8CFF;
  --fd-blue-deep: #0066CC;
  --fd-blue-soft: #E8F4FF;
  --fd-sky: #5BB8FF;
  --fd-ink: #0F172A;
  --fd-muted: #64748B;
  --fd-line: #D7E6F5;
  --fd-bg: #F3F8FD;
  --fd-white: #FFFFFF;
  --fd-ok: #0F9F6E;
  --fd-bad: #DC2626;
  --fd-radius: 18px;
  --fd-shadow: 0 18px 50px rgba(11, 140, 255, 0.12);
  --fd-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --fd-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --fd-pad: clamp(1rem, 3vw, 1.5rem);
  --fd-safe-b: env(safe-area-inset-bottom, 0px);
  --fd-safe-t: env(safe-area-inset-top, 0px);
  --fd-touch: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--fd-font);
  color: var(--fd-ink);
  background: var(--fd-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--fd-safe-b);
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--fd-blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.fd-wrap {
  width: min(1120px, calc(100% - 2 * var(--fd-pad)));
  margin-inline: auto;
}
.fd-num { font-variant-numeric: tabular-nums lining-nums; }

/* —— Header —— */
.fd-top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--fd-safe-t);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(215, 230, 245, 0.9);
}
.fd-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 60px;
}
.fd-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.fd-logo img { height: 32px; width: auto; }
.fd-nav-toggle {
  display: none;
  width: var(--fd-touch);
  height: var(--fd-touch);
  border: 0;
  background: var(--fd-blue-soft);
  border-radius: 14px;
  place-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
}
.fd-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fd-blue-deep);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.fd-nav {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
}
.fd-nav a {
  text-decoration: none;
  color: var(--fd-ink);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.fd-nav a:hover,
.fd-nav a.is-active {
  background: var(--fd-blue-soft);
  color: var(--fd-blue-deep);
  text-decoration: none;
}

@media (max-width: 760px) {
  .fd-nav-toggle { display: inline-flex; }
  .fd-nav {
    position: fixed;
    inset: calc(60px + var(--fd-safe-t)) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--fd-line);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem var(--fd-pad) 1rem;
    gap: .35rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  }
  .fd-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .fd-nav a {
    padding: .9rem 1rem;
    border-radius: 14px;
    background: #F7FBFF;
    min-height: var(--fd-touch);
  }
}

/* —— Buttons —— */
.fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: .9rem 1.35rem;
  min-height: var(--fd-touch);
  font-weight: 700;
  background: linear-gradient(135deg, var(--fd-blue), var(--fd-blue-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 140, 255, 0.28);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  text-align: center;
}
.fd-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 140, 255, 0.34);
  text-decoration: none;
  color: #fff;
}
.fd-btn:active { transform: translateY(0); }
.fd-btn--ghost {
  background: #fff;
  color: var(--fd-blue-deep);
  border: 1.5px solid var(--fd-line);
  box-shadow: none;
}
.fd-btn--ghost:hover {
  background: var(--fd-blue-soft);
  color: var(--fd-blue-deep);
}
.fd-btn--danger {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.28);
}
.fd-btn--warn {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}
.fd-btn--block { width: 100%; }
.fd-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.fd-giro-panel {
  animation: fdRise .35s ease both;
}
[data-catalogo-wrap][hidden],
.fd-giro-panel[hidden] {
  display: none !important;
}

/* —— Promo cupos —— */
.fd-promo {
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--fd-line);
}
.fd-promo--ok {
  background: linear-gradient(135deg, #ECFDF5, #E8F4FF);
  border-color: #A7F3D0;
}
.fd-promo--off {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
.fd-promo-top {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .45rem;
}
.fd-promo-tag {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #047857;
  background: #D1FAE5;
  border-radius: 999px;
  padding: .22rem .55rem;
}
.fd-promo--off .fd-promo-tag {
  color: #64748B;
  background: #E2E8F0;
}
.fd-promo-count {
  font-size: .8rem;
  font-weight: 700;
  color: var(--fd-muted);
}
.fd-promo strong {
  display: block;
  font-family: var(--fd-display);
  letter-spacing: -0.02em;
  margin-bottom: .25rem;
}
.fd-promo p {
  margin: 0;
  font-size: .9rem;
  color: var(--fd-muted);
  line-height: 1.45;
}

/* —— Noticia / lanzamiento —— */
.fd-news {
  background: linear-gradient(90deg, #063A6E, #0B8CFF 55%, #1AA0FF);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.fd-news-inner {
  display: flex;
  align-items: center;
  gap: .75rem 1rem;
  flex-wrap: wrap;
  padding: .7rem 0;
  min-height: 48px;
}
.fd-news-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: .28rem .65rem;
}
.fd-news p {
  margin: 0;
  font-size: clamp(.84rem, 2.4vw, .95rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.96);
}
.fd-news strong { font-weight: 800; }

.fd-news-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr;
  align-items: start;
  background: #fff;
  border: 1px solid var(--fd-line);
  border-radius: 22px;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  box-shadow: var(--fd-shadow);
  margin-bottom: 1.75rem;
}
.fd-news-card-date {
  min-width: 72px;
  text-align: center;
  background: linear-gradient(160deg, #0B8CFF, #0057B8);
  color: #fff;
  border-radius: 16px;
  padding: .85rem .65rem;
  box-shadow: 0 10px 24px rgba(11, 140, 255, 0.22);
}
.fd-news-card-date b {
  display: block;
  font-family: var(--fd-display);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.fd-news-card-date span {
  display: block;
  margin-top: .25rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .92;
}
.fd-news-card h2 {
  font-family: var(--fd-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  letter-spacing: -0.03em;
  margin: 0 0 .4rem;
}
.fd-news-card p {
  margin: 0;
  color: var(--fd-muted);
  font-size: .94rem;
}
.fd-news-card .fd-badge { margin-bottom: .5rem; }
@media (max-width: 520px) {
  .fd-news-card { grid-template-columns: 1fr; }
  .fd-news-card-date {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .45rem;
    min-width: 0;
  }
  .fd-news-card-date b { font-size: 1.5rem; }
  .fd-news-card-date span { margin-top: 0; }
}

/* —— Hero —— */
/* Banner promocional (logo, Próximamente, phone). CTAs abajo; sin texto HTML sobre el arte. */
.fd-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;
}
.fd-hero {
  --fd-hero-pos: 50% 48%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background-color: #0a3d6e;
  background-image: var(--fd-hero);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--fd-hero-pos);
}
/* Oscurece un poco el banner (desktop + móvil) sin matar detalle */
.fd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(4, 28, 58, 0.28) 0%,
      rgba(6, 40, 80, 0.16) 28%,
      rgba(6, 40, 80, 0.2) 52%,
      rgba(4, 22, 48, 0.55) 78%,
      rgba(3, 16, 36, 0.82) 100%
    ),
    rgba(4, 30, 62, 0.18);
}
.fd-hero::after {
  content: none;
  display: none;
}
.fd-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  /* Más padding abajo = bloque lead/CTAs más arriba (sobre la ola azul, no al borde) */
  padding: 0 0 clamp(3.25rem, 8vh, 5.25rem);
  animation: fdRise .7s ease both;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.fd-hero-spotlight {
  width: min(100%, 38rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .95rem 1.1rem 1.05rem;
  border-radius: 1.15rem;
  background: rgba(3, 18, 40, 0.78);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  /* Empuje extra hacia arriba sin invadir teléfono / Próximamente */
  transform: translateY(-1.25rem);
}
.fd-hero-kicker {
  display: none;
}
.fd-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.fd-pill--hero {
  display: none; /* chip ya viene en el arte */
}
.fd-pill-pin {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
  flex: 0 0 auto;
}
.fd-hero h1:not(.fd-sr-only) {
  font-family: var(--fd-display);
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 .75rem;
  max-width: none;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.4);
}
.fd-hero-lead {
  margin: 0 0 .85rem;
  max-width: 36ch;
  font-size: clamp(.92rem, 2.4vw, 1.05rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  text-shadow: none;
  text-wrap: balance;
}
.fd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  max-width: 100%;
  justify-content: center;
  width: 100%;
}
.fd-hero-actions .fd-btn {
  flex: 1 1 12rem;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}
.fd-hero-actions .fd-btn--ghost {
  background: #fff;
  color: var(--fd-blue-deep);
  border-color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 769px) {
  .fd-hero {
    --fd-hero-pos: 50% 46%;
    min-height: min(74vh, 700px);
    /* Reserva zona visual (phone / Próximamente) arriba del panel */
    padding-top: clamp(15rem, 40vh, 24rem);
  }
  .fd-hero-spotlight {
    width: min(100%, 40rem);
    transform: translateY(-1.75rem);
  }
  .fd-hero-inner {
    padding-bottom: clamp(3.5rem, 9vh, 5.5rem);
  }
}
/* Tablet / móvil ancho (~768) */
@media (max-width: 768px) {
  .fd-hero {
    /* Centro útil: teléfono + Próximamente + moto */
    --fd-hero-pos: 48% 38%;
    min-height: 0;
    padding-top: min(58vw, 380px);
  }
  .fd-hero-inner {
    padding-bottom: calc(2.75rem + var(--fd-safe-b));
  }
  .fd-hero-spotlight {
    width: 100%;
    padding: .85rem .9rem .95rem;
    border-radius: 1rem;
    background: rgba(3, 16, 36, 0.88);
    transform: translateY(-1.1rem);
  }
  .fd-hero-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: .55rem;
  }
  .fd-hero-actions .fd-btn {
    flex: none;
    width: 100%;
    min-height: 50px;
    padding: .95rem 1.1rem;
  }
}
/* Teléfono (~390) */
@media (max-width: 480px) {
  .fd-hero {
    --fd-hero-pos: 50% 34%;
    padding-top: min(64vw, 340px);
  }
  .fd-hero-inner {
    padding-bottom: calc(2.35rem + var(--fd-safe-b));
  }
  .fd-hero-lead {
    font-size: .92rem;
    max-width: none;
    margin-bottom: .75rem;
  }
  .fd-hero-spotlight {
    padding: .8rem .8rem .9rem;
    transform: translateY(-0.85rem);
  }
}

@keyframes fdRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* —— Sections —— */
.fd-section { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.fd-section h2 {
  font-family: var(--fd-display);
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 .5rem;
}
.fd-lead {
  color: var(--fd-muted);
  margin: 0 0 1.5rem;
  max-width: 52ch;
  font-size: .95rem;
}

.fd-grid-2 {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .fd-grid-2 { grid-template-columns: 1fr; }
}

.fd-card {
  background: var(--fd-white);
  border: 1px solid var(--fd-line);
  border-radius: calc(var(--fd-radius) + 4px);
  box-shadow: var(--fd-shadow);
  overflow: hidden;
  transition: transform .2s ease;
}
@media (hover: hover) {
  .fd-card:hover { transform: translateY(-3px); }
}
.fd-card-media {
  aspect-ratio: 16/10;
  background: #cfe7ff center/cover no-repeat;
}
.fd-card-body { padding: 1.25rem 1.25rem 1.4rem; }
.fd-card-body h3 {
  font-family: var(--fd-display);
  margin: 0 0 .4rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.fd-card-body p {
  margin: 0 0 1.1rem;
  color: var(--fd-muted);
  font-size: .93rem;
}
.fd-card-body .fd-btn { width: 100%; }
.fd-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fd-blue-deep);
  background: var(--fd-blue-soft);
  padding: .28rem .55rem;
  border-radius: 999px;
  margin-bottom: .65rem;
}

.fd-note {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  background: linear-gradient(135deg, #0B8CFF, #0057B8);
  color: #fff;
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--fd-shadow);
}
.fd-note h2 { color: #fff; margin: 0 0 .5rem; }
.fd-note p { color: rgba(255, 255, 255, 0.9); margin: 0; font-size: .95rem; }
.fd-note .fd-btn { width: 100%; }
@media (max-width: 800px) {
  .fd-note { grid-template-columns: 1fr; }
}

/* —— Guía home (Más información) —— */
.fd-guide {
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(11, 140, 255, 0.08), transparent 55%),
    var(--fd-bg);
}
.fd-guide-block,
.fd-guide-flow,
.fd-faq,
#guia-que-es,
#guia-flujo,
#guia-repartidor,
#guia-negocio,
#guia-cliente,
#guia-faq {
  scroll-margin-top: calc(72px + var(--fd-safe-t));
}
.fd-guide-intro { margin-bottom: 1.15rem; }
.fd-guide-intro .fd-badge { margin-bottom: .65rem; }
.fd-guide-intro h2 { margin-bottom: .45rem; }

.fd-guide-nav {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: .15rem 0 1.15rem;
  margin-bottom: .35rem;
  scroll-snap-type: x proximity;
}
.fd-guide-nav a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-decoration: none;
  font-weight: 700;
  font-size: .82rem;
  color: var(--fd-blue-deep);
  background: #fff;
  border: 1.5px solid var(--fd-line);
  border-radius: 999px;
  padding: .55rem .95rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.fd-guide-nav a:hover {
  background: var(--fd-blue-soft);
  text-decoration: none;
}

.fd-guide-block {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--fd-line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--fd-shadow);
  margin-bottom: 1.25rem;
}
.fd-guide-block--flip .fd-guide-media { order: 2; }
.fd-guide-block--flip .fd-guide-copy { order: 1; }
.fd-guide-media {
  min-height: 220px;
  background: #cfe7ff center/cover no-repeat;
}
.fd-guide-copy {
  padding: clamp(1.15rem, 3vw, 1.65rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fd-guide-copy h3 {
  font-family: var(--fd-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 .55rem;
}
.fd-guide-copy > p {
  margin: 0 0 .85rem;
  color: var(--fd-muted);
  font-size: .94rem;
}
.fd-guide-copy .fd-btn {
  margin-top: .35rem;
  width: auto;
  min-width: min(100%, 280px);
}
.fd-guide-subtitle {
  font-family: var(--fd-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: .85rem 0 .4rem;
  color: var(--fd-ink);
}
@media (max-width: 840px) {
  .fd-guide-block,
  .fd-guide-block--flip {
    grid-template-columns: 1fr;
  }
  .fd-guide-block--flip .fd-guide-media,
  .fd-guide-block--flip .fd-guide-copy { order: initial; }
  .fd-guide-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .fd-guide-copy .fd-btn { width: 100%; }
}

.fd-guide-roles {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
  display: grid;
  gap: .55rem;
  width: 100%;
}
.fd-guide-roles li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .75rem .85rem;
  border-radius: 14px;
  background: #F7FBFF;
  border: 1px solid var(--fd-line);
  font-size: .9rem;
  color: var(--fd-muted);
}
.fd-guide-roles strong { color: var(--fd-ink); }
.fd-guide-role-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--fd-blue-deep);
  background: #fff;
  border: 1px solid #C7E2FF;
}

/* Pasos numerados */
.fd-steps-guide {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: .75rem;
  width: 100%;
  counter-reset: none;
}
.fd-steps-guide > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
}
.fd-steps-guide-n {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--fd-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(160deg, var(--fd-blue), var(--fd-blue-deep));
  box-shadow: 0 8px 18px rgba(11, 140, 255, 0.22);
  flex-shrink: 0;
}
.fd-steps-guide strong {
  display: block;
  font-size: .95rem;
  color: var(--fd-ink);
  margin-bottom: .15rem;
}
.fd-steps-guide p {
  margin: 0;
  font-size: .88rem;
  color: var(--fd-muted);
  line-height: 1.45;
}

/* Flujo 3 apps */
.fd-guide-flow {
  background: #fff;
  border: 1px solid var(--fd-line);
  border-radius: 24px;
  padding: clamp(1.15rem, 3vw, 1.75rem);
  box-shadow: var(--fd-shadow);
  margin-bottom: 1.25rem;
}
.fd-guide-flow-head { margin-bottom: 1.15rem; }
.fd-guide-flow-head h3 {
  font-family: var(--fd-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 .45rem;
}
.fd-guide-flow-head p {
  margin: 0;
  color: var(--fd-muted);
  font-size: .94rem;
  max-width: 68ch;
}

.fd-guide-pipeline {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .55rem;
}
.fd-guide-pipe {
  flex: 1 1 140px;
  background: linear-gradient(165deg, #FBFDFF, #EEF6FF);
  border: 1px solid var(--fd-line);
  border-radius: 16px;
  padding: 1rem .9rem .95rem;
  min-width: 0;
}
.fd-guide-pipe-n {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  font-family: var(--fd-display);
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--fd-blue), var(--fd-blue-deep));
  margin-bottom: .55rem;
}
.fd-guide-pipe strong {
  display: block;
  font-family: var(--fd-display);
  font-size: .98rem;
  letter-spacing: -0.02em;
  margin-bottom: .25rem;
}
.fd-guide-pipe p {
  margin: 0;
  font-size: .82rem;
  color: var(--fd-muted);
  line-height: 1.4;
}
.fd-guide-pipe-arrow {
  flex: 0 0 18px;
  align-self: center;
  width: 18px;
  height: 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%230B8CFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h10M10 5l4 4-4 4'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
@media (max-width: 720px) {
  .fd-guide-pipeline { flex-direction: column; }
  .fd-guide-pipe-arrow {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0 auto;
    transform: rotate(90deg);
  }
}

.fd-guide-apps {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.1rem;
}
.fd-guide-app {
  border: 1px solid var(--fd-line);
  border-radius: 16px;
  padding: .95rem 1rem;
  background: #F7FBFF;
}
.fd-guide-app-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fd-blue-deep);
  background: #fff;
  border: 1px solid #C7E2FF;
  border-radius: 999px;
  padding: .2rem .5rem;
  margin-bottom: .45rem;
}
.fd-guide-app strong {
  display: block;
  font-family: var(--fd-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: .25rem;
}
.fd-guide-app p {
  margin: 0;
  font-size: .85rem;
  color: var(--fd-muted);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .fd-guide-apps { grid-template-columns: 1fr; }
}

.fd-guide-secure {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #ECFDF5, #E8F4FF);
  border: 1px solid #A7F3D0;
}
.fd-guide-secure-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #047857;
  background: #fff;
  border: 1px solid #A7F3D0;
}
.fd-guide-secure h4 {
  font-family: var(--fd-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0 0 .35rem;
  color: #065F46;
}
.fd-guide-secure p {
  margin: 0;
  font-size: .9rem;
  color: #047857;
  line-height: 1.45;
}
@media (max-width: 520px) {
  .fd-guide-secure { grid-template-columns: 1fr; }
}

/* FAQ */
.fd-faq {
  background: #fff;
  border: 1px solid var(--fd-line);
  border-radius: 24px;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  box-shadow: var(--fd-shadow);
}
.fd-faq > h3 {
  font-family: var(--fd-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  letter-spacing: -0.03em;
  margin: 0 0 .35rem;
}
.fd-faq > .fd-lead { margin-bottom: 1rem; }
.fd-faq-item {
  border: 1px solid var(--fd-line);
  border-radius: 14px;
  background: #F7FBFF;
  margin-bottom: .55rem;
  overflow: hidden;
}
.fd-faq-item:last-child { margin-bottom: 0; }
.fd-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: .95rem;
  padding: .95rem 1rem;
  min-height: var(--fd-touch);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--fd-ink);
  -webkit-tap-highlight-color: transparent;
}
.fd-faq-item summary::-webkit-details-marker { display: none; }
.fd-faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--fd-blue-deep);
  border-bottom: 2px solid var(--fd-blue-deep);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}
.fd-faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.fd-faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--fd-muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* —— Forms —— */
.fd-form-shell {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.2fr);
  align-items: start;
  padding: clamp(1.25rem, 4vw, 2.5rem) 0 clamp(5.5rem, 12vw, 4rem);
}
@media (max-width: 920px) {
  .fd-form-shell { grid-template-columns: 1fr; }
}

.fd-form-aside {
  position: sticky;
  top: calc(72px + var(--fd-safe-t));
  background: linear-gradient(160deg, #0B8CFF 0%, #0057B8 100%);
  color: #fff;
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--fd-shadow);
  overflow: hidden;
}
.fd-form-aside::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% 30%;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.fd-form-aside > * { position: relative; z-index: 1; }
.fd-form-aside h1 {
  font-family: var(--fd-display);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: .35rem 0 .7rem;
  line-height: 1.1;
}
.fd-form-aside p { margin: 0 0 .9rem; color: rgba(255, 255, 255, 0.92); font-size: .95rem; }
.fd-form-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}
.fd-form-aside li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .92rem;
  color: rgba(255, 255, 255, 0.95);
}
.fd-form-aside li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: .45rem;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
.fd-form-aside .fd-mini {
  margin-top: 1.15rem;
  font-size: .82rem;
  opacity: .88;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .fd-form-aside {
    position: relative;
    top: auto;
    border-radius: 20px;
  }
  .fd-form-aside ul {
    grid-template-columns: 1fr 1fr;
    gap: .4rem .75rem;
  }
}
@media (max-width: 520px) {
  .fd-form-aside ul { grid-template-columns: 1fr; }
}

.fd-steps {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin: 0 0 1.1rem;
}
.fd-steps span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fd-blue-deep);
  background: var(--fd-blue-soft);
  border-radius: 999px;
  padding: .35rem .65rem;
}

.fd-form {
  background: #fff;
  border: 1px solid var(--fd-line);
  border-radius: 24px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: var(--fd-shadow);
  animation: fdRise .55s ease both;
}
.fd-form-section {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--fd-line);
}
.fd-form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: .35rem;
  padding-bottom: .35rem;
}
.fd-form-section legend {
  font-family: var(--fd-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .85rem;
  letter-spacing: -0.02em;
  float: none;
  width: 100%;
  padding: 0;
}

.fd-fields {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fd-fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .fd-fields { grid-template-columns: 1fr; }
}

.fd-field label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .35rem;
}
.fd-field .hint,
.fd-drop .hint {
  display: block;
  color: var(--fd-muted);
  font-size: .78rem;
  margin-top: .25rem;
  font-weight: 500;
  line-height: 1.35;
}
.fd-field input[type="text"],
.fd-field input[type="email"],
.fd-field input[type="tel"],
.fd-field select,
.fd-field textarea {
  width: 100%;
  border: 1.5px solid var(--fd-line);
  border-radius: 14px;
  padding: .85rem .95rem;
  min-height: var(--fd-touch);
  background: #FBFDFF;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.fd-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.4rem;
}
.fd-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}
.fd-field input:focus,
.fd-field select:focus,
.fd-field textarea:focus {
  outline: none;
  border-color: var(--fd-blue);
  box-shadow: 0 0 0 4px rgba(11, 140, 255, 0.15);
  background: #fff;
}

/* —— Selector de horario (abre / cierra) —— */
.fd-horario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
@media (max-width: 640px) {
  .fd-horario { grid-template-columns: 1fr; }
}
.fd-horario-card {
  position: relative;
  display: grid;
  gap: .4rem;
  padding: 1rem .95rem .9rem;
  border: 1.5px solid var(--fd-line);
  border-radius: 16px;
  background: linear-gradient(165deg, #FBFDFF 0%, #EEF6FF 100%);
  box-shadow: 0 8px 22px rgba(11, 140, 255, 0.06);
  transition: border-color .15s, box-shadow .15s;
}
.fd-horario-card:focus-within {
  border-color: var(--fd-blue);
  box-shadow: 0 0 0 4px rgba(11, 140, 255, 0.12);
}
.fd-horario-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-family: var(--fd-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--fd-blue), var(--fd-blue-deep));
}
.fd-horario-badge-close {
  background: linear-gradient(135deg, #3B82F6, #1E40AF);
}
.fd-horario-card label {
  margin-bottom: 0;
  margin-top: .15rem;
}
.fd-horario-card select {
  width: 100%;
  border: 1.5px solid var(--fd-line);
  border-radius: 14px;
  padding: .85rem .95rem;
  padding-right: 2.4rem;
  min-height: var(--fd-touch);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230B8CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  appearance: none;
  -webkit-appearance: none;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--fd-ink);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.fd-horario-card select:focus {
  outline: none;
  border-color: var(--fd-blue);
  box-shadow: 0 0 0 3px rgba(11, 140, 255, 0.18);
}
.fd-field:has(.fd-horario) > .hint {
  margin-top: .55rem;
}

/* —— Dropzones —— */
.fd-drop {
  position: relative;
  display: grid;
  gap: .75rem;
  justify-items: center;
  text-align: center;
  border: 1.5px dashed #9CC9F5;
  border-radius: 18px;
  background: linear-gradient(180deg, #F7FBFF, #EEF6FF);
  padding: 1.15rem .95rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  min-height: 150px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fd-drop:hover,
.fd-drop:focus-visible {
  border-color: var(--fd-blue);
  background: linear-gradient(180deg, #F0F8FF, #E3F1FF);
  box-shadow: 0 0 0 4px rgba(11, 140, 255, 0.1);
  outline: none;
}
.fd-drop.is-drag {
  border-color: var(--fd-blue);
  border-style: solid;
  background: #E8F4FF;
  transform: scale(1.01);
}
.fd-drop.is-filled {
  border-style: solid;
  border-color: #7DD3A8;
  background: linear-gradient(180deg, #F3FCF7, #ECFDF5);
}
.fd-drop.has-error {
  border-style: solid;
  border-color: #FCA5A5;
  background: linear-gradient(180deg, #FFF7F7, #FEF2F2);
}
.fd-drop-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}
.fd-drop-cta-mobile { display: none; }
.fd-drop-cta-desk { display: inline; }
.fd-drop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  width: 100%;
}
.fd-drop-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: .65rem .95rem;
  min-height: 42px;
  font-weight: 700;
  font-size: .82rem;
  background: linear-gradient(135deg, var(--fd-blue), var(--fd-blue-deep));
  color: #fff;
  box-shadow: 0 6px 14px rgba(11, 140, 255, 0.22);
  -webkit-tap-highlight-color: transparent;
}
.fd-drop-btn--soft {
  background: #fff;
  color: var(--fd-blue-deep);
  border: 1.5px solid #B9DBFF;
  box-shadow: none;
}
.fd-drop-btn:active { transform: scale(0.98); }
@media (min-width: 761px) {
  .fd-drop-actions .fd-drop-btn[data-pick="camera"],
  .fd-drop-actions .fd-drop-btn[data-pick="video"] {
    display: none;
  }
}
@media (max-width: 760px) {
  .fd-drop-cta-mobile { display: inline; }
  .fd-drop-cta-desk { display: none; }
  .fd-drop-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .fd-drop-actions .fd-drop-btn[data-pick="file"] {
    grid-column: 1 / -1;
  }
}
.fd-drop-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--fd-blue-deep);
  background: #fff;
  border: 1px solid #C7E2FF;
  box-shadow: 0 8px 18px rgba(11, 140, 255, 0.12);
}
.fd-drop.is-filled .fd-drop-icon {
  color: var(--fd-ok);
  border-color: #A7F3D0;
}
.fd-drop-copy {
  display: grid;
  gap: .2rem;
  max-width: 36ch;
}
.fd-drop-copy strong {
  font-size: .95rem;
  letter-spacing: -0.01em;
  color: var(--fd-ink);
}
.fd-drop-cta {
  font-size: .88rem;
  font-weight: 700;
  color: var(--fd-blue-deep);
}
.fd-drop-file {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--fd-ink);
  word-break: break-word;
}
.fd-drop-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  width: 100%;
}
.fd-drop-preview:empty { display: none; }
.fd-drop-preview-item {
  width: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fd-line);
  background: #fff;
  text-align: center;
}
.fd-drop-preview-item img,
.fd-drop-preview-item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #0F172A;
}
.fd-drop-preview-item video + .fd-drop-pdf {
  position: absolute;
  left: 4px;
  bottom: 22px;
  width: auto;
  aspect-ratio: auto;
  padding: .15rem .35rem;
  border-radius: 6px;
  font-size: .58rem;
}
.fd-drop-preview-item { position: relative; }
.fd-drop-pdf {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .75rem;
  color: var(--fd-blue-deep);
  background: var(--fd-blue-soft);
}
.fd-drop-preview-item span {
  display: block;
  padding: .25rem .3rem;
  font-size: .62rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .fd-drop-desk { display: none; }
  .fd-drop { min-height: 140px; padding: 1.05rem .85rem; }
}

.fd-check {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--fd-muted);
  line-height: 1.45;
  padding: .85rem 1rem;
  border-radius: 16px;
  background: #F7FBFF;
  border: 1px solid var(--fd-line);
}
.fd-check input {
  width: 22px;
  height: 22px;
  margin-top: .1rem;
  flex-shrink: 0;
  accent-color: var(--fd-blue);
}
.fd-field-label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--fd-ink, #0b2540);
  margin-bottom: .35rem;
}
.fd-zona-checks {
  display: grid;
  gap: .55rem;
}
@media (min-width: 560px) {
  .fd-zona-checks {
    grid-template-columns: 1fr 1fr;
  }
}
.fd-check--compact {
  padding: .7rem .85rem;
  margin: 0;
  cursor: pointer;
}
.fd-check--compact span {
  color: var(--fd-ink, #0b2540);
  font-weight: 500;
}

.fd-form-actions {
  position: sticky;
  bottom: 0;
  margin: 1rem calc(-1 * clamp(1.1rem, 3vw, 1.6rem)) calc(-1 * clamp(1.1rem, 3vw, 1.6rem));
  padding: .85rem clamp(1.1rem, 3vw, 1.6rem) calc(.85rem + var(--fd-safe-b));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  z-index: 5;
}

.fd-alert {
  border-radius: 14px;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.4;
}
.fd-alert-ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.fd-alert-bad { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.fd-alert-info { background: var(--fd-blue-soft); color: var(--fd-blue-deep); border: 1px solid #B9DBFF; }

.fd-success {
  text-align: center;
  padding: clamp(1.25rem, 4vw, 2rem) .5rem;
}
.fd-success h2 {
  font-family: var(--fd-display);
  margin: .5rem 0;
  letter-spacing: -0.03em;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}
.fd-success .fd-btn { margin: .25rem; min-width: min(100%, 220px); }
.fd-folio {
  display: inline-block;
  margin: .75rem 0 1.25rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--fd-blue-soft);
  color: var(--fd-blue-deep);
  font-weight: 800;
  font-size: 1.05rem;
}

/* —— Footer —— */
.fd-foot {
  border-top: 1px solid var(--fd-line);
  padding: 1.25rem 0 calc(1.5rem + var(--fd-safe-b));
  color: var(--fd-muted);
  font-size: .85rem;
  background: #fff;
}
.fd-foot-inner {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* —— Admin —— */
.admin-body { background: #EEF4FA; }
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
    padding: 1rem var(--fd-pad);
  }
  .admin-side .brand { width: 100%; margin: 0; }
  .admin-side .sub { width: 100%; margin: 0 0 .35rem; }
  .admin-side a {
    display: inline-flex;
    margin: 0;
    padding: .55rem .8rem;
    font-size: .85rem;
  }
}
.admin-side {
  background: linear-gradient(180deg, #063A6E, #0B8CFF);
  color: #fff;
  padding: 1.4rem 1.1rem;
}
.admin-side .brand {
  font-family: var(--fd-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: .25rem;
}
.admin-side .sub { opacity: .8; font-size: .82rem; margin-bottom: 1.5rem; }
.admin-side a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .7rem .85rem;
  border-radius: 12px;
  margin-bottom: .25rem;
}
.admin-side a:hover,
.admin-side a.active {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}
.admin-main { padding: clamp(1rem, 3vw, 1.4rem); }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.admin-topbar h1 {
  font-family: var(--fd-display);
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  letter-spacing: -0.03em;
}
.stat-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  background: #fff;
  border: 1px solid var(--fd-line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.stat b {
  display: block;
  font-family: var(--fd-display);
  font-size: clamp(1.4rem, 4vw, 1.7rem);
  letter-spacing: -0.03em;
  color: var(--fd-blue-deep);
}
.stat span { color: var(--fd-muted); font-size: .85rem; font-weight: 600; }

.admin-card {
  background: #fff;
  border: 1px solid var(--fd-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 1rem;
  border-bottom: 1px solid var(--fd-line);
  background: #FBFDFF;
}
.admin-filters select,
.admin-filters input {
  border: 1.5px solid var(--fd-line);
  border-radius: 12px;
  padding: .65rem .75rem;
  background: #fff;
  min-width: min(100%, 140px);
  flex: 1 1 140px;
  min-height: 44px;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--fd-line);
  font-size: .9rem;
  vertical-align: top;
}
.admin-table th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fd-muted);
  background: #F8FBFF;
}
.admin-table tr:hover td { background: #F7FBFF; }

@media (max-width: 760px) {
  .admin-table thead { display: none; }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--fd-line);
  }
  .admin-table td {
    border: 0;
    padding: .25rem 0;
  }
  .admin-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fd-muted);
    margin-bottom: .1rem;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .75rem;
  font-weight: 700;
}
.tag-rep { background: #DBEAFE; color: #1D4ED8; }
.tag-res { background: #FEF3C7; color: #B45309; }
.tag-nuevo { background: #E0F2FE; color: #0369A1; }
.tag-en_revision { background: #FEF3C7; color: #B45309; }
.tag-contactado { background: #EDE9FE; color: #6D28D9; }
.tag-aprobado { background: #D1FAE5; color: #047857; }
.tag-rechazado { background: #FEE2E2; color: #B91C1C; }
.tag-baneado { background: #111827; color: #F9FAFB; }

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(11, 140, 255, 0.25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.2), transparent 45%),
    #EEF4FA;
}
.login-card {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem 1.35rem;
  border: 1px solid var(--fd-line);
  box-shadow: var(--fd-shadow);
  text-align: center;
}
.login-card img { height: 42px; margin: 0 auto 1rem; }
.login-card h1 {
  font-family: var(--fd-display);
  font-size: 1.4rem;
  margin: 0 0 .35rem;
  letter-spacing: -0.03em;
}
.login-card .muted { color: var(--fd-muted); margin: 0 0 1.25rem; font-size: .9rem; }
.login-card .field { text-align: left; margin-bottom: .85rem; }
.login-card label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.login-card input {
  width: 100%;
  border: 1.5px solid var(--fd-line);
  border-radius: 12px;
  padding: .85rem .9rem;
  min-height: var(--fd-touch);
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr .9fr;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-block { padding: 1.15rem 1.25rem; }
.detail-block h2 {
  font-family: var(--fd-display);
  font-size: 1.1rem;
  margin: 0 0 .85rem;
  letter-spacing: -0.02em;
}
.kv { display: grid; gap: .55rem; }
.kv-row {
  display: grid;
  grid-template-columns: minmax(100px, 130px) 1fr;
  gap: .5rem;
  font-size: .92rem;
  padding: .4rem 0;
  border-bottom: 1px solid #F1F5F9;
}
@media (max-width: 520px) {
  .kv-row { grid-template-columns: 1fr; gap: .15rem; }
}
.kv-row b { color: var(--fd-muted); font-weight: 600; }
.docs-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.doc-tile {
  position: relative;
  border: 1px solid var(--fd-line);
  border-radius: 14px;
  overflow: hidden;
  background: #F8FBFF;
  text-decoration: none;
  color: inherit;
  transition: transform .15s;
}
.doc-tile:hover { transform: translateY(-2px); text-decoration: none; }
.doc-tile img,
.doc-tile video,
.doc-tile .pdf {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: #E8F4FF;
  display: block;
}
.doc-tile video { background: #0F172A; }
.doc-tile .pdf {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--fd-blue-deep);
}
.doc-tile span {
  display: block;
  padding: .45rem .55rem;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: end;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--fd-line);
  background: #FBFDFF;
}
.admin-actions select,
.admin-actions textarea {
  border: 1.5px solid var(--fd-line);
  border-radius: 12px;
  padding: .55rem .7rem;
  min-height: 44px;
}
.admin-actions textarea {
  width: min(420px, 100%);
  min-height: 70px;
}
.muted { color: var(--fd-muted); }
.mini { font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
