/* Primero celular; en pantallas grandes solo se ensancha. Modo oscuro según el dispositivo. */
:root {
  --fondo: #ffffff; --fondo-suave: #f3f6fc; --texto: #1b2230; --suave: #5a6579;
  --azul: #2457d6; --azul-texto: #ffffff; --borde: #d8deea; --ok: #1a7f37; --error: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #10141c; --fondo-suave: #181e2a; --texto: #e8ecf4; --suave: #a3adc0;
    --azul: #6b93ff; --azul-texto: #0b1020; --borde: #2a3347; --ok: #5ccb7a; --error: #ff8b80;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; color: var(--texto); background: var(--fondo); }
a { color: var(--azul); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.1rem; }

.barra { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; background: var(--fondo); border-bottom: 1px solid var(--borde); }
.marca { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--texto); }
.marca span { color: var(--azul); }
.barra nav { display: flex; gap: 1rem; font-size: .9rem; }
.barra nav a { text-decoration: none; color: var(--suave); }
@media (max-width: 34rem) { .barra nav a:not(:last-child) { display: none; } }

main > section { padding: 3rem 1rem; max-width: 60rem; margin: 0 auto; }
.portada { padding-top: 4rem; }
.portada p { font-size: 1.15rem; color: var(--suave); max-width: 40rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; }

.boton { display: inline-block; padding: .7rem 1.2rem; border: 2px solid var(--azul); border-radius: .5rem; background: var(--azul); color: var(--azul-texto); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.boton.secundario { background: transparent; color: var(--azul); }
.boton:disabled { opacity: .6; cursor: wait; }

.tarjetas { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.tarjetas article { padding: 1.1rem; background: var(--fondo-suave); border: 1px solid var(--borde); border-radius: .75rem; }
.tarjetas p { margin: 0; color: var(--suave); }
.lista { padding-left: 1.2rem; }
.lista li { margin-bottom: .6rem; }
.nota { padding: .8rem 1rem; background: var(--fondo-suave); border-left: 4px solid var(--azul); border-radius: .25rem; }

form { display: grid; gap: .9rem; max-width: 30rem; }
label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }
input, textarea { font: inherit; padding: .65rem; border: 1px solid var(--borde); border-radius: .5rem; background: var(--fondo); color: var(--texto); width: 100%; }
input:focus-visible, textarea:focus-visible, .boton:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.trampa { position: absolute; left: -9999px; }
#aviso-contacto { margin: 0; min-height: 1.5rem; }
.ok { color: var(--ok); } .error { color: var(--error); }

footer { padding: 2rem 1rem 5rem; text-align: center; color: var(--suave); font-size: .9rem; border-top: 1px solid var(--borde); }

/* Botón de WhatsApp: fijo en la esquina para tenerlo siempre a mano. */
.whatsapp { position: fixed; right: 1rem; bottom: 1rem; z-index: 6; padding: .8rem 1.2rem; border-radius: 2rem; background: #25d366; color: #0b2e17; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.whatsapp:focus-visible { outline: 3px solid var(--texto); outline-offset: 2px; }
