/* ==========================================================================
   Foresta Cloud × LWD Murcia — landing promo
   Retícula 12 col · contenedor 1200 · espaciado base 8 px · un único ritmo de sección
   ========================================================================== */

/* ---------- Fuentes autoalojadas (texto) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
/* Gopher (titulares): archivos facilitados por Foresta. Requiere licencia web para publicarse. */
@font-face { font-family: "Gopher"; font-weight: 500; font-display: swap; src: url("../assets/fonts/gopher-medium.otf") format("opentype"); }
@font-face { font-family: "Gopher"; font-weight: 700; font-display: swap; src: url("../assets/fonts/gopher-bold.otf") format("opentype"); }
@font-face { font-family: "Gopher"; font-weight: 800; font-display: swap; src: url("../assets/fonts/gopher-heavy.otf") format("opentype"); }
@font-face { font-family: "Gopher"; font-weight: 900; font-display: swap; src: url("../assets/fonts/gopher-black.otf") format("opentype"); }

/* ---------- Tokens ---------- */
:root {
  /* Paleta exacta de la web de Foresta (Blanc) */
  --mustard: #DF9621;
  --cream:   #F8E7D8;
  --violet:  #4F5BA0;
  --green:   #2B7F69;
  --mint:    #7EB8A5;
  --sky:     #B9DCE9;
  --orange:  #E84E23;
  --ink:     #1B1717;

  --f-display: "Gopher", "Poppins", "Century Gothic", sans-serif;
  --f-text: "Poppins", system-ui, sans-serif;

  /* Escala tipográfica (390 → 1440) */
  --t-hero: clamp(2.625rem, 1.75rem + 3.6vw, 4.75rem);  /* 42 → 76 */
  --t-h2:   clamp(2rem, 1.5rem + 2vw, 3.25rem);         /* 32 → 52 */
  --t-h3:   clamp(1.25rem, 1.15rem + .4vw, 1.5rem);     /* 20 → 24 */
  --t-lead: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);    /* 20 → 28 */
  --t-body-l: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);/* 17 → 19 */
  --t-small: .875rem;

  /* Espaciado (múltiplos de 8) */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 2.5rem; --s6: 3rem; --s8: 4rem; --s10: 5rem;
  --section: clamp(4rem, 2.6rem + 5vw, 6rem);           /* 64 → 96: el único ritmo vertical */

  --wrap: 70rem;            /* 1120 */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 2.2vw, 2rem);
  --r-s: 14px;
  --r-l: clamp(20px, 2.4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--f-text); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(52rem + 2 * var(--gutter)); }
.wrap--faq  { max-width: calc(50rem + 2 * var(--gutter)); }
.wrap--mid  { max-width: calc(60rem + 2 * var(--gutter)); } /* bloques intermedios: más recogidos y centrados, como en Blanc */
.center { text-align: center; }

.skip { position: absolute; left: var(--s2); top: -100px; z-index: 50; background: var(--ink); color: var(--cream); padding: var(--s1) var(--s2); border-radius: 8px; font-weight: 600; }
.skip:focus { top: var(--s2); }

h1, h2, h3, .hero__offer, .deal__price, .pro__claim, .end__title, .faq summary, .benefits__lead { font-family: var(--f-display); }

.eyebrow { display: inline-flex; align-items: center; gap: .75em; margin-bottom: var(--s2); font-weight: 600; font-size: var(--t-small); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.75em; height: 3px; border-radius: 2px; background: currentColor; }
.eyebrow--violet::before { background: var(--violet); }
.eyebrow--orange::before { background: var(--orange); }

.fine { font-size: var(--t-small); line-height: 1.55; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--violet); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.5rem; padding: 1rem 2rem;
  font: 700 1rem/1.2 var(--f-text); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--fg); background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r-s);
  white-space: nowrap; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
}
.btn::after { content: "→"; transition: transform .18s ease; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: none; box-shadow: none; }
.btn--orange { --bg: var(--orange); --fg: var(--ink); }
.btn--green  { --bg: var(--green); }
.btn--ink    { --bg: var(--ink); --fg: var(--cream); }

/* ==========================================================================
   1 · HERO
   ========================================================================== */
.hero { background: var(--mustard); }
.hero__bar { display: flex; justify-content: center; padding-top: var(--s4); }
.cobrand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); }
.cobrand__foresta { width: clamp(124px, 11vw, 156px); }
.cobrand__x { font-size: 1.375rem; line-height: 1; opacity: .75; }
.cobrand__lwd { width: clamp(46px, 3.9vw, 56px); height: auto; } /* misma altura visual que el logo de Foresta */

.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding-block: var(--s8) var(--section); }
.hero__copy { grid-column: 1 / span 6; }
.hero__art  { grid-column: 7 / span 6; }
.hero__art img { width: 100%; }

.hero__title { font-weight: 800; font-size: var(--t-hero); line-height: 1; letter-spacing: -.025em; }
.hero__offer { display: block; margin-top: .12em; font-weight: 700; text-shadow: .05em .05em 0 var(--cream); }
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; width: 106%; bottom: -.22em; height: .3em; color: var(--violet); }
.hero__intro { margin-top: var(--s3); max-width: 28em; font-size: var(--t-body-l); }
.hero__cta { margin-top: var(--s4); display: grid; justify-items: start; gap: var(--s2); }
.hero__pro { display: inline-flex; gap: .5em; margin-top: var(--s4); font-weight: 600; font-size: .9375rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.hero__pro span { transition: transform .18s ease; }
.hero__pro:hover span { transform: translateY(3px); }

/* ==========================================================================
   2 · CONFIANZA
   ========================================================================== */
.trust { background: var(--violet); color: #fff; }
.trust__row { display: flex; align-items: center; justify-content: center; gap: var(--s3) clamp(2rem, 5vw, 4.5rem); flex-wrap: wrap; padding-block: var(--s4); }
.trust__label { font-weight: 600; }
.trust__logos { display: flex; align-items: center; gap: var(--s3) clamp(2rem, 5vw, 4.5rem); flex-wrap: wrap; justify-content: center; }
.trust__logos img { height: 42px; width: auto; }
.trust__logos li:nth-child(2) img { height: 44px; }
.trust__logos li:nth-child(3) img { height: 52px; }

/* ==========================================================================
   3 · COLABORACIÓN
   ========================================================================== */
.story { padding-block: var(--section); }
.story__title { font-weight: 800; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.025em; color: var(--green); text-wrap: balance; }
.story__text { max-width: 36em; margin: var(--s3) auto 0; font-size: var(--t-body-l); text-wrap: pretty; }
.story__text--strong { margin-top: var(--s2); font-weight: 600; }

/* ==========================================================================
   4 · BENEFICIOS
   ========================================================================== */
/* Historia, beneficios y Leona comparten fondo crema: un único bloque de lectura con un solo ritmo. */
.benefits { padding-bottom: var(--section); }
.benefits__lead { max-width: 30em; margin-inline: auto; font-weight: 500; font-size: var(--t-lead); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.benefits__lead strong { font-weight: 800; }
.benefits__list { margin-top: var(--s6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--gap); text-align: center; }
.benefit img { width: 128px; height: 128px; margin: 0 auto var(--s3); }
.benefit h3 { font-weight: 700; font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.01em; }
.benefit p { max-width: 19em; margin: var(--s1) auto 0; }

/* ==========================================================================
   5 · LEONA PROTECT
   ========================================================================== */
.leona { padding-bottom: var(--section); }
.leona__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  background: var(--sky); border-radius: var(--r-l);
}
.leona__art { grid-column: 1 / span 5; align-self: end; max-width: 420px; width: 100%; }
.leona__art img { width: 100%; }
.leona__copy { grid-column: 6 / span 7; padding: var(--s6) var(--s6) var(--s6) 0; position: relative; z-index: 1; }
.leona__title { font-weight: 900; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1.02; letter-spacing: -.025em; }
.leona__title span { display: block; color: var(--violet); }
.leona__text { margin-top: var(--s3); font-size: var(--t-body-l); }
.leona__features { margin-top: var(--s4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2) var(--s3); }
.leona__features li { display: flex; align-items: center; gap: .75rem; font-weight: 600; line-height: 1.3; }
.leona__features li::before {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M8.5 14.5l3.6 3.6 7.4-8' fill='none' stroke='%23F8E7D8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ==========================================================================
   6 · SEGUNDO CTA
   ========================================================================== */
.deal { background: var(--green); color: var(--cream); padding-block: var(--section); }
.deal__title { font-weight: 800; font-size: var(--t-h2); line-height: 1.04; letter-spacing: -.02em; }
.deal__title span { display: block; color: var(--sky); }
.deal__price { margin-top: var(--s3); font-weight: 600; font-size: clamp(2.5rem, 1.9rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.deal__price span { color: var(--mustard); }
.deal__includes { margin-top: var(--s2); font-size: var(--t-body-l); }
.deal__cta { margin-top: var(--s4); display: grid; justify-items: center; gap: var(--s2); }

/* ==========================================================================
   7 · PROFESIONALES WEB
   ========================================================================== */
.pro { padding-block: var(--section) var(--s8); scroll-margin-top: var(--s2); }
.pro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s5); align-items: center; }
.pro__intro { grid-column: 1 / span 5; }
.pro__body  { grid-column: 7 / span 6; }
.pro__title { font-weight: 800; font-size: var(--t-h2); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.pro__claim { margin-top: var(--s2); font-weight: 700; font-size: var(--t-h3); color: var(--orange); }
.pro__intro .pro__text { margin-top: var(--s3); font-size: var(--t-body-l); }
.pro__list { border-top: 2px solid var(--ink); }
.pro__list li { display: flex; gap: .875rem; align-items: baseline; padding-block: var(--s2); border-bottom: 1px solid rgb(27 23 23 / .18); font-weight: 600; font-size: var(--t-body-l); line-height: 1.35; }
.pro__list li::before {
  content: ""; flex: none; width: 16px; height: 16px; transform: translateY(1px); background: var(--orange);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.pro__cta { margin-top: var(--s4); display: grid; justify-items: start; gap: var(--s2); }

/* ==========================================================================
   8 · CAPTACIÓN EMAIL (tarjeta secundaria)
   ========================================================================== */
.save { padding-bottom: var(--section); }
.save__card { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s4); align-items: center; padding: var(--s8); background: #fff; border: 2px solid var(--ink); border-radius: var(--r-l); }
.save__copy { grid-column: 1 / span 6; }
.save__form { grid-column: 7 / span 6; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); min-width: 0; }
.save__title { font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.06; letter-spacing: -.02em; }
.save__text { margin-top: var(--s2); }
.save__label { font-weight: 600; font-size: .9375rem; }
.save__field { display: flex; flex-wrap: wrap; gap: var(--s1); }
.save__field input { flex: 1 1 14rem; min-width: 0; min-height: 3.5rem; padding: 0 1.25rem; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: var(--r-s); }
.save__field input::placeholder { color: rgb(27 23 23 / .5); }
.save__field input[aria-invalid="true"] { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.save__field .btn { flex: 0 0 auto; }
.save__error { font-size: var(--t-small); font-weight: 600; color: #7a1d05; }
.save__legal { font-size: var(--t-small); }
.save__legal a { font-weight: 600; text-underline-offset: .2em; }

/* ==========================================================================
   9 · FAQ
   ========================================================================== */
.faq { background: var(--sky); padding-block: var(--section); }
.faq__title { font-weight: 800; font-size: var(--t-h2); line-height: 1; letter-spacing: -.025em; margin-bottom: var(--s5); }
.faq__list { display: grid; gap: .75rem; }
.faq details { background: var(--cream); border-radius: var(--r-s); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 1.25rem 1.5rem; font-weight: 700; font-size: 1.1875rem; line-height: 1.3; color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(var(--cream), var(--cream)) center / 12px 2px no-repeat, linear-gradient(var(--cream), var(--cream)) center / 2px 12px no-repeat, var(--green);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 1.5rem 1.5rem; max-width: 42em; }
.faq__tax { margin-top: var(--s4); font-size: var(--t-small); }

/* ==========================================================================
   CTA FINAL + FOOTER
   ========================================================================== */
.end { background: var(--violet); color: var(--cream); }
.end__cta { display: grid; justify-items: center; row-gap: var(--s4); text-align: center; padding-block: var(--section); }
.end__title { font-weight: 800; font-size: var(--t-h2); line-height: 1.04; letter-spacing: -.02em; }
.end__title span { display: block; color: var(--sky); }
.end__action { display: grid; justify-items: center; gap: var(--s2); }
.end__base { background: var(--mustard); color: var(--ink); }
.end__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); flex-wrap: wrap; padding-block: var(--s3); font-size: var(--t-small); font-weight: 500; }
.end__bar img { width: 128px; }
.end__bar ul { display: flex; gap: var(--s4); flex-wrap: wrap; }
.end__bar a { text-decoration: none; }
.end__bar a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Aviso de enlaces provisionales ---------- */
.toast { position: fixed; z-index: 40; left: 50%; bottom: var(--s3); transform: translateX(-50%); width: min(92vw, 34rem); display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2) var(--s2) var(--s2) var(--s3); background: var(--ink); color: var(--cream); border-radius: var(--r-s); font-size: .9375rem; line-height: 1.45; }
.toast[hidden] { display: none; }
.toast p { flex: 1; }
.toast__close { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .leona__copy { padding: var(--s6) var(--s5) var(--s6) 0; }
  .save__card { padding: var(--s6); }
}

@media (max-width: 900px) {
  .hero__grid, .pro__grid, .save__card, .leona__card { grid-template-columns: minmax(0, 1fr); }
  .hero__copy, .hero__art, .pro__intro, .pro__body, .save__copy, .save__form, .leona__art, .leona__copy { grid-column: 1 / -1; }

  .hero__grid { padding-top: var(--s5); row-gap: var(--s5); }
  .hero__art { max-width: 560px; }
  .benefits__list { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
  .benefit img { width: 112px; height: 112px; }
  .leona__copy { padding: var(--s5) var(--s4) 0; order: -1; }
  .leona__art { max-width: 340px; margin-top: var(--s3); }
  .save__card { padding: var(--s5) var(--s4); }
}

@media (max-width: 560px) {
  .hero__bar { padding-top: var(--s3); }
  .cobrand { gap: .75rem; }
  .hero .btn, .deal .btn, .pro .btn, .end .btn { width: 100%; }
  .btn { white-space: normal; }
  .trust__row { gap: var(--s2); }
  .trust__logos { gap: var(--s3) var(--s4); }
  .trust__logos img { height: 30px; }
  .trust__logos li:nth-child(2) img { height: 32px; }
  .trust__logos li:nth-child(3) img { height: 38px; }
  .leona__copy { padding-inline: var(--s3); }
  .leona__features { grid-template-columns: 1fr; }
  .save__card { padding: var(--s4) var(--s3); }
  .save__field { flex-direction: column; }
  .save__field input { flex: 0 0 auto; width: 100%; }
  .save__field .btn { width: 100%; }
  .faq summary { padding: 1.125rem 1.25rem; font-size: 1.0625rem; }
  .faq__answer { padding: 0 1.25rem 1.25rem; }
  .end__bar { flex-direction: column; align-items: flex-start; }
}

/* Leona sentada: sale un poco por la esquina para que el borde de la tarjeta
   tape el corte del brazo y la línea del suelo, y no quede flotando. */
.leona__art--sentada { max-width: 400px; }
.leona__art--sentada img { transform: translate(-4%, 8%); }

/* ==========================================================================
   Tipografía de detalle (Gopher + Poppins)
   - Gopher para todo lo corto y con voz: titulares, botones, etiquetas, listas, preguntas.
   - Gopher cursiva en el remate de color de los titulares (el «guiño» editorial).
   - Poppins para leer: párrafos, respuestas del FAQ, formulario y letra pequeña.
   ========================================================================== */
@font-face { font-family: "Gopher"; font-weight: 700; font-style: italic; font-display: swap; src: url("../assets/fonts/gopher-bold-italic.otf") format("opentype"); }
@font-face { font-family: "Gopher"; font-weight: 800; font-style: italic; font-display: swap; src: url("../assets/fonts/gopher-heavy-italic.otf") format("opentype"); }

/* Gopher en lo corto */
.btn { font-family: var(--f-display); font-weight: 700; letter-spacing: .05em; }
.eyebrow, .trust__label, .hero__pro, .save__label,
.benefit h3, .leona__features li, .pro__list li, .end__bar { font-family: var(--f-display); }
.eyebrow { font-weight: 700; letter-spacing: .12em; }
.leona__features li, .pro__list li { font-weight: 700; }
.benefits__lead { font-weight: 500; }

/* Remates en cursiva */
.hero__offer, .leona__title span, .deal__title span, .end__title span { font-style: italic; }
.hero__offer { font-weight: 700; letter-spacing: -.03em; }
.leona__title span, .deal__title span, .end__title span { font-weight: 800; }
.pro__claim { font-style: italic; }
.faq summary { font-weight: 700; }
