/* Landing de activacion del canal WhatsApp Travel Companion.
   Mobile-first: la hoja base sirve desde 320 px; el unico media query amplia a partir de 480 px. */

:root {
  --racc-yellow: #ffdd00;
  --ink: #1a1a1a;
  --ink-soft: #55585c;
  --muted: #8a8a8a;
  --page: #f4f4f4;
  --box: #efefef;
  --line: #e2e2e2;
  --link: #0057b8;
  --green: #2eb37c;
  --disabled-bg: #e4e4e4;
  --disabled-ink: #a2a2a2;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  text-align: center;
}

/* --- Marca --- */

.brand__logo { width: 64px; height: auto; display: block; margin: 0 auto; }

.brand__sub {
  margin: 12px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

/* --- Pantallas --- */

.screen { margin-top: 26px; }

.title {
  margin: 0;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Subrayado amarillo trazado a mano bajo la ultima palabra del titular */
.hl { position: relative; display: inline-block; }

.hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -1px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5C28 3 92 2.4 117 6' stroke='%23FFDD00' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.intro {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.intro strong { color: var(--ink); font-weight: 700; }

/* --- Caja del telefono --- */

.phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 16px;
  background: var(--box);
  border-radius: 12px;
  text-align: center;
}

.phone__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 9px;
}

.phone__body { flex: 1 1 auto; min-width: 0; }

.phone__label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.phone__value {
  display: block;
  margin-top: 2px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* El movil sale de la ficha del CRM y el cliente no puede editarlo aqui:
   el aviso le dice por donde corregirlo. */
.phone__hint {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* El numero no debe partirse en dos lineas. */
.phone__hint a { white-space: nowrap; }

/* --- Consentimiento --- */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  text-align: left;
  cursor: pointer;
}

.consent__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.consent__text { font-size: 13px; color: var(--ink-soft); }

/* --- CTA --- */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 22px;
  padding: 17px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--racc-yellow);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cta:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-ink);
  cursor: not-allowed;
}

.cta__arrow { font-size: 18px; line-height: 1; }

.cta:focus-visible,
.consent__box:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* --- Legal --- */

.rule { margin: 24px 0 16px; border: 0; border-top: 1px solid var(--line); }

.legal {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  text-align: left;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

.legal__icon { flex: 0 0 auto; margin-top: 1px; }

/* --- Gracias --- */

.thanks__title { margin: 0; font-size: 30px; font-weight: 800; }

.thanks__text { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }

.thanks__contact {
  margin: 14px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--link);
}

.sending { margin-top: 30px; }

.result { margin: 30px 0 0; font-size: 14px; font-weight: 600; }

.result--warn { color: #a35a00; font-weight: 500; }

/* --- Estados informativos --- */

.state__title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; }

.state__text { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }

.state__contact { margin: 16px 0 0; font-size: 13px; color: var(--ink-soft); }

/* --- Utilidades --- */

.muted { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 4px solid var(--line);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.spinner--green { border-top-color: var(--green); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
}

.noscript {
  margin: 26px 0 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink-soft);
}

a { color: var(--link); }

@media (min-width: 480px) {
  .wrap { padding: 40px 24px 56px; }
  .title { font-size: 34px; }
  .phone__value { font-size: 26px; }
}
