/* =============================================================
   Reparable — hoja de estilos
   Arquetipo: Liquid Wave (olas, formas líquidas, sostenibilidad)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #F2F7F3;
  --bg-2:      #E3EFE7;
  --paper:     #FFFFFF;
  --deep:      #0B3A34;
  --deep-2:    #0F4A42;
  --deep-3:    #082E29;
  --ink:       #0B2521;
  --ink-soft:  #35514B;
  --ink-mute:  #5C736D;
  --accent:    #0E9B74;
  --accent-bright: #3DDBA4;
  --accent-soft:   #C6EBDB;
  --sun:       #FFC247;
  --sun-soft:  #FFE8B0;
  --cream:     #EAF5EF;
  --cream-mute: rgba(234,245,239,.72);
  --line:      rgba(11,37,33,.12);
  --line-deep: rgba(234,245,239,.14);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand:    "Caveat", "Segoe Print", cursive;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
  --radius-sm: 16px;
  --shadow-soft: 0 30px 60px -30px rgba(11,58,52,.35);
  --shadow-card: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px -28px rgba(11,58,52,.35);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent-bright); color: var(--deep-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@view-transition { navigation: auto; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--deep); color: var(--cream);
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker span {
  display: inline-grid; place-items: center;
  min-width: 2.2rem; height: 1.6rem; padding: 0 .5rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--deep);
  letter-spacing: .04em;
}
.kicker--light { color: var(--cream-mute); }
.kicker--light span { background: rgba(61,219,164,.16); color: var(--accent-bright); }

.h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 1rem;
}
.h2 em {
  font-style: normal;
  color: var(--accent);
  text-decoration: underline wavy var(--accent-bright);
  text-decoration-thickness: .06em;
  text-underline-offset: .2em;
  text-decoration-skip-ink: none;
}
.deep .h2 em { color: var(--accent-bright); text-decoration-color: rgba(61,219,164,.45); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; margin-top: 1.2rem; }
.deep .lead { color: var(--cream-mute); }

/* =============================================================
   5. Components
   ============================================================= */

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--deep); --btn-fg: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .98rem; line-height: 1; white-space: nowrap;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.btn::after {
  /* ola que sube al pasar el ratón */
  content: ""; position: absolute; z-index: -1;
  left: -25%; width: 150%; aspect-ratio: 1; top: 110%;
  border-radius: 42%;
  background: rgba(255,255,255,.14);
  animation: spin 7s linear infinite paused;
  transition: top .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(11,58,52,.55); }
.btn:hover::after { top: -40%; animation-play-state: running; }
.btn:active { transform: translateY(0); }
.btn-deep { --btn-bg: var(--deep); --btn-fg: var(--cream); }
.btn-sun  { --btn-bg: var(--sun);  --btn-fg: var(--deep-3); }
.btn-sun::after { background: rgba(255,255,255,.35); }
.btn-sm { padding: .7rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---- Pills / chips / tags ---- */
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .95rem .5rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}
.pill-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(14,155,116,.5); animation: pulse 2.6s var(--ease-soft) infinite; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.2rem; }
.chips-label { font-size: .85rem; color: var(--ink-mute); margin-right: .2rem; }
.chip {
  padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: var(--paper); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, transform .4s var(--ease-out);
}
.chip:hover { background: var(--accent-soft); border-color: transparent; transform: translateY(-2px); }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags span {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--deep);
}

/* ---- Meter (dificultad) ---- */
.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: 14px; height: 6px; border-radius: 3px; background: currentColor; opacity: .18; }
.meter[data-level="1"] i:nth-child(-n+1),
.meter[data-level="2"] i:nth-child(-n+2),
.meter[data-level="3"] i:nth-child(-n+3),
.meter[data-out-level="1"] i:nth-child(-n+1),
.meter[data-out-level="2"] i:nth-child(-n+2),
.meter[data-out-level="3"] i:nth-child(-n+3) { opacity: 1; background: var(--accent); }
.meter[data-out-level="2"] i:nth-child(-n+2) { background: #E0A11B; }
.meter[data-out-level="3"] i { opacity: 1; background: #D2553D; }

/* ---- Image placeholders ---- */
.ph {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, rgba(61,219,164,.45), transparent 60%),
    linear-gradient(160deg, #D5EDE1, #B7DFCC);
  color: var(--deep);
}
.ph::before {
  /* patrón de ondas suave */
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c15-10 30-10 45 0s30 10 45 0 30-10 30 0' fill='none' stroke='%230B3A34' stroke-opacity='.25' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 120px 24px;
}
.ph::after {
  /* icono de imagen */
  content: ""; position: absolute; width: 44px; height: 44px; top: 50%; left: 50%;
  transform: translate(-50%, -110%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3A34' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m21 16-5-5-8 9'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .55;
}
.ph-label {
  position: relative; z-index: 1; margin-top: 3.4rem;
  max-width: 80%; text-align: center;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: .4rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.72); color: var(--deep);
}
.ph--dark {
  background:
    radial-gradient(90% 70% at 25% 15%, rgba(61,219,164,.35), transparent 60%),
    radial-gradient(70% 60% at 90% 100%, rgba(255,194,71,.22), transparent 60%),
    linear-gradient(160deg, #145A50, #0B3A34 70%);
}
.ph--dark::before, .ph--dark::after { filter: invert(1); }
.ph--dark::before { opacity: .22; }
.ph--sun {
  background:
    radial-gradient(90% 70% at 20% 10%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(80% 70% at 90% 100%, rgba(255,194,71,.55), transparent 60%),
    linear-gradient(160deg, #FFF1CF, #F8DA96);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Blob ---- */
.blob {
  position: relative; overflow: hidden;
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  animation: blobMorph 16s ease-in-out infinite;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.blob .ph { position: absolute; inset: 0; }
.blob--alt { animation-duration: 19s; animation-direction: reverse; aspect-ratio: 1; }

/* ---- Mini LCD ---- */
.mini-lcd {
  display: inline-grid; place-items: center;
  min-width: 3.6rem; height: 2.6rem; padding: 0 .6rem; border-radius: 12px;
  background: var(--ink); color: var(--accent-bright);
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: .06em;
  text-shadow: 0 0 12px rgba(61,219,164,.7);
}

/* ---- Ad slot ---- */
.ad-slot {
  display: grid; place-items: center; gap: .2rem; text-align: center;
  min-height: 120px; margin-block: clamp(24px, 4vw, 48px);
  border: 1.5px dashed rgba(11,37,33,.22); border-radius: 20px;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(11,37,33,.025) 12px 24px);
  color: var(--ink-mute); padding: 1rem;
}
.ad-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.ad-size { font-size: .82rem; }

/* ---- Wave dividers ---- */
.wave-div { position: relative; height: clamp(56px, 8vw, 110px); overflow: hidden; margin-bottom: -1px; }
.wv { max-width: none; }
.wave-div .wv { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; fill: currentColor; animation: waveX 24s linear infinite; }
.wave-div .wv-soft { opacity: .35; animation-duration: 34s; animation-direction: reverse; }
.wave-div--to-deep   { background: var(--bg); color: var(--deep); }
.wave-div--from-deep { background: var(--deep); color: var(--bg); }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---- Nav ---- */
.nav {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50;
  padding-inline: var(--gutter);
  transition: transform .5s var(--ease-out);
}
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  width: min(1240px, 100%); margin-inline: auto;
  height: 60px; padding: 0 .6rem 0 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px -18px rgba(11,58,52,.35);
  transition: background .4s, box-shadow .4s;
}
@supports (backdrop-filter: blur(10px)) {
  .nav-inner { background: rgba(255,255,255,.62); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
}
.nav.is-scrolled .nav-inner { box-shadow: 0 16px 40px -20px rgba(11,58,52,.45); }
.nav.is-hidden { transform: translateY(-120%); }

.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--deep); flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; }
.logo-level { transform: translateY(calc((1 - var(--lvl, .35)) * 16px - 6px)); transition: transform .3s linear; }
.logo-wave { fill: var(--accent); animation: logoWave 3.2s linear infinite; }
.logo--light { color: var(--cream); }

.nav-links { display: none; gap: .2rem; margin-left: auto; }
.nav-links a {
  position: relative; padding: .5rem .8rem; border-radius: 999px; white-space: nowrap;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  transition: color .3s, background .3s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--deep); background: var(--accent-soft); }
.nav-cta { display: none; }

.nav-burger {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px; background: var(--deep);
}
.nav-burger span:not(.sr-only) { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform .4s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Sin JS: el menú hamburguesa no funciona, así que mostramos los enlaces */
html:not(.js) .nav-burger { display: none; }
html:not(.js) .nav-links { display: flex; overflow-x: auto; }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: 6rem var(--gutter) 3rem;
  background: var(--deep); color: var(--cream);
  clip-path: circle(0% at calc(100% - 44px) 42px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-out), visibility 0s .8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; transition: clip-path .8s var(--ease-out); }
.menu nav { display: flex; flex-direction: column; gap: .4rem; }
.menu nav a { font-family: var(--display); font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; }
.menu nav a:hover { color: var(--accent-bright); }
.menu-foot { font-family: var(--hand); font-size: 1.6rem; color: var(--sun); }
html:not(.js) .menu { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 clamp(120px, 16vw, 200px);
  background: linear-gradient(180deg, #E4F1E9 0%, #D6ECE0 100%);
  display: flex; align-items: center;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 78% 35%, rgba(61,219,164,.35), transparent 70%),
    radial-gradient(35% 40% at 8% 85%, rgba(255,194,71,.28), transparent 70%),
    radial-gradient(30% 30% at 45% 10%, rgba(255,255,255,.8), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.hero-grid > *, .decoder > *, .guides > *, .method-grid > *, .faq-grid > *, .art-hero-grid > *, .art-layout > * { min-width: 0; }

.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  font-weight: 800; line-height: .9; letter-spacing: -.05em;
  color: var(--deep);
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .02em .02em .1em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; animation: wordUp 1.1s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.hero-title .hl { color: var(--accent); }
.hl-wrap { position: relative; display: inline-block; }
.hl-line { position: absolute; left: 2%; right: 4%; bottom: -.02em; width: 94%; height: .2em; overflow: visible; }
.hl-line path { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.2s .9s var(--ease-out) forwards; }

.hero-sub { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 44ch; }

.search {
  position: relative; margin-top: 2rem;
  display: flex; align-items: center; gap: .4rem;
  max-width: 560px; padding: .45rem .45rem .45rem 1.1rem;
  border-radius: 999px; background: var(--paper);
  box-shadow: 0 24px 50px -24px rgba(11,58,52,.45), 0 0 0 1px var(--line);
  transition: box-shadow .4s var(--ease-out);
}
.search:focus-within { box-shadow: 0 24px 60px -22px rgba(11,58,52,.55), 0 0 0 3px rgba(14,155,116,.35); }
.search-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--ink-mute); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .7rem .2rem; font-size: 1rem; }
.search input::placeholder { color: #8BA09A; }
.search input::-webkit-search-cancel-button { display: none; }
.search-suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 5;
  padding: .5rem; border-radius: 22px; background: var(--paper);
  box-shadow: 0 30px 60px -24px rgba(11,58,52,.5), 0 0 0 1px var(--line);
}
.search-suggest[hidden] { display: none; }
.search-suggest a { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 14px; }
.search-suggest a:hover, .search-suggest a.is-focus { background: var(--bg); }
.search-suggest .mini-lcd { min-width: 3rem; height: 2.1rem; font-size: .95rem; border-radius: 10px; }
.search-suggest small { display: block; color: var(--ink-mute); font-size: .78rem; }
.search-suggest strong { font-weight: 600; font-size: .95rem; }
.search-empty { padding: .8rem; color: var(--ink-mute); font-size: .9rem; }

.hero-visual { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.blob-wrap { animation: bob 8s ease-in-out infinite; }
.hero-visual .blob { aspect-ratio: 4 / 5; }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem .7rem .7rem; border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 50px -22px rgba(11,58,52,.5);
  font-size: .85rem; line-height: 1.3;
}
.fc-text strong { display: block; font-weight: 600; color: var(--deep); }
.fc-text { color: var(--ink-mute); }
.fc-code { left: -6%; top: 16%; animation: bob 6s ease-in-out infinite; }
.fc-step { right: -5%; bottom: 14%; animation: bob 7s -2s ease-in-out infinite; }
.fc-check { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.fc-check svg { width: 20px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.badge-rotate {
  position: absolute; z-index: 3; right: 2%; top: -3%;
  width: clamp(96px, 12vw, 124px); aspect-ratio: 1;
  border-radius: 50%; background: var(--sun);
  box-shadow: 0 18px 40px -18px rgba(180,120,0,.6);
  display: grid; place-items: center;
}
.badge-rotate > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge-rotate text { font-family: var(--display); font-weight: 700; font-size: 10.2px; letter-spacing: .12em; text-transform: uppercase; fill: var(--deep-3); }
.badge-leaf { width: 34%; fill: none; stroke: var(--deep-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.annot {
  position: absolute; z-index: 3; left: -2%; bottom: -4%;
  font-family: var(--hand); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--deep); transform: rotate(-6deg); line-height: 1;
}
.annot svg { position: absolute; left: 70%; bottom: 60%; width: 70px; fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: scaleY(-1) rotate(10deg); }

.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(90px, 13vw, 170px); overflow: hidden; pointer-events: none; }
.hero-waves .wv { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: waveX 26s linear infinite; }
.wv-a { fill: rgba(61,219,164,.28); animation-duration: 30s !important; }
.wv-b { fill: rgba(14,155,116,.18); animation-duration: 22s !important; animation-direction: reverse !important; }
.wv-c { fill: var(--bg); animation-duration: 18s !important; }

/* ---- Generic section ---- */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head--split { max-width: none; display: grid; gap: 1rem; align-items: end; }

/* ---- 01 Apps ---- */
.apps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.app {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: .6rem;
  min-height: 230px; padding: 1.6rem;
  border-radius: var(--radius); background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.app::before {
  /* efecto "llenado de agua" */
  content: ""; position: absolute; z-index: -1;
  left: -50%; width: 200%; aspect-ratio: 1; top: 108%;
  border-radius: 43%;
  background: var(--accent-soft);
  animation: spin 11s linear infinite paused;
  transition: top 1s var(--ease-out);
}
.app:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,58,52,.5); }
.app:hover::before { top: 38%; animation-play-state: running; }
.app h3 { font-size: 1.45rem; margin-top: auto; }
.app p { color: var(--ink-soft); font-size: .95rem; max-width: 32ch; }
.app-icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--bg); color: var(--deep);
  transition: transform .6s var(--ease-bounce), background .4s;
}
.app-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app:hover .app-icon { transform: rotate(-8deg) scale(1.06); background: var(--paper); }
.app-go {
  position: absolute; right: 1.2rem; top: 1.2rem;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), background .4s, border-color .4s;
}
.app-go svg { width: 18px; fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app:hover .app-go { transform: rotate(-45deg); background: var(--deep); border-color: var(--deep); }
.app:hover .app-go svg { stroke: var(--cream); }

.app-feature { background: var(--deep); color: var(--cream); padding: 0; }
.app-feature::before { background: var(--deep-2); }
.app-feature .ph-app { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }
.app-feature .app-icon { margin: -28px 0 0 1.6rem; position: relative; z-index: 1; background: var(--sun); color: var(--deep-3); }
.app-feature h3 { margin: .4rem 1.6rem 0; font-size: 1.9rem; }
.app-feature p { color: var(--cream-mute); margin: 0 1.6rem 1.8rem; }
.app-feature .app-go { background: var(--paper); border-color: transparent; }
.app-feature:hover .app-go { background: var(--sun); }
.app-feature:hover .app-go svg { stroke: var(--deep-3); }

/* ---- 02 Deep / decoder ---- */
.deep { background: var(--deep); color: var(--cream); isolation: isolate; }
.deep-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 85% 20%, rgba(61,219,164,.16), transparent 70%),
    radial-gradient(35% 35% at 5% 90%, rgba(255,194,71,.10), transparent 70%);
}
.decoder { display: grid; gap: 3rem; align-items: center; }
.decoder-form { display: grid; gap: .8rem; margin-top: 2rem; max-width: 560px; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-mute); }
.field select, .field input {
  width: 100%; height: 56px; padding: 0 1.1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line-deep);
  background: rgba(255,255,255,.06); color: var(--cream);
  outline: 0; transition: border-color .3s, background .3s;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EAF5EF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.field select option { color: var(--ink); }
.field input { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; }
.field select:focus, .field input:focus { border-color: var(--accent-bright); background: rgba(255,255,255,.1); }
.decoder-form .btn { height: 56px; }
.decoder-hint { margin-top: 1rem; font-size: .9rem; color: var(--cream-mute); }
.decoder-hint button { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.decoder-hint button:hover { color: var(--cream); }

.dec-card {
  position: relative; padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 32px; background: #F7FBF8; color: var(--ink);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.6);
  transition: transform .5s var(--ease-out);
}
.dec-card.is-updating > *:not(.lcd) { animation: fadeUp .6s var(--ease-out) both; }
.lcd {
  position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem;
  padding: 1.2rem 1.4rem; border-radius: 22px;
  background: linear-gradient(160deg, #0E2B27, #071B18);
  box-shadow: inset 0 2px 12px rgba(0,0,0,.5), inset 0 0 0 1px rgba(61,219,164,.12);
}
.lcd-dot { position: absolute; top: 1rem; right: 1rem; width: 8px; height: 8px; border-radius: 50%; background: #FF6B4A; box-shadow: 0 0 10px #FF6B4A; animation: blink 1.4s steps(2) infinite; }
.lcd-code {
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; letter-spacing: .06em;
  color: var(--accent-bright); text-shadow: 0 0 22px rgba(61,219,164,.65);
}
.lcd-meta { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(234,245,239,.6); }
.dec-card h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 1.4rem; }
.dec-card > p { color: var(--ink-soft); margin-top: .6rem; }
.dec-sub { font-size: .75rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute) !important; margin-top: 1.4rem !important; }
.dec-causes { counter-reset: c; display: grid; gap: .5rem; margin-top: .7rem; }
.dec-causes li { counter-increment: c; display: flex; gap: .7rem; align-items: baseline; font-size: .96rem; }
.dec-causes li::before { content: counter(c); flex-shrink: 0; width: 1.5rem; height: 1.5rem; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--deep); font-size: .75rem; font-weight: 700; transform: translateY(-1px); }
.dec-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.4rem 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; }
.dec-meta > div { display: flex; align-items: center; gap: .6rem; }
.dec-meta-label { color: var(--ink-mute); }

.steps-wrap { position: relative; margin-top: clamp(64px, 9vw, 120px); }
.steps-path { display: none; position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 64px; overflow: visible; }
.steps-path path { fill: none; stroke: rgba(61,219,164,.45); stroke-width: 2; stroke-dasharray: 6 8; }
.steps { position: relative; display: grid; gap: 2rem; }
.steps li { position: relative; }
.step-n {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  background: var(--deep-2); color: var(--accent-bright);
  box-shadow: 0 0 0 8px var(--deep), 0 0 0 9px rgba(61,219,164,.25);
}
.steps h3 { font-size: 1.5rem; margin-top: 1.2rem; }
.steps p { color: var(--cream-mute); margin-top: .5rem; max-width: 34ch; }

/* ---- 03 Guides ---- */
.guides { display: grid; gap: 2rem; }
.guide-feature { display: block; border-radius: 32px; background: var(--paper); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .6s var(--ease-out); }
.guide-feature:hover { transform: translateY(-6px); }
.ph-guide { aspect-ratio: 16 / 10; }
.guide-body { padding: 1.6rem 1.6rem 1.8rem; }
.guide-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 1rem; transition: color .3s; }
.guide-feature:hover h3 { color: var(--accent); }
.guide-body > p:not(.tags):not(.guide-meta) { color: var(--ink-soft); margin-top: .8rem; }
.guide-meta { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; font-size: .88rem; color: var(--ink-mute); }

.guide-list { display: flex; flex-direction: column; }
.guide-list li + li { border-top: 1px solid var(--line); }
.guide-row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center;
  padding: 1.5rem 1.2rem;
  border-radius: 22px;
}
.guide-row::before {
  content: ""; position: absolute; inset: 4px 0; z-index: -1; border-radius: 22px;
  background: var(--paper); transform: scaleX(.94); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.guide-row:hover::before { transform: scaleX(1); opacity: 1; }
.guide-row .tags { grid-column: 1 / -1; }
.guide-row-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.2; letter-spacing: -.01em; }
.soon { grid-column: 1; font-size: .75rem; color: var(--ink-mute); font-style: italic; }
.guide-arrow { grid-column: 2; grid-row: 2 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); transition: transform .6s var(--ease-out), background .3s; }
.guide-arrow svg { width: 18px; fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-row:hover .guide-arrow { transform: rotate(-45deg); background: var(--accent-soft); }

/* ---- 04 Eco ---- */
.eco { background: var(--bg-2); overflow: clip; }
.eco-blob {
  position: absolute; width: min(70vw, 820px); aspect-ratio: 1; right: -18%; top: -10%;
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  background: radial-gradient(circle at 30% 30%, rgba(61,219,164,.35), rgba(14,155,116,.08) 70%);
  animation: blobMorph 20s ease-in-out infinite;
  pointer-events: none;
}
.statement {
  position: relative; margin-top: 1.6rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.8rem); line-height: 1.08; letter-spacing: -.035em;
  max-width: 24ch; color: var(--deep);
}
.statement .sw { transition: opacity .2s linear; }
.pillars { position: relative; display: grid; gap: 1rem; margin-top: clamp(48px, 7vw, 88px); }
.pillar { padding: 1.8rem; border-radius: var(--radius); background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); }
.pillar-n { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.pillar p { margin-top: .8rem; color: var(--ink-soft); max-width: 28ch; }
.eco-note { position: relative; display: flex; gap: .9rem; align-items: flex-start; margin-top: 2.4rem; max-width: 70ch; font-size: .95rem; color: var(--ink-soft); }
.eco-note svg { width: 26px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: .1rem; }

/* ---- 05 Brands ---- */
.brands { display: flex; flex-wrap: wrap; gap: .6rem; }
.brands a {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; padding: .85rem 1.35rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: -.01em;
  background: var(--paper); border: 1px solid var(--line);
  transition: color .4s, transform .5s var(--ease-out);
}
.brands a::before {
  content: ""; position: absolute; z-index: -1; left: -30%; width: 160%; aspect-ratio: 1; top: 115%;
  border-radius: 42%; background: var(--deep);
  animation: spin 6s linear infinite paused; transition: top .7s var(--ease-out);
}
.brands a:hover { color: var(--cream); transform: translateY(-3px); }
.brands a:hover::before { top: -45%; animation-play-state: running; }

/* ---- 06 Method ---- */
.method { padding-top: 0; }
.method-grid { display: grid; gap: 3rem; align-items: center; }
.method-visual { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.method-visual .blob { width: 100%; }
.annot--method { left: auto; right: 0; bottom: 4%; color: var(--accent); transform: rotate(5deg); }
.method-copy .sec-head { margin-bottom: 2.2rem; }
.method-list { display: grid; gap: 1.2rem; }
.method-list li { display: flex; gap: 1.1rem; padding: 1.3rem; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-card); }
.m-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--deep); }
.m-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.method-list h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.method-list p { color: var(--ink-soft); font-size: .95rem; margin-top: .3rem; }

/* ---- 07 FAQ ---- */
.faq-sec { padding-top: 0; }
.faq-grid { display: grid; gap: 1rem; }
.faq { display: grid; gap: .7rem; }
.faq details { border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-card); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.4rem;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.2rem); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--bg-2); transition: background .3s, transform .5s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--deep); transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-icon { background: var(--accent-soft); transform: rotate(180deg); }
.faq details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); max-width: 70ch; }
.faq details[open] .faq-body { animation: fadeUp .5s var(--ease-out) both; }

/* ---- Newsletter ---- */
.newsletter { padding-bottom: clamp(100px, 12vw, 160px); }
.news-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.news-inner .h2 { max-width: 16ch; }
.news-inner .lead { max-width: 52ch; }
.news-form {
  position: relative; display: flex; gap: .4rem; width: min(520px, 100%); margin-top: 2rem;
  padding: .45rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-deep);
}
.news-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--cream); padding: 0 1rem; font-size: 1rem; }
.news-form input::placeholder { color: rgba(234,245,239,.5); }
.news-form.is-error { border-color: #FF8A6B; animation: shake .4s; }
.news-ok {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .6rem;
  border-radius: 999px; background: var(--accent-bright); color: var(--deep-3); font-weight: 600;
  clip-path: circle(0% at 90% 50%); transition: clip-path .8s var(--ease-out);
}
.news-ok svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.news-form.is-done .news-ok { clip-path: circle(150% at 90% 50%); }
.news-form.is-done .news-ok svg { animation: draw .6s .4s var(--ease-out) forwards; }
.news-legal { margin-top: 1rem; font-size: .82rem; color: rgba(234,245,239,.55); }
.news-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Footer ---- */
.footer { background: var(--deep-3); color: var(--cream-mute); padding: clamp(56px, 7vw, 88px) 0 2rem; }
.footer-top { display: grid; gap: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 36ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-cols a { display: block; padding: .25rem 0; transition: color .3s; }
.footer-cols a:hover { color: var(--accent-bright); }
.footer-h { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin-bottom: .6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-deep); font-size: .82rem; }
.footer-bottom p { max-width: 70ch; }
.to-top:hover { color: var(--accent-bright); }

/* =============================================================
   6b. Article page
   ============================================================= */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.art-hero {
  position: relative; isolation: isolate;
  padding: calc(var(--nav-h) + 56px) 0 clamp(110px, 14vw, 170px);
  background: linear-gradient(180deg, #E4F1E9 0%, #D6ECE0 100%);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--ink-mute); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; opacity: .5; }
.crumbs a:hover { color: var(--accent); }
.art-hero-grid { display: grid; gap: 2.5rem; align-items: center; margin-top: 1.8rem; }
.art-title { font-size: clamp(2.2rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--deep); margin-top: 1rem; }
.art-deck { margin-top: 1.2rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; }
.art-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.art-facts li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 999px; background: rgba(255,255,255,.75); font-size: .88rem; }
.art-facts b { font-weight: 600; color: var(--deep); }
.art-lcd { max-width: 420px; width: 100%; margin-inline: auto; animation: bob 8s ease-in-out infinite; }
.art-lcd .lcd { padding: 2rem; border-radius: 32px; box-shadow: 0 40px 80px -40px rgba(11,58,52,.8), inset 0 0 0 1px rgba(61,219,164,.14); }
.art-lcd .lcd-code { font-size: clamp(4.5rem, 12vw, 7.5rem); }
.art-lcd .lcd-meta { width: 100%; }
.art-hero .hero-waves .wv-c { fill: var(--bg); }

.art-layout { display: grid; gap: 2.5rem; padding-bottom: clamp(64px, 8vw, 110px); }
.toc {
  align-self: start; padding: 1.3rem; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-card);
}
.toc-title { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.toc ol { margin-top: .8rem; display: grid; gap: .1rem; counter-reset: t; }
.toc a {
  counter-increment: t; display: flex; gap: .6rem; padding: .45rem .6rem; border-radius: 12px;
  font-size: .92rem; color: var(--ink-soft); transition: background .3s, color .3s;
}
.toc a::before { content: counter(t, decimal-leading-zero); font-size: .75rem; font-weight: 600; color: var(--ink-mute); padding-top: .15rem; }
.toc a:hover { background: var(--bg); }
.toc a.is-active { background: var(--accent-soft); color: var(--deep); font-weight: 600; }

.prose { min-width: 0; max-width: 720px; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; margin-top: 3.2rem; color: var(--deep); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul.dots { display: grid; gap: .5rem; }
.prose ul.dots li { position: relative; padding-left: 1.4rem; }
.prose ul.dots li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.quick { padding: 1.6rem; border-radius: 26px; background: var(--deep); color: var(--cream); position: relative; overflow: hidden; isolation: isolate; }
.quick::after { content: ""; position: absolute; z-index: -1; right: -20%; bottom: -60%; width: 60%; aspect-ratio: 1; border-radius: 42%; background: rgba(61,219,164,.14); animation: spin 14s linear infinite; }
.quick-label { font-size: .75rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright) !important; }
.quick p { color: var(--cream-mute); margin-top: .6rem; }
.quick strong { color: var(--cream); }

.causes-list { display: grid; gap: .8rem; counter-reset: c; }
.causes-list li { counter-increment: c; position: relative; padding: 1.2rem 1.3rem 1.2rem 4rem; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-card); }
.causes-list li::before { content: counter(c); position: absolute; left: 1.2rem; top: 1.15rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--deep); font-weight: 700; font-size: .85rem; }
.causes-list h3 { color: var(--deep); }
.causes-list p { margin-top: .3rem; font-size: .98rem; }
.prob { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; font-size: .8rem; color: var(--ink-mute); }
.prob-bar { flex: 0 0 120px; height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.prob-bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }

.callout { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 20px; background: var(--sun-soft); }
.callout svg { width: 26px; flex-shrink: 0; fill: none; stroke: #8A5A00; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout p { color: #4A3A12; margin: 0; }
.callout strong { color: #2E2307; }
.callout--pro { background: var(--accent-soft); }
.callout--pro svg { stroke: var(--deep); }
.callout--pro p { color: var(--deep); }

.kit { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.kit li { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 16px; background: var(--paper); font-size: .95rem; box-shadow: var(--shadow-card); }
.kit li::before { content: ""; width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--accent); }

.howto { display: grid; gap: 1.2rem; counter-reset: s; margin-top: 1.6rem !important; }
.howto > li { counter-increment: s; position: relative; padding: 1.4rem 1.4rem 1.4rem 4.6rem; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-card); }
.howto > li::before {
  content: counter(s); position: absolute; left: 1.2rem; top: 1.2rem;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--deep); color: var(--accent-bright); font-family: var(--display); font-weight: 800; font-size: 1.1rem;
}
.howto h3 { color: var(--deep); }
.howto p { margin-top: .4rem; font-size: .98rem; }
.howto .ph { margin-top: 1rem; aspect-ratio: 16 / 9; border-radius: 16px; }
.howto .tip { display: inline-block; margin-top: .8rem; font-family: var(--hand); font-size: 1.35rem; line-height: 1.1; color: var(--accent); }

.author-box { display: flex; gap: 1rem; align-items: center; margin-top: 3rem !important; padding: 1.4rem; border-radius: 22px; background: var(--bg-2); }
.author-mark { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--cream); }
.author-mark svg { width: 30px; }
.author-box p { margin: 0; font-size: .92rem; }
.author-box strong { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--deep); }

.related { background: var(--bg-2); }
.related-grid { display: grid; gap: 1rem; }
.related-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-card); transition: transform .5s var(--ease-out); }
.related-card:hover { transform: translateY(-5px); }
.related-card h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.related-card .soon { margin-top: auto; }

/* ---- Tarjeta "¿Tienes un código?" ---- */
.app-cta { background: var(--sun); }
.app-cta::before { background: #FFD47A; }
.app-cta .app-icon { background: rgba(255,255,255,.55); }
.app-cta p { color: #4A3A12; }

/* ---- Guías: meta en filas ---- */
.guide-row-meta { grid-column: 1; font-size: .8rem; color: var(--ink-mute); }

/* ---- Marcas por aparato ---- */
.legend-dot, .brands .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.brands .dot { margin-left: .5rem; box-shadow: 0 0 0 3px rgba(14,155,116,.18); transition: background .3s; }
.brands a:hover .dot { background: var(--accent-bright); }
.brands span:not(.dot):not(.sr-only) {
  display: inline-flex; padding: .85rem 1.35rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: -.01em;
  background: rgba(255,255,255,.55); border: 1px dashed var(--line); color: var(--ink-soft);
}
.brand-tabs { display: none; }
.brand-panel + .brand-panel { margin-top: 2.2rem; }
.brand-panel-title { font-size: 1.3rem; margin-bottom: 1rem; color: var(--deep); }
.brand-empty { margin-top: 1rem; font-size: .9rem; color: var(--ink-mute); }
.js .brand-tabs {
  display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
  margin-bottom: 1.6rem; padding: .35rem; border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow-card); width: max-content; max-width: 100%;
}
.js .brand-tabs::-webkit-scrollbar { display: none; }
.brand-tabs button {
  flex-shrink: 0; padding: .65rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  transition: background .35s var(--ease-out), color .35s;
}
.brand-tabs button:hover { background: var(--bg); color: var(--deep); }
.brand-tabs button[aria-selected="true"] { background: var(--deep); color: var(--cream); }
.js .brand-panel { display: none; }
.js .brand-panel.is-active { display: block; animation: fadeUp .5s var(--ease-out) both; }
.js .brand-panel + .brand-panel { margin-top: 0; }
.js .brand-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Tabla de códigos ---- */
.table-wrap { overflow-x: auto; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-card); }
.codes-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.codes-table th { text-align: left; padding: 1rem 1.1rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); border-bottom: 1px solid var(--line); }
.codes-table td { padding: 1rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.codes-table tr:last-child td { border-bottom: 0; }
.codes-table td:first-child { width: 1%; }
.codes-table .mini-lcd { min-width: 3.2rem; height: 2.3rem; font-size: 1rem; }
.pill-ok, .pill-pro { display: inline-block; margin: 0 .3rem .3rem 0; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--accent-soft); color: var(--deep); }
.pill-pro { background: #FBE1DA; color: #8A2E1A; }
.table-note { font-size: .85rem; color: var(--ink-mute) !important; }
.lcd-code--sm { font-size: clamp(3rem, 8vw, 5rem) !important; }

/* ---- Páginas simples (legal, contacto…) ---- */
.art-hero--page { padding-bottom: clamp(100px, 12vw, 150px); }
.art-hero--page .art-title { max-width: 18ch; }
.page-body { padding-bottom: clamp(64px, 8vw, 110px); }
.page-body .prose { margin-inline: auto; }
.page-body .prose h2:first-child { margin-top: 0; }
mark.fill { background: var(--sun-soft); color: #4A3A12; padding: .05em .35em; border-radius: 6px; font-weight: 600; }
.contact-card { padding: 1.8rem; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow-card); }
.contact-card .quick-label { color: var(--accent) !important; }
.contact-mail { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--deep) !important; margin: .4rem 0 .8rem; }
.related-go { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--accent); }

/* ---- 08 Avisar de un código que falta ---- */
.report { padding-bottom: clamp(100px, 12vw, 150px); }
.report-grid { display: grid; gap: 3rem; align-items: start; }
.report-points { display: grid; gap: .7rem; margin-top: 1.8rem; color: var(--cream-mute); }
.report-points li { display: flex; gap: .7rem; align-items: baseline; }
.report-points span { flex-shrink: 0; width: 1.5rem; height: 1.5rem; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(61,219,164,.16); color: var(--accent-bright); font-size: .8rem; font-weight: 700; }
.report-form {
  position: relative; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 32px;
  background: #F7FBF8; color: var(--ink); box-shadow: 0 50px 90px -40px rgba(0,0,0,.6);
}
.rf-grid { display: grid; gap: .9rem; }
.rf-field { display: grid; gap: .35rem; }
.rf-field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.rf-field abbr { color: var(--accent); text-decoration: none; }
.rf-opt { font-weight: 400; color: var(--ink-mute); }
.rf-field input, .rf-field select, .rf-field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  outline: 0; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.rf-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3A34' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 16px; }
.rf-field input:focus, .rf-field select:focus, .rf-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,155,116,.18); }
.rf-field input::placeholder, .rf-field textarea::placeholder { color: #93A7A1; }
.rf-field.is-invalid input, .rf-field.is-invalid select { border-color: #D2553D; box-shadow: 0 0 0 3px rgba(210,85,61,.15); }
.rf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-check { display: flex; gap: .65rem; align-items: flex-start; margin: 1.2rem 0; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.rf-check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--accent); flex-shrink: 0; }
.rf-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rf-status { min-height: 1.4em; margin-top: .8rem; font-size: .9rem; text-align: center; color: var(--ink-mute); }
.rf-status.is-error { color: #B8442D; font-weight: 600; }
.report-form.is-sending [data-report-btn] { opacity: .7; pointer-events: none; }
.rf-done {
  position: absolute; inset: 0; border-radius: 32px; padding: 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem;
  background: #F7FBF8; animation: fadeUp .6s var(--ease-out) both;
}
.rf-done h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--deep); }
.rf-done p { color: var(--ink-soft); max-width: 36ch; }
.rf-done-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.rf-done-icon svg { width: 36px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .2s var(--ease-out) forwards; }
.rf-again { margin-top: .4rem; }

/* ---- Fotos reales dentro de los marcos ---- */
.ph.has-img::before, .ph.has-img::after { display: none; }
.ph.has-img img { transition: transform 1.2s var(--ease-out); }
.app:hover .ph.has-img img, .guide-feature:hover .ph.has-img img { transform: scale(1.06); }
.ph--dark.has-img::before {
  /* velo de marca sobre la foto principal */
  display: block; z-index: 1; opacity: 1; background: linear-gradient(180deg, rgba(11,58,52,0) 55%, rgba(11,58,52,.35));
}

/* ---- Pie: créditos y divisor hacia el pie ---- */
.wave-div--to-footer { background: var(--bg); color: var(--deep-3); }
.footer-credits { text-decoration: underline; text-underline-offset: 3px; }
.footer-credits:hover { color: var(--accent-bright); }

/* ---- Página de créditos ---- */
.credits-list { display: grid; gap: .8rem; }
.credit { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-card); }
.credit img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.credit strong { display: block; color: var(--deep); font-family: var(--display); }
.credit span { display: block; font-size: .88rem; }
.credit-note { color: var(--ink-mute); font-size: .78rem !important; }

/* =============================================================
   7. Effects & keyframes
   ============================================================= */
/* Reveal al hacer scroll — solo con JS activo, con red de seguridad */
/* Usa "translate" + animación (no transform/transition) para no pisar los hovers */
.js [data-reveal] {
  opacity: 0; translate: 0 28px;
  animation: revealIn 0s 5s forwards;
}
.js [data-reveal].is-revealed { animation: revealIn 1s var(--ease-out) var(--d, 0ms) both; }
@keyframes revealIn { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

/* Revelado "ola" de imágenes */
.js [data-wave-reveal] { clip-path: ellipse(80% 0% at 50% 100%); transition: clip-path 1.4s var(--ease-out); animation: waveRevealSafety 0s 5s forwards; }
.js [data-wave-reveal].is-revealed { clip-path: ellipse(150% 150% at 50% 100%); animation: none; }
@keyframes waveRevealSafety { to { clip-path: none; } }

@keyframes wordUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes waveX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blobMorph {
  0%, 100% { border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%; }
  33%      { border-radius: 58% 42% 45% 55% / 55% 58% 42% 45%; }
  66%      { border-radius: 48% 52% 62% 38% / 40% 52% 48% 60%; }
}
@keyframes logoWave { from { transform: translateX(0); } to { transform: translateX(16px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,155,116,.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(14,155,116,0); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 539px) {
  .fc-code { left: -2%; top: 6%; }
  .fc-step { right: -2%; bottom: 8%; }
  .annot { display: none; }
  .search { padding-left: .9rem; }
  .search .btn { padding-inline: 1.1rem; }
  .kit { grid-template-columns: 1fr; }
  .howto > li { padding: 4.2rem 1.2rem 1.3rem; }
}

@media (min-width: 540px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .app-feature { grid-column: span 2; }
  .rf-grid { grid-template-columns: 1fr 1fr; }
  .rf-wide { grid-column: 1 / -1; }
  .decoder-form { grid-template-columns: 1.4fr 1fr; }
  .decoder-form .btn { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .sec-head--split { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
  .sec-head--split .lead { justify-self: end; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .menu { display: none; }

  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; }
  .hero-visual { margin-right: 0; }

  .apps { grid-template-columns: repeat(4, 1fr); }
  .app-feature { grid-column: 1 / span 2; grid-row: span 2; }
  .app-feature .ph-app { aspect-ratio: auto; flex: 1; min-height: 220px; }

  .decoder { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .report-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
  .report-copy { position: sticky; top: calc(var(--nav-h) + 40px); }
  .decoder-form { grid-template-columns: 1.4fr 1fr auto; align-items: end; }
  .decoder-form .btn { grid-column: auto; }
  .steps-path { display: block; }
  .steps { text-align: center; }
  .steps .step-n { margin-inline: auto; }
  .steps p { margin-inline: auto; }

  .guides { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; }

  .method-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .faq-grid .sec-head { position: sticky; top: calc(var(--nav-h) + 40px); }

  .footer-top { grid-template-columns: 1fr 1.4fr; }

  .art-hero-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .art-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: calc(var(--nav-h) + 40px); }
}

@media (min-width: 960px) and (max-width: 1279px) {
  .nav-inner { gap: .6rem; }
  .nav-links a { padding: .5rem .55rem; font-size: .86rem; }
  .logo-word { font-size: 1.12rem; }
}

@media (min-width: 1280px) {
  .hero-grid { gap: 4rem; }
  .fc-code { left: -12%; }
  .fc-step { right: -10%; }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lcd-dot, .pill-dot { animation: none; }
  .eco-blob { animation: blobMorph 20s ease-in-out infinite; }
}
