/* Padrino Aurelio landing page
   Brand tokens: Noche, Hueso, Oro, Sangre de toro, Ceniza */

@font-face { font-family: "Playfair"; src: url("assets/fonts/Playfair-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("assets/fonts/Playfair-Italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("assets/fonts/Lora-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("assets/fonts/Lora-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("assets/fonts/Lora-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("assets/fonts/Oswald-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --noche: #12100e;
  --noche-2: #1a1713;
  --hueso: #e8dfc9;
  --hueso-dim: #cfc5ae;
  --oro: #c29b4a;
  --oro-hi: #d4ae5e;
  --sangre: #6b1d1f;
  --ceniza: #8c867b;
  --ceniza-text: #a39d91;
  --linea: #3a3328;

  --serif-display: "Playfair", "Georgia", serif;
  --serif-body: "Lora", "Georgia", serif;
  --label: "Oswald", "Arial Narrow", sans-serif;

  --gutter: 22px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--hueso);
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serif-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(100svh, 700px);
  padding: 0 var(--gutter) 36px;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(18, 16, 14, .8) 0%,
    rgba(18, 16, 14, 0) 20%,
    rgba(18, 16, 14, 0) 34%,
    rgba(18, 16, 14, .86) 62%,
    var(--noche) 82%);
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  position: absolute; top: 18px; left: var(--gutter);
  font-family: var(--label); font-weight: 500;
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--hueso);
}
.hero__copy { animation: rise .8s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1 { font-size: clamp(2.3rem, 9.4vw, 4.2rem); letter-spacing: -.01em; max-width: 14ch; }
.hero__sub { margin-top: 16px; font-size: 1.08rem; color: var(--hueso-dim); max-width: 34rem; }

/* ---------- SIGNUP ---------- */
.signup { margin-top: 22px; max-width: 34rem; }
.signup__row { display: flex; flex-direction: column; gap: 10px; }
.signup input[type="email"] {
  width: 100%; height: 54px; padding: 0 16px;
  background: rgba(232, 223, 201, .08);
  border: 1px solid #5a5040; border-radius: var(--radius);
  color: var(--hueso); font: inherit; font-size: 1rem;
}
.signup input[type="email"]::placeholder { color: var(--ceniza-text); }
.signup input[type="email"]:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 2px rgba(194, 155, 74, .4); }
.signup button {
  height: 54px; padding: 0 26px;
  background: var(--oro); color: var(--noche);
  border: 0; border-radius: var(--radius);
  font-family: var(--serif-body); font-weight: 600; font-size: 1.02rem;
  cursor: pointer; transition: background-color .15s;
  white-space: nowrap;
}
.signup button:hover { background: var(--oro-hi); }
.signup button:disabled { opacity: .6; cursor: progress; }
.signup__note { margin-top: 12px; font-size: .85rem; line-height: 1.55; color: var(--ceniza-text); }
.signup__status { margin-top: 10px; font-size: .95rem; min-height: 0; }
.signup__status:empty { display: none; }
.signup__status.is-error { color: #e0a39a; }
.signup__status.is-ok { color: var(--hueso); font-family: var(--serif-display); font-size: 1.25rem; line-height: 1.3; }
.signup.is-done .signup__row, .signup.is-done .signup__note { display: none; }

/* ---------- SECTIONS ---------- */
section { padding-block: clamp(64px, 11vw, 120px); }
h2 { font-size: clamp(1.8rem, 5.6vw, 2.8rem); letter-spacing: -.005em; }

/* phrases (oxblood band) */
.phrases { background: var(--sangre); }
.phrases h2 {
  font-family: var(--serif-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 3.6vw, 1.7rem); color: var(--oro-hi);
}
.phrases__list { margin-top: 18px; }
.phrases__list li { padding-block: clamp(22px, 4.5vw, 36px); border-top: 1px solid rgba(194, 155, 74, .45); }
.phrases__list li:last-child { border-bottom: 1px solid rgba(194, 155, 74, .45); }
.phrase { font-family: var(--serif-display); font-weight: 700; font-size: clamp(2rem, 8vw, 4rem); line-height: 1.06; }
.when { margin-top: 10px; color: var(--hueso-dim); font-style: italic; }
.phrases__close { margin-top: 26px; color: var(--hueso); max-width: 34rem; }

/* inside */
.inside__grid { display: grid; gap: 44px; align-items: center; }
.phones { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 440; margin-inline: auto; }
.phone {
  position: absolute; height: auto;
  border-radius: 12px; border: 1px solid var(--linea);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
}
.phone--c { left: 28%; top: 0; width: 44%; z-index: 2; }
.phone--l { left: 1%; top: 9%; width: 38%; }
.phone--r { right: 1%; top: 9%; width: 38%; }
.plain li { padding-block: 14px; border-top: 1px solid var(--linea); color: var(--hueso-dim); }
.plain li:last-child { border-bottom: 1px solid var(--linea); }
.inside__text h2 { margin-bottom: 22px; max-width: 16ch; }

/* who */
.who { background: var(--noche-2); }
.who__grid { display: grid; gap: 32px; align-items: center; }
.who__img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border: 1px solid var(--linea); border-radius: 2px; }
.who__text p { margin-top: 16px; max-width: 34rem; color: var(--hueso-dim); font-size: 1.1rem; line-height: 1.75; }
.who__text h2 { margin-bottom: 6px; }

/* code */
.code__lead { margin-top: 12px; color: var(--hueso-dim); font-style: italic; font-size: 1.1rem; }
.code__list { margin: 30px 0 0; }
.code__list > div { padding-block: 18px; border-top: 1px solid var(--linea); display: grid; gap: 2px; }
.code__list > div:last-child { border-bottom: 1px solid var(--linea); }
.code__list dt { font-family: var(--serif-display); font-weight: 700; font-size: 1.55rem; line-height: 1.2; }
.code__list dd { margin: 0; color: var(--hueso-dim); }

/* join */
.join { border-top: 1px solid var(--oro); background: radial-gradient(60% 80% at 50% 0%, rgba(194, 155, 74, .14), rgba(194, 155, 74, 0) 70%), var(--noche); }
.join__inner > p { margin-top: 14px; color: var(--hueso-dim); max-width: 32rem; font-size: 1.1rem; }

/* faq */
.faq .wrap > * { max-width: 46rem; }
.faq h2 { margin-bottom: 26px; }
details { border-top: 1px solid var(--linea); }
details:last-of-type { border-bottom: 1px solid var(--linea); }
summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--serif-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif-body); font-weight: 400; font-size: 1.6rem; color: var(--oro);
  transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 20px; color: var(--hueso-dim); max-width: 36rem; }

/* footer */
.foot { padding-block: 56px 48px; border-top: 1px solid var(--linea); text-align: left; }
.foot__creed { font-family: var(--serif-display); font-style: italic; font-weight: 500; font-size: 1.6rem; color: var(--oro); }
.foot__links { margin-top: 18px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .95rem; }
.foot__links a { color: var(--hueso-dim); text-underline-offset: 3px; }
.foot__fine { margin-top: 14px; font-size: .8rem; line-height: 1.55; color: var(--ceniza-text); max-width: 40rem; }

/* ---------- DESKTOP ---------- */
@media (min-width: 640px) {
  .signup__row { flex-direction: row; }
  .signup input[type="email"] { flex: 1 1 auto; min-width: 0; }
  .code__list > div { grid-template-columns: 11rem 1fr; align-items: baseline; gap: 24px; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center; min-height: 100vh; padding: 0 0 0 max(var(--gutter), calc((100vw - 70rem) / 2 + var(--gutter)));
  }
  .hero__media { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; align-self: stretch; }
  .hero__media::after {
    background:
      linear-gradient(to right, var(--noche) 0%, rgba(18, 16, 14, 0) 38%),
      linear-gradient(to bottom, rgba(18, 16, 14, .35) 0%, rgba(18, 16, 14, 0) 20%, rgba(18, 16, 14, 0) 80%, rgba(18, 16, 14, .5) 100%);
  }
  .hero__media img { object-position: 50% 12%; }
  .hero__copy { grid-column: 1; grid-row: 1; padding-right: 24px; position: relative; z-index: 1; margin-right: -8vw; }
  .wordmark { left: max(var(--gutter), calc((100vw - 70rem) / 2 + var(--gutter))); top: 34px; z-index: 2; }
  h1 { max-width: 12ch; }

  .phrases__list li { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: baseline; }
  .when { margin-top: 0; }
  .inside__grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .who__grid { grid-template-columns: 420px 1fr; gap: 80px; }
  .code .wrap { display: grid; grid-template-columns: .8fr 1.4fr; gap: 72px; align-items: start; }
  .code__list { margin-top: 0; }
  .code__list > div:first-child { padding-top: 0; border-top: 0; }
  .code__list > div { grid-template-columns: 9rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy { animation: none; }
  summary::after { transition: none; }
}

/* ---------- STANDALONE PAGES (gracias, baja) ---------- */
.solo { min-height: 100svh; display: grid; place-items: center; padding: 40px var(--gutter);
  background: radial-gradient(60% 50% at 50% 0%, rgba(194, 155, 74, .14), rgba(194, 155, 74, 0) 70%), var(--noche); }
.solo__main { max-width: 32rem; width: 100%; }
.solo__main h1 { margin-top: 28px; max-width: none; }
.solo__p { margin-top: 16px; color: var(--hueso-dim); font-size: 1.1rem; }
.solo__main > p:has(.btn) { margin-top: 28px; }
.solo__fine { margin-top: 26px; font-size: .85rem; color: var(--ceniza-text); }
.solo .foot__creed { margin-top: 40px; }
.wordmark--static { position: static; }
.btn { display: inline-block; padding: 16px 28px; background: var(--oro); color: var(--noche); border-radius: var(--radius);
  font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--oro-hi); }
.code__head { margin-bottom: 0; }

/* ---------- SEAL ---------- */
.seal { display: block; height: auto; }
.seal--top { width: 50px; opacity: 1; filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .75)); }
.seal--foot { width: 84px; margin-bottom: 18px; opacity: .92; }
.wordmark--static { margin-bottom: 0; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.solo form { margin-top: 24px; }

/* ---------- LEGAL PAGES ---------- */
.legal { padding: 28px var(--gutter) 72px; }
.legal__wrap { max-width: 42rem; margin: 0 auto; }
.legal .wordmark { position: static; margin-bottom: 36px; text-decoration: none; }
.legal h1 { font-size: clamp(2rem, 7vw, 3rem); max-width: none; }
.legal__date { margin-top: 10px; color: var(--ceniza-text); font-size: .9rem; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 10px; line-height: 1.25; }
.legal p, .legal li { color: var(--hueso-dim); margin-top: 12px; }
.legal ul { margin-top: 8px; padding-left: 1.2rem; list-style: disc; }
.legal li { margin-top: 6px; }
.legal a { color: var(--oro); text-underline-offset: 3px; }
.legal__back { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--linea); }
