/* Plastic Carrots · Home — estilos de página sobre el design system (tokens.css + bundle.css).
   Celular primero; escritorio desde 900px de contenedor. */

.h-page { container-type: inline-size; background: var(--pc-blanco); color: var(--pc-tinta); font-family: var(--pc-font-sans); -webkit-font-smoothing: antialiased; overflow: hidden; position: relative; }
.h-page *, .h-page *::before, .h-page *::after { box-sizing: border-box; }
.h-page img { display: block; max-width: 100%; }

/* Marcador de contenido que falta */
.h-mark { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 10px; border: 1.5px dashed currentColor; border-radius: var(--pc-r-pill); font: 500 12px/1.25 var(--pc-font-sans); letter-spacing: 0; font-style: normal; }

/* ---------- Header sobre el hero ---------- */
.h-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.h-top__row { display: flex; align-items: center; justify-content: space-between; height: 76px; padding-top: 8px; }
.h-top__logo { width: 112px; height: auto; }
.h-burger { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; color: var(--pc-blanco); cursor: pointer; margin-right: -10px; }
.h-burger .pc-ico { width: 26px; height: 26px; }

/* Barra al bajar (blanca redondeada) */
.h-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px 0 18px; background: var(--pc-blanco); border: var(--pc-bw) solid var(--pc-linea); border-radius: var(--pc-r-md); }
.h-bar img { width: 96px; height: auto; }
.h-bar .h-burger { color: var(--pc-tinta); margin-right: 0; }

/* ---------- 1 · Hero ---------- */
.h-hero { min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 100px 0 32px; }
.h-hero__ctas .pc-btn { width: 100%; max-width: 300px; justify-content: space-between; }
.h-hero__ctas .pc-btn--outline { justify-content: center; }
.h-page .pc-link { min-height: 44px; }
.h-foot .pc-footer ul { gap: 0; }
.h-foot .pc-footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
.h-hero .pc-display { color: var(--pc-blanco); max-width: 9ch; }
.h-hero__sub { margin: 18px 0 0; font-family: var(--pc-font-serif); font-weight: 400; font-size: clamp(30px, 1.5rem + 1.6cqi, 44px); line-height: 1.18; letter-spacing: -0.01em; color: var(--pc-blanco); }
.h-hero__sub > span { display: block; }
.h-sel { display: inline; background: var(--pc-lila); color: var(--pc-violeta); font-style: italic; padding: 0 .16em 0 .1em; }
.h-cursor { display: inline-block; width: .48em; height: 1.04em; background: var(--pc-lila); vertical-align: -.2em; margin-left: .1em; }
.h-hero__ctas { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* ---------- Bloques papel con firulete con grano: el firulete pasa por detrás del texto ---------- */
.h-about, .h-dato, .h-ev, .h-seal { --y: calc(50cqh + 140px); }

/* ---------- 2 · Hacelo a propósito ---------- */
.h-about { padding-block: 56px; }
.h-about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pc-s-5); align-items: start; }
.h-about__t { margin: 0; font-family: var(--pc-font-serif); font-weight: 700; font-style: italic; font-size: 40px; line-height: 1.05; letter-spacing: 0; text-transform: uppercase; color: var(--pc-tinta); }   /* mayúsculas por CSS: el texto del HTML sigue siendo «Hacelo a propósito.» */
.h-about__t span { display: block; white-space: nowrap; }   /* «a propósito.» no se parte: el título son dos líneas */
.h-about__body { display: grid; gap: var(--pc-s-4); max-width: 62ch; font-family: var(--pc-font-sans); font-weight: 400; font-size: 16px; line-height: 1.5; text-align: left; }
.h-about__body p { margin: 0; }

/* ---------- Sello antes del pie ---------- */
.h-seal .pc-container { display: flex; justify-content: center; }
.h-seal { padding-block: 32px; min-height: 300px; display: flex; align-items: center; }
/* Sobre blanco el firulete entra y sale por los costados, nunca cortado arriba ni abajo */
.h-seal .pc-fir { width: 160cqw; left: -30cqw; top: calc(50cqh - 31.2cqw); transform: rotate(-3deg); }
/* el firulete de «Hacelo a propósito» ocupa todo el bloque, centrado en su alto (que depende del contenido), y pasa por detrás del texto */
.h-about { min-height: 300px; display: flex; align-items: center; }
.h-about .pc-fir { width: 160cqw; left: -30cqw; top: calc(50cqh - 31.2cqw); transform: rotate(-3deg); }   /* el mismo tamaño que el del sello, antes del pie */
.h-sello { width: 136px; height: auto; transform: rotate(-8deg); background: var(--pc-blanco); border-radius: 50%; }

/* ---------- 4 · ¿Qué necesitás? (tarjetas compactas .pc-ncard del sistema) ---------- */
.h-needs__grid { display: flex; flex-direction: column; gap: 24px; }
.h-needs { padding-block: clamp(40px, 6cqi, 80px); }

/* Notas (etiquetas rotadas) en tono intermedio, para no chocar con los botones violeta */
.h-page .pc-note.pc-note.pc-note { --bg: var(--pc-verde-medio); --ink: var(--pc-tinta); --edge: var(--pc-verde-canto); }
.h-page .pc-note.pc-note.pc-note.h-note--lila { --bg: var(--pc-violeta-medio); --edge: var(--pc-violeta); }
.h-page .pc-note.pc-note.pc-note.h-note--naranja { --bg: var(--pc-naranja-medio); --edge: var(--pc-naranja); }

/* ---------- 5 · Recursos / 11 · Blog ---------- */
.h-sheet { position: absolute; left: 50%; top: 14%; width: 46%; height: 86%; transform: translateX(-50%); background: var(--pc-blanco); border-radius: 6px 6px 0 0; padding: 14% 12% 0; display: flex; flex-direction: column; gap: 9px; }
.h-sheet i { display: block; height: 7px; border-radius: 4px; background: var(--pc-papel); }
.h-sheet i:nth-child(1) { width: 70%; height: 10px; background: var(--pc-linea); margin-bottom: 6px; }
.h-sheet i:nth-child(3) { width: 85%; }
.h-sheet i:nth-child(5) { width: 60%; }
.h-media-mark { position: absolute; left: 12px; bottom: 12px; z-index: 1; background: var(--pc-blanco); }
.pc-card .pc-small { margin: 0; }
.h-cards { --cols: 4; }
/* Jerarquía de acciones (revisada con el equipo):
   violeta lleno = convertir · contorno = seguir explorando la sección · la tarjeta entera = entrar a un ítem · link subrayado = texto corrido.
   El "ver más" de sección va siempre después del contenido: a lo ancho en celular, al ancho del texto en escritorio. */
.h-more--bottom { margin-top: 32px; }
.h-more--bottom .pc-btn { width: 100%; }
a.pc-card:hover .pc-card__title { text-decoration-thickness: 3px; }

/* ---------- 6 · Dato / 12 · Eventos (papel con firulete) ---------- */
.h-dato__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.h-dato .pc-h1 { max-width: 12ch; }
.h-source { font: 400 13px/1.45 var(--pc-font-sans); margin: 4px 0 0; max-width: 46ch; }

/* ---------- 8 · Test ---------- */
.h-test { --bg: #FDE8D8; --onda-dark: #F9D3B7; --onda-light: #FFF6EF; }
.h-test .pc-center { gap: 20px; }
.h-test .pc-h1 { max-width: 13ch; }

/* ---------- 9 · Programa ---------- */
.h-prog .pc-feature { align-items: stretch; }
.h-prog .pc-feature__head { gap: 16px; }
.h-prog .pc-feature__side { justify-content: flex-end; }
.h-prog .pc-media { width: 100%; }
.h-btn-wrap { white-space: normal; height: auto; min-height: var(--pc-h-l); padding: 12px 16px; text-align: center; text-wrap: balance; font-size: 15px; line-height: 1.2; }
.pc-block.is-violeta .pc-kicker { color: var(--pc-blanco); }

/* ---------- 10 · Reviews ---------- */
.h-rev .pc-reviews { margin-top: 0; }
.h-rev .pc-review__foot .h-mark { font-size: 11.5px; padding: 2px 8px; }

/* ---------- 13 · Regalos ---------- */

/* ---------- 14 · Footer ---------- */
.h-foot .pc-footer { color: var(--pc-blanco); }
.h-foot .pc-footer__brand img { width: 150px; height: auto; }
.h-foot .pc-footer__legal ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }

/* ---------- Escritorio ---------- */
@container (min-width: 900px) {
  .h-top__row { height: 96px; padding-top: 16px; }
  .h-top__logo { width: 148px; }
  .h-hero { min-height: clamp(540px, 100svh, 760px); padding: 128px 0 40px; }   /* nunca más alto que la pantalla (si entra el contenido): las flechas quedan a la vista */
  .h-hero .pc-display { max-width: 12ch; }
  .h-hero__ctas { flex-direction: row; align-items: center; gap: 14px; margin-top: 48px; }
  .h-hero__ctas .pc-btn { width: auto; max-width: none; }
  .h-hero__ctas { gap: 28px; }
  .h-more--bottom { margin-top: 40px; }
  .h-more--bottom .pc-btn { width: auto; }
  .h-sello { width: 168px; }
  .h-seal { min-height: 560px; display: flex; align-items: center; }
  /* Proporción original del firulete (sin estirar): entra y sale por los costados y queda entero arriba y abajo */
  .h-seal .pc-fir { width: 120cqw; left: -4cqw; top: calc(50cqh - 23.4cqw); transform: none; }
  .h-about { padding-block: 96px; }
  .h-about { min-height: 560px; }
  .h-about .pc-fir { width: 120cqw; left: -4cqw; top: calc(50cqh - 23.4cqw); transform: none; }
    .h-about, .h-dato, .h-ev, .h-seal { --y: calc(50cqh + 268px); }
  .h-about__grid { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); gap: var(--pc-s-7); }
  .h-about__t { font-size: clamp(40px, calc(5.2cqi - 6px), 58px); }   /* en mayúsculas «A PROPÓSITO.» es más ancha: el tope baja de 64 a 54 px para que entre en la columna de 35 % */
  .h-about__body { font-size: 21px; line-height: 1.5; max-width: 46ch; }

  /* En escritorio las cuatro tarjetas van en fila */
  .h-needs__grid { gap: 40px; }
  .h-dato__text { max-width: 600px; }

  .h-prog .pc-feature { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; padding: 48px; }
  .h-prog .pc-feature__head { grid-column: 1 / span 6; align-self: center; }
  .h-prog .pc-feature__side { grid-column: 8 / span 5; }
  .h-prog .pc-media { aspect-ratio: 4 / 3.4; }
  .h-prog .h-btn-wrap { width: fit-content; padding-inline: 28px; }

      }
@container (max-width: 899px) {
  .h-cards.is-slider { --cols: 1; }
}

/* ---------- Estados ---------- */
.h-states { display: flex; gap: 48px; padding: 48px; align-items: flex-start; background: var(--pc-papel); }
.h-state { display: flex; flex-direction: column; gap: 14px; width: 390px; flex: none; }
.h-state__cap { font: 600 14px/1.3 var(--pc-font-sans); margin: 0; color: var(--pc-tinta); }
.h-phone { position: relative; width: 390px; height: 844px; overflow: hidden; border-radius: 28px; background: var(--pc-blanco); container-type: inline-size; box-shadow: inset 0 0 0 1.5px var(--pc-linea); }
.h-phone > .pc-block { height: 100%; }
.h-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--pc-tinta) 40%, transparent); z-index: 3; }
.h-menu { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.h-menu__panel { background: var(--pc-blanco); border-radius: var(--pc-r-md); padding: 8px 8px 12px; }
.h-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.h-menu__panel li a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 14px; font: 500 18px/1.2 var(--pc-font-sans); text-decoration: none; color: var(--pc-tinta); border-bottom: var(--pc-bw) solid var(--pc-papel); }
.h-menu__panel li:last-child a { border-bottom: 0; }
.h-menu__panel .pc-btn { margin: 10px 6px 0; width: calc(100% - 12px); }
.h-pile { position: relative; height: 560px; margin-top: 8px; }
.h-pile .h-deck__card { position: absolute; left: 0; right: 0; min-height: 0; height: 264px; box-shadow: 0 -2px 0 var(--pc-blanco); }
.h-modal { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--pc-blanco); border-radius: 28px 28px 0 0; padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 18px; }
.h-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.h-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--pc-papel); display: grid; place-items: center; color: var(--pc-tinta); flex: none; margin: -6px -6px 0 0; }
.h-close .pc-ico { width: 20px; height: 20px; }
.h-wa { position: absolute; right: 16px; bottom: 24px; z-index: 6; width: 56px; height: 56px; border-radius: 50%; background: var(--pc-verde); color: var(--pc-tinta); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--pc-verde-canto); text-decoration: none; }
.h-wa svg { width: 28px; height: 28px; }
.h-phrases { display: flex; flex-direction: column; gap: 12px; }
.h-phrase { border-radius: 20px; padding: 24px 22px; overflow: hidden; }
.h-phrase.pc-block { padding: 24px 22px; }
.h-phrase .h-hero__sub { margin: 0; font-size: 30px; }

/* ---------- 8 · Test: etiqueta «Test» arriba del título, en lila (la llamada a comprar sigue siendo el botón) ---------- */
.h-test .pc-noted { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 0; }
.h-test .pc-noted .pc-note--top { position: static; }

/* ---------- 9 · Ola de la rutina: remate visual de la tarjeta del programa (sin título ni texto explicativo) ---------- */
.h-prog { padding-bottom: clamp(40px, 6cqi, 72px); }

/* ---------- 12 · Para empresas: las fotos de los encuentros son las protagonistas; los regalos, una línea y un botón ---------- */
.h-ev__grid { display: flex; flex-direction: column; gap: 28px; }
.h-ev__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.h-ev .pc-galeria { --gal-h: clamp(340px, 112cqi, 460px); margin-inline: -8px; }
.h-ev__pie { display: grid; gap: 32px; padding-top: 28px; border-top: var(--pc-bw) solid var(--pc-linea); }
.h-ev__col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.h-ev__col .pc-h2 { margin: 0; font-size: clamp(24px, 2.4cqi, 30px); }
.h-ev__col .pc-body { margin: 0; max-width: 52ch; }
.h-ev__col .pc-btn { margin-top: 4px; }
@container (min-width: 900px) {
  .h-ev__grid { gap: 44px; }
  .h-ev .pc-galeria { --gal-h: 520px; margin-inline: 0; }
  .h-ev .pc-galeria__pista { padding-inline: 12px 24px; }
  }

/* ¿Qué necesitás? en la Home: tarjetas cuadradas; en celular se apilan al bajar (las de atrás se achican) */
.pc-ncards--home { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 16px; padding-bottom: 8px; }
.pc-ncards--home .pc-ncard { --pc-sticker: 72px; --pc-sticker-l: 72px; position: sticky; top: calc(84px + var(--i, 0) * 14px); flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 0; padding: 22px 20px 20px; transform-origin: 50% 0; box-shadow: 0 -2px 0 var(--pc-blanco); will-change: transform; }
.pc-ncards--home .pc-ncard__txt { flex: 1 1 auto; width: 100%; }
.pc-ncards--home .pc-ncard__t { font-size: 24px; }
@container (min-width: 900px) {
  .pc-ncards--home { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 0; }
  .pc-ncards--home .pc-ncard { position: relative; top: auto; min-height: 0; box-shadow: none; will-change: auto; --pc-sticker: 76px; --pc-sticker-l: 76px; padding: 22px 20px 20px; }
}

/* ---------- ¿Te pasa algo de esto? en celular: rejilla de 2 × 2 (el mazo queda en /por-donde-empiezo/) ---------- */
@container (max-width: 899px) {
  .pc-ncards--home.pc-ncards--rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 0; }
  .pc-ncards--home.pc-ncards--rejilla .pc-ncard { --pc-sticker: 60px; --pc-sticker-l: 60px; position: relative; top: auto; transform: none; box-shadow: none; will-change: auto; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; min-height: 0; padding: 16px 14px 14px; }
  .pc-ncards--home.pc-ncards--rejilla .pc-ncard__t { font-size: 20px; }
  .pc-ncards--home.pc-ncards--rejilla .pc-ncard__d { display: none; }
  .pc-ncards--home.pc-ncards--rejilla .pc-choice__go { margin-top: auto; align-self: flex-end; }
}

/* ---------- Programa: tarjeta violeta con un solo botón (avisame cuando salga) y la ola más chica ---------- */
.h-prog__form { width: 100%; }
.h-prog__form .pc-field { display: flex; flex-direction: column; gap: 8px; padding: 6px; border-radius: 28px; background: var(--pc-blanco); }
.h-prog__form .pc-field input { min-height: 48px; width: 100%; border: 0; background: transparent; padding-inline: 16px; font: 400 16px/1.2 var(--pc-font-sans); color: var(--pc-tinta); border-radius: var(--pc-r-pill); }
.h-prog__form .pc-field .pc-btn { width: 100%; justify-content: center; }
.h-prog__mas { color: var(--pc-blanco); }
@container (min-width: 900px) {
  .h-prog__form { max-width: 460px; }
  .h-prog__form .pc-field { flex-direction: row; align-items: center; border-radius: var(--pc-r-pill); }
  .h-prog__form .pc-field input { flex: 1; width: auto; min-width: 0; }
  .h-prog__form .pc-field .pc-btn { width: auto; flex: none; }
  .h-prog .pc-media { aspect-ratio: 4 / 3; }
}

/* ---------- Blog: una nota destacada y tres chicas ---------- */

/* ---------- Texto no menor a 14 px en celular ---------- */
.pc-note, .pc-tag, .pc-estado, .pc-review__more { font-size: 14px; }

/* ---------- Blog: las tres notas chicas en el slider de tarjetas (el de la tienda); en escritorio entran las tres y no hay flechas ---------- */
@media (min-width: 600px) { .h-blog__gal.pc-galeria--cards .pc-galeria__item { flex-basis: calc((100% - 44px) / 2.4); } }
@media (min-width: 960px) { .h-blog__gal.pc-galeria--cards .pc-galeria__item { flex-basis: calc((100% - 44px) / 3); } }

.h-ev__tall .pc-h2 { font-size: clamp(26px, 2.8cqi, 34px); }

/* ---------- ¿Te pasa algo de esto?: la onda queda del lado claro, sin escalón oscuro, y se funde con el degradado ---------- */
.pc-ncards--home.pc-ncards--rejilla .pc-ncard .pc-texture { --onda-dark: color-mix(in srgb, var(--nec-a) 40%, var(--nec-bg)); --onda-light: color-mix(in srgb, var(--nec-b) 55%, var(--nec-bg)); }
.pc-ncards--home.pc-ncards--rejilla .pc-ncard .pc-texture.is-onda > svg { opacity: .6; filter: blur(14px); }
.pc-ncards--home.pc-ncards--rejilla .pc-ncard .pc-texture.is-onda::after { opacity: .14; }
/* más aire entre «Hacelo a propósito» y el título de las tarjetas */
.h-needs { padding-top: 72px; }
@media (min-width: 900px) { .h-needs { padding-top: 112px; } }

/* Tarjetas de necesidad de la Home: el círculo violeta pasa a botón fantasma (transparente, borde tinta y flecha tinta); al apoyar el mouse en la tarjeta se rellena en tinta */
.pc-ncards--home .pc-ncard .pc-choice__go { background: transparent; color: var(--pc-tinta); box-shadow: inset 0 0 0 1.5px var(--pc-tinta); transition: transform var(--pc-dur, 200ms) var(--pc-ease), background-color 200ms, color 200ms; }
.pc-ncards--home .pc-ncard:hover .pc-choice__go, .pc-ncards--home .pc-ncard:focus-visible .pc-choice__go { background: var(--pc-tinta); color: var(--pc-blanco); }
@media (prefers-reduced-motion: reduce) { .pc-ncards--home .pc-ncard .pc-choice__go { transition: none; } }
