/* Páginas por remedio (/precio/) y su índice. Mismos tokens que la portada, sin video ni historia. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fuentes/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fuentes/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fuentes/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fuentes/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0e17; --panel: #141b2b; --panel-2: #1b2438; --border: rgba(255,255,255,0.09);
  --text: #f1f4fa; --muted: #9aa6bf; --accent: #3ee08a; --accent-ink: #042413; --accent-2: #6b9bff;
  --amber: #ffc861; --red: #ff8a80; --radius: 18px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); overflow-x: clip; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 420px at 85% -80px, rgba(62,224,138,.10), transparent 70%),
                    radial-gradient(700px 380px at -10% 0, rgba(107,155,255,.08), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--accent-2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad { background: linear-gradient(120deg, var(--accent) 10%, #7fe3c4 45%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Nav */
.nav {
  position: sticky; top: 12px; z-index: 60; margin: 12px auto 0;
  width: min(1080px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 6px 6px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(10,14,23,.72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.nav .marca { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 2px; }
.nav nav a { color: #c9d1e2; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 10px 14px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; }
.nav nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav nav a.cta { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.nav nav a.cta:hover { background: #5beb9f; }

/* Miga de pan: dentro de main, nunca fija (la fija tapaba el menú en celular). */
.miga { margin: 34px 0 0; font-size: .84rem; color: var(--muted); }
.miga ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.miga li + li::before { content: '›'; margin-right: 8px; color: rgba(255,255,255,.25); }
.miga a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.miga a:hover { color: var(--text); text-decoration: underline; }

/* Cabecera */
.cabecera { padding: 18px 0 8px; }
.kicker { display: block; color: var(--accent); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); margin: 0 0 16px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
h1 .serif { font-size: 1.08em; }
.bajada { font-size: clamp(1rem, 1.6vw, 1.14rem); color: #c6cedf; max-width: 760px; margin: 0 0 14px; }
.bajada strong { color: var(--text); }
.leido { color: var(--muted); font-size: .86rem; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }

.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; }
.cifra { padding: 18px 20px; }
.cifra .n { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cifra .t { display: block; color: var(--muted); font-size: .86rem; margin-top: 4px; }

.cta-vivo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 16px; padding: 18px 20px; border-color: rgba(62,224,138,.3); }
.cta-vivo p { margin: 0; color: #c6cedf; max-width: 620px; }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.boton:hover { background: #5beb9f; }

/* Secciones */
section { margin-top: 56px; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 16px; letter-spacing: -.02em; line-height: 1.12; font-weight: 800; }
h2 .serif { font-size: 1.1em; }
.panel { background: linear-gradient(165deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.nota { color: var(--muted); font-size: .88rem; }

.chip { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.chip.directa { color: var(--accent); border-color: rgba(62,224,138,.35); }
.chip.receta { color: var(--amber); border-color: rgba(255,200,97,.4); }
.chip.retenida { color: var(--red); border-color: rgba(255,138,128,.45); }

/* Tabla de precios (tarjetas bajo 960 px, igual que la portada) */
.grupo { padding: 0; overflow: hidden; }
.grupo + .grupo { margin-top: 18px; }
.grupo-cab { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.grupo-cab h3 { margin: 0; font-size: 1.1rem; }
.grupo-cab .rango { color: var(--muted); font-size: .9rem; }
.fila {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) 0.9fr 1.1fr minmax(0, 1.8fr);
  gap: 10px 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.fila:last-child { border-bottom: none; }
.fila.cab { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding-top: 10px; padding-bottom: 10px; }
.fila .prod { font-weight: 600; }
.fila .lab { color: var(--muted); font-size: .8rem; font-weight: 500; }
.fila a { display: inline-flex; align-items: center; min-height: 32px; }
.fila .unit { font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.fila .unit small { color: var(--muted); font-weight: 500; font-size: .76rem; }
.fila .total { color: var(--muted); font-variant-numeric: tabular-nums; }
.fila .total small { display: block; font-size: .76rem; }
.isp { font-size: .8rem; line-height: 1.35; }
.isp .eti { display: inline-block; font-weight: 700; padding: 3px 9px; border-radius: 6px; margin-bottom: 2px; }
.isp.bio .eti { background: rgba(62,224,138,.13); color: var(--accent); }
.isp.ref .eti { background: rgba(107,155,255,.15); color: var(--accent-2); }
.isp.warn .eti { background: rgba(255,200,97,.12); color: var(--amber); }
.isp.none .eti { background: rgba(255,255,255,.06); color: var(--muted); }
.isp .det { color: var(--muted); display: block; }
.isp .det a { min-height: 28px; }
.grupo-pie { padding: 14px 20px; font-size: .86rem; color: var(--muted); background: rgba(255,255,255,.02); border-top: 1px solid var(--border); }
.grupo-pie p { margin: 4px 0; }
.grupo-pie a, .nota a { display: inline-flex; align-items: center; min-height: 28px; }
blockquote { margin: 6px 0; padding-left: 12px; border-left: 3px solid var(--border); color: var(--text); font-size: .88rem; }

/* Programas */
.programas { border-color: rgba(62,224,138,.3); }
.programa { padding: 12px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.programa:first-child { border-top: none; padding-top: 0; }
.programa strong { display: block; margin-bottom: 2px; }
.programa p { margin: 2px 0; color: var(--muted); }
.programa a { display: inline-flex; min-height: 32px; align-items: center; }
.programas .aviso { margin: 10px 0 0; font-size: .84rem; color: var(--muted); }
.ahorro { margin-top: 14px; }

/* Preguntas */
.preguntas details { border-top: 1px solid var(--border); }
.preguntas details:first-child { border-top: none; }
.preguntas summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 0; font-weight: 700; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::before { content: '+'; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(62,224,138,.12); color: var(--accent); font-weight: 800; transition: transform .25s var(--ease); }
.preguntas details[open] summary::before { transform: rotate(45deg); }
.preguntas details p { margin: 0 0 14px 34px; color: #c6cedf; }

/* Listas de remedios */
.remedios { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.remedio { display: block; text-decoration: none; color: inherit; padding: 16px 18px; transition: transform .3s var(--ease), border-color .3s; }
.remedio:hover { transform: translateY(-2px); border-color: rgba(107,155,255,.45); }
.remedio .t { font-weight: 700; display: block; }
.remedio .r { display: block; font-size: 1.15rem; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.remedio .r small { font-size: .76rem; color: var(--muted); font-weight: 600; }
.remedio .m { display: block; color: var(--muted); font-size: .82rem; }
.enlaces-chicos { display: flex; flex-wrap: wrap; gap: 8px; }
.enlaces-chicos a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: #c9d1e2; text-decoration: none; font-size: .88rem; font-weight: 600; }
.enlaces-chicos a:hover { color: var(--text); border-color: var(--accent-2); }

footer { margin: 96px 0 0; padding: 40px 0 90px; text-align: center; color: var(--muted); font-size: .84rem; border-top: 1px solid var(--border); }
footer .legal { max-width: 720px; margin: 0 auto 16px; }
footer .legal p { margin: 6px 0; }
footer .pie-enlaces a, footer .pie-enlaces button { display: inline-flex; align-items: center; min-height: 40px; }
footer .pie-enlaces button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-2); text-decoration: underline; cursor: pointer; }
footer .marca-pie { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; margin-bottom: 14px; }

@media (max-width: 960px) {
  .fila.cab { display: none; }
  .fila { grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 18px; }
  .fila .prod-c { grid-column: 1 / -1; }
  .fila .isp { grid-column: 1 / -1; margin-top: 4px; }
}
@media (max-width: 700px) {
  .nav nav a.secundario { display: none; }
  .cifras { grid-template-columns: 1fr 1fr; }
  .cifras .cifra:last-child { grid-column: 1 / -1; }
  .cta-vivo .boton { width: 100%; }
  section { margin-top: 44px; }
}
@media (max-width: 400px) {
  .nav { padding-left: 14px; }
  .nav nav a { padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .remedio, .preguntas summary::before { transition: none; }
}
