/* Recortoro · web. Colores y tipografías de brand/export/LEEME.md */

@font-face { font-family: "Alfa Slab One"; src: url("fonts/AlfaSlabOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --albero: #C9893B;
  --albero-claro: #E7C48E;
  --zaino: #16120F;
  --grana: #A3152A;
  --cal: #F7F5F1;
  --slab: "Alfa Slab One", Georgia, serif;
  --texto: "Barlow", system-ui, sans-serif;
  --ui: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--zaino);
  color: var(--zaino);
  font: 400 18px/1.5 var(--texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--grana); outline-offset: 3px; }

.kicker {
  font: 600 14px/1 var(--ui);
  letter-spacing: .32em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

/* ---------- Grano de albero (ruido SVG en data URI) ---------- */
.grano { position: relative; isolation: isolate; }
.grano::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .09 0 0 0 0 .07 0 0 0 0 .06 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .12;
  pointer-events: none;
}

/* ---------- Portada ---------- */
.portada {
  min-height: 100svh;
  background: var(--albero);
  display: grid;
  place-items: center;
  padding: 72px var(--gutter) 56px;
  overflow: hidden;
  text-align: center;
}
.ruedo {
  position: absolute; z-index: -1;
  width: max(140vmax, 1200px); aspect-ratio: 1;
  left: 50%; top: 50%;
  translate: -50% -50%;
  pointer-events: none;
}
.ruedo circle { fill: none; stroke: var(--zaino); stroke-opacity: .09; }
.portada-centro { width: min(100%, 980px); }

.logo { width: 100%; height: auto; overflow: visible; }
.logo .palabra, .logo .lema { animation: subir .9s cubic-bezier(.2,.7,.2,1) both; }
.logo .lema { animation-delay: .35s; }
.logo .recortador {
  transform-box: fill-box;
  transform-origin: 45% 100%;
  animation: quiebro 1.5s cubic-bezier(.3,1.6,.4,1) .55s both;
}
@keyframes subir { from { opacity: 0; transform: translateY(24px); } }
@keyframes quiebro {
  0%   { opacity: 0; transform: translateX(-90px) rotate(-26deg); }
  35%  { opacity: 1; transform: translateX(-6px) rotate(14deg); }
  100% { opacity: 1; transform: none; }
}

.subtitulo {
  font: 500 clamp(17px, 2.2vw, 22px)/1.35 var(--texto);
  margin: clamp(20px, 4vw, 40px) auto 0;
  max-width: 34ch;
  animation: subir .9s ease .8s both;
}

/* ---------- Botones de tienda ---------- */
.tiendas {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px;
  margin-top: 28px;
  animation: subir .9s ease 1s both;
}
.tienda {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 212px; height: 64px;
  padding: 0 24px 0 20px;
  border-radius: 16px;
  background: var(--zaino);
  color: var(--cal);
  text-decoration: none;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 24px -14px rgba(22,18,15,.8);
}
.tienda svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.tienda span { display: grid; line-height: 1.05; }
.tienda small { font: 600 12px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.tienda b { font: 400 22px/1.15 var(--slab); letter-spacing: .01em; }
.tienda:not(.pronto):hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(22,18,15,.9); }
.tienda.pronto { cursor: default; }
.tienda.pronto small { color: var(--albero-claro); opacity: 1; }

.letra-pequena {
  font: 600 13px/1.4 var(--ui);
  letter-spacing: .2em; text-transform: uppercase;
  margin: 22px 0 0;
  opacity: .78;
  animation: subir .9s ease 1.15s both;
}

.bajar {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  font: 600 12px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none;
  display: grid; justify-items: center; gap: 8px;
  opacity: .7;
}
.bajar::after { content: ""; width: 1px; height: 28px; background: currentColor; animation: linea 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes linea { 0%,100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }

/* ---------- El Aula ---------- */
.aula {
  background: var(--zaino);
  color: var(--cal);
  padding: clamp(72px, 12vw, 140px) var(--gutter);
}
.aula > * { max-width: 1200px; margin-inline: auto; }
.aula .kicker { color: var(--albero); }
.titulo {
  font: 400 clamp(34px, 6.4vw, 76px)/1.02 var(--slab);
  margin: 0;
  letter-spacing: -.005em;
}
.aula-cuerpo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(32px, 5vw, 56px);
}
.aula-texto p { margin: 0 0 1.1em; opacity: .82; max-width: 46ch; }
.aula-texto .aula-gratis { font: 400 22px/1.2 var(--slab); color: var(--albero); opacity: 1; margin-top: 1.6em; }
.aula-video { margin: 0; }
.aula-video video {
  display: block; width: 100%; height: auto; aspect-ratio: 20 / 9;
  border-radius: clamp(12px, 2vw, 22px);
  background: #000;
  box-shadow: 0 0 0 1px rgba(247,245,241,.12), 0 40px 70px -40px #000;
}
.aula-video figcaption { display: grid; gap: 6px; margin-top: 20px; }
.aula-video figcaption b { font: 400 24px/1.1 var(--slab); }
.aula-video figcaption span { opacity: .75; }
.medidores { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 6px; font: 600 13px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; opacity: 1 !important; }
.medidores i { font-style: normal; letter-spacing: .12em; color: var(--albero); margin-left: 6px; }

.glosario {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px clamp(24px, 4vw, 48px);
  margin-top: clamp(56px, 9vw, 110px);
  margin-bottom: 0;
}
.glosario div { border-top: 1px solid rgba(247,245,241,.25); padding-top: 18px; }
.glosario dt { font: 400 24px/1.1 var(--slab); color: var(--albero-claro); }
.glosario dt::after { content: " s."; font: italic 400 15px var(--texto); color: var(--cal); opacity: .5; }
.glosario dt:nth-of-type(n)::after { content: ""; }
.glosario dd { margin: 8px 0 0; opacity: .75; }
.glosario-pie { font: 600 12px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; opacity: .4; margin-top: 28px; }
@media (max-width: 900px) {
  .aula-cuerpo { grid-template-columns: 1fr; }
  .aula-video { order: -1; }
  .glosario { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .glosario { grid-template-columns: 1fr; } }

/* ---------- Capturas ---------- */
.capturas {
  background: var(--cal);
  padding: clamp(72px, 12vw, 140px) 0;
}
.capturas header { padding: 0 var(--gutter); max-width: 1200px; margin: 0 auto; }
.capturas .kicker { color: var(--grana); }
.tira {
  display: flex; gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: clamp(32px, 5vw, 56px) var(--gutter) 12px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.tira::-webkit-scrollbar { display: none; }
.tira figure { margin: 0; flex: 0 0 min(82vw, 760px); scroll-snap-align: start; }
.tira img {
  width: 100%; height: auto; aspect-ratio: 20 / 9; object-fit: cover;
  border-radius: clamp(12px, 2vw, 22px);
  box-shadow: 0 0 0 6px var(--zaino), 0 30px 50px -30px rgba(22,18,15,.7);
  background: var(--albero-claro);
}
.tira figcaption {
  font: 600 14px/1.3 var(--ui); letter-spacing: .18em; text-transform: uppercase;
  margin-top: 22px;
}
.tira figcaption span { display: block; font: 400 16px/1.4 var(--texto); letter-spacing: 0; text-transform: none; opacity: .7; margin-top: 4px; }
.deslizar { padding: 0 var(--gutter); max-width: 1200px; margin: 18px auto 0; font: 600 12px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; opacity: .45; }

.pilares {
  list-style: none;
  margin: clamp(56px, 9vw, 110px) auto 0;
  padding: 0 var(--gutter);
  max-width: 1200px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px clamp(24px, 4vw, 48px);
}
@media (max-width: 960px) { .pilares { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pilares { grid-template-columns: 1fr; } }
.pilares li { border-top: 2px solid var(--zaino); padding-top: 18px; }
.pilares b { display: block; font: 400 24px/1.1 var(--slab); margin-bottom: 8px; }
.pilares span { opacity: .75; }

/* ---------- Cierre ---------- */
.cierre {
  background: var(--albero);
  text-align: center;
  padding: clamp(80px, 13vw, 160px) var(--gutter);
  overflow: hidden;
}
.cierre .titulo { max-width: 14ch; margin: 0 auto; }
.cierre .tiendas, .cierre .letra-pequena { animation: none; }

.pie {
  background: var(--zaino); color: var(--cal);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px var(--gutter);
  font: 600 13px/1.4 var(--ui); letter-spacing: .2em; text-transform: uppercase;
}
.pie a { text-decoration: none; opacity: .75; }
.pie a:hover { opacity: 1; }
.pie span { opacity: .5; }

@media (max-width: 420px) {
  body { font-size: 17px; }
  .tienda { width: 100%; justify-content: center; }
  .tiendas { flex-direction: column; align-items: stretch; max-width: 300px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
