/* =========================================================
   Baja de Peso Perú — sistema de diseño común (bp.css)
   Paleta heredada de la web publicada: crema, salvia, menta,
   verde profundo y azul cielo. Letra base de 17 px.
   ========================================================= */

:root {
  /* Color */
  --deep: #132b35;
  --deep-2: #1d3b46;
  --ink: #192f36;
  --ink-2: #3a525b;
  --muted: #566c71;
  --green: #326c5c;
  --green-2: #468777;
  --green-3: #6fa392;
  --mint: #dcece3;
  --mint-2: #b4d9c7;
  --sage: #eef3ea;
  --paper: #f7f8f3;
  --cream: #fbfaf5;
  --white: #ffffff;
  --sky: #e6f1f6;
  --sky-2: #cfe4ee;
  --sky-ink: #246989;
  --lavender: #efebf7;
  --lavender-ink: #574a87;
  --sand: #f6eee1;
  --sand-ink: #7a5a2e;
  --rose: #fae7e2;
  --rose-ink: #973a2c;
  --line: #e1e8e3;
  --line-2: #cfdcd4;

  /* Tipografía */
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --fs-xs: .8125rem;   /* 13 px */
  --fs-sm: .9375rem;   /* 15 px */
  --fs-md: 1.0625rem;  /* 17 px */
  --fs-lg: 1.25rem;    /* 20 px */
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.3rem, 1.6rem + 3.4vw, 4rem);

  /* Forma */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow-1: 0 1px 2px rgba(19, 43, 53, .05), 0 2px 8px rgba(19, 43, 53, .04);
  --shadow-2: 0 2px 4px rgba(19, 43, 53, .04), 0 12px 32px rgba(19, 43, 53, .08);
  --shadow-3: 0 24px 60px rgba(19, 43, 53, .14);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  /* Movimiento */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --t-fast: .18s;
  --t-med: .45s;
  --t-slow: .9s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-3xl); letter-spacing: -.02em; line-height: 1.08; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-2xl); letter-spacing: -.015em; line-height: 1.12; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: .35em; }
strong { font-weight: 650; }
small { font-size: var(--fs-xs); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
em.serif, .serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint-2); color: var(--deep); }

.visually-hidden { position: absolute !important; 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; left: 16px; top: -120px; z-index: 200; background: var(--white); color: var(--deep); padding: 12px 18px; border-radius: var(--r-sm); box-shadow: var(--shadow-2); font-weight: 650; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(32px, 4.5vw, 56px); }
.section--sage { background: var(--sage); }
.section--cream { background: var(--cream); }
.section--sky { background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%); }
.section--deep { background: var(--deep); color: #e8f1ee; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep p { color: #c4d6d2; }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); line-height: 1.55; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .6; }
.section--deep .eyebrow { color: var(--mint-2); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }

.grid { display: grid; gap: clamp(14px, 2.2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Encabezado ---------- */
.site-top {
  background: var(--deep); color: #d8e8e2; font-size: var(--fs-xs);
}
.site-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; padding-block: 6px; }
.site-top a { color: #fff; text-decoration: none; font-weight: 600; }
.site-top a:hover { text-decoration: underline; color: #fff; }
.site-top-actions { gap: 10px; }
/* Zona táctil de 44 px sin agrandar la franja */
.site-top .motion-toggle, .site-top a { position: relative; }
.site-top .motion-toggle::after, .site-top a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
.site-top .pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-2); margin-right: 8px; box-shadow: 0 0 0 0 rgba(180, 217, 199, .7); animation: bp-pulse 2.6s infinite; vertical-align: middle; }
@keyframes bp-pulse { 0% { box-shadow: 0 0 0 0 rgba(180, 217, 199, .6); } 70% { box-shadow: 0 0 0 9px rgba(180, 217, 199, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 217, 199, 0); } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 243, .86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(19, 43, 53, .06); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm);
  padding: 10px 14px; border-radius: 999px; transition: background var(--t-fast), color var(--t-fast);
}
.nav a:hover { background: var(--sage); color: var(--deep); }
.nav a[aria-current="page"] { background: var(--mint); color: var(--deep); }
.nav .btn { margin-left: 8px; }
/* El botón «Contacto» conserva su texto blanco (antes .nav a lo dejaba con contraste 1,35:1) */
.nav a.btn, .nav a.btn:hover, .nav a.btn[aria-current="page"] { color: #fff; }
.nav a.btn { min-height: 44px; }
.nav a.btn:hover, .nav a.btn[aria-current="page"] { background: var(--deep); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--white); align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1199px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); padding: 14px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
    max-height: calc(100dvh - var(--header-h)); overflow: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: var(--fs-md); border-radius: var(--r-sm); }
  .nav .btn { margin: 10px 0 0; }
}

/* Barra inferior móvil */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 74px; }
  .tabbar {
    display: grid; grid-template-columns: 1fr 1.3fr 1.3fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(251, 250, 245, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; padding: 6px 2px; border-radius: 12px; min-height: 52px; justify-content: center; min-width: 0; }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--deep); background: var(--mint); }
}
@media (max-width: 359px) { .tabbar a { overflow-wrap: anywhere; text-align: center; line-height: 1.15; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; text-align: center;
  background: var(--green); color: #fff; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.btn:hover { background: var(--deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19, 43, 53, .16); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--soft { background: var(--mint); color: var(--deep); }
.btn--soft:hover { background: var(--mint-2); color: var(--deep); }
.btn--ghost { background: transparent; color: var(--deep); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--white); color: var(--deep); border-color: var(--green-3); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--mint); color: var(--deep); }
.btn--wa { background: #1f7a55; }
.btn--wa:hover { background: #155c40; }
.btn--sm { min-height: 44px; padding: 9px 16px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; color: var(--green); min-height: 44px; }
.link-arrow::after { content: "→"; content: "→" / ""; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Tarjetas ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow-1);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); color: inherit; }
.card--link .link-arrow { margin-top: auto; padding-top: 14px; }
.card--sage { background: var(--sage); border-color: #e2eadc; box-shadow: none; }
.card--sky { background: var(--sky); border-color: var(--sky-2); box-shadow: none; }
.card--lavender { background: var(--lavender); border-color: #e1dbef; box-shadow: none; }
.card--sand { background: var(--sand); border-color: #ece0cc; box-shadow: none; }
.card--deep { background: var(--deep); border-color: var(--deep); color: #dce9e5; }
.card--deep h3 { color: #fff; }
.card-icon {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: var(--mint); color: var(--deep); margin-bottom: 16px; flex-shrink: 0;
}
.card-icon svg { width: 28px; height: 28px; }
.card--sky .card-icon { background: #fff; color: var(--sky-ink); }
.card--lavender .card-icon { background: #fff; color: var(--lavender-ink); }
.card--sand .card-icon { background: #fff; color: var(--sand-ink); }
.card-media { margin: calc(-1 * clamp(20px, 2.6vw, 30px)) calc(-1 * clamp(20px, 2.6vw, 30px)) 18px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sage); }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.card--link:hover .card-media img { transform: scale(1.04); }

/* Etiquetas */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; background: var(--mint); color: var(--deep); line-height: 1.3; }
.tag--sky { background: var(--sky); color: var(--sky-ink); }
.tag--lavender { background: var(--lavender); color: var(--lavender-ink); }
.tag--sand { background: var(--sand); color: var(--sand-ink); }
.tag--rose { background: var(--rose); color: var(--rose-ink); }
.tag--line { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* ---------- Avisos ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: var(--r-md); background: var(--sage); border: 1px solid #dfe8d9; color: var(--ink);
}
.callout > svg { width: 26px; height: 26px; color: var(--green); margin-top: 2px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong { color: var(--deep); }
.callout--sky { background: var(--sky); border-color: var(--sky-2); }
.callout--sky > svg { color: var(--sky-ink); }
.callout--sand { background: var(--sand); border-color: #eadcc4; }
.callout--sand > svg { color: var(--sand-ink); }
.callout--rose { background: var(--rose); border-color: #f0cfc6; }
.callout--rose > svg { color: var(--rose-ink); }
.callout--rose strong { color: var(--rose-ink); }

/* ---------- Héroe ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(56px, 9vw, 120px) clamp(48px, 8vw, 100px);
  background: var(--paper);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lead { max-width: 54ch; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: 0; pointer-events: none; filter: blur(48px); opacity: .9; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: bp-float 22s ease-in-out infinite; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: 52%; top: 0; background: #cfe6dc; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; left: 68%; top: 18%; background: #d7e8f1; animation-delay: -7s; animation-duration: 26s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: 40%; top: 34%; background: #ece6f4; animation-delay: -13s; animation-duration: 30s; }
@keyframes bp-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-4%, 6%, 0) scale(1.06); }
  66% { transform: translate3d(5%, -3%, 0) scale(.96); }
}
.hero--page { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 52px); }
.hero--page h1 { font-size: var(--fs-2xl); max-width: 22ch; }

.breadcrumb { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; padding-inline: 7px; margin-inline: -7px; }
.breadcrumb a:hover { color: var(--deep); text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---------- Pestañas ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs [role="tab"] {
  border: 0; background: transparent; padding: 11px 20px; border-radius: 999px; font-weight: 650; font-size: var(--fs-sm); color: var(--ink-2);
  min-height: 44px; transition: background var(--t-fast), color var(--t-fast);
}
.tabs [role="tab"]:hover { background: var(--sage); }
.tabs [role="tab"][aria-selected="true"] { background: var(--deep); color: #fff; }
[role="tabpanel"] { margin-top: 28px; }
[role="tabpanel"][hidden] { display: none; }
[role="tabpanel"]:not([hidden]) { animation: bp-fade-up var(--t-med) var(--ease); }
@media (max-width: 640px) { .tabs { border-radius: var(--r-md); width: 100%; } .tabs [role="tab"] { flex: 1 1 auto; } }

/* ---------- Acordeón ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow var(--t-fast), border-color var(--t-fast); }
.accordion details[open] { box-shadow: var(--shadow-1); border-color: var(--line-2); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 650; position: relative; min-height: 56px; display: flex; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform var(--t-fast) var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.accordion .acc-body { padding: 0 22px 20px; color: var(--ink-2); }
.accordion details[open] .acc-body { animation: bp-fade-up var(--t-med) var(--ease); }

/* ---------- Pasos y línea de tiempo ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 20px 18px 74px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: var(--deep); font-weight: 700; font-size: var(--fs-md);
}
.steps > li strong { display: block; color: var(--deep); margin-bottom: 2px; }

.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 38px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--line); }
.timeline .tl-progress { position: absolute; left: 13px; top: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--green-3), var(--green)); height: 0; transition: height .2s linear; }
.timeline > li { position: relative; margin: 0 0 22px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.timeline > li::before { content: ""; position: absolute; left: -33px; top: 24px; width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green-3); }
.timeline > li.is-current::before { background: var(--green); border-color: var(--mint-2); box-shadow: 0 0 0 6px rgba(70, 135, 119, .18); }
.timeline .tl-when { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.timeline h3 { margin: 4px 0 6px; }

/* ---------- Medios ---------- */
.media-frame { border-radius: var(--r-lg); overflow: hidden; background: var(--deep); box-shadow: var(--shadow-2); position: relative; }
.media-frame video, .media-frame img { width: 100%; height: auto; }
.media-caption { font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; text-align: center; }
.video-card { display: grid; gap: 12px; }
.video-card .media-frame { aspect-ratio: auto; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(180deg, rgba(19,43,53,0) 40%, rgba(19,43,53,.55));
  color: #fff; cursor: pointer;
}
.video-play span { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--deep); display: grid; place-items: center; box-shadow: var(--shadow-3); transition: transform var(--t-fast) var(--ease); }
.video-play span svg { width: 30px; height: 30px; margin-left: 4px; }
.video-play:hover span { transform: scale(1.08); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 8px; }
.field label { font-weight: 650; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .field input:focus, .field select:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(70, 135, 119, .18); }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line-2); min-height: 54px; max-width: 520px;
}
.search svg { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }
.search input { border: 0; outline: none; background: transparent; width: 100%; min-height: 50px; }
.search:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(70, 135, 119, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink-2); border-radius: 999px; padding: 9px 16px; font-weight: 650; font-size: var(--fs-sm); min-height: 44px; transition: all var(--t-fast); }
.chip:hover { border-color: var(--green-3); }
.chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }

/* Lista de control */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { margin: 0; }
.check {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast);
}
.check:hover { border-color: var(--line-2); }
.check input { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--green-3); margin: 0; display: grid; place-items: center; background: var(--white); transition: all var(--t-fast) var(--ease); cursor: pointer; }
.check input::after { content: ""; width: 8px; height: 14px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform var(--t-fast) var(--ease); }
.check input:checked { background: var(--green); border-color: var(--green); animation: bp-pop .35s var(--ease); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check:has(input:checked) { background: var(--sage); border-color: #d6e4d4; }
.check:has(input:checked) .check-text strong { text-decoration: line-through; text-decoration-color: var(--green-3); }
.check-text strong { display: block; }
.check-text span { font-size: var(--fs-sm); color: var(--muted); }
@keyframes bp-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Anillo de progreso */
.ring { --p: 0; width: 148px; height: 148px; position: relative; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-bg { stroke: var(--mint); }
.ring .ring-fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1.2s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring-label strong { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: var(--deep); }
.ring-label span { font-size: var(--fs-xs); color: var(--muted); font-weight: 650; }

/* Estadística */
.stat { display: grid; gap: 4px; }
.stat strong { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-2xl); color: var(--deep); line-height: 1; }
.stat span { color: var(--muted); font-size: var(--fs-sm); }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sage); color: var(--deep); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--deep); color: #c6d7d3; padding-block: 56px 32px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h2, .site-footer h3 { color: #fff; font-family: var(--font-body); font-size: var(--fs-md); font-weight: 700; letter-spacing: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 10px; }
.footer-grid li a { text-decoration: none; color: #d7e6e1; }
.footer-grid li a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 52px; width: auto; background: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; }
.footer-note { font-size: var(--fs-sm); color: #b6cbc6; }
.allies { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.allies h2 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--mint-2); margin-bottom: 16px; }
.allies ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(16px, 3vw, 28px); }
.allies li { display: inline-flex; align-items: center; gap: 7px; margin: 0; min-width: 0; min-height: 28px; }
.allies img { display: block; width: auto; height: 25px; max-width: 54px; object-fit: contain; flex: 0 0 auto; }
.allies img[src*="brand-essenza"] { filter: brightness(0) invert(.82) sepia(.55) saturate(2.1); }
.allies .ally-name { color: #d0e1dc; font-size: .75rem; font-weight: 500; line-height: 1.35; }
@media (max-width: 480px) { .allies img { height: 22px; max-width: 46px; } }
.footer-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-xs); color: #9fb7b1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de ayuda ---------- */
.help-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 55; display: inline-flex; align-items: center; gap: 10px;
  background: var(--deep); color: #fff; text-decoration: none; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: var(--shadow-3); font-weight: 650; font-size: var(--fs-sm);
  transition: transform var(--t-fast) var(--ease);
}
.help-fab:hover { transform: translateY(-3px); color: #fff; background: var(--deep-2); }
.help-fab svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .help-fab { bottom: 86px; right: 12px; padding: 12px; } .help-fab .help-fab-text { display: none; } }

/* ---------- Diálogo y aviso ---------- */
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(640px, calc(100% - 24px)); max-height: 90dvh; color: var(--ink); box-shadow: var(--shadow-3); background: var(--cream); }
dialog.modal::backdrop { background: rgba(19, 43, 53, .55); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--cream); z-index: 1; }
.modal-head h2 { font-family: var(--font-body); font-size: var(--fs-lg); font-weight: 700; margin: 0; }
.modal-body { padding: 22px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 90; background: var(--deep); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast); max-width: calc(100% - 32px); text-align: center; font-size: var(--fs-sm); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 92px; } }

/* ---------- Respira conmigo ---------- */
.breath { display: grid; place-items: center; gap: 18px; text-align: center; }
.breath-orb { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.breath-orb::before, .breath-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.breath-orb::before { background: radial-gradient(circle at 35% 30%, #e7f4ee, #b4d9c7 55%, #7fb7a3); transform: scale(.62); transition: transform 4s ease-in-out; box-shadow: 0 20px 60px rgba(50, 108, 92, .25); }
.breath-orb::after { border: 2px dashed rgba(70, 135, 119, .35); }
.breath-orb.is-in::before { transform: scale(1); }
.breath-orb.is-out::before { transform: scale(.62); transition-duration: 6s; }
.breath-word { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.6rem; color: var(--deep); }

/* ---------- Revelado al desplazarse ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes bp-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Control de movimiento */
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 999px; padding: 4px 12px; font-size: var(--fs-xs); font-weight: 600; min-height: 30px; }
.motion-toggle:hover { background: rgba(255,255,255,.1); }
html.reduce-motion { scroll-behavior: auto !important; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.reduce-motion .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.allow-motion) { scroll-behavior: auto !important; }
  html:not(.allow-motion) *, html:not(.allow-motion) *::before, html:not(.allow-motion) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html:not(.allow-motion) .reveal { opacity: 1; transform: none; }
}

/* Utilidades */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.max-60 { max-width: 60ch; }
[hidden] { display: none !important; }

@media print {
  .site-top, .site-header, .tabbar, .help-fab, .site-footer .allies, .aurora, .no-print { display: none !important; }
  body { background: #fff; padding: 0; font-size: 12pt; }
  .card, .callout, .steps > li, .timeline > li { box-shadow: none; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
