/* ==========================================================
   Alma Criolla · Propuesta A · «Gala Criolla»
   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(--marfil);
  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(--carmesi); }
a:hover { color: var(--vino); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--oro); color: var(--telon); padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 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--dark { background: var(--telon); color: var(--marfil); }
.section--cream { background: var(--algodon); }
.section--white { background: var(--blanco); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.section--red { background: var(--carmesi); color: var(--marfil); }
.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.3em; text-transform: uppercase;
  font-weight: 700; color: var(--oro-viejo);
}
.section--dark .eyebrow { color: var(--oro); }
.h1 { font-weight: 400; font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.01em; }
.h2 { font-weight: 600; font-size: var(--fs-h2); line-height: 1.1; }
.h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; }
.accent { font-style: italic; color: var(--carmesi); }
.section--dark .accent, .hero .accent { color: var(--oro); }
.lead { font-size: 19px; line-height: 1.6; color: var(--humo); max-width: 560px; }
.muted { color: var(--tinta-2); }
.section--dark .muted { color: var(--humo); }
.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; }

/* ---------- Motivos ---------- */
.greca { height: 20px; background: url("../img/greca.svg") repeat-x left bottom; background-size: 40px 20px; }
.greca--flip { transform: scaleY(-1); }
.rombo { width: 9px; height: 9px; background: var(--oro); transform: rotate(45deg); flex: none; }
.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(--oro-viejo); font-size: 20px; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: var(--radio-boton);
  border: 1.5px solid transparent; font: inherit; font-weight: 700; 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(--carmesi); color: var(--marfil); }
.btn--primary:hover { background: var(--vino); color: var(--marfil); }
.btn--dark { background: var(--telon); color: var(--marfil); }
.btn--dark:hover { background: var(--vino); color: var(--marfil); }
.btn--gold { border-color: var(--oro); color: var(--oro); background: transparent; }
.btn--gold:hover { background: var(--oro); color: var(--telon); }
.btn--outline { border-color: var(--carmesi); color: var(--carmesi); background: transparent; }
.btn--outline:hover { background: var(--carmesi); color: var(--marfil); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Etiquetas ---------- */
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.tag {
  padding: 8px 14px; border: 1px solid var(--oro); color: var(--oro);
  font-size: 13px; font-weight: 700; border-radius: var(--radio-pill); line-height: 1;
}
.tag--fill { background: var(--carmesi); border-color: var(--carmesi); color: var(--marfil); }

/* ---------- Cabecera ---------- */
.site-header { background: var(--telon); color: var(--marfil); border-bottom: 1px solid var(--linea-oscura); 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; color: var(--marfil); line-height: 1; }
.brand:hover { color: var(--marfil); }
.brand__name { font-family: var(--font-display); font-size: 30px; }
.brand__name em { color: var(--oro); }
.brand__sub { font-size: 10px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--humo); margin-top: 6px; }
.nav__menu { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav__menu a:not(.btn) { color: var(--marfil); text-decoration: none; padding: 12px 0; border-bottom: 1px solid transparent; }
.nav__menu a:not(.btn):hover { color: var(--oro); border-bottom-color: var(--oro); }
.nav__toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--linea-oscura); border-radius: var(--radio-boton);
  background: transparent; color: var(--marfil); 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(--telon); border-bottom: 1px solid var(--linea-oscura); padding: 8px 24px 24px;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--linea-oscura); }
  .nav__menu .btn { margin-top: 16px; }
}

/* ---------- Portada ---------- */
.hero { background: var(--telon); color: var(--marfil); }
.hero__inner { display: flex; flex-wrap: wrap; gap: var(--sp-7); align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero__copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__copy .eyebrow { color: var(--oro); }
.hero__media { flex: 1 1 460px; min-width: 0; position: relative; }
.hero__media img {
  width: 100%; height: 500px; object-fit: cover; border-radius: var(--radio-boton);
  border: 1px solid var(--oro); outline: 1px solid var(--oro); outline-offset: 10px;
}
.hero__badge {
  position: absolute; left: -12px; bottom: -28px; background: var(--carmesi);
  padding: 18px 22px; display: flex; align-items: center; gap: 14px; box-shadow: var(--sombra);
}
.hero__badge strong { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1; }
.hero__badge span { font-size: 13px; line-height: 1.4; max-width: 140px; }
@media (max-width: 600px) {
  .hero__media img { height: 380px; outline-offset: 6px; }
  .hero__badge { left: 8px; }
}

/* ---------- Tarjetas de público ---------- */
.card-link {
  text-decoration: none; color: var(--tinta); background: var(--blanco);
  border: 1px solid var(--linea); border-top: 3px solid var(--oro); border-radius: var(--radio-tarjeta);
  padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.card-link:hover { color: var(--tinta); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(42, 26, 27, 0.08); }
.card-link p { font-size: 16px; color: var(--tinta-2); }
.card-link__more { font-weight: 700; color: var(--carmesi); font-size: 15px; margin-top: 6px; }

/* ---------- Repertorio ---------- */
.show { background: var(--telon-2); display: flex; flex-direction: column; }
.show img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.show img.top { object-position: top; }
.show__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.show__body .eyebrow { font-size: 12px; letter-spacing: 0.2em; }
.show__meta { font-size: 14px; color: var(--humo); }
.extras { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: var(--sp-3); border-top: 1px solid var(--linea-oscura); font-weight: 600; font-size: 16px; list-style: none; margin: 0; padding-left: 0; }
.extras li { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- 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(--blanco); border: 1px solid var(--linea); 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(--tinta-2); }
.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(--oro-viejo); border-radius: var(--radio-tarjeta);
  color: var(--tinta); text-decoration: none; font-weight: 700;
}
.doc-download:hover { background: var(--blanco); color: var(--carmesi); }

/* ---------- Cifras ---------- */
.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: 400; font-size: 76px; line-height: 1; }
.stat span { font-size: 15px; line-height: 1.5; color: var(--rosa-pañuelo); }

/* ---------- Calendario ---------- */
.calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--carmesi); 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(--carmesi); }
.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; border-top: 2px solid var(--carmesi); padding-top: 18px; }
.steps__num { font-family: var(--font-display); font-size: 36px; color: var(--carmesi); line-height: 1; }
.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: 400; font-size: clamp(42px, 5.5vw, 72px); line-height: 1; }
.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;
  border-bottom: 1px solid var(--linea-oscura); color: var(--marfil); text-decoration: none; flex-wrap: wrap;
}
.contact-list a:hover { color: var(--oro); }
.contact-list span:first-child { color: var(--humo); }

.form {
  flex: 1 1 520px; background: var(--telon-2); border: 1px solid var(--linea-oscura); 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(--oro); }
.field input, .field select {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--input-borde); border-radius: var(--radio-boton);
  font: inherit; font-weight: 400; font-size: 16px; background: var(--telon); color: var(--marfil); width: 100%;
}
.field input::placeholder { color: #9C8C88; }
.field input:focus, .field select:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 2px rgba(201, 162, 74, 0.35); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--marfil); min-height: 48px; align-self: end; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--oro); }
.form .btn { grid-column: 1 / -1; width: 100%; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--humo); text-align: center; }

/* ---------- Pie ---------- */
.site-footer { background: var(--telon-3); color: var(--humo); }
.site-footer .greca { background-color: var(--telon); }
.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(--marfil); }
.footer__brand em, .footer__motto { color: var(--oro); 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(--carmesi); color: var(--marfil); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra); border: 1px solid var(--oro);
}
.wa-float:hover { background: var(--vino); color: var(--marfil); }

/* ---------- 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; }
}
