/* cadatoma.com · el mundo de la app: la burbuja que avisa, el verde del icono y los 7 colores del pastillero.
   Letra: Atkinson Hyperlegible (la de la app, hecha para leer con poca vista). Sin nada externo. */

@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson-bold.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson-italic.woff) format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --bg-soft: #F2F7F5;
  --card: #FFFFFF;
  --ink: #12201B;
  --ink-soft: #3F524B;
  --ink-faint: #5C6E67;
  --line: #DCE7E2;
  --brand: #0E7A5E;          /* el verde de «Tomada» */
  --brand-ink: #0A5F49;
  --brand-tint: #DDF2EA;
  --hero-a: #16967A;         /* el degradado del icono */
  --hero-b: #0B6A52;
  --amber: #F2A93B;
  --coral: #E4644B;
  --focus: #F2A93B;
  --shadow: 0 1px 2px rgba(10, 40, 30, .06), 0 12px 32px -12px rgba(10, 40, 30, .22);
  --radius: 22px;
  --wrap: 1180px;
  --sans: "Atkinson", ui-sans-serif, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  color-scheme: light;
}
/* Los 7 compartimentos: los colores con que la app pinta los medicamentos */
.d0 { --lid: #E4644B; --lid-ink: #A93A23; }
.d1 { --lid: #F2A93B; --lid-ink: #8A5600; }
.d2 { --lid: #3E86D6; --lid-ink: #1F5FA8; }
.d3 { --lid: #8E5BC0; --lid-ink: #6A3B98; }
.d4 { --lid: #2AA5A0; --lid-ink: #136E6A; }
.d5 { --lid: #D1567E; --lid-ink: #A2345B; }
.d6 { --lid: #7A8C4F; --lid-ink: #55632F; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08130F; --bg-soft: #0E1D18; --card: #12231D;
    --ink: #EAF4F0; --ink-soft: #B8CAC3; --ink-faint: #93A8A0; --line: #22372F;
    --brand: #3CC79E; --brand-ink: #7FE0C2; --brand-tint: #133328;
    --hero-a: #0F5E4B; --hero-b: #072F25;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .d0 { --lid-ink: #F59A86; } :root:not([data-theme="light"]) .d1 { --lid-ink: #F7C676; }
  :root:not([data-theme="light"]) .d2 { --lid-ink: #8DB8EC; } :root:not([data-theme="light"]) .d3 { --lid-ink: #C6A2E8; }
  :root:not([data-theme="light"]) .d4 { --lid-ink: #6ED3CE; } :root:not([data-theme="light"]) .d5 { --lid-ink: #F09AB7; }
  :root:not([data-theme="light"]) .d6 { --lid-ink: #BDCB8E; }
}
:root[data-theme="dark"] {
  --bg: #08130F; --bg-soft: #0E1D18; --card: #12231D;
  --ink: #EAF4F0; --ink-soft: #B8CAC3; --ink-faint: #93A8A0; --line: #22372F;
  --brand: #3CC79E; --brand-ink: #7FE0C2; --brand-tint: #133328;
  --hero-a: #0F5E4B; --hero-b: #072F25;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}
:root[data-theme="dark"] .d0 { --lid-ink: #F59A86; } :root[data-theme="dark"] .d1 { --lid-ink: #F7C676; }
:root[data-theme="dark"] .d2 { --lid-ink: #8DB8EC; } :root[data-theme="dark"] .d3 { --lid-ink: #C6A2E8; }
:root[data-theme="dark"] .d4 { --lid-ink: #6ED3CE; } :root[data-theme="dark"] .d5 { --lid-ink: #F09AB7; }
:root[data-theme="dark"] .d6 { --lid-ink: #BDCB8E; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1875rem/1.6 var(--sans); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 99; }
.skip:focus { top: 12px; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: .8em; }
.lede { font-size: clamp(1.2rem, 2vw, 1.42rem); color: var(--ink-soft); max-width: 40em; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; border: 1.5px solid currentColor; border-radius: 6px; padding: 0 5px; vertical-align: .25em; margin-left: 4px; }

/* ── Cabecera ─────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top__in { width: min(var(--wrap), 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__icon { width: 36px; height: 36px; border-radius: 9px; }
.logo__word { font-size: 1.32rem; font-weight: 400; letter-spacing: -.01em; }
.logo__word b { font-weight: 700; color: var(--brand-ink); }
.top__nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; cursor: pointer; list-style: none; }
.nav__link::-webkit-details-marker { display: none; }
.nav__link:hover, .nav__link[aria-current] { background: var(--brand-tint); color: var(--brand-ink); }
.nav__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.top__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top__lang { font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); }
.top__lang:hover { border-color: var(--brand); }
.top__theme { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.top__theme span { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 2px solid var(--ink); }
.mega { position: relative; }
.mega__panel { position: absolute; left: -12px; top: calc(100% + 12px); width: min(760px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; text-decoration: none; color: var(--ink); }
.mega__item:hover, .mega__item[aria-current] { background: var(--bg-soft); }
.mega__item b { display: block; font-size: 1rem; }
.mega__item small { color: var(--ink-faint); font-size: .86rem; line-height: 1.35; display: block; }
.ico { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--lid, var(--brand)) 18%, transparent); stroke: var(--lid-ink, var(--brand-ink)); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 12px 4px; margin-top: 4px; }
.mega__foot a { font-weight: 700; font-size: .95rem; }
.top__menu { display: none; }
.top__menu summary { list-style: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; cursor: pointer; }
.top__menu summary::-webkit-details-marker { display: none; }
.top__menu summary span, .top__menu summary span::before, .top__menu summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.top__menu summary span::before { position: absolute; top: -6px; } .top__menu summary span::after { position: absolute; top: 6px; }
.top__sheet { position: fixed; inset: 68px 0 auto 0; max-height: calc(100dvh - 68px); overflow: auto; background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 20px 28px; box-shadow: var(--shadow); }
.top__sheet-k { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 10px; }
.top__sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.top__sheet-grid a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--bg-soft); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.top__sheet-grid .ico { width: 34px; height: 34px; padding: 7px; }
.top__sheet-main { display: grid; margin: 16px 0; border-top: 1px solid var(--line); }
.top__sheet-main a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }

/* ── Botones ──────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 16px; font-weight: 700; text-decoration: none; padding: 12px 20px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn--store { background: #0B0F0D; color: #fff; }
:root[data-theme="dark"] .btn--store { background: #fff; color: #0B0F0D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--store { background: #fff; color: #0B0F0D; } }
.btn--store span { display: grid; line-height: 1.05; font-size: 1.15rem; text-align: left; }
.btn--store small { font-size: .68rem; font-weight: 400; letter-spacing: .02em; }
.btn__apple { width: 20px; height: 24px; }
.btn--lg { padding: 13px 24px 13px 20px; border-radius: 18px; }
.btn--lg .btn__apple { width: 24px; height: 28px; } .btn--lg span { font-size: 1.4rem; }
.btn--sm { padding: 8px 14px; border-radius: 12px; font-size: .95rem; }
.btn--sm .btn__apple { width: 15px; height: 18px; }
.btn--store:hover { transform: translateY(-1px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.cta-row__note { font-weight: 700; color: inherit; }

/* ── Héroe: la burbuja que avisa ─────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 10%, var(--hero-a), var(--hero-b)); }
.hero::before { content: ""; position: absolute; right: -8%; bottom: -30%; width: 62%; aspect-ratio: 1; border-radius: 42% 42% 42% 8%; background: rgba(255,255,255,.06); transform: rotate(-8deg); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 0; }
.hero .kicker { color: #CFF3E6; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #FFD58A; }
.hero .lede { color: #E1F5EE; }
.hero .cta-row__note { color: #fff; }
.hero .btn--store { background: #fff; color: #0B0F0D; }
.hero__text { padding-bottom: 72px; }
.hero__phones { position: relative; min-height: 560px; align-self: end; }
.hero--landing .hero__in { padding-bottom: 0; }
.seals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.seals li { font-size: .92rem; font-weight: 700; padding: 7px 13px 7px 11px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); display: inline-flex; align-items: center; gap: 8px; }
.seals li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }

/* Teléfono hecho con CSS: la pantalla es la captura real */
.phone { margin: 0; width: 300px; max-width: 100%; padding: 11px; border-radius: 48px; background: #0D1411; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone__screen { border-radius: 38px; overflow: hidden; background: #fff; }
.phone__screen img { width: 100%; }
.hero__phones .phone { position: absolute; bottom: -70px; left: 50%; transform: translateX(-40%) rotate(3deg); width: 310px; }

/* Burbujas de aviso (HTML, con los textos de la app) */
.bubbles { position: absolute; left: 0; top: 30px; display: grid; gap: 14px; width: 300px; z-index: 2; }
.bubble { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 13px 16px; border-radius: 22px 22px 22px 6px; background: rgba(255,255,255,.96); color: #12201B; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); font-size: .95rem; line-height: 1.3; }
.bubble__dot { grid-row: span 2; width: 34px; height: 34px; border-radius: 11px; background: var(--lid); display: grid; place-items: center; }
.bubble__dot::after { content: ""; width: 16px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.95) 50%, rgba(255,255,255,.6) 50%); transform: rotate(-25deg); }
.bubble b { font-size: 1rem; }
.bubble small { color: #4A5C55; grid-column: 2; }
.bubble__t { font-size: .8rem; color: #5C6E67; font-weight: 700; }
.bubble__ok { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; }
.bubble__ok::after { content: ""; width: 11px; height: 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.bubble--voice { grid-template-columns: auto 1fr; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 26px; grid-column: 2; }
.wave i { width: 4px; border-radius: 3px; background: var(--brand); height: 30%; animation: latido 1.2s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: .15s; height: 70%; } .wave i:nth-child(3n+1) { animation-delay: .35s; height: 45%; } .wave i:nth-child(4n) { animation-delay: .55s; height: 90%; } .wave i:nth-child(5n) { animation-delay: .8s; height: 60%; }
@keyframes latido { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.js .bubble { opacity: 0; transform: translateY(14px) scale(.96); animation: aparece .55s cubic-bezier(.2,.8,.2,1.2) forwards; }
.js .bubble:nth-child(2) { animation-delay: .7s; } .js .bubble:nth-child(3) { animation-delay: 1.4s; }
@keyframes aparece { to { opacity: 1; transform: none; } }

/* La tira del pastillero */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; }
.week__box { position: relative; height: 54px; background: var(--lid); display: grid; place-items: center; }
.week__box b { font-size: .78rem; letter-spacing: .14em; color: rgba(255,255,255,.95); }
.week__box::before { content: ""; position: absolute; left: 6px; right: 6px; top: -10px; height: 10px; border-radius: 8px 8px 0 0; background: color-mix(in srgb, var(--lid) 70%, #fff); transform-origin: bottom; transition: transform .5s cubic-bezier(.3,1.4,.4,1); }
.week__box:hover::before { transform: rotateX(55deg) translateY(-4px); }
.hero + .week { position: relative; z-index: 1; }

/* ── Secciones ────────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 46em; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--flip > :first-child { order: 2; }
.split__media { position: relative; display: grid; justify-items: center; }
.split__media .zoom { position: absolute; bottom: 8%; left: -6%; width: 78%; }
.zoom { margin: 0; border-radius: 22px; overflow: hidden; border: 6px solid var(--lid, var(--brand)); box-shadow: var(--shadow); background: #fff; }
.points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.points li { padding-left: 38px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); }
.points li::after { content: ""; position: absolute; left: 7px; top: .55em; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.note { font-size: .95rem; color: var(--ink-faint); }
.layer { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--brand-tint); color: var(--brand-ink); vertical-align: .2em; }

/* Tarjetas: compartimentos con tapa de color */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { position: relative; display: grid; align-content: start; gap: 8px; padding: 30px 24px 24px; border-radius: var(--radius); background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s; }
.card::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1.5px; height: 12px; border-radius: 0 0 10px 10px; background: var(--lid, var(--brand)); transform-origin: top; transition: transform .35s cubic-bezier(.3,1.4,.4,1); }
.card:hover { transform: translateY(-4px); border-color: var(--lid, var(--brand)); }
.card:hover::before { transform: scaleY(1.5); }
.card__kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lid-ink, var(--brand-ink)); }
.card__title { font-size: 1.28rem; font-weight: 700; line-height: 1.2; }
.card__text { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.cards--articles .card__title { font-size: 1.18rem; }

/* Precios */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { border-radius: 28px; padding: 32px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.plan--pro { border: 3px solid var(--brand); position: relative; }
.plan__price { font-size: 3rem; font-weight: 700; line-height: 1; margin: 8px 0 4px; }
.plan__price small { font-size: 1rem; font-weight: 400; color: var(--ink-faint); }
.timeline { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 0; border-left: 3px solid var(--brand); }
.timeline li { padding: 6px 0 14px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 10px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); }

/* Tablas */
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1.5px solid var(--line); margin: 1.4em 0; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-size: .88rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--brand-ink); font-weight: 700; }
td.no { color: var(--ink-faint); }

/* Migas, artículo y prosa */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 0 0; margin: 0; font-size: .92rem; color: var(--ink-faint); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--ink-soft); }
.page-head { padding: 34px 0 40px; }
.article__head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.article__head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 20em; }
.byline { font-size: .92rem; color: var(--ink-faint); }
.article__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-bottom: 72px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .95rem; }
.toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.toc ol { padding-left: 1.1em; display: grid; gap: 8px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.prose { max-width: 42em; min-width: 0; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.short { border-radius: 22px; padding: 22px 24px; background: var(--brand-tint); border-left: 8px solid var(--brand); margin-bottom: 2em; }
.short h2 { margin: 0 0 .4em; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.short p:last-child { margin: 0; }
.warn { border-radius: 18px; padding: 16px 20px; background: color-mix(in srgb, var(--amber) 18%, var(--bg)); border: 1.5px solid color-mix(in srgb, var(--amber) 60%, transparent); }
.sources { font-size: .92rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 2.6em; padding-top: 1em; }
.sources ol { padding-left: 1.2em; }
.related { padding: 0 0 80px; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { font-weight: 700; cursor: pointer; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--brand); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--ink-soft); }
.steps { counter-reset: paso; list-style: none; padding: 0; }
.steps li { counter-increment: paso; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Otros idiomas (texto de la ficha) */
.ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 64px 0; }
.ficha__item { border-radius: var(--radius); padding: 26px 24px 20px; background: var(--card); border: 1.5px solid var(--line); border-top: 10px solid var(--lid); }
.ficha__item h2 { font-size: 1.15rem; color: var(--lid-ink); }
.ficha__item p { margin: 0; color: var(--ink-soft); }
.ficha__aviso { grid-column: 1 / -1; font-size: .95rem; color: var(--ink-faint); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs a { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-size: .95rem; }
.langs a:hover { border-color: var(--brand); }
.langs-block { padding-bottom: 64px; }
[dir="rtl"] .hero__phones .phone { left: 50%; right: auto; transform: translateX(-50%) rotate(-3deg); }

/* ── Pie ───────────────────────────────────────────────────────────────────── */
.foot { background: var(--bg-soft); border-top: 1px solid var(--line); }
.foot .week__box { height: 14px; } .foot .week__box b, .foot .week__box::before { display: none; }
.foot__in { width: min(var(--wrap), 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding: 56px 0 32px; }
.foot__brand p { color: var(--ink-soft); font-size: .98rem; }
.foot__col h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot__col a { color: var(--ink); text-decoration: none; font-size: .98rem; }
.foot__col a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot__col--langs .langs a { font-size: .85rem; padding: 4px 9px; }
.foot__base { width: min(var(--wrap), 100% - 40px); margin-inline: auto; border-top: 1px solid var(--line); padding: 20px 0 36px; font-size: .86rem; color: var(--ink-faint); }

/* 404 */
.lost { text-align: center; padding: 100px 0; }
.lost .week { max-width: 520px; margin: 0 auto 36px; border-radius: 14px; overflow: hidden; }

/* ── Aparecer al bajar ───────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Móvil ─────────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .top__nav, .top__get { display: none; }
  .top__menu { display: block; }
  .hero__in, .split { grid-template-columns: 1fr; }
  .hero__in { padding-top: 48px; gap: 0; }
  .hero__text { padding-bottom: 28px; }
  .hero__phones { min-height: 470px; }
  .hero__phones .phone { width: 250px; bottom: -110px; }
  .bubbles { width: 260px; left: 50%; transform: translateX(-62%); top: 0; }
  .split--flip > :first-child { order: 0; }
  .split__media .zoom { left: 0; width: 86%; }
  .article__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; border-radius: 18px; background: var(--bg-soft); padding: 16px 20px; margin-bottom: 28px; }
  .plans { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand, .foot__col--langs { grid-column: 1 / -1; }
  .mega__panel { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .section { padding: 64px 0; }
  .week__box b { font-size: .62rem; letter-spacing: .06em; }
  .top__lang { display: none; }
  .bubble { font-size: .88rem; padding: 11px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .bubble, .js .reveal { opacity: 1; transform: none; }
}
@media print { .top, .foot, .cta-row { display: none; } }

/* La Ficha de la Nevera (ilustración con los textos reales de la app) */
.fridge { margin: 0; width: min(380px, 100%); background: #fff; color: #12201B; border-radius: 6px; padding: 28px 26px 0; box-shadow: var(--shadow); transform: rotate(-1.5deg); position: relative; }
.fridge::before { content: ""; position: absolute; top: -14px; left: 50%; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF8A70, #E4644B 60%, #A93A23); box-shadow: 0 6px 10px -4px rgba(0,0,0,.4); }
.fridge__t { font-size: 1.9rem; font-weight: 700; margin: 0; line-height: 1.1; }
.fridge__who { color: #4A5C55; margin: 4px 0 16px; }
.fridge__rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fridge__rows li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; border-left: 8px solid var(--lid); padding: 6px 0 6px 12px; }
.fridge__rows b { font-size: 1.15rem; }
.fridge__rows span { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.fridge__rows small { display: block; font-weight: 400; font-size: .9rem; color: #4A5C55; }
.fridge__foot { font-size: .85rem; color: #5C6E67; margin: 16px 0; }
.fridge__card { margin: 0 -26px; padding: 14px 26px 20px; border-top: 2px dashed #9AAEA6; display: grid; gap: 2px; font-size: .9rem; }
.guide-link { margin-top: 1.6em; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); }
.article__head .kicker { margin-top: 22px; }
tbody th { white-space: nowrap; }
