/* ──────────────────────────────────────────────────────────────
   ReviGo · Página de activación pendiente
   Sistema visual mobile-first. Colores oficiales extraídos del
   logo (Canva / Drive · 03_MARCA_MARKETING):
     turquesa #0097B2 · naranja #F59E0B · azul marino (folleto)
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --brand-teal: #0097b2;
  --brand-orange: #f59e0b;
  --brand-navy: #10283b;

  /* Derivados accesibles (mismo tono, más profundidad para texto) */
  --teal-700: #00768c;      /* texto turquesa sobre blanco · 5.3:1 */
  --teal-50: #e9f6f8;
  --orange-600: #e08e05;
  --orange-100: #fdebc8;

  /* Neutros */
  --ink: #0f2334;           /* texto principal · 15:1 */
  --muted: #4b5f70;         /* texto secundario · 6.5:1 */
  --surface: #ffffff;
  --canvas: #f3f9fa;
  --line: rgba(0, 151, 178, 0.16);

  /* Ritmo */
  --radius-card: 28px;
  --radius-ctl: 16px;
  --shadow-card:
    0 1px 2px rgba(16, 40, 59, 0.04),
    0 12px 32px -12px rgba(16, 40, 59, 0.14),
    0 32px 64px -32px rgba(0, 151, 178, 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

[hidden] { display: none !important; }

/* ── Fondo: halo de marca + retícula de puntos muy tenue ───────── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 50% -12rem, rgba(0, 151, 178, 0.16), transparent 70%),
    radial-gradient(28rem 22rem at 110% 105%, rgba(245, 158, 11, 0.13), transparent 70%),
    radial-gradient(24rem 20rem at -10% 70%, rgba(0, 151, 178, 0.08), transparent 70%),
    var(--canvas);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 40, 59, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}

/* ── Encabezado ──────────────────────────────────────────────── */
.site-header {
  display: flex;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 16px 4px;
}
.brand-logo {
  width: 128px;
}

/* ── Escenario y tarjeta ─────────────────────────────────────── */
.stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 16px 32px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 28px 22px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
/* pestaña superior con los colores de la marca */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 64px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--brand-teal) 0 60%, var(--brand-orange) 60% 100%);
}

/* ── Señal: ícono oficial + ondas ────────────────────────────── */
.signal {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 8px auto 24px;
  display: grid;
  place-items: center;
}
.signal__tile {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(160deg, #ffffff 0%, #f4fbfc 100%);
  border: 1px solid var(--line);
  box-shadow:
    0 10px 24px -10px rgba(0, 151, 178, 0.45),
    inset 0 1px 0 #fff;
}
.signal__tile img {
  width: 72px;
  transform: translate(1px, 2px);
}
.signal__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 151, 178, 0.38);
  opacity: 0;
  animation: ring 3.6s var(--ease-out) infinite;
}
.signal__ring:nth-child(2) { animation-delay: 1.2s; }
.signal__ring:nth-child(3) { animation-delay: 2.4s; }

@keyframes ring {
  0%   { transform: scale(0.72); opacity: 0; }
  15%  { opacity: 0.9; }
  100% { transform: scale(1.42); opacity: 0; }
}

/* ── Estado ──────────────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px 6px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #7a4a00;            /* ámbar oscuro · 7.4:1 sobre el fondo */
  background: var(--orange-100);
  border-radius: 999px;
}
.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-orange);
  animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ── Tipografía ──────────────────────────────────────────────── */
.title {
  margin: 0 auto 12px;
  max-width: 16ch;
  font-size: clamp(1.75rem, 7.4vw, 2.125rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.mark {
  white-space: nowrap;
  background-image: linear-gradient(transparent 62%, rgba(245, 158, 11, 0.42) 62%, rgba(245, 158, 11, 0.42) 92%, transparent 92%);
  padding: 0 0.06em;
  margin: 0 -0.06em;
}
.lead {
  margin: 0 auto 8px;
  max-width: 30ch;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.support {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 0.9375rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ── Identificador de placa ─────────────────────────────────── */
.plate {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 2px 8px;
  margin: 18px 0 0;
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--teal-50);
  border: 1px dashed rgba(0, 151, 178, 0.35);
  border-radius: 12px;
}
.plate__label { font-weight: 500; }
.plate__id {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--teal-700);
}
.plate-note {
  margin: 16px auto 0;
  max-width: 34ch;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Contacto ───────────────────────────────────────────────── */
.contact {
  margin-top: 22px;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--brand-navy);       /* 7.9:1 sobre el naranja de marca */
  text-decoration: none;
  background: linear-gradient(180deg, #f8ac2a 0%, var(--brand-orange) 100%);
  border-radius: var(--radius-ctl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 10px 22px -10px rgba(224, 142, 5, 0.85);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), filter 180ms;
}
.cta svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta .cta__dots { stroke-width: 2.6; }
.cta__arrow {
  width: 18px !important;
  height: 18px !important;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) {
  .cta:hover {
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(1.02);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.45) inset,
      0 14px 28px -12px rgba(224, 142, 5, 0.95);
  }
  .cta:hover .cta__arrow { transform: translateX(3px); }
}
.cta:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 4px 10px -6px rgba(224, 142, 5, 0.9);
}
.cta:focus-visible {
  outline: 3px solid var(--brand-navy);
  outline-offset: 3px;
}

.cta-hint {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.contact-pending {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  background: linear-gradient(180deg, #f7fbfc, var(--teal-50));
  border: 1px solid var(--line);
  border-radius: var(--radius-ctl);
}
.contact-pending__icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--teal-700);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-pending p { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.contact-pending strong { display: block; margin-bottom: 2px; font-size: 0.9375rem; color: var(--ink); font-weight: 700; }

/* ── Pie de página ──────────────────────────────────────────── */
.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(40rem 12rem at 50% 0%, rgba(0, 151, 178, 0.28), transparent 70%),
    var(--brand-navy);
  padding: 28px 16px max(28px, env(safe-area-inset-bottom));
}
.site-footer__inner {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}
.site-footer__logo {
  width: 112px;
  margin: 0 auto 10px;
}
.site-footer__tagline {
  margin: 0 auto 6px;
  max-width: 30ch;
  font-size: 0.875rem;
  line-height: 1.5;
}
.site-footer__site {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7fd3e2;            /* turquesa claro · 8.6:1 sobre azul marino */
}

/* ── Entrada escalonada (solo con JS listo y sin reducir movimiento) ── */
@media (prefers-reduced-motion: no-preference) {
  .card > *,
  .site-header {
    animation: rise 640ms var(--ease-out) both;
  }
  .site-header { animation-delay: 0ms; }
  .card > :nth-child(1) { animation-delay: 60ms; }
  .card > :nth-child(2) { animation-delay: 140ms; }
  .card > :nth-child(3) { animation-delay: 200ms; }
  .card > :nth-child(4) { animation-delay: 260ms; }
  .card > :nth-child(5) { animation-delay: 310ms; }
  .card > :nth-child(6),
  .card > :nth-child(7) { animation-delay: 360ms; }
  .card > :nth-child(8) { animation-delay: 420ms; }
  .card { animation: card-in 700ms var(--ease-out) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .signal__ring { opacity: 0.35; transform: scale(1.08); animation: none !important; }
  .signal__ring:nth-child(2) { opacity: 0.2; transform: scale(1.3); }
  .signal__ring:nth-child(3) { display: none; }
  .status__dot::after { display: none; }
}

/* ── Pantallas medianas en adelante ─────────────────────────── */
@media (min-width: 640px) {
  .site-header { padding-top: 32px; }
  .brand-logo { width: 148px; }
  .stage { align-items: center; padding: 16px 24px 32px; }
  .card { padding: 36px 40px 32px; }
  .signal { width: 140px; height: 140px; margin-bottom: 26px; }
  .signal__tile { width: 108px; height: 108px; border-radius: 32px; }
  .signal__tile img { width: 76px; }
}

/* Escritorio: pie de página en una sola fila */
@media (min-width: 768px) {
  .site-footer { padding: 18px 24px; }
  .site-footer__inner {
    max-width: 960px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
  }
  .site-footer__logo { width: 96px; margin: 0; }
  .site-footer__tagline { margin: 0; max-width: none; flex: 1; }
  .site-footer__site { white-space: nowrap; }
}

/* Teléfonos bajos (p. ej. 360×640, iPhone SE): compactar para que el
   estado y la acción de contacto entren en la primera pantalla */
@media (max-height: 760px) and (max-width: 639px) {
  .site-header { padding-top: max(12px, env(safe-area-inset-top)); }
  .brand-logo { width: 104px; }
  .stage { padding-top: 8px; }
  .card { padding: 18px 18px 18px; border-radius: 24px; }
  .signal { width: 84px; height: 84px; margin: 4px auto 14px; }
  .signal__tile { width: 68px; height: 68px; border-radius: 20px; }
  .signal__tile img { width: 46px; }
  .status { margin-bottom: 10px; padding: 5px 11px 5px 9px; }
  .title { font-size: 1.625rem; margin-bottom: 8px; }
  .lead { font-size: 1rem; margin-bottom: 6px; }
  .support { font-size: 0.875rem; line-height: 1.5; }
  .plate { margin-top: 14px; padding: 6px 12px; }
  .plate-note { margin-top: 12px; }
  .contact { margin-top: 16px; }
  .contact-pending { padding: 12px 14px; }
}

/* Teléfono en horizontal (altura muy baja): ícono pequeño y ritmo compacto */
@media (max-height: 500px) {
  .site-header { padding-top: max(10px, env(safe-area-inset-top)); }
  .brand-logo { width: 100px; }
  .stage { align-items: flex-start; padding-top: 8px; }
  .card { padding: 18px 28px 20px; }
  .signal { width: 64px; height: 64px; margin: 2px auto 10px; }
  .signal__tile { width: 56px; height: 56px; border-radius: 16px; }
  .signal__tile img { width: 38px; }
  .status { margin-bottom: 8px; }
  .title { font-size: 1.5rem; margin-bottom: 6px; }
  .plate { margin-top: 12px; }
  .contact { margin-top: 14px; }
}

/* Alto contraste forzado (Windows) */
@media (forced-colors: active) {
  .cta { border: 2px solid ButtonText; }
  .card::before, .backdrop { display: none; }
}
