@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Raleway:wght@300;400&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&display=swap');

/* =========================================================
   JuntosEnForma · estilo oscuro con efecto cristal (inspirado en la web de Dolshelato)
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --serif: 'Instrument Serif', Georgia, serif;
  --thin: 'Raleway', system-ui, sans-serif;
  --sans: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --bg: #050807;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.1);

  /* Colores del logo */
  --green: #2E8B6E;          /* figura verde */
  --green-light: #7FD3B5;    /* foco, iconos y detalles sobre negro */
  --terra: #C8643C;          /* figura terracota */
  --terra-action: #B4532E;   /* botones de compra: blanco encima 5:1 */
  --terra-hover: #C8643C;
  --terra-light: #F2A47F;    /* precios y cursivas destacadas sobre negro */
}

html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* Toque inmediato (sin esperar al doble toque) en todo lo que se pulsa */
a, button, summary, [role="button"] { touch-action: manipulation; }
/* Los controles no se seleccionan ni sacan el menú de copiar al mantener el dedo; el texto normal sí */
button, .btn, .mbar__btn, .social-btn, .faq summary, .ribbon, .badge, .save {
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
img, video { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--terra-action); color: #fff; }

/* ---------- Cristal líquido ---------- */
.glass {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.15) 80%, rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--16 { width: 16px; height: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.85rem 1.75rem; min-height: 48px;
  font-size: 1rem; font-weight: 700; white-space: nowrap; color: #fff;
  transition: background-color 150ms var(--ease), scale 120ms var(--ease-out);
}
.btn-buy { background: var(--terra-action); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 24px rgba(180, 83, 46, .35); }
.btn-glass { background: rgba(255,255,255,.03); }
.btn-big { font-size: 1.125rem; padding: 1.05rem 2.25rem; min-height: 58px; }
@media (hover: hover) and (pointer: fine) {
  .btn-buy:hover { background: var(--terra-hover); }
  .btn-glass:hover { background: rgba(255,255,255,.08); }
}
.btn:active { scale: 0.97; }
/* Respuesta al tocar también en los enlaces de texto */
.navbar__links a:active, .footer a:active, .topbar a:active { opacity: .65; }

/* ---------- Franja superior ---------- */
.topbar { position: relative; z-index: 30; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: calc(.55rem + env(safe-area-inset-top, 0px)) 3rem .55rem; background: linear-gradient(90deg, #1d5c4a, #8a4426); font-size: .9rem; text-align: center; }
.topbar a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.topbar__close { position: absolute; right: .75rem; top: 50%; translate: 0 -50%; padding: .35rem; border-radius: 50%; color: rgba(255,255,255,.85); transition: background-color 150ms var(--ease), scale 120ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .topbar__close:hover { background: rgba(255,255,255,.12); } }
.topbar__close:active { scale: .92; }
.topbar.is-hidden { display: none; }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(46, 139, 110, .45), transparent 70%),
    radial-gradient(55% 50% at 85% 70%, rgba(200, 100, 60, .40), transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.25) 40%, rgba(5,8,7,.9) 92%, var(--bg)); }
/* Fundido desde negro al cargar */
.hero__curtain { position: absolute; inset: 0; z-index: 5; background: #000; pointer-events: none; animation: curtain 1.4s var(--ease) .1s forwards; }
@keyframes curtain { to { opacity: 0; visibility: hidden; } }

.navbar { position: relative; z-index: 20; padding: 1.25rem max(1.25rem, env(safe-area-inset-right, 0px)) 1.25rem max(1.25rem, env(safe-area-inset-left, 0px)); }
.navbar__pill { max-width: 66rem; margin: 0 auto; border-radius: 9999px; padding: .6rem .6rem .6rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(0,0,0,.25); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 52px; height: auto; }
.navbar__links { display: none; gap: 2rem; font-size: .95rem; }
.navbar__links a { color: rgba(255,255,255,.8); transition: color 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .navbar__links a:hover { color: #fff; } }
.navbar .btn { padding: .6rem 1.3rem; min-height: 42px; font-size: .95rem; }

.hero__content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.25rem 3rem; position: relative; z-index: 2; }
.hero__logo { width: min(210px, 52vw); height: auto; margin-bottom: 1.5rem; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.tagline { font-family: var(--thin); font-weight: 300; text-transform: uppercase; letter-spacing: .32em; font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 1.25rem; margin-inline-end: -.32em; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.9rem, 9vw, 6.5rem); line-height: .98; letter-spacing: -.025em; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--terra-light); }
.hero__sub { margin-top: 1.5rem; max-width: 36rem; font-size: 1.15rem; color: var(--muted); }
.hero__ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.hero__social { position: relative; z-index: 2; display: flex; justify-content: center; gap: .85rem; padding-bottom: 2.5rem; }
.social-btn { border-radius: 9999px; padding: .95rem; color: rgba(255,255,255,.85); display: grid; place-items: center; background: rgba(0,0,0,.25); transition: color 150ms var(--ease), background-color 150ms var(--ease), scale 120ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .social-btn:hover { color: #fff; background: rgba(255,255,255,.08); } }
.social-btn:active { scale: .95; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 6rem max(1.25rem, env(safe-area-inset-right, 0px)) 6rem max(1.25rem, env(safe-area-inset-left, 0px)); overflow: hidden; }
.container { position: relative; max-width: 72rem; margin: 0 auto; }
.radial { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at top, rgba(255,255,255,.035) 0%, transparent 70%); }
.label { font-family: var(--thin); font-weight: 400; color: rgba(255,255,255,.65); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; }
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
.h-serif em { font-style: italic; color: rgba(255,255,255,.55); }
.h-serif em.warm { color: var(--terra-light); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2.3rem, 5.5vw, 3.75rem); }
.section-head p.lead { color: var(--muted); max-width: 34rem; margin-top: 1rem; font-size: 1.08rem; }
.section-head .label { display: none; white-space: nowrap; }

/* Franja de confianza */
.trust { max-width: 72rem; margin: 0 auto; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: 1rem; border-radius: 1.5rem; }
.trust li { display: flex; align-items: center; gap: .85rem; padding: .5rem; min-width: 0; }
.trust svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: rgba(46,139,110,.2); color: var(--green-light); stroke-width: 1.8; }
.trust li:nth-child(even) svg { background: rgba(200,100,60,.2); color: var(--terra-light); }
.trust strong { display: block; font-size: 1rem; line-height: 1.2; }
.trust span { display: block; font-size: .85rem; color: var(--faint); line-height: 1.3; }
.trust-wrap { padding: 0 max(1.25rem, env(safe-area-inset-right, 0px)) 0 max(1.25rem, env(safe-area-inset-left, 0px)); margin-top: -1.5rem; position: relative; z-index: 3; }

/* Manifiesto */
.about { text-align: center; padding-top: 7rem; padding-bottom: 3rem; }
.about .label { margin-bottom: 1.5rem; display: block; }
.about__title { font-size: clamp(2.1rem, 6vw, 4.5rem); max-width: 18ch; margin: 0 auto; }
.about__body { margin: 1.75rem auto 0; max-width: 40rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- Escaparate ---------- */
.shop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: 1.5rem; }
.pcard-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.pcard h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.01em; }
.pcard-kind { font-size: .82rem; color: var(--faint); }
.pcard-price { margin-top: auto; padding-top: .5rem; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--terra-light); font-variant-numeric: tabular-nums; }
.pcard-price small { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.pcard-price s { display: block; font-size: 1rem; color: var(--faint); margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.pcard .btn { width: 100%; margin-top: .75rem; padding: .7rem 1rem; min-height: 46px; font-size: .95rem; }
.pcard-top { box-shadow: inset 0 0 0 1.5px rgba(242,164,127,.75), 0 18px 40px rgba(180,83,46,.25); }
.ribbon { position: absolute; top: .75rem; left: .75rem; right: .75rem; z-index: 3; text-align: center; background: var(--terra-action); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 9999px; }
.shop-note { margin-top: 1.5rem; font-size: .85rem; color: var(--faint); }

/* Mockup de tablet */
.mock { position: relative; display: grid; place-items: center; padding: 1.4rem 1rem 1.6rem; perspective: 900px; overflow: hidden;
  background: radial-gradient(80% 70% at 30% 20%, rgba(46,139,110,.35), transparent 70%), radial-gradient(70% 70% at 80% 90%, rgba(200,100,60,.32), transparent 70%), rgba(255,255,255,.02); }
.pcard-top .mock { padding-top: 2.8rem; }
.device { position: relative; width: 82%; background: #0b0f0e; border-radius: 16px; padding: 7px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 40px -16px rgba(0,0,0,.8), 0 4px 10px rgba(0,0,0,.4);
  transform: rotateY(-12deg) rotateX(5deg) rotate(-1deg); transition: transform 250ms var(--ease-out); }
.device img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.mock-alt .device { transform: rotateY(12deg) rotateX(5deg) rotate(1deg); }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .device { transform: rotateY(-6deg) rotateX(3deg) scale(1.03); }
  .star:hover .device { transform: rotateY(-6deg) rotateX(3deg) scale(1.02); }
  .star:hover .mock-alt .device { transform: rotateY(6deg) rotateX(3deg) scale(1.02); }
}

/* Fichas grandes */
.details-title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 5rem 0 2rem; }
.star { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; border-radius: 1.75rem; margin-bottom: 1.5rem; }
.star .mock { border-radius: 1.25rem; padding: 2.25rem 1.5rem 2.5rem; }
.star .device { width: 76%; border-radius: 20px; padding: 9px; }
.star .device img { border-radius: 12px; }
.star-body { display: grid; gap: .9rem; align-content: center; padding: 0 .25rem .5rem; }
.badge { justify-self: start; font-family: var(--thin); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; padding: .4rem .9rem; border-radius: 9999px; background: rgba(200,100,60,.18); color: var(--terra-light); }
.star h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.02; letter-spacing: -.02em; }
.star p { color: var(--muted); }
.star ul { list-style: none; display: grid; gap: .55rem; }
.star li { position: relative; padding-left: 1.6rem; color: rgba(255,255,255,.85); }
.star li::before { content: ''; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(46,139,110,.25); }
.buy { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.amount { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--terra-light); font-variant-numeric: tabular-nums; }
.amount small { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.old { font-family: var(--serif); font-size: 1.5rem; color: var(--faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.save { font-size: .85rem; font-weight: 700; padding: .3rem .75rem; border-radius: 9999px; background: rgba(46,139,110,.22); color: var(--green-light); }
.note { font-size: .9rem; }
.extras-title { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-top: 3rem; }
.extras { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.extras span { padding: .5rem 1.1rem; border-radius: 9999px; border: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

/* Contenidos */
.pillars { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pillar { border-radius: 1.5rem; padding: 1.75rem; display: grid; gap: .75rem; align-content: start; }
.pillar .num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: rgba(255,255,255,.18); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.05; }
.pillar p { color: var(--muted); }
.pillar .label { color: var(--green-light); }
.pillar:nth-child(2) .label { color: var(--terra-light); }

/* Destacado */
.featured__box { position: relative; border-radius: 1.75rem; overflow: hidden; min-height: 28rem; }
.featured__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .featured__box:hover img { transform: scale(1.03); } }
.featured__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.15) 55%, transparent); }
.featured__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.featured__card { border-radius: 1.25rem; padding: 1.5rem; max-width: 30rem; background: rgba(0,0,0,.35); }
.featured__card .label { display: block; margin-bottom: .6rem; }
.featured__card p:last-child { font-size: 1rem; }

/* Redes */
.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.social { display: grid; gap: .3rem; padding: 1.4rem; border-radius: 1.25rem; transition: scale 120ms var(--ease-out), background-color 150ms var(--ease); }
.social strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.social span { color: var(--faint); font-size: .9rem; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .social:hover { background: rgba(255,255,255,.06); } }
.social:active { scale: .97; }

/* Preguntas */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq details { border-radius: 1.25rem; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(46,139,110,.25); color: var(--green-light); font: 700 1.3rem/1 var(--sans); }
.faq details[open] summary::after { content: '−'; background: rgba(200,100,60,.25); color: var(--terra-light); }
.faq .answer { padding: 0 1.35rem 1.3rem; color: var(--muted); }
/* Al abrir una pregunta, la respuesta entra con un fundido corto en vez de aparecer de golpe */
.faq details[open] .answer { animation: answer-in 200ms var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 3.5rem max(1.25rem, env(safe-area-inset-right, 0px)) calc(7rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px)); }
.footer__grid { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer__brand { grid-column: 1 / -1; display: grid; gap: .9rem; }
.footer__brand .brand { font-size: 2rem; }
.footer__brand .brand img { width: 72px; }
.footer h4 { font-family: var(--thin); font-weight: 400; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--faint); margin-bottom: .9rem; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a { color: rgba(255,255,255,.8); }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; } }
.footer .mail { overflow-wrap: anywhere; font-weight: 700; }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.5rem; display: grid; gap: .5rem; font-size: .88rem; color: var(--faint); }

/* ---------- Barra fija en móvil ---------- */
.mbar { position: fixed; left: max(.75rem, env(safe-area-inset-left, 0px)); right: max(.75rem, env(safe-area-inset-right, 0px)); bottom: max(.75rem, env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; gap: .4rem; padding: .4rem; border-radius: 9999px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(calc(100% + 1rem));
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s 160ms; }
.mbar.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s; }
.mbar__btn { flex: 1; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 9999px; font-weight: 700; color: #fff; white-space: nowrap; transition: scale 120ms var(--ease-out); }
.mbar__btn--primary { background: var(--terra-action); }
.mbar__btn:active { scale: .97; }

/* ---------- Aparición al bajar ---------- */
/* Desplazamiento corto (10 px), una sola vez por sección y escalonado de 60 ms entre tarjetas (--rdelay en el HTML) */
html.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out) var(--rdelay, 0s), transform 500ms var(--ease-out) var(--rdelay, 0s); }
html.js .in-view [data-reveal], html.js [data-reveal].in-view { opacity: 1; transform: none; }
html.js .hero [data-reveal] { animation: rise 700ms var(--ease-out) both; animation-delay: calc(.5s + var(--rdelay, 0s)); opacity: 1; transform: none; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Reducir movimiento: nada se desplaza, pero se mantienen fundidos suaves que ayudan a entender lo que aparece */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__curtain { animation: none; opacity: 0; visibility: hidden; }
  html.js [data-reveal] { transform: none !important; transition: opacity 300ms ease var(--rdelay, 0s) !important; }
  html.js .hero [data-reveal] { animation: fade 400ms ease both !important; animation-delay: var(--rdelay, 0s) !important; }
  .faq details[open] .answer { animation: fade 200ms ease; }
  .device, .featured__box img { transition: none; }
  .btn, .social, .social-btn, .mbar__btn, .topbar__close { transition-property: background-color, color; }
  .mbar, .mbar.is-visible { transform: none; }
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .section { padding-top: 8rem; padding-bottom: 8rem; }
  .section-head .label { display: block; }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 1.25rem; }
  .shop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .pcard-body { padding: 1.25rem 1.4rem 1.4rem; }
  .pcard h3 { font-size: 1.6rem; }
  .pcard-price s { display: inline; margin: 0 .35rem 0 0; }
  .star { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 2.5rem; padding: 1.5rem; }
  .star-body { padding: 1rem 1.5rem 1rem 0; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .featured__box { min-height: 0; aspect-ratio: 16 / 8; }
  .featured__overlay { padding: 2.5rem; flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .socials { grid-template-columns: repeat(4, 1fr); }
  .footer { padding-bottom: 4rem; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
  .mbar { display: none; }
}
@media (max-width: 420px) {
  .navbar { padding: .9rem; }
  .navbar__pill { padding: .5rem .5rem .5rem .9rem; }
  .brand { font-size: 1.2rem; gap: .45rem; }
  .brand img { width: 42px; }
  .navbar .btn { padding: .55rem 1rem; font-size: .9rem; }
  .pcard-body { padding: .85rem .8rem 1rem; }
  .pcard h3 { font-size: 1.15rem; }
  .pcard-price { font-size: 1.6rem; }
  .ribbon { font-size: .65rem; top: .5rem; left: .5rem; right: .5rem; }
  .mock { padding: 1rem .6rem 1.2rem; }
  .device { width: 88%; padding: 5px; border-radius: 12px; }
  .device img { border-radius: 8px; }
  .trust li { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .faq summary { font-size: 1.25rem; }
}
@media (max-width: 350px) {
  .brand__name { display: none; }
}

.bn-g { color: #5FB27F; }
.bn-t { color: #E27A42; }

/* ---------- Tienda en dos bloques: planes mensuales arriba, guías de pago único abajo ---------- */
.shop-block { scroll-margin-top: 1.5rem; }
.shop-block + .shop-block { margin-top: 6rem; padding-top: 4rem; border-top: 1px solid var(--line); }
.block-head { margin-bottom: 2rem; display: grid; gap: .6rem; }
.block-head .label { color: var(--green-light); }
#guias .block-head .label { color: var(--terra-light); }
.block-head h3 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
.block-lead { color: var(--muted); max-width: 40rem; }
.perks { list-style: none; display: grid; gap: .6rem; margin-top: .6rem; max-width: 52rem; }
.perks li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.5; }
.perks svg { flex: none; margin-top: .2rem; width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: rgba(46,139,110,.2); color: var(--green-light); }
.perks li:nth-child(even) svg { background: rgba(200,100,60,.2); color: var(--terra-light); }
.perks strong { color: #fff; }
.shop-block .details-title { margin-top: 3.5rem; }
@media (max-width: 767px) {
  .shop--plans .pcard-top { grid-column: 1 / -1; }
  .shop--plans .pcard-top .mock { padding: 2.8rem 3.5rem 1.4rem; }
}

/* ---------- Portada con vídeo de fondo: las hojas forman el infinito y el texto va debajo ---------- */
/* Fondo del mismo negro verdoso que el vídeo, para que no se note el borde */
.hero--video { background: #080f0d; }
/* Ordenador: vídeo contenido y centrado (el logo ocupa un tercio del ancho), con los bordes fundidos con el fondo */
.hero--video .hero__video { z-index: -2; left: 50%; right: auto; bottom: auto; top: clamp(40px, 7svh, 90px);
  width: min(64vw, 1200px, 110svh); height: auto; aspect-ratio: 16 / 9; object-fit: contain; transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%); }
.hero--video .hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(5,8,7,.6) 16%, rgba(5,8,7,0) 34%); }
/* Pantalla vertical: vídeo más ancho que la pantalla para que el logo ocupe casi todo el ancho (solo se recorta el humo de los lados) */
@media (max-aspect-ratio: 1/1) {
  .hero--video .hero__video { width: 195vw; max-width: none; top: calc(max(calc(env(safe-area-inset-top, 0px) + 76px), calc(30svh - 50px)) - 22vw); }
  .hero--video .hero__shade { background: linear-gradient(to top, var(--bg) 0%, rgba(5,8,7,0) 40%); }
  /* El texto empieza siempre por debajo del logo, aunque la pantalla sea bajita */
  .hero--video .hero__content { padding-top: calc(max(calc(env(safe-area-inset-top, 0px) + 76px), calc(30svh - 50px)) + 58vw - 76px); }
}
.hero--video .hero__content { justify-content: flex-end; padding-bottom: 1.25rem; }
.hero--video .tagline { margin-bottom: .9rem; }
.hero--video h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 22ch; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero--video .hero__sub { margin-top: 1rem; font-size: 1.08rem; color: rgba(255,255,255,.8); }
.hero--video .hero__ctas { margin-top: 1.6rem; }
.hero--video .hero__social { padding-bottom: 1.75rem; }
/* El vídeo empieza ya con el logo, así que el texto entra pronto */
html.js .hero--video [data-reveal] { animation-delay: calc(1.2s + var(--rdelay, 0s)); }
.hero--video .hero__curtain { animation-duration: 1s; }
@media (max-width: 767px) {
  .hero--video .hero__sub { display: none; }
  .hero--video h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero--video .hero__content { padding-bottom: .75rem; }
}
@media (max-height: 820px) and (min-width: 768px) {
  .hero--video .hero__sub { display: none; }
}
/* En ordenador, con el aviso de arriba visible, la portada entera cabe en la primera pantalla */
@media (min-width: 768px) {
  body:has(.topbar:not(.is-hidden)) .hero--video { min-height: calc(100svh - 40px); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero--video [data-reveal] { animation-delay: 0s; }
}

/* =========================================================
   Versión crema: la portada sigue en negro; desde la franja de confianza hacia abajo, fondo crema cálido
   (como los PDF) con tarjetas en blanco roto, más cómodo para leer textos largos
   ========================================================= */
main, .footer {
  --bg: #FAF7F0;
  --card: #FFFDF8;
  --ink: #2B2B2B;
  --muted: #57534C;          /* gris cálido, 7:1 sobre crema */
  --faint: #6B665E;          /* 5:1 sobre crema */
  --line: rgba(43, 43, 43, 0.12);
  --green: #34B48A;
  --green-light: #1E7A5C;    /* verde oscurecido para textos e iconos sobre crema (5:1) */
  --terra: #E06A40;
  --terra-light: #B4532E;    /* precios y cursivas sobre crema (4,8:1) */
  color: var(--ink);
}
/* Degradado corto desde el negro de la portada hasta el crema */
/* Zona crema en modo claro (barras de desplazamiento y controles del navegador claros) */
main, .footer { color-scheme: light; }
/* Al estirar la página más allá del final (rebote de iPhone) se ve crema, y al principio negro */
html { background: linear-gradient(to bottom, #050807 0 50%, #FAF7F0 50% 100%); }

/* Degradado corto de negro a crema pasando por verdes oscuros, para que no quede gris parduzco */
main { background: linear-gradient(to bottom, #050807 0, #050807 1.5rem, #0f2a22 3.25rem, #3f7a64 5.25rem, #a9cbb9 7rem, #eef0e6 8.25rem, var(--bg) 9.25rem) var(--bg); }
/* Alternativa: corte directo, con la franja de confianza haciendo de puente */
html.t-corte main { background: linear-gradient(to bottom, #050807 0, #050807 3rem, var(--bg) 3rem) var(--bg); }
.footer { background: var(--bg); }
body:has(main) { background: var(--bg); }

/* Tarjetas: blanco roto con borde fino y sombra suave, sin el cristal oscuro */
main .glass, .footer .glass {
  background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 0 0 1px rgba(43,43,43,.07), 0 1px 2px rgba(60,40,20,.05), 0 10px 28px rgba(60,40,20,.07);
}
main .glass::before, .footer .glass::before { display: none; }
main .radial { display: none; }

main .label { color: var(--faint); }
main .h-serif em { color: var(--green-light); }
main .h-serif em.warm { color: var(--terra-light); }
main .star li, main .perks li { color: #3A3833; }
main .perks strong { color: var(--ink); }
main .pillar .num { color: rgba(43,43,43,.16); }
main .extras span { background: var(--card); }
main .trust svg, main .perks svg { background: rgba(52,180,138,.14); }
main .trust li:nth-child(even) svg, main .perks li:nth-child(even) svg { background: rgba(224,106,64,.14); }
main .badge { background: rgba(224,106,64,.13); }
main .save { background: rgba(52,180,138,.16); }
main .faq summary::after { background: rgba(52,180,138,.16); }
main .faq details[open] summary::after { background: rgba(224,106,64,.16); }
main .star li::before { box-shadow: 0 0 0 3px rgba(52,180,138,.2); }
main .pcard-top { box-shadow: inset 0 0 0 1.5px #E06A40, 0 18px 40px rgba(180,83,46,.18); }
main .mock { background: radial-gradient(80% 70% at 30% 20%, rgba(52,180,138,.28), transparent 70%), radial-gradient(70% 70% at 80% 90%, rgba(224,106,64,.26), transparent 70%), #F1EBE0; }
main .device { box-shadow: 0 22px 34px -16px rgba(40,30,20,.45), 0 4px 10px rgba(40,30,20,.18); }
@media (hover: hover) and (pointer: fine) {
  main .social:hover { background: #fff; }
  .footer a:hover { color: var(--green-light); }
}
main .shop-block + .shop-block { border-top-color: var(--line); }

/* Destacado: la imagen ya lleva su propio texto, así que la tarjeta y el botón van debajo y no la tapan */
main .featured__box { min-height: 0; aspect-ratio: auto; background: var(--card); box-shadow: 0 0 0 1px rgba(43,43,43,.07), 0 10px 28px rgba(60,40,20,.07); }
main .featured__box img { position: static; height: auto; aspect-ratio: 16 / 9; }
main .featured__shade { display: none; }
main .featured__overlay { position: static; padding: 1.25rem; }
main .featured__card.glass { background: none; box-shadow: none; padding: 0; overflow: visible; }
main .featured__card .label { color: var(--terra-light); }
@media (min-width: 768px) {
  main .featured__box { aspect-ratio: auto; }
  main .featured__overlay { padding: 1.75rem 2rem; align-items: center; }
}

/* Barra fija del móvil: sombra más suave sobre el crema */
.mbar { box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 8px 24px rgba(40,30,20,.22); }

/* Respuesta al pulsar también en las preguntas, y tarjetas de redes que se elevan un poco al pasar el ratón */
.faq summary { transition: opacity 120ms var(--ease-out); }
.faq summary:active { opacity: .7; }
.social { transition: scale 120ms var(--ease-out), translate 200ms var(--ease-out), background-color 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) { main .social:hover { translate: 0 -2px; } }
@media (prefers-reduced-motion: reduce) { main .social:hover { translate: none; } }

/* Pie */
.footer a { color: #3A3833; }
.footer .bn-g, main .bn-g { color: #2A8F6C; }
.footer .bn-t, main .bn-t { color: #C2552C; }
