/* ==========================================================================
   Vijoli · Base: reinicio, tipografía, botones, formularios y utilidades
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--rosa); color: var(--negro); }

/* Accesibilidad -------------------------------------------------------- */
.solo-lectores {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.saltar {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  padding: 10px 16px; background: var(--negro); color: #fff;
  transform: translateY(-150%); transition: transform var(--rapido) var(--curva);
}
.saltar:focus { transform: none; }
:focus-visible { outline: 2px solid var(--negro); outline-offset: 3px; }
.sobre-oscuro :focus-visible { outline-color: #fff; }

/* Contenedor ----------------------------------------------------------- */
.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--borde-lateral);
}

/* Tipografía ----------------------------------------------------------- */
.serif { font-family: var(--serif); font-weight: 400; }
.titulo-seccion {
  font-family: var(--sans);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.2px;
  font-weight: 500;
}
.etiqueta {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.etiqueta--rosa { color: var(--rosa-texto); }
.texto-2 { color: var(--texto-2); }
.enlace-subrayado {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--medio) var(--curva);
  padding-bottom: 2px;
}
.enlace-subrayado:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Botones (rectos y en mayúsculas, como la referencia) ------------------ */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 32px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radio);
  transition: background-color var(--rapido) var(--curva-suave), color var(--rapido) var(--curva-suave),
              border-color var(--rapido) var(--curva-suave), transform var(--rapido) var(--curva);
  white-space: nowrap;
}
.boton:active { transform: scale(0.98); }
.boton--negro { background: var(--negro); color: #fff; }
.boton--negro:hover { background: #2a2a2a; }
.boton--blanco { background: #fff; color: var(--negro); }
.boton--blanco:hover { background: var(--rosa); }
.boton--linea { border-color: var(--negro); color: var(--negro); }
.boton--linea:hover { background: var(--negro); color: #fff; }
.boton--linea-clara { border-color: rgba(255,255,255,.7); color: #fff; }
.boton--linea-clara:hover { background: #fff; color: var(--negro); }
.boton--rosa { background: var(--rosa); color: var(--negro); }
.boton--rosa:hover { background: #e4918d; }
.boton--completo { width: 100%; }
.boton--chico { min-height: 40px; padding: 0 18px; font-size: 12px; }
.boton[disabled], .boton[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.boton .girando {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* Formularios ---------------------------------------------------------- */
.campo { display: grid; gap: 6px; margin-bottom: var(--e-5); }
.campo > label, .campo__titulo { font-size: 13px; font-weight: 600; }
.campo__requerido { color: var(--rosa-texto); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--borde); border-radius: var(--radio); background: #fff;
  transition: border-color var(--rapido) var(--curva-suave);
  font-size: 16px; /* evita el zoom automático en iPhone */
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--negro); }
.campo__ayuda { font-size: 12.5px; color: var(--texto-2); }
.campo__error { font-size: 12.5px; color: var(--error); min-height: 0; }
.campo--error input, .campo--error select, .campo--error textarea { border-color: var(--error); }
.fila-campos { display: grid; gap: 0 var(--e-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .fila-campos { grid-template-columns: 1fr; } }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Avisos --------------------------------------------------------------- */
.aviso {
  padding: 14px 16px; border-radius: var(--radio); font-size: 14px;
  background: var(--fondo-2); border: 1px solid var(--borde);
}
.aviso--error { background: #FCEFEC; border-color: #F2C9C0; color: #7A2A1D; }
.aviso--exito { background: #EEF6F1; border-color: #CBE3D5; color: #1F4D37; }
.aviso--rosa { background: var(--rosa-suave); border-color: #F5D3D1; }

/* Precio --------------------------------------------------------------- */
.precio { font-weight: 600; font-variant-numeric: tabular-nums; }
.precio-mayoreo { color: var(--texto-2); font-size: .9em; }

/* Animaciones al entrar en pantalla (misma curva de la referencia) ------- */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity var(--medio) var(--curva), transform var(--medio) var(--curva); }
.revelar.visible { opacity: 1; transform: none; }
.revelar--escala { opacity: 0; transform: scale(.96); transition: opacity var(--lento) var(--curva), transform var(--lento) var(--curva); }
.revelar--escala.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revelar, .revelar--escala { opacity: 1; transform: none; }
}
