/* Base compartida por la tienda y el administrador.
   Tamaños en rem para respetar la letra que la persona tenga configurada en su celular.
   Todos los pares de texto/fondo cumplen contraste AAA (7:1) salvo donde se indica. */
:root {
  color-scheme: light;
  /* Identidad de Variedades Clapacar: azul noche, neón magenta y cian, dorado. El neón va en cabecera y bordes;
     el contenido se lee sobre fondo claro, más cómodo para la vista cansada. */
  --noche: #0b1440;
  --noche-2: #16205c;
  --magenta: #e81f8f;
  --cian: #19c7e6;
  --dorado: #ffc23d;
  --dorado-hover: #ffb31a;
  --tinta: #12183a;
  --tinta-suave: #3f4566;
  --fondo: #f3f4fb;
  --superficie: #ffffff;
  --borde: #6f7596;
  --borde-suave: #cfd3e8;
  --tenue: #e9ebf8;
  --acento: #a10c63;
  --acento-hover: #7d084c;
  --verde: #14532d;
  --verde-claro: #e2f2e6;
  --rojo: #8a1414;
  --rojo-claro: #fbe6e3;
  --whatsapp: #25d366;
  --whatsapp-hover: #1fb958;
  --foco: #0b5ed7;
  --radio: 14px;
  --objetivo: 3.5rem; /* altura mínima de todo lo que se toca: unos 63 px */
}

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

html {
  font-size: 112.5%; /* 18 px con la configuración normal del navegador */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: Lexend, Verdana, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  -webkit-tap-highlight-color: rgba(161, 12, 99, .15);
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
/* El <picture> del logo (WebP liviano + PNG de respaldo) no ocupa caja: el <img> se comporta como si estuviera solo */
.logo-picture { display: contents; }
[hidden] { display: none !important; }

a { color: inherit; }

:focus-visible {
  outline: 4px solid var(--foco);
  outline-offset: 2px;
}

.solo-lector {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--objetivo);
  padding: .55rem 1.2rem;
  border: 3px solid transparent;
  border-radius: var(--radio);
  background: var(--acento);
  color: #fff;
  font: inherit; font-weight: 700; font-size: 1.1rem; line-height: 1.2;
  text-align: center; text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover { background: var(--acento-hover); }
.btn svg { flex: none; width: 1.6rem; height: 1.6rem; }

.btn-secundario {
  background: var(--superficie);
  color: var(--tinta);
  border-color: var(--tinta);
}
.btn-secundario:hover { background: var(--tenue); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #06210f;
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); }

.btn-ancho { width: 100%; }

/* Campos de formulario */
.campo { display: block; }
.campo + .campo { margin-top: 1.1rem; }

.campo-titulo {
  display: block;
  margin-bottom: .35rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.campo-ayuda {
  display: block;
  margin-bottom: .4rem;
  color: var(--tinta-suave);
  font-size: .95rem;
}
.campo-error {
  display: block;
  margin-top: .35rem;
  color: var(--rojo);
  font-weight: 700;
}

input[type="text"], input[type="search"], input[type="tel"], input[type="password"], input[type="email"],
input[type="number"], input[type="time"], select, textarea {
  width: 100%;
  min-height: var(--objetivo);
  padding: .6rem .85rem;
  border: 2px solid var(--borde);
  border-radius: 10px;
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-size: 1.1rem; /* por encima de 16 px: iPhone no hace zoom al escribir */
}
textarea { min-height: 6rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5f5949; opacity: 1; }
[aria-invalid="true"] { border-color: var(--rojo); border-width: 3px; }

/* Avisos */
.aviso {
  padding: .85rem 1rem;
  border-left: 6px solid var(--tinta);
  border-radius: 8px;
  background: var(--tenue);
}
.aviso-ok { border-color: var(--verde); background: var(--verde-claro); }
.aviso-error { border-color: var(--rojo); background: var(--rojo-claro); }

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