:root {
  --bg: #f7fafc;
  --panel: #fff;
  --ink: #1f2937;
  --muted: #4b5563;
  --accent: #2f7cf6;
  --accent-press: #1f5ed1;
  --alert: #cc2936;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(0, 0, 0, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
}

/* ==== RESET ACCESIBLE ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem .9rem;
  border-radius: 8px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
}

/* ==== ESTRUCTURA GENERAL ==== */
.app, .screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  justify-content: space-between;
  background: var(--bg);
}

/* ==== HEADER ==== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.brand {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.nav__link {
  color: var(--muted);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 10px;
  font-size: 1rem;
}
.nav__link:hover,
.nav__link:focus-visible {
  background: rgba(47, 124, 246, .1);
  color: var(--ink);
}
.nav__link--btn {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.nav__link--btn:hover {
  background: var(--accent-press);
}

/* ==== HERO ==== */
.hero {
  text-align: center;
  padding: 2rem clamp(1rem, 5vw, 3rem);
}
.title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--accent);
  margin-bottom: .5rem;
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 65ch;
  margin: 0 auto 1.5rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: .9rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover {
  background: var(--accent-press);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--big {
  min-width: 220px;
  font-size: 1.2rem;
}

/* ==== GRID BASE ==== */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  width: min(960px, 100%);
  margin: 1rem auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.grid--wide {
  grid-template-columns: 1fr;
}

/* ==== TARJETAS BASE ==== */
.item {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: left;
}
.item h2 {
  font-size: 1.2rem;
  margin-bottom: .35rem;
}
.info {
  color: var(--muted);
  font-size: 1.05rem;
}
.actions {
  margin-top: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.actions--stack {
  flex-direction: column;
  align-items: stretch;
}
.btn--alert {
  background: var(--alert);
}
.btn--alert:hover {
  background: #a61f2a;
}

/* ==== SECCIONES GENERALES ==== */
.section {
  padding: clamp(2rem, 6vh, 3rem) clamp(1rem, 4vw, 2rem);
  width: min(100%, 1000px);
  margin-inline: auto;
}
.section__title {
  text-align: center;
  color: var(--accent);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin-bottom: 1rem;
}

/* ==== SECCIÓN RECORDATORIOS — UX PRO ==== */
#recordatorios {
  background: #f8fafc;
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 2rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Título */
#recordatorios .section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  color: #2f7cf6;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}
#recordatorios .section__title::before {
  content: "⏰";
  font-size: 1.6rem;
}

/* GRID */
#recordatorios .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: min(100%, 900px);
}
@media (min-width: 640px) {
  #recordatorios .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CARD */
#recordatorios .card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
#recordatorios .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Título de recordatorio */
#recordatorios .card h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  color: #111827;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Texto principal */
#recordatorios .card .info {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.6;
}
#recordatorios .card strong {
  color: #111827;
  font-weight: 700;
}

/* Botón dentro de la card */
#recordatorios .actions {
  margin-top: 1rem;
}
#recordatorios .btn {
  display: inline-block;
  background: #2f7cf6;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 15px rgba(47, 124, 246, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
#recordatorios .btn:hover {
  background: #1f5ed1;
  transform: translateY(-2px);
}
#recordatorios .btn:active {
  transform: translateY(0);
}

/* ==== EMERGENCIA ==== */
.emergency {
  background: #fee2e2;
  color: #7a1a1a;
  padding: 2rem 1rem;
  text-align: center;
}

/* ==== AYUDA ==== */
.help {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
.help h2 {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.help a {
  color: var(--accent);
  text-decoration: none;
}
.help a:hover {
  text-decoration: underline;
}

/* ==== FOOTER ==== */
.footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ==== ACCESIBILIDAD ==== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
