/* ==========================================================================
   Escuela de Sumi-e — Landing de venta
   Identidad coherente con sumie/static/css/sumie.css (mismos tokens y fuentes).
   Sitio estático puro: cero JS de terceros, cero CDNs. Fonts locales en /fonts.
   ========================================================================== */

/* ---- Cormorant Garamond (variable, wght 300–700) ---------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Lato (wght 300, 400, 700) ---------------------------------------- */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/lato-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/lato-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens (alineados con sumie.css) --------------------------------- */
:root {
  --canvas: #faf8f5;
  --canvas-warm: #f6f0e4;
  --paper: #fffaf1;
  --card: #ffffff;
  --ink: #121212;
  --muted: rgba(18, 18, 18, 0.72);
  --line: rgba(18, 18, 18, 0.14);
  --wash: rgba(18, 18, 18, 0.06);
  --green: #014017;
  --green-alt: #497354;
  --green-deep: #012d10;
  --green-soft: #eef3ef;
  --gold: #a68a56;
  --gold-deep: #8b7247;
  --pink: #f2d3d0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 44px rgba(57, 43, 25, 0.16);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1100px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--canvas-warm), transparent 60%),
    var(--canvas);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--green); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: 0.2px;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 22px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.9rem;
}

.muted { color: var(--muted); }

.pending {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  background: var(--wash);
  border: 1px dashed var(--gold);
  border-radius: 999px;
  padding: 0.25em 0.8em;
}

/* ---- Shell de marca (header dorado + filete verde) -------------------- */
.brandbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brandbar__line { height: 3px; background: var(--green); }
.brandbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 14px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.brandbar__nav a {
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  margin-left: 1.2rem;
}
.brandbar__nav a:hover { color: var(--green); }

/* ---- Botones --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.95em 1.7em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--ghost:hover { background: var(--green-soft); }
.btn--lg { font-size: 1.08rem; padding: 1.05em 2em; }

/* El overlay de Gumroad agrega un <span.logo-full> y repinta el botón.
   Lo neutralizamos: ocultamos su marca y conservamos nuestro estilo. El click del overlay sigue funcionando. */
a.gumroad-button.btn--primary { background: var(--green) !important; color: #fff !important; box-shadow: var(--shadow) !important; }
a.gumroad-button.btn--primary:hover { background: var(--green-deep) !important; }
a.gumroad-button.btn { border-radius: 999px !important; font-family: var(--sans) !important; text-transform: none !important; letter-spacing: normal !important; }
a.gumroad-button .logo-full { display: none !important; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.cta-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

/* ---- Secciones ------------------------------------------------------- */
section { padding-block: 64px; }
.section-soft { background: var(--paper); border-block: 1px solid var(--line); }
.section-green {
  background: var(--green);
  color: #fbf7ef;
}
.section-green h2 { color: #fff; }
.section-green .muted { color: rgba(251, 247, 239, 0.82); }

.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }

/* ---- Hero ------------------------------------------------------------ */
.hero { padding-block: 56px 60px; }
.hero h1 {
  font-size: clamp(2.3rem, 8vw, 4rem);
  max-width: 18ch;
}
.hero__lead {
  font-size: clamp(1.1rem, 3.4vw, 1.4rem);
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 1.6rem;
}
.hero__proof {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero__art {
  margin-top: 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, var(--paper), var(--canvas-warm));
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
}

/* ---- Mecanismo ------------------------------------------------------- */
.mechanism p.big {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 24ch;
}
.mechanism .stack span { display: block; }
.mechanism .stack .from { color: var(--muted); }
.mechanism .stack .to { color: var(--green); }

/* ---- Grids de cards -------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.5rem; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.3rem;
}

/* ---- Identificación / momento ---------------------------------------- */
.feelings {
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  max-width: 52ch;
}
.feelings li {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
  list-style: none;
  margin-bottom: 0.6rem;
}
.feelings { padding-inline-start: 1.2rem; }
.feelings ul { margin: 0; padding: 0; }

/* ---- Prueba social --------------------------------------------------- */
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.quote blockquote {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 1rem;
  color: var(--ink);
}
.quote cite { font-style: normal; color: var(--muted); font-size: 0.92rem; }

/* ---- Oferta ---------------------------------------------------------- */
.offer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 620px;
  margin-inline: auto;
}
.offer ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.offer li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}
.offer li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.offer .price {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--green);
  margin: 0;
}
.offer .price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

/* ---- FAQ (acordeón nativo, sin JS) ----------------------------------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 0.7rem;
  padding: 0 1.2rem;
  box-shadow: var(--shadow);
}
.faq summary {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.8rem 1.1rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-deep);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { padding-bottom: 0.4rem; }
.faq details p { padding-bottom: 1.1rem; color: var(--muted); margin: 0; }

/* ---- Cierre ---------------------------------------------------------- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(2rem, 6vw, 3rem); max-width: 20ch; margin-inline: auto; }
.closing .cta-row { justify-content: center; }

/* ---- Footer ---------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--paper);
}
.foot a { color: var(--green); }
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  align-items: center;
}

/* ---- Curso (página plantillada) -------------------------------------- */
.course-hero .lessons-count {
  font-size: 0.9rem;
  color: var(--muted);
}
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.lesson-list li:last-child { border-bottom: none; }
.lesson-list .n {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.1rem;
  min-width: 1.8ch;
}
.lesson-list .t { font-weight: 700; }
.lesson-list .d { display: block; color: var(--muted); font-weight: 400; font-size: 0.95rem; }

/* ---- Accesibilidad foco ---------------------------------------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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