/* ===================== TOKENS — Cocina Central ===================== */
:root {
  --hueso:   #F3EFE4;   /* fondo / surface */
  --hueso-2: #EDE7DB;   /* superficie hundida */
  --hueso-3: #FDFBF5;   /* más claro */
  --night:   #0B0B0B;   /* tinta fuerte / superficie oscura */
  --tinta:   #1A1A1A;   /* texto */
  --jet:     #333533;   /* carbón / ink-muted */
  --sol:     #F8C61E;   /* acento */
  --sol-d:   #E3B30E;   /* acento oscuro */
  --gold-deep:#7A5A00;  /* dorado profundo */
  --muted:   #8A8A82;
  --muted-2: #5C5C58;
  --cream-dim:#C2BBA6;
  --line:    #E4DDC9;   /* hairline cálido */
  --line-d:  #D8CDB4;
  --success: #2F9E5E;
  --error:   #C8443A;
  --info:    #3D6FA5;
  --maxw:    1180px;
  --radius:  12px;
  --radius-sm: 8px;
  --display: 'Archivo', system-ui, sans-serif;
  --text:    'Archivo', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  color: var(--tinta);
  background: var(--hueso);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.red { color: var(--sol); }   /* el "punto" de marca ahora es Sol */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ===================== BARRA UTILITARIA ===================== */
.util {
  border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: .08em; font-family: var(--mono);
}
.util__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; text-transform: uppercase; color: var(--jet);
}
.util__left { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sq { width: 10px; height: 10px; border-radius: 2px; background: var(--sol); display: inline-block; }
.util__right { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.util__sep { color: var(--line-d); }
.util__item { display: inline-flex; align-items: center; gap: 7px; }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sol);
  display: inline-block; animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--hueso); border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo {
  font-family: var(--display); font-weight: 900; font-size: 23px; letter-spacing: -.01em;
  line-height: 1; display: inline-flex; align-items: center; gap: 10px; color: var(--tinta);
  text-transform: uppercase;
}
.logo__mark { flex-shrink: 0; }
.logo__mark path, .logo__mark circle { fill: var(--sol); }
.logo__sub { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.logo--light { color: var(--hueso); }
.logo--light .logo__sub { color: var(--cream-dim); }
.nav__links { display: flex; align-items: center; gap: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav__links a { color: var(--jet); transition: color .15s ease; }
.nav__links a:hover { color: var(--sol-d); }
.nav__cta {
  border: 1.5px solid var(--tinta); border-radius: 100px; padding: 9px 18px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; transition: all .15s ease;
}
.nav__cta:hover { background: var(--sol); border-color: var(--sol); color: var(--tinta) !important; }
.nav__cta:hover .arrow { color: var(--tinta); }
.arrow { color: var(--sol-d); }

/* ===================== EYEBROW / NUMERACIÓN ===================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600;
}
.eyebrow .num { color: var(--sol-d); }

/* ===================== TIPOGRAFÍA DISPLAY ===================== */
.display {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.4rem, 11vw, 7.5rem); line-height: .94; letter-spacing: -.03em;
  margin: 18px 0 0; text-transform: uppercase; color: var(--tinta);
}
.title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.02em;
  margin: 14px 0 0;
}

/* ===================== HERO ===================== */
.hero { padding-top: 64px; padding-bottom: 70px; }
.hero__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-top: 40px; flex-wrap: wrap;
}
.hero__tagline {
  font-size: clamp(1.35rem, 3.2vw, 2rem); line-height: 1.2; color: var(--tinta);
  max-width: 620px; margin-top: 22px; font-weight: 600;
}
.hero__lead { max-width: 600px; font-size: 18px; color: var(--jet); }

/* ===================== BOTONES ===================== */
.btn-arrow {
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  font-size: 13px; letter-spacing: .1em; font-weight: 800; text-transform: uppercase;
  white-space: nowrap; font-family: var(--display);
}
.btn-arrow__box {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--sol); color: var(--tinta);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  transition: transform .18s ease, background .18s ease;
}
.btn-arrow:hover .btn-arrow__box { background: var(--night); color: var(--sol); transform: translateX(4px); }

.btn-submit {
  width: 100%; border: 0; cursor: pointer; background: var(--sol); color: var(--tinta);
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .08em;
  text-transform: uppercase; padding: 19px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  transition: background .18s ease;
}
.btn-submit:hover { background: var(--sol-d); }
.btn-submit__arrow { font-size: 20px; transition: transform .18s ease; }
.btn-submit:hover .btn-submit__arrow { transform: translateX(5px); }

.btn-text {
  background: none; border: 0; cursor: pointer; font-family: var(--text);
  font-size: 15px; color: var(--muted-2); text-decoration: underline; text-underline-offset: 4px;
  padding: 10px;
}
.btn-text:hover { color: var(--sol-d); }

/* ===================== SECCIONES ===================== */
.section { padding-top: 76px; padding-bottom: 76px; }
.section__head { max-width: 760px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__sub { color: var(--muted-2); margin-top: 16px; font-size: 18px; max-width: 560px; }
.section__head--center .section__sub { margin-inline: auto; }

/* ===================== STEPS ===================== */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px;
  border-top: 1px solid var(--line);
}
.step {
  padding: 32px 28px 32px 0; border-right: 1px solid var(--line); padding-left: 28px;
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step__n {
  font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--sol-d); display: block;
}
.step h3 {
  font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em;
  margin: 12px 0 8px; text-transform: uppercase;
}
.step p { color: var(--muted-2); }

/* ===================== SECCIÓN OSCURA ===================== */
.section--dark { background: var(--night); color: var(--hueso); }
.section--dark .title { color: var(--hueso); }
.section--dark .section__sub { color: var(--cream-dim); }
.section--dark .eyebrow { color: var(--cream-dim); }

/* ===================== DONACIONES ===================== */
.dona {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  max-width: 920px; margin-inline: auto;
}
.dona__tag {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  font-weight: 600; text-transform: uppercase; color: var(--sol); margin-bottom: 12px;
}
.dona__drop h3 {
  font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--hueso); margin: 0 0 8px;
}
.dona__addr { color: var(--cream-dim); font-size: 17px; margin-bottom: 18px; }
.dona__addr b { color: var(--hueso); }
.dona__drop .btn-arrow { color: var(--hueso); }
.dona__maplink {
  display: block; margin-top: 16px; color: var(--cream-dim); font-size: 14px;
  text-decoration: underline; text-underline-offset: 4px;
}
.dona__maplink:hover { color: var(--sol); }
.dona__formlead { color: var(--cream-dim); font-size: 16px; margin-bottom: 18px; }
.dona__panel { position: relative; }
.dona__form, .dona__done { background: var(--hueso); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 28px; }
.dona__form label { color: var(--tinta); }
.dona__done { text-align: center; }
.dona__done h3 {
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--tinta); margin: 16px 0 0;
}
.dona__done p { color: var(--muted-2); margin-top: 10px; }
.dona__note {
  margin-top: 18px !important; padding: 14px 16px; background: #FBEEC1;
  border: 1px solid var(--line-d); border-left: 4px solid var(--sol);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--tinta) !important;
  text-align: left; line-height: 1.5;
}
.dona__note b { color: var(--gold-deep); }
.dona__done .success__check { margin-bottom: 0; }
.dona__done .btn-text { margin-top: 14px; }

/* ===================== LOGOS ===================== */
.logos--filled {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 44px 60px; margin-top: 54px;
}
.logos--filled img {
  height: 62px; width: auto; max-width: 180px; object-fit: contain;
  opacity: .85; transition: opacity .18s ease, transform .18s ease;
}
.logos--filled img:hover { opacity: 1; transform: translateY(-2px); }
.logos--filled img.logo-round { height: 100px; max-width: 100px; }
.logos--filled img.logo-invert { filter: invert(1) brightness(2); }
.logos--filled img.logo-plaque {
  height: 88px; box-sizing: border-box; padding: 16px 22px; max-width: 220px;
  background: var(--hueso); border-radius: var(--radius-sm); opacity: 1;
}

/* ===================== FORMULARIO ===================== */
.form-wrap { max-width: 720px; margin-inline: auto; }
.form-notice {
  border: 1px solid var(--line-d); border-left: 6px solid var(--sol);
  background: #FBEEC1; border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 24px;
}
.form-notice__tag {
  display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px;
}
.form-notice p { font-size: 16px; color: var(--tinta); line-height: 1.5; }
.form-notice b { color: var(--gold-deep); }
.form { margin-top: 48px; border: 1px solid var(--line-d); border-radius: var(--radius); background: var(--hueso-3); overflow: hidden; }
.form__group { border: 0; padding: 30px; margin: 0; border-bottom: 1px solid var(--line); }
.form__group:last-of-type { border-bottom: 0; }
.form__group legend {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 0; margin-bottom: 22px; width: 100%;
  display: flex; align-items: center; gap: 12px; color: var(--tinta);
}
.legend__n {
  width: 26px; height: 26px; border-radius: 6px; background: var(--sol); color: var(--tinta);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  font-family: var(--display); font-weight: 800;
}
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label, .field__label {
  display: block; font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 0; text-transform: none; margin-bottom: 9px; color: var(--tinta);
}
.req { color: var(--sol-d); }
.opt { color: var(--muted); font-weight: 400; }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font-family: var(--text); font-size: 16px; color: var(--tinta);
  padding: 13px 15px; border: 1px solid var(--line-d); border-radius: var(--radius-sm);
  background: var(--hueso); transition: box-shadow .15s ease, border-color .15s ease;
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A1A1A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--sol); box-shadow: 0 0 0 3px rgba(248,198,30,.45);
}
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Chips (checkboxes) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--stack { flex-direction: column; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px; border: 1px solid var(--line-d); border-radius: var(--radius-sm);
  background: var(--hueso); color: var(--tinta);
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; transition: all .12s ease; min-width: 52px;
}
.chip--wide span { width: 100%; justify-content: flex-start; }
.chips--stack .chip { width: 100%; }
.chip input:checked + span { background: var(--sol); border-color: var(--sol); color: var(--tinta); }
.chip:hover span { border-color: var(--sol); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(248,198,30,.45); }

/* Chips tipo calendario (día + fecha) */
.chips--days { gap: 10px; margin-bottom: 6px; }
.chip--day span {
  flex-direction: column; gap: 4px; min-width: 72px; padding: 14px 12px;
  font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: -.01em;
}
.chip--day span b { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; opacity: .7; }

/* Día cerrado (cupo lleno) */
.chip--closed { cursor: not-allowed; }
.chip--closed input { cursor: not-allowed; }
.chip--closed span {
  background: var(--hueso); color: var(--muted); border-style: dashed; opacity: .55;
}
.chip--closed span b { opacity: .6; }
.chip--closed span em {
  font-family: var(--mono); font-style: normal; font-size: 8.5px; font-weight: 600;
  letter-spacing: .1em; margin-top: 3px; color: var(--error); opacity: .9;
}
.chip--closed:hover span { border-color: var(--line-d); }

/* Etiqueta de cada semana dentro del grupo de días */
.chips__weeklabel {
  display: block; margin: 14px 0 8px; font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.chips__weeklabel:first-of-type { margin-top: 4px; }

/* Errores */
.error { display: none; color: var(--error); font-size: 13px; margin-top: 7px; font-weight: 700; letter-spacing: .01em; }
.error.show { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--error); box-shadow: 0 0 0 3px rgba(200,68,58,.2); }

.form__legal { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 30px 26px; }

/* Spinner */
.btn__spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(26,26,26,.25);
  border-top-color: var(--tinta); border-radius: 50%; display: none; animation: spin .7s linear infinite;
}
.btn-submit.loading .btn__label, .btn-submit.loading .btn-submit__arrow { opacity: .4; }
.btn-submit.loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== SUCCESS ===================== */
.success {
  margin-top: 48px; border: 1px solid var(--line-d); border-radius: var(--radius);
  background: var(--hueso-3); padding: 60px 40px; text-align: center; animation: fade .4s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.success__check {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--sol); color: var(--tinta);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900;
}
.success p { color: var(--muted-2); margin-top: 12px; }
.success__share { margin-top: 30px !important; font-family: var(--mono); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta) !important; font-size: 13px; }
.success .btn-arrow { margin-top: 16px; }
.success .btn-text { display: block; margin: 14px auto 0; }

/* ===================== FOOTER ===================== */
.footer { background: var(--night); color: var(--cream-dim); padding-block: 46px; margin-top: 0; }
.footer__inner { text-align: center; }
.footer .logo { justify-content: center; margin-bottom: 12px; color: var(--hueso); }
.footer p { font-size: 14px; color: var(--muted); max-width: 520px; margin-inline: auto; }
.ig-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  background: var(--sol); border: 1.5px solid var(--sol); border-radius: 100px; padding: 12px 24px;
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .01em;
  color: var(--tinta); transition: all .18s ease;
}
.ig-btn:hover { background: var(--sol-d); border-color: var(--sol-d); transform: translateY(-1px); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; margin-top: 28px; }
  .step {
    display: grid; grid-template-columns: auto 1fr; column-gap: 16px;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0 !important;
  }
  .step:first-child { padding-top: 0 !important; }
  .step:last-child { border-bottom: 0; }
  .step__n { grid-row: 1 / span 2; align-self: start; font-size: 32px; margin: 0; }
  .step h3 { grid-column: 2; margin: 0 0 4px; }
  .step p { grid-column: 2; }
  .logos--filled { gap: 36px 48px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .dona { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .util__right .util__item:last-child { display: none; }
  .util { font-size: 11px; }
  .nav__inner { height: 58px; }
  .logo { font-size: 16px; gap: 7px; }
  .logo__mark { width: 22px; height: 19px; }
  .logo__sub { display: none; }
  .nav__cta { padding: 8px 12px; font-size: 10.5px; letter-spacing: .03em; white-space: nowrap; }
  .grid-2 { grid-template-columns: 1fr; }
  .logos--filled { gap: 30px 40px; }
  .logos--filled img { height: 48px; max-width: 130px; }
  .logos--filled img.logo-round { height: 76px; max-width: 76px; }
  .form__group { padding: 24px 18px; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 28px; }
  .btn-arrow { justify-content: flex-start; }
  .section { padding-block: 56px; }
}
