/* =====================================================================
   Toca y Vuelve — sistema visual
   Cobalto y girasol como los filamentos de los dijes; texto Atkinson
   Hyperlegible (hecho para leerse rápido) y titulares Bagel Fat One,
   que recuerdan el relieve del nombre impreso en el dije.
   ===================================================================== */

:root {
  --cobalto: #2741d8;
  --cobalto-hondo: #1a2c9e;
  --tinta: #14161f;
  --tinta-suave: #4a4f63;
  --papel: #f5f7fa;
  --blanco: #ffffff;
  --girasol: #ffc93c;
  --menta: #9fe3c3;
  --linea: #d9dee8;
  --error: #b42318;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --texto: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;

  --paso: 1.25;
  --t-0: 1rem;
  --t-1: calc(var(--t-0) * var(--paso));
  --t-2: calc(var(--t-1) * var(--paso));
  --t-3: calc(var(--t-2) * var(--paso));
  --t-4: clamp(2.6rem, 6vw, 4.4rem);

  --radio-control: 999px;
  --radio-panel: 20px;
  --ancho: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

a { color: var(--cobalto); text-underline-offset: 0.18em; }

:focus-visible {
  outline: 3px solid var(--girasol);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--t-4); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: var(--t-2); }

p { margin: 0 0 1em; max-width: 62ch; }

.envoltura {
  width: min(100% - 32px, var(--ancho));
  margin-inline: auto;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border: 2px solid var(--tinta);
  border-radius: var(--radio-control);
  background: var(--tinta);
  color: var(--blanco);
  font: 700 1rem/1 var(--texto);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.boton:hover { background: var(--cobalto); border-color: var(--cobalto); }
.boton:active { transform: translateY(1px); }
.boton[disabled] { opacity: 0.55; cursor: not-allowed; }

.boton--claro { background: transparent; color: var(--tinta); }
.boton--claro:hover { background: var(--blanco); color: var(--tinta); border-color: var(--tinta); }

.boton--girasol { background: var(--girasol); border-color: var(--girasol); color: var(--tinta); }
.boton--girasol:hover { background: #ffd666; border-color: #ffd666; }

/* ---------- Encabezado ---------- */
.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.marca {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--tinta);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.marca__punto {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cobalto);
  box-shadow: inset 0 0 0 6px var(--girasol);
}

/* ---------- El dije (elemento memorable) ----------
   Superficie lisa con brillo suave y relieve en el borde. */
.dije {
  --tam: 300px;
  --color: var(--cobalto);
  position: relative;
  width: var(--tam);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28), transparent 55%),
    var(--color);
  box-shadow:
    inset 0 -10px 18px rgba(0,0,0,0.22),
    inset 0 6px 10px rgba(255,255,255,0.18),
    0 22px 40px -18px rgba(20,22,31,0.55);
  display: grid;
  place-items: center;
  color: var(--blanco);
}
.dije::before { /* argolla */
  content: "";
  position: absolute;
  top: calc(var(--tam) * -0.12);
  left: 50%;
  translate: -50% 0;
  width: calc(var(--tam) * 0.2);
  aspect-ratio: 1;
  border-radius: 50%;
  border: calc(var(--tam) * 0.035) solid #b9bfcc;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.25);
}
.dije__agujero {
  position: absolute;
  top: 7%;
  left: 50%;
  translate: -50% 0;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--papel);
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.3);
}
.dije__nombre {
  font-family: var(--display);
  font-size: calc(var(--tam) * 0.2);
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0,0,0,0.22), 0 -1px 0 rgba(255,255,255,0.25);
}
.dije__tel {
  font-weight: 700;
  font-size: calc(var(--tam) * 0.065);
  letter-spacing: 0.04em;
  margin-top: calc(var(--tam) * 0.03);
  opacity: 0.92;
}
.dije__centro { text-align: center; translate: 0 6%; }

/* ---------- Avisos y formularios (páginas de la app) ---------- */
.notice {
  background: var(--blanco);
  border: 2px solid var(--tinta);
  border-radius: var(--radio-panel);
  padding: 20px;
}
.notice strong { display: block; margin-bottom: 4px; }
.notice--error { border-color: var(--error); color: var(--error); }
.notice--ok { border-color: #138a5b; }

.panel {
  background: var(--blanco);
  border-radius: var(--radio-panel);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 1px 0 var(--linea), 0 0 0 1px var(--linea);
}

.campo { display: grid; gap: 6px; margin-bottom: 16px; }
.campo label { font-weight: 700; }
.campo small { color: var(--tinta-suave); }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--linea);
  border-radius: 12px;
  background: var(--blanco);
  color: var(--tinta);
}
.campo input:focus, .campo textarea:focus { border-color: var(--cobalto); outline: none; }
.campo textarea { min-height: 96px; resize: vertical; }

.interruptor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--tinta-suave);
}
.interruptor input { width: 20px; height: 20px; accent-color: var(--cobalto); }

.oculto { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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