/* ============================================================
   Aania · Próximamente
   Tokens tomados de la paleta real de Proyecto4Heart (Tailwind
   red-600/700/50/100, escala de grises, Figtree).
   ============================================================ */

/* Figtree autoalojada (subconjunto latin, normal). Archivos y
   licencia OFL en /assets/fonts/. Fuente: paquete oficial
   @fontsource/figtree (empaquetado de Google Fonts). */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --bg-alt: #f9fafb;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --border: #e5e7eb;
  --border-soft: #f3f4f6;

  --red: #dc2626;
  --red-hover: #b91c1c;
  --red-ink: #ffffff;
  --red-soft: #fef2f2;
  --red-soft-2: #fee2e2;
  --red-track: #991b1b;

  --green-bg: #f0fdf4;
  --green-text: #15803d;
  --green-border: #bbf7d0;

  --gray-chip-bg: #f9fafb;
  --gray-chip-text: #4b5563;
  --gray-chip-border: #e5e7eb;

  --font: "Figtree", "Segoe UI", sans-serif;

  --fs-hero: clamp(1.9rem, 1.1vw + 1.6rem, 2.75rem);
  --fs-h2: clamp(1.5rem, 0.8vw + 1.3rem, 2rem);
  --fs-h3: 1.0625rem;
  --fs-lede: 1.0625rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-countdown: clamp(1.6rem, 1.6vw + 1rem, 2.5rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08), 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-red: 0 8px 18px -8px rgba(220, 38, 38, 0.35);

  color-scheme: light;
}

/* ============================================================
   Reset
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, p, blockquote, ul, figure {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 0.3em;
}

/* ============================================================
   Cursor personalizado (solo con mouse/trackpad de precisión;
   no se aplica en táctil, campos de texto ni elementos
   deshabilitados).
   ============================================================ */

@media (hover: hover) and (pointer: fine) {
  html,
  .loader,
  .loader * {
    cursor: url("/assets/cursors/default.svg") 5 4, auto;
  }

  a,
  button,
  summary,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  input[type="checkbox"],
  input[type="radio"],
  select,
  label,
  [tabindex]:not([tabindex="-1"]) {
    cursor: url("/assets/cursors/pointer.svg") 5 4, pointer;
  }

  input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
  textarea,
  [contenteditable="true"] {
    cursor: text;
  }

  a[disabled],
  button[disabled],
  input[disabled],
  [aria-disabled="true"] {
    cursor: default;
  }
}

/* ============================================================
   Layout helpers
   ============================================================ */

section {
  padding: var(--space-xl) clamp(1.25rem, 4vw, 2rem);
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}

.nav__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: -0.6rem;
}

.nav__mark {
  width: 2rem;
  height: 2rem;
}

.nav__cta-short {
  display: none;
}

@media (max-width: 30rem) {
  .nav__cta-full {
    display: none;
  }

  .nav__cta-short {
    display: inline;
  }
}

/* ---- Enlaces de navegación (escritorio) ---- */

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-right: auto;
  margin-left: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav__cta {
  margin-left: 0.5rem;
}

/* ---- Menú móvil (<details> nativo: funciona sin JS) ---- */

.nav__mobile {
  display: block;
  position: relative;
}

.nav__mobile summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav__mobile summary::-webkit-details-marker {
  display: none;
}

.nav__mobile summary:hover {
  background: var(--bg-alt);
}

.nav__burger {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav__burger::before,
.nav__burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease);
}

.nav__burger::before {
  top: -6px;
}

.nav__burger::after {
  top: 6px;
}

.nav__mobile[open] .nav__burger {
  background: transparent;
}

.nav__mobile[open] .nav__burger::before {
  transform: translateY(6px) rotate(45deg);
}

.nav__mobile[open] .nav__burger::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__mobile-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 17rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.nav__mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav__mobile-panel a:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.nav__mobile-panel a[aria-current="page"] {
  color: var(--red);
}

.nav__mobile-panel .btn {
  margin-top: 0.4rem;
}

@media (min-width: 60rem) {
  .nav__links {
    display: flex;
  }

  .nav__mobile {
    display: none;
  }
}

@media (max-width: 60rem) {
  .nav__cta {
    display: none;
  }
}

/* ============================================================
   Buttons & links
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  min-height: 44px;
  border: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}

.btn--primary {
  background: var(--red);
  color: var(--red-ink);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background: var(--red-hover);
}

.btn--sm {
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}

.link:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.hero__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  max-width: 24ch;
}

.hero__subtitle {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: var(--space-md);
}

.hero__meta {
  font-size: var(--fs-small);
  color: var(--ink-faint);
  max-width: 40ch;
}

.hero__device {
  display: flex;
  justify-content: center;
}

/* ---- Phone mockup ---- */

.phone {
  --scale: 1;
  width: min(258px, 72vw);
  aspect-ratio: 9 / 19.5;
  position: relative;
  background: linear-gradient(155deg, #52525b 0%, #27272a 55%, #18181b 100%);
  border-radius: 2.6rem;
  padding: 9px;
  box-shadow:
    0 30px 50px -24px rgba(17, 24, 39, 0.35),
    0 10px 20px -12px rgba(17, 24, 39, 0.18);
  animation: phone-rest 7s ease-in-out infinite;
}

@keyframes phone-rest {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.phone__btn {
  position: absolute;
  background: linear-gradient(90deg, #3f3f46, #27272a);
  border-radius: 2px;
}

.phone__btn--mute {
  left: -3px;
  top: 19%;
  width: 3px;
  height: 3.5%;
}

.phone__btn--vol-up {
  left: -3px;
  top: 26%;
  width: 3px;
  height: 7%;
}

.phone__btn--vol-down {
  left: -3px;
  top: 35%;
  width: 3px;
  height: 7%;
}

.phone__btn--power {
  right: -3px;
  top: 28%;
  width: 3px;
  height: 9%;
}

.phone__screen {
  position: relative;
  background: var(--white);
  border-radius: 2.1rem;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 20px;
  background: #18181b;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem 0;
  flex-shrink: 0;
}

.phone__time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
}

.phone__status-icons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink);
}

.phone__signal {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 7px;
}

.phone__signal span {
  width: 2.5px;
  background: var(--ink);
  border-radius: 1px;
}

.phone__signal span:nth-child(1) { height: 3px; }
.phone__signal span:nth-child(2) { height: 4.5px; }
.phone__signal span:nth-child(3) { height: 6px; }
.phone__signal span:nth-child(4) { height: 7px; }

.phone__wifi {
  width: 12px;
  height: 9px;
}

.phone__battery {
  width: 16px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 1px;
  display: block;
}

.phone__battery span {
  display: block;
  width: 80%;
  height: 100%;
  background: var(--ink);
  border-radius: 0.5px;
}

.phone__content {
  flex: 1;
  padding: 0.6rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.phone__greeting {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.phone__greeting-sub {
  font-size: 0.65rem;
  color: var(--ink-faint);
  margin-top: 1px;
  margin-bottom: 0.65rem;
}

.phone__adherence {
  background: var(--red);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
}

.phone__adherence-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--white);
}

.phone__adherence-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.phone__adherence-track {
  margin-top: 0.4rem;
  height: 5px;
  background: var(--red-track);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.phone__adherence-fill {
  width: 86%;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-pill);
}

.phone__section-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.phone__section-label svg {
  width: 0.7rem;
  height: 0.7rem;
  color: var(--red);
  flex-shrink: 0;
}

.phone__med {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.phone__med:last-child {
  border-bottom: none;
}

.phone__med-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--red-soft-2);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone__med-icon svg {
  width: 0.85rem;
  height: 0.85rem;
}

.phone__med-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.phone__med-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone__med-dose {
  font-size: 0.56rem;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid;
  flex-shrink: 0;
}

.phone__chip svg {
  width: 0.55rem;
  height: 0.55rem;
}

.phone__chip--taken {
  background: var(--green-bg);
  color: var(--green-text);
  border-color: var(--green-border);
}

.phone__chip--pending {
  background: var(--gray-chip-bg);
  color: var(--gray-chip-text);
  border-color: var(--gray-chip-border);
}

/* ============================================================
   Countdown
   ============================================================ */

.countdown {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.countdown__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.countdown__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
}

.countdown__fallback {
  font-size: var(--fs-countdown);
  font-weight: 700;
  color: var(--ink);
}

.countdown__grid {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}

.countdown__number {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-countdown);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.countdown__label {
  margin-top: 0.4rem;
  font-size: var(--fs-small);
  color: var(--ink-faint);
}

.countdown__arrived {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.countdown__grid[hidden],
.countdown__arrived[hidden] {
  display: none;
}

.countdown__tz {
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  color: var(--ink-faint);
}

/* ============================================================
   About / El nombre
   ============================================================ */

.about__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.about__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.about__text {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--ink-soft);
}

.about__text em {
  font-style: normal;
  color: var(--red);
  font-weight: 600;
}

.about__source {
  display: block;
  margin-top: var(--space-md);
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--ink-faint);
}

/* ============================================================
   Features
   ============================================================ */

.features__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.features__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s var(--ease);
}

a.feature-card:hover {
  border-color: var(--ink-faint);
}

.feature-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.feature-card__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.feature-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   Audience
   ============================================================ */

.audience__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.audience__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.audience__list {
  border-top: 1px solid var(--border);
}

.audience__list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.audience__list h3 {
  font-size: var(--fs-h3);
  flex: 0 0 11rem;
}

.audience__list p {
  color: var(--ink-soft);
  flex: 1 1 16rem;
}

/* ============================================================
   Closing
   ============================================================ */

.closing {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.closing__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  padding: var(--space-lg) clamp(1.25rem, 4vw, 2rem);
}

.footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.footer__mark {
  width: 1.75rem;
  height: 1.75rem;
}

.footer__legal {
  font-size: var(--fs-small);
  color: var(--ink-faint);
  order: 3;
  width: 100%;
  text-align: center;
}

.footer__sitelinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer__sitelinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer__sitelinks a:hover,
.footer__sitelinks a[aria-current="page"] {
  color: var(--red);
}

.footer__links {
  display: flex;
  gap: 0.75rem;
}

.footer__links a {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.footer__links svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-soft);
}

.footer__links a:hover {
  border-color: var(--red);
}

.footer__links a:hover svg {
  color: var(--red);
}

@media (min-width: 40rem) {
  .footer__legal {
    order: 0;
    width: auto;
    text-align: left;
  }
}

/* ============================================================
   Page intro (encabezado sobrio para páginas internas)
   ============================================================ */

.page-intro {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.page-intro__eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.page-intro__title {
  font-size: var(--fs-hero);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.page-intro__lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
}

/* ============================================================
   Bloques de texto genéricos (misión, visión, forma de trabajar)
   ============================================================ */

.prose {
  max-width: 42rem;
  margin: 0 auto;
}

.prose h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.prose h2:not(:first-child) {
  margin-top: var(--space-xl);
}

.prose p {
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}

.post__body a:not(.btn) {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--red-soft-2);
  text-underline-offset: 2px;
}

.post__body a:not(.btn):hover {
  text-decoration-color: var(--red);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--ink-faint);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 64rem;
  margin: var(--space-lg) auto 0;
}

.value-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.value-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.value-card__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.value-card p {
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* ============================================================
   Nota informativa (panel discreto)
   ============================================================ */

.note {
  max-width: 44rem;
  margin: var(--space-lg) auto 0;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.note svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.note p {
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* ============================================================
   Planes de farmacias
   ============================================================ */

.pricing__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pricing__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
}

.pricing__card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.3rem;
}

.pricing__tagline {
  font-size: var(--fs-small);
  color: var(--ink-faint);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-soft);
}

.pricing__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.pricing__price span {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-faint);
}

.pricing__list {
  flex: 1;
  margin-bottom: var(--space-md);
}

.pricing__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding: 0.35rem 0;
}

.pricing__list li svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--green-text);
}

.pricing__list li.is-unavailable {
  color: var(--ink-faint);
}

.pricing__list li.is-unavailable svg {
  color: var(--ink-faint);
}

/* ============================================================
   Blog
   ============================================================ */

.blog-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.blog-card:hover {
  border-color: var(--ink-faint);
  box-shadow: var(--shadow-xs);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.blog-card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
}

.blog-card h2 {
  font-size: 1.1875rem;
  margin-bottom: 0.4rem;
}

.blog-card p {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

/* ---- Entrada individual ---- */

.post {
  max-width: 38rem;
  margin: 0 auto;
}

.post__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: var(--space-lg);
  min-height: 44px;
}

.post__back:hover {
  color: var(--red);
}

.post__back svg {
  width: 1rem;
  height: 1rem;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.post__title {
  font-size: var(--fs-hero);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.post__body h2 {
  font-size: 1.25rem;
  margin-top: var(--space-lg);
  margin-bottom: 0.6rem;
}

.post__body p {
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}

.post__nav {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post__nav a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 44px;
  justify-content: center;
}

.post__nav a:hover {
  border-color: var(--ink-faint);
}

.post__nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: none;
}

.post__nav-title {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

.post__nav--next {
  text-align: right;
  align-items: flex-end;
}

.post__nav--single {
  grid-template-columns: 1fr;
}

/* ============================================================
   Contacto
   ============================================================ */

.contact-grid {
  max-width: 34rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.contact-card:hover {
  border-color: var(--ink-faint);
  box-shadow: var(--shadow-xs);
}

.contact-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.contact-card h2 {
  font-size: 1rem;
}

.contact-card p {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  word-break: break-word;
}

/* ============================================================
   Farmacias: vista previa bloqueada ("Próximamente")
   ============================================================ */

.locked-stage {
  position: relative;
}

.locked-stage__content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.locked-stage__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.locked-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg) var(--space-md);
  max-width: 24rem;
  width: 100%;
  text-align: center;
}

.locked-box__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-box__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.locked-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.locked-box p {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}

/* ============================================================
   Contacto: tarjeta principal, ayuda y preguntas frecuentes
   ============================================================ */

.contact-main {
  max-width: 40rem;
  margin: 0 auto var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.contact-main__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-main__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-main__email {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
  margin-bottom: var(--space-md);
}

.contact-main__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn--secondary {
  background: var(--white);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.contact-main__status {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: var(--green-text);
  min-height: 1.25em;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.faq {
  max-width: 40rem;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--space-sm) 0;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform 0.18s var(--ease);
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq p {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  padding-bottom: var(--space-md);
  max-width: 36rem;
}

/* ============================================================
   Figura simple (una imagen enmarcada, para páginas de texto)
   ============================================================ */

.figure {
  max-width: 30rem;
  margin: var(--space-lg) auto 0;
}

.figure__frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.figure__frame img {
  width: 100%;
  height: auto;
  display: block;
}

.figure figcaption {
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-faint);
  text-align: center;
}

/* ============================================================
   Scroll reveal: fade only
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .phone {
    animation: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 68rem) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title,
  .hero__subtitle,
  .hero__meta {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__device {
    margin-top: var(--space-lg);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid,
  .pricing__grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 36rem) {
  section {
    padding: var(--space-lg) 1.25rem;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .audience__list h3 {
    flex: 1 1 100%;
  }

  .audience__list p {
    flex: 1 1 100%;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }

  .value-grid,
  .pricing__grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .post__nav {
    grid-template-columns: 1fr;
  }

  .post__nav--next {
    text-align: left;
    align-items: flex-start;
  }

  .locked-box {
    padding: var(--space-md) var(--space-sm);
  }

  .contact-main {
    padding: var(--space-md);
  }
}

/* ============================================================
   Correccion del cursor personalizado: estas clases fijan
   "cursor: pointer" mas abajo en este mismo archivo con una
   especificidad (0,1,0) o (0,1,1) que gana por orden de aparicion
   a la regla generica del bloque de cursor personalizado de mas
   arriba (a, button, summary, ... con especificidad (0,0,1)),
   dejando el cursor del sistema en vez del SVG propio:
   .btn (todos los CTA/botones del sitio), .nav__mobile summary
   (el boton del menu movil) y .faq summary (los acordeones de
   preguntas frecuentes). Se repiten aqui, al final del archivo
   y bajo el mismo media feature, con la misma especificidad que
   esas reglas para que el orden de aparicion decida a favor del
   cursor personalizado. Los hijos (svg, span, img) no necesitan
   regla propia: heredan "cursor" del elemento interactivo.
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  .btn,
  .nav__mobile summary,
  .faq summary {
    cursor: url("/assets/cursors/pointer.svg") 5 4, pointer;
  }

  .btn[disabled],
  .btn[aria-disabled="true"] {
    cursor: default;
  }
}
