/* ==========================================================
   Alma Criolla · Propuesta B · «Casona Limeña»
   Base, layout y componentes reutilizables
   ========================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cal);
  color: var(--tinta);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--anil); }
a:hover { color: var(--rojo); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--anil); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--anil); color: var(--blanco); padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--blanco); }

/* ---------- Layout ---------- */
.container { max-width: var(--ancho-max); margin: 0 auto; padding-left: var(--sp-3); padding-right: var(--sp-3); }
.section { padding-top: var(--sp-section); padding-bottom: var(--sp-section); }
.section--adobe { background: var(--adobe); }
.section--anil { background: var(--anil); color: var(--blanco); }
.section--anil h2 { color: var(--blanco); }
.section--white { background: var(--blanco); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.stack { display: flex; flex-direction: column; gap: var(--sp-6); }
.split { display: flex; flex-wrap: wrap; gap: var(--sp-7); }
.split > * { min-width: 0; }
.grid-auto { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(var(--min, 280px), 1fr)); }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow); letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 800; color: var(--rojo);
}
.section--anil .eyebrow { color: var(--ocre); }
.h1 { font-weight: 300; font-size: var(--fs-h1); line-height: 0.94; letter-spacing: -0.03em; }
.h2 { font-weight: 500; font-size: var(--fs-h2); line-height: 1.1; }
.h3 { font-weight: 500; font-size: var(--fs-h3); line-height: 1.25; }
.accent { font-style: italic; color: var(--rojo); }
.h1 .accent { font-weight: 500; }
.section--anil .accent { color: var(--ocre); }
.lead { font-size: 19px; line-height: 1.6; color: var(--tinta-2); max-width: 560px; }
.muted { color: var(--tinta-2); }
.section--anil .muted { color: var(--azulejo); }
.section-head { display: flex; flex-direction: column; gap: var(--sp-2); max-width: 720px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--sp-3); }
.section-head--row > div { display: flex; flex-direction: column; gap: var(--sp-2); max-width: 680px; }
.section-head--row > p { max-width: 420px; font-size: 17px; }

/* ---------- Motivos ---------- */
.strip-puntos { height: 10px; background: url("../img/puntos.svg") repeat-x; background-size: 10px 10px; }
.strip-azulejo { height: 28px; background: url("../img/azulejo.svg") repeat-x; background-size: 28px 28px; }
.celosia { position: relative; }
.celosia::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background: url("../img/celosia.svg") repeat; background-size: 18px 18px;
}
.celosia > * { position: relative; }
.filete { display: flex; align-items: center; gap: var(--sp-2); }
.filete::before, .filete::after { content: ""; flex: 1; height: 1px; background: var(--linea-2); }
.filete span { font-family: var(--font-display); font-style: italic; color: var(--anil); font-size: 20px; text-align: center; }
.arco { border-radius: var(--radio-arco); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: var(--radio-pill);
  border: 1.5px solid transparent; font: inherit; font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { flex: none; }
.btn--primary { background: var(--rojo); color: var(--blanco); }
.btn--primary:hover { background: var(--rojo-oscuro); color: var(--blanco); }
.btn--outline { border-color: var(--anil); color: var(--anil); background: transparent; }
.btn--outline:hover { background: var(--anil); color: var(--blanco); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Etiquetas de región ---------- */
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.tag { display: inline-block; padding: 8px 14px; font-size: 13px; font-weight: 700; border-radius: var(--radio-pill); line-height: 1; }
.tag--sm { padding: 6px 12px; font-size: 12px; font-weight: 800; align-self: flex-start; }
.tag--costa { background: var(--costa-bg); color: var(--costa-fg); }
.tag--sierra { background: var(--sierra-bg); color: var(--sierra-fg); }
.tag--selva, .tag--fiesta { background: var(--selva-bg); color: var(--selva-fg); }
.tag--afro { background: var(--afro-bg); color: var(--afro-fg); }
.section--adobe .tag--sierra { border: 1px solid var(--linea-2); }

/* ---------- Cabecera ---------- */
.site-header { background: var(--cal); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 30px; color: var(--anil); }
.brand__name em { color: var(--rojo); }
.brand__sub { font-size: 10px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--tinta-2); margin-top: 6px; }
.nav__menu { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 700; }
.nav__menu a:not(.btn) { color: var(--tinta); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav__menu a:not(.btn):hover { color: var(--rojo); border-bottom-color: var(--rojo); }
.nav__toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--linea-2); border-radius: var(--radio-pill);
  background: transparent; color: var(--anil); cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cal); border-bottom: 1px solid var(--linea); padding: 8px 24px 24px;
    box-shadow: var(--sombra);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--linea); }
  .nav__menu .btn { margin-top: 16px; }
}

/* ---------- Portada ---------- */
.hero__inner { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: flex-end; padding-top: 72px; }
.hero__copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-bottom: 80px; }
.hero__media { flex: 1 1 460px; min-width: 0; display: flex; gap: var(--sp-2); align-items: flex-end; position: relative; }
.hero__media img { object-fit: cover; border-radius: 999px 999px 0 0; }
.hero__media .principal { flex: 1 1 0; min-width: 0; height: 520px; }
.hero__media .secundaria { flex: 0 0 38%; min-width: 0; height: 360px; object-position: top; }
.hero__sello {
  position: absolute; right: -16px; top: -24px; z-index: 1; width: 148px; height: 148px; border-radius: 50%;
  background: var(--ocre); color: var(--anil); display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 2px;
}
.hero__sello strong { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1; }
.hero__sello span { font-size: 12px; line-height: 1.3; font-weight: 800; max-width: 110px; }
@media (max-width: 600px) {
  .hero__copy { padding-bottom: 32px; }
  .hero__media .principal { height: 380px; }
  .hero__media .secundaria { height: 260px; }
  .hero__sello { right: 0; top: -40px; width: 120px; height: 120px; }
  .hero__sello strong { font-size: 38px; }
  .hero__sello span { font-size: 11px; max-width: 90px; }
}

/* ---------- Tarjetas de público ---------- */
.card-link {
  text-decoration: none; color: var(--tinta); background: var(--blanco);
  border: 1px solid var(--linea); border-radius: var(--radio-arco);
  padding: 56px 32px 32px; display: flex; flex-direction: column; gap: 14px;
  align-items: center; text-align: center; transition: transform .2s, box-shadow .2s;
}
.card-link:hover { color: var(--tinta); transform: translateY(-4px); box-shadow: var(--sombra); }
.card-link p { font-size: 16px; color: var(--tinta-2); }
.card-link__more { font-weight: 800; color: var(--rojo); font-size: 15px; margin-top: 6px; }

/* ---------- Repertorio ---------- */
.show { display: flex; flex-direction: column; gap: 14px; }
.show img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radio-arco); }
.show img.top { object-position: top; }
.show__meta { font-size: 14px; color: var(--tinta-2); }
.extras {
  display: flex; flex-wrap: wrap; gap: 12px 32px; padding: var(--sp-3) 0 0; margin: 0; list-style: none;
  border-top: 1px solid var(--linea-2); font-weight: 700; font-size: 16px; color: var(--anil);
}
.extras li { display: inline-flex; align-items: center; gap: 10px; }
.extras li::before { content: "✦"; color: var(--rojo); }

/* ---------- Entidades públicas ---------- */
.entidades__copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; }
.entidades__copy .btn { align-self: flex-start; }
.entidades__docs { flex: 1 1 520px; --min: 240px; gap: var(--sp-2); }
.doc { background: var(--anil-2); border-radius: var(--radio-tarjeta); padding: var(--sp-3); display: flex; flex-direction: column; gap: 8px; }
.doc strong { font-size: 17px; }
.doc span { font-size: 15px; color: var(--azulejo); }
.doc-download {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2);
  min-height: 64px; padding: 0 var(--sp-3); border: 1.5px dashed var(--ocre); border-radius: var(--radio-tarjeta);
  color: var(--blanco); text-decoration: none; font-weight: 800;
}
.doc-download:hover { background: var(--anil-2); color: var(--ocre); }

/* ---------- Cifras ---------- */
.stats-band { background: var(--madera); color: var(--blanco); }
.stats { --min: 220px; gap: var(--sp-5); padding-top: 88px; padding-bottom: 88px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat strong { font-family: var(--font-display); font-weight: 300; font-size: 76px; line-height: 1; color: var(--ocre); }
.stat span { font-size: 15px; line-height: 1.5; color: var(--adobe); }

/* ---------- Calendario ---------- */
.calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--anil); margin: 0; padding: 0; list-style: none; }
.calendar li { padding: var(--sp-3) 20px var(--sp-3) 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--linea); }
.calendar time { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--rojo); }
.calendar strong { font-size: 17px; }
.calendar span { font-size: 14px; color: var(--tinta-2); }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; --min: 230px; gap: var(--sp-4); }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps__num {
  width: 52px; height: 52px; border-radius: var(--radio-arco); background: var(--anil); color: var(--blanco);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 22px;
}
.steps li:last-child .steps__num { background: var(--rojo); }
.steps strong { font-size: 18px; }
.steps li > span:last-child { font-size: 15px; color: var(--tinta-2); }
.logos { --min: 150px; gap: var(--sp-2); }
.logo-slot {
  height: 80px; border: 1px dashed var(--linea-2); border-radius: var(--radio-tarjeta);
  display: flex; align-items: center; justify-content: center; color: var(--tinta-2);
  font-size: 13px; font-weight: 700; text-align: center; padding: 0 8px;
}

/* ---------- Contacto ---------- */
.contact__copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: var(--sp-3); }
.contact__title { font-weight: 300; font-size: clamp(42px, 5.5vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.contact__title .accent { font-weight: 500; }
.contact-list { font-style: normal; display: flex; flex-direction: column; font-size: 16px; }
.contact-list > * {
  display: flex; justify-content: space-between; gap: var(--sp-2); padding: 14px 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--linea); color: var(--tinta); text-decoration: none;
}
.contact-list a:hover { color: var(--rojo); }
.contact-list span:first-child { color: var(--tinta-2); }

.form {
  flex: 1 1 520px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio-tarjeta);
  padding: var(--sp-4); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--anil); }
.field input, .field select {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--linea-2); border-radius: var(--radio-tarjeta);
  font: inherit; font-weight: 400; font-size: 16px; background: var(--cal); color: var(--tinta); width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--anil); outline: none; box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.18); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--tinta); min-height: 48px; align-self: end; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--anil); }
.form .btn { grid-column: 1 / -1; width: 100%; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--tinta-2); text-align: center; }

/* ---------- Pie ---------- */
.site-footer { background: var(--madera); color: var(--adobe); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-2); padding-top: var(--sp-4); padding-bottom: var(--sp-4); font-size: 14px; }
.footer__brand { font-family: var(--font-display); font-size: 24px; color: var(--blanco); }
.footer__brand em, .footer__motto { color: var(--ocre); font-family: var(--font-display); font-style: italic; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--rojo); color: var(--blanco); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra);
}
.wa-float:hover { background: var(--rojo-oscuro); color: var(--blanco); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-link { transition: none; }
}
