/* personascomoyo.com — hoja de estilos */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --fondo: #FAF8F4;
  --crema: #F5F0E8;
  --texto: #2B2520;
  --texto-2: #4E463F;
  --texto-3: #5E564E;
  --musgo: #4A6741;
  --musgo-osc: #3A5233;
  --borde: #DAD4C8;
  --baldosa: #C9C5BC;
  --terracota: #C4846A;
  --azul: #4A90D9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--musgo-osc); }
a:hover { color: #263822; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; color: var(--musgo); margin-bottom: 0.5rem; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pad { padding-top: 72px; padding-bottom: 72px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--musgo); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Cabecera */
.top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.4rem; color: var(--texto); text-decoration: none; padding: 8px 0; }
.tiles { display: flex; gap: 3px; }
.tiles i { width: 14px; height: 14px; background: var(--baldosa); border-radius: 2px; }
.tiles i.r { background: var(--terracota); }
.langs { display: flex; gap: 6px; font-size: 1rem; }
.langs a { padding: 10px 12px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.langs a[aria-current] { font-weight: 800; color: var(--texto); border-bottom-color: var(--musgo); }

/* Botón */
.btn { display: inline-block; min-height: 52px; padding: 13px 28px; background: var(--musgo); color: #fff; font: inherit; font-weight: 800; text-decoration: none; border: 0; border-radius: 10px; cursor: pointer; }
.btn:hover { background: var(--musgo-osc); color: #fff; }

.note { font-size: 1rem; color: var(--texto-3); }
.lead { font-size: 1.25rem; color: var(--texto-2); max-width: 34em; }

/* Portada */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 32px; padding-bottom: 56px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-img { flex: 1 1 380px; min-width: 0; max-width: 520px; margin: 0 auto; }
.hero-img img, .pic img { mix-blend-mode: multiply; border-radius: 10px; }

/* Franja de baldosas: gris, gris, roja */
.strip { position: relative; height: 44px; background: repeating-linear-gradient(90deg, var(--baldosa) 0 44px, transparent 44px 48px, var(--baldosa) 48px 92px, transparent 92px 96px, var(--terracota) 96px 140px, transparent 140px 144px); }
.strip .dot { position: absolute; left: 306px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }

/* Bloques a dos columnas */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.split .txt { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split .txt p { color: var(--texto-2); }
.pic { flex: 1 1 340px; min-width: 0; max-width: 440px; margin: 0 auto; }
.pic.small { flex-basis: 300px; max-width: 380px; }
.pic.mini { flex: none; max-width: 300px; margin: 0; }

.band { background: var(--crema); }
.band .pic img { mix-blend-mode: multiply; }

.points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points p { color: var(--texto) !important; }
.tile { flex: none; width: 14px; height: 14px; margin-top: 8px; background: var(--baldosa); border-radius: 2px; }
.tile.r { background: var(--terracota); }

.kicker { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--musgo) !important; }
.tags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 1rem; font-weight: 700; }
.tags li { padding: 8px 14px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 999px; }

/* Guía y formulario */
.guide { padding-top: 80px; padding-bottom: 80px; }
.form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; background: #fff; border: 1px solid var(--borde); border-radius: 14px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form fieldset:disabled { opacity: 0.55; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 1rem; }
.field label span { font-weight: 400; color: var(--texto-3); }
.field input { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--texto); background: var(--fondo); border: 1px solid #8E867A; border-radius: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; }
.form .btn { width: 100%; min-height: 54px; }
.pending { padding: 14px 16px; background: var(--crema); border-radius: 8px; font-size: 1rem; }
.small { font-size: 0.95rem; color: var(--texto-3); }

/* Tarjetas */
.cards { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.card { flex: 1 1 280px; min-width: 0; padding: 26px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; }
.card p { color: var(--texto-2); }

/* Autor */
.author { max-width: 960px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 80px; padding-bottom: 80px; }
.author img { flex: none; width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto; }
.author .txt { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.author .txt p { color: var(--texto-2); }

/* Cierre y pie */
.closing .wrap { display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; padding-top: 64px; padding-bottom: 64px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 40px; font-size: 1rem; color: var(--texto-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot nav a { padding: 10px 6px; }

/* Páginas legales */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin-top: 36px; margin-bottom: 8px; }
.legal p { margin-bottom: 12px; color: var(--texto-2); }
.legal dl { margin: 12px 0; padding: 18px 20px; background: var(--crema); border-radius: 10px; }
.legal dt { font-weight: 800; font-size: 0.95rem; }
.legal dd { margin: 0 0 10px; overflow-wrap: anywhere; }
.legal dd:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .split, .guide, .author { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .pad { padding-top: 56px; padding-bottom: 56px; }
  .form { padding: 22px; }
  .hero .btn, .closing .btn { width: 100%; text-align: center; }
  .foot { flex-direction: column; align-items: flex-start; }
}
