/* ==========================================================================
   MNV — Recursos gratuitos
   Tokens — sampled directamente de posteos reales (no inventados)
   ========================================================================== */
:root {
  --ink: #1a1a1a;
  --gray: #55524e;
  --gray-soft: #8a8680;

  --orange: #f05a28;       /* naranja de marca (isologo) — botones/CTA */
  --orange-dark: #cf4a1c;
  --orange-soft: #ef7b3f;  /* naranja de los posteos — badges/paneles */
  --orange-pale: #fdece0;

  --sky: #46b5e2;          /* celeste — segundo color real (barras/preguntas) */
  --sky-dark: #1f7ea3;
  --sky-pale: #e6f6fc;

  --red: #cb444f;          /* solo uso semántico (mito / error) */
  --green: #16a870;        /* solo uso semántico (realidad / correcto) */

  --cream: #faf7f2;
  --white: #ffffff;
  --line: #e8e2d9;

  --display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --hand: "Caveat", "Segoe UI", cursive; /* acento manuscrito/casual visto en posteos */

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { padding: 28px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header img.logo { height: 40px; width: auto; }
.header-tag {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  color: var(--gray);
  letter-spacing: 0.02em;
  display: none;
}
@media (min-width: 640px) { .header-tag { display: block; } }

/* ==========================================================================
   Eyebrow / kicker (badge naranja tipo pill, visto sobre foto en los posteos)
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--orange-soft);
  padding: 9px 18px;
  border-radius: 100px;
}

/* ==========================================================================
   Resaltado circulado a mano (marca real: palabra clave con óvalo naranja)
   ========================================================================== */
.hl {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.hl-mark {
  position: absolute;
  left: -12%;
  top: -30%;
  width: 124%;
  height: 165%;
  z-index: -1;
  pointer-events: none;
}
.hl-mark path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  stroke-linecap: round;
}

/* Subrayado manuscrito (variante para frases cortas) */
.underline-hand {
  position: relative;
  display: inline-block;
}
.underline-hand svg {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 14px;
}
.underline-hand svg path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  border-radius: 100px;
  padding: 16px 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(240, 90, 40, 0.55);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-inverse {
  background: var(--white);
  color: var(--orange);
  box-shadow: none;
}
.btn-inverse:hover { background: #fff3ec; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--orange-dark);
  font-size: 15px;
}
.btn-arrow svg { transition: transform 0.15s ease; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Photo placeholder (reemplazar por foto real) + badge pill superpuesta
   ========================================================================== */
.photo-placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ff9d5c, var(--orange) 55%, var(--orange-dark));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.photo-placeholder .ph-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  max-width: 200px;
}
.photo-placeholder .ph-icon {
  position: absolute;
  opacity: 0.16;
  color: var(--white);
}
.photo-badge {
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
  z-index: 2;
}

/* ==========================================================================
   Hero — library page
   ========================================================================== */
.hero { position: relative; padding: 20px 0 64px; overflow: hidden; }
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}
.hero-copy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.1;
  margin: 18px 0 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
@media (min-width: 640px) { .hero-copy h1 { font-size: 50px; } }
.hero-copy p.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--gray);
  max-width: 480px;
  margin: 0 0 28px;
}
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats .stat b { display: block; font-family: var(--display); font-size: 26px; color: var(--ink); }
.hero-stats .stat span { font-size: 13px; color: var(--gray-soft); }

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 380px;
  margin: 32px auto 0;
}
@media (min-width: 880px) { .hero-visual { margin: 0 auto; } }

/* ==========================================================================
   Pain-point stacked bubbles (recurso real: barras naranja/celeste alternadas)
   ========================================================================== */
.bubble-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 8px;
  padding: 0 4px;
}
.bubble {
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.35;
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.35);
}
.bubble:nth-child(odd) { background: var(--orange-soft); align-self: flex-start; transform: rotate(-1deg); border-bottom-left-radius: 4px; }
.bubble:nth-child(even) { background: var(--sky); align-self: flex-end; transform: rotate(1deg); border-bottom-right-radius: 4px; }
.bubble-section { padding: 8px 0 56px; text-align: center; }
.bubble-kicker {
  font-family: var(--hand);
  font-size: 28px;
  color: var(--orange-dark);
  margin: 0 0 18px;
}

/* ==========================================================================
   Resource grid
   ========================================================================== */
.section-label { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 0 0 6px; }
.section-sub { color: var(--gray); margin: 0 0 40px; font-size: 16px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card.will-animate { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.card.will-animate.is-visible { opacity: 1; transform: translateY(0); }
.card:hover { box-shadow: 0 24px 48px -24px rgba(26, 26, 26, 0.2); border-color: transparent; }
.card .thumb {
  position: relative;
  height: 140px;
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, #ffb27a, var(--orange-soft) 65%, var(--orange));
  overflow: hidden;
}
.card .thumb-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  opacity: 0.9;
}
.card .cat-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--white);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.card h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 0; line-height: 1.25; }
.card p { color: var(--gray); font-size: 15px; line-height: 1.5; margin: 0; flex-grow: 1; }

/* ==========================================================================
   About / trust strip
   ========================================================================== */
.trust-strip { background: var(--cream); padding: 56px 0; margin-top: 88px; }
.trust-strip .wrap { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .trust-strip .wrap { grid-template-columns: 1fr 1fr; align-items: center; } }
.trust-strip h2 { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 0 0 14px; }
.trust-strip p { color: var(--gray); line-height: 1.6; margin: 0; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { background: var(--white); border: 1px solid var(--line); border-radius: 100px; padding: 10px 16px; font-size: 14px; font-weight: 600; }

/* ==========================================================================
   Individual resource landing
   ========================================================================== */
.resource-hero { padding: 56px 0 40px; text-align: center; }
.resource-hero .wrap { max-width: 720px; }
.resource-hero h1 { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.14; margin: 18px 0 16px; }
@media (min-width: 640px) { .resource-hero h1 { font-size: 44px; } }
.resource-hero p.lede { font-size: 18px; color: var(--gray); line-height: 1.55; margin: 0 auto 30px; max-width: 560px; }
.cta-block { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-note { font-size: 13px; color: var(--gray-soft); }

/* Email capture panel (progressive reveal) */
.capture-panel {
  max-width: 420px;
  margin: 22px auto 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
}
.capture-panel.is-open { max-height: 240px; opacity: 1; }
.capture-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: left;
}
.capture-form label { font-size: 13px; font-weight: 700; color: var(--ink); }
.capture-form input[type="text"],
.capture-form input[type="email"] {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--body);
  font-size: 15px;
  background: var(--white);
}
.capture-form input:focus { outline: none; border-color: var(--orange); }
.capture-form .btn-primary { justify-content: center; margin-top: 4px; }

/* Preview mockups */
.preview-row { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 48px 0 8px; }
@media (min-width: 720px) { .preview-row { grid-template-columns: repeat(3, 1fr); } }
.preview-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(var(--rot, 0deg));
}
.preview-card.will-animate { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.preview-card.will-animate.is-visible { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }
.preview-card:nth-child(1) { --rot: -2deg; }
.preview-card:nth-child(2) { --rot: 0deg; }
.preview-card:nth-child(3) { --rot: 2deg; }
.preview-card .pv-bar { height: 9px; border-radius: 6px; background: var(--white); }
.preview-card .pv-bar.w60 { width: 60%; }
.preview-card .pv-bar.w80 { width: 80%; }
.preview-card .pv-bar.w40 { width: 40%; }
.preview-card .pv-accent { margin-top: auto; height: 34px; width: 60%; border-radius: 8px; background: var(--orange); opacity: 0.85; }

/* Papel arrugado — textura real vista en posteos, usada acá para un aside */
.paper-aside {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.035) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.035) 0, transparent 45%),
    linear-gradient(115deg, rgba(0,0,0,0.02) 0%, transparent 30%, rgba(0,0,0,0.02) 60%, transparent 90%),
    #f2ede6;
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 56px 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.paper-aside .kicker {
  font-family: var(--hand);
  font-size: 30px;
  color: var(--orange-dark);
  margin: 0 0 6px;
}
.paper-aside blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}
.paper-aside blockquote .accent { color: var(--orange); }
.paper-aside cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 13px;
  color: var(--gray-soft);
  font-weight: 600;
}

/* Benefits — triángulos numerados (mismo recurso gráfico de los posteos,
   en tonos de marca en vez de semáforo rojo/verde) */
.benefits-section { padding: 56px 0 24px; }
.benefits-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.benefits-head h2 { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 0 0 10px; }
.benefits-head p { color: var(--gray); margin: 0; }
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 780px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  padding: 28px 24px 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
}
.benefit.will-animate { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.benefit.will-animate.is-visible { opacity: 1; transform: translateY(0); }
.tri-badge {
  width: 64px;
  height: 58px;
  margin: 0 auto 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tri-badge svg { position: absolute; inset: 0; }
.tri-badge span {
  position: relative;
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  margin-top: 6px;
}
.benefit h3 { font-family: var(--display); font-weight: 800; font-size: 18px; margin: 0 0 8px; }
.benefit p { color: var(--gray); font-size: 15px; line-height: 1.5; margin: 0; }

/* ==========================================================================
   Final CTA — panel sólido naranja full-bleed (cierre real de carrusel)
   ========================================================================== */
.final-cta {
  position: relative;
  text-align: center;
  padding: 64px 24px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 8px 0 40px;
  overflow: hidden;
}
.final-cta h2 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 0 0 12px; color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.85); margin: 0 0 28px; }
.final-cta-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 26px; }
.final-cta-icons span {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}

/* ==========================================================================
   Sponsors — solo en landings categoría Ebook
   ========================================================================== */
.sponsor-strip {
  padding: 26px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sponsor-strip .sponsor-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}
.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.sponsor-logo-slot {
  width: 128px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  color: var(--gray-soft);
  font-size: 11px;
  font-weight: 700;
  background: var(--cream);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--white); padding: 48px 0 28px; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 640px) { .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer .foot-tagline { color: #b9b7b7; font-size: 14px; max-width: 360px; margin: 8px 0 0; }
.site-footer img.logo { height: 30px; filter: brightness(0) invert(1); }
.foot-social { display: flex; gap: 14px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid #4a4949;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.foot-social a:hover { border-color: var(--orange); background: rgba(240,90,40,0.12); }
.foot-bottom { border-top: 1px solid #3d3c3c; margin-top: 32px; padding-top: 20px; font-size: 13px; color: #8f8d8d; }

/* ==========================================================================
   Accessibility
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 2px;
}
.final-cta a:focus-visible, .final-cta button:focus-visible { outline-color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
