@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');

:root{--navy:#111d55;--purple:#6749dc;--ink:#17213d;--muted:#586278;--line:#e5e9f2}*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:var(--ink);font:16px "Trebuchet MS",Arial,sans-serif}a{color:inherit;text-decoration:none}button,.button{border:0;border-radius:999px;background:var(--purple);color:white;padding:12px 20px;font-weight:800;cursor:pointer}.shell{max-width:1080px;margin:auto;padding:0 22px}.topbar{background:white;position:sticky;top:0;border-bottom:1px solid var(--line);z-index:5}.topinner{height:70px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:900;color:#087f9a;font-size:17px}.nav{display:flex;gap:20px;font-weight:800;font-size:14px}.nav a:hover{color:var(--purple)}.menu-toggle{display:none;background:transparent;color:var(--navy);font-size:24px}.hero{margin:24px auto;padding:35px;border-radius:25px;background:linear-gradient(120deg,#fff0dc,#fff 56%,#dcf5f1);display:grid;grid-template-columns:1fr 1fr;align-items:center}.hero h1{font-size:clamp(36px,5vw,58px);line-height:1.05;color:var(--navy)}.hero h1 span{color:var(--purple)}.hero p{font-size:18px;line-height:1.5}.hero-art{text-align:center;font-size:100px}.section-title,.pagehead h1{color:var(--navy)}.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.quick,.tile,.card{border-radius:17px;padding:17px;background:white;border:1px solid var(--line);box-shadow:0 5px 15px #17213d0b}.quick{text-align:center;font-weight:800;display:grid;place-items:center;gap:8px;min-height:125px}.quick span,.emoji{font-size:34px}.tint-sky{background:#d9effb}.tint-pink{background:#f7d7e9}.tint-mint{background:#d5f5ec}.tint-yellow{background:#fff0bd}.tint-coral{background:#ffd9d4}.tint-lilac{background:#e6dcff}.tiles,.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.tile{display:flex;align-items:center;gap:12px;min-height:125px;font-weight:900;font-size:17px}.pagehead{padding:28px 0 18px;display:flex;align-items:center;gap:15px}.pagehead h1{font-size:34px;margin:0 0 4px}.pagehead p{margin:0;color:var(--muted)}.banner{background:#e8f5ff;border-radius:15px;padding:15px;margin:17px 0;font-weight:800}.search,textarea{width:100%;padding:13px;border:1px solid var(--line);border-radius:13px;background:white}.topic-grid{padding:8px 0 35px}.topic{min-height:150px;display:flex;flex-direction:column;justify-content:space-between}.topic p,.list-row p{color:var(--muted);margin:5px 0}.form-card{max-width:740px;margin:12px auto 38px;padding:25px;background:white;border:1px solid var(--line);border-radius:23px}.form-card textarea{height:140px}.counter{text-align:right;color:var(--muted);font-size:13px}.chips,.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.chip,.tab{background:#edf0f8;color:var(--ink);padding:9px 13px;border-radius:999px}.tab.active{background:#db4082;color:white}.list{display:grid;gap:9px;margin:12px 0}.list-row{display:flex;gap:12px;padding:13px;background:white;border:1px solid var(--line);border-radius:14px}.alertbox,.notice{background:#ffe2e5;color:#89283d;border-radius:15px;padding:15px;margin:14px 0 30px;font-weight:800}.quiz{display:grid;grid-template-columns:170px 1fr;gap:14px;align-items:center}.quizart{background:#e5d8ff;border-radius:18px;display:grid;place-items:center;font-size:76px;min-height:160px}.option{display:flex;width:100%;justify-content:flex-start;background:white;color:var(--ink);border:1px solid var(--line);border-radius:12px;margin-top:8px}.option.selected{background:#f0ebff;border-color:var(--purple)}.feedback{display:none;background:#e5f8ee;padding:14px;border-radius:13px;margin-top:13px}.places,.radar{display:grid;grid-template-columns:1fr 1fr;gap:14px}.map{min-height:280px;border-radius:17px;background:repeating-linear-gradient(35deg,#e2f1e8 0 30px,#fff 31px 38px);display:grid;place-items:center;font-size:45px}.smallbtn{padding:8px 13px}.donut{width:210px;height:210px;border-radius:50%;margin:auto;background:conic-gradient(#684bdb 0 32%,#e94f91 32% 56%,#f0a248 56% 74%,#41b7a7 74% 84%,#5792de 84% 92%,#e1cf68 92%);display:grid;place-items:center}.donut:after{content:'Temas másA consultados';white-space:pre;text-align:center;background:white;border-radius:50%;width:105px;height:105px;display:grid;place-items:center;font-weight:bold}.bars{height:145px;display:flex;align-items:end;gap:12px;border-bottom:1px solid var(--line)}.bars i{flex:1;background:#51abd6;border-radius:8px 8px 0 0}.footer{text-align:center;color:var(--muted);font-size:13px;padding:24px}.hidden{display:none!important}@media(max-width:780px){.shell{padding:0 15px}.nav{display:none;position:absolute;top:70px;left:0;right:0;background:white;padding:18px;flex-direction:column}.nav.open{display:flex}.menu-toggle{display:block}.hero{grid-template-columns:1fr;padding:25px}.hero-art{font-size:65px}.quick-grid{grid-template-columns:repeat(3,1fr)}.tiles,.topic-grid{grid-template-columns:repeat(2,1fr)}.places{grid-template-columns:1fr}}@media(max-width:480px){.quick-grid{grid-template-columns:repeat(2,1fr)}.tiles,.topic-grid{gap:8px}.tile{display:block;padding:13px;font-size:15px}.tile .emoji{display:block}.hero h1{font-size:37px}.pagehead h1{font-size:27px}.quiz{grid-template-columns:1fr}.quizart{min-height:115px}.radar{grid-template-columns:1fr}.form-card{padding:18px}}
/* Iconos SVG locales: no requieren fuentes de emoji en el servidor. */
.icon{display:inline-block;width:1.15em;height:1.15em;object-fit:contain;vertical-align:-.2em;flex:none}.quick .icon,.emoji .icon{width:1.15em;height:1.15em}.hero-illustration{width:min(100%,470px);height:auto;display:block;margin:auto}.brand-icon{width:22px;height:22px;vertical-align:-.25em}.menu-toggle{font-family:Arial,sans-serif}

.case-illustration{width:100%;height:160px;object-fit:contain;border-radius:18px}

.section-title,.pagehead h1,.form-card h1{font-family:"Arial Rounded MT Bold","Trebuchet MS",Arial,sans-serif;font-weight:700}



/* Diseño para la página de señales de alerta. */
.alerts-page { background: #ffffff; }
.alerts-shell { max-width: 1120px; padding: 0 38px; }
.alerts-back { display: inline-flex; width: 40px; height: 40px; align-items: center; margin: 24px 0 8px; color: #111827; font-size: 30px; line-height: 1; }
.alerts-heading { display: flex; align-items: center; gap: 54px; margin: 0 0 38px; }
.alerts-badge { display: grid; width: 150px; height: 150px; flex: 0 0 150px; place-items: center; border-radius: 50%; background: #f46180; }
.alerts-badge img { width: 74px; height: 74px; filter: brightness(0) saturate(100%) invert(11%) sepia(19%) saturate(2300%) hue-rotate(197deg) brightness(91%); }
.alerts-heading h1 { margin: 0 0 4px; color: #171a4d; font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; }
.alerts-heading p { max-width: 520px; margin: 0; color: #4f5260; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.35; }
.alerts-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 7.8vw, 92px); margin: 0 0 24px; }
.alerts-tabs .tab { min-height: 80px; padding: 12px 16px; border: 0; border-radius: 25px; background: #dfe5fa; color: #15182a; font-size: clamp(16px, 2vw, 23px); font-weight: 500; letter-spacing: 0.03em; }
.alerts-tabs .tab.active { background: #d43880; color: #15182a; }
.alert-list { display: grid; gap: 0; margin: 0 0 34px; }
.alert-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: clamp(28px, 8vw, 95px); min-height: 82px; padding: 7px clamp(20px, 6vw, 65px); }
.alert-symbol { display: grid; width: 70px; height: 70px; place-items: center; border-radius: 50%; background: #f46180; }
.alert-symbol img { width: 34px; height: 34px; filter: brightness(0) saturate(100%) invert(11%) sepia(19%) saturate(2300%) hue-rotate(197deg) brightness(91%); }
.alert-row h2 { margin: 0 0 2px; color: #171a22; font-size: clamp(19px, 2.55vw, 30px); font-weight: 500; line-height: 1.2; }
.alert-row p { margin: 0; color: #20212b; font-size: clamp(15px, 1.75vw, 20px); line-height: 1.35; }
.alert-row a, .alertbox a { color: inherit; text-decoration: underline; }
.alerts-page .alertbox { display: flex; align-items: center; gap: 18px; margin: 26px 0 42px; padding: 24px clamp(20px, 10vw, 160px); border-radius: 24px; background: #ffe3e7; font-size: 18px; line-height: 1.45; }
.alerts-page .alertbox img { width: 38px; height: 38px; flex: 0 0 38px; }
.alerts-page .alertbox p { margin: 0; }
@media (max-width: 700px) {
  .alerts-shell { padding: 0 18px; }
  .alerts-back { margin-top: 12px; }
  .alerts-heading { gap: 20px; margin-bottom: 28px; }
  .alerts-badge { width: 82px; height: 82px; flex-basis: 82px; }
  .alerts-badge img { width: 42px; height: 42px; }
  .alerts-heading h1 { font-size: clamp(27px, 6vw, 38px); }
  .alerts-heading p { font-size: 16px; }
  .alerts-tabs { gap: 9px; margin-bottom: 18px; }
  .alerts-tabs .tab { min-height: 58px; padding: 8px 5px; border-radius: 18px; font-size: clamp(13px, 3vw, 17px); letter-spacing: 0; }
  .alert-row { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; min-height: 72px; padding: 7px 0; }
  .alert-symbol { width: 48px; height: 48px; }
  .alert-symbol img { width: 26px; height: 26px; }
  .alerts-page .alertbox { gap: 12px; margin-top: 18px; padding: 16px; font-size: 15px; }
  .alerts-page .alertbox img { width: 30px; height: 30px; flex-basis: 30px; }
}

/* Páginas informativas enlazadas desde las tarjetas de Mi salud */
.info-page { max-width: 980px; padding-bottom: 32px; }
.info-back { display: inline-block; margin: 20px 0; color: var(--navy); font-weight: 800; }
.info-hero { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 20px; margin: 0 0 8px; padding: 24px; border-radius: 22px; }
.info-hero-icon { width: 72px; height: 72px; object-fit: contain; }
.info-hero h1 { margin: 4px 0 8px; color: var(--navy); font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif; font-size: clamp(28px, 4vw, 42px); }
.info-hero p { margin: 4px 0; color: var(--muted); line-height: 1.5; }
.info-hero .eyebrow { color: #087f9a; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.info-source { margin: 8px 4px 18px; color: var(--muted); font-size: 13px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #ffffff; line-height: 1.55; }
.info-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 20px; }
.info-card p { margin: 8px 0; }
.info-card ul { margin: 8px 0; padding-left: 22px; }
.info-card li { margin: 6px 0; }
.info-card a, .info-source a { color: #294db5; text-decoration: underline; }
.info-callout { margin: 18px 0; padding: 18px 20px; border-left: 5px solid var(--purple); border-radius: 13px; background: #eee9ff; line-height: 1.55; }
.info-actions { margin: 22px 0 36px; }
@media (max-width: 680px) {
  .info-page { padding: 0 15px 24px; }
  .info-hero { grid-template-columns: 58px minmax(0, 1fr); gap: 13px; padding: 18px; }
  .info-hero-icon { width: 52px; height: 52px; }
  .info-hero h1 { font-size: 27px; }
  .info-hero p { font-size: 15px; }
  .info-grid { grid-template-columns: 1fr; gap: 10px; }
  .info-card { padding: 17px; }
}
.info-pdf { margin: -8px 4px 18px; }
.info-pdf a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid #d9d4f3; border-radius: 999px; background: #f2efff; color: #4b39a7; font-weight: 800; }

.pdf-page {
  max-width: 1100px;
  padding: 16px 20px 24px;
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: calc(100vh - 112px);
  min-height: 620px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 600px) {
  .pdf-page {
    padding: 10px 8px 16px;
  }

  .pdf-viewer {
    height: calc(100vh - 86px);
    min-height: 520px;
    border-radius: 8px;
  }
}

/* Diseño de tablas y secciones para la guía de nutrición y anemia */
.nutrition-section {
  margin: 28px 0;
}

.nutrition-section-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.25;
}

.nutrition-section .info-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 19px;
}

.nutrition-intro {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.nutrition-welcome,
.nutrition-closing {
  margin: 18px 0;
}

.info-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  line-height: 1.5;
}

.info-table th,
.info-table td {
  min-width: 125px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table thead th {
  background: #e8f7f2;
  color: var(--navy);
  font-weight: 800;
}

.info-table tbody th {
  color: var(--navy);
  font-weight: 700;
}

.info-table tbody tr:nth-child(even) {
  background: #f8fbfc;
}

.info-table tbody tr:last-child th,
.info-table tbody tr:last-child td {
  border-bottom: 0;
}

.nutrition-references ol {
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.65;
}

.nutrition-references li {
  margin: 0 0 10px;
}

.nutrition-references a {
  color: #294db5;
  text-decoration: underline;
}

@media (max-width: 680px) {
  .info-table th,
  .info-table td {
    min-width: 145px;
    padding: 10px;
  }
}

/* Diseño temático para las guías de Mi salud */
.brand-icon {
  width: 38px;
  height: 32px;
  margin-right: 5px;
  object-fit: contain;
  vertical-align: middle;
}

.topic-page > .info-hero {
  margin-bottom: 18px;
}

.topic-intro,
.topic-callout,
.topic-closing {
  margin: 16px 0 22px;
}

.topic-section {
  margin: 28px 0;
}

.topic-section-title {
  margin: 0 0 13px;
  color: var(--navy);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.3;
}

.topic-section .info-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 19px;
}

.topic-section .info-card p {
  line-height: 1.6;
}

.topic-section .info-card ul,
.topic-section .info-card ol {
  padding-left: 24px;
  line-height: 1.6;
}

.topic-section .info-card li {
  margin: 7px 0;
}

.topic-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  line-height: 1.5;
}

.topic-table th,
.topic-table td {
  min-width: 125px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.topic-table thead th {
  background: #e8f7f2;
  color: var(--navy);
  font-weight: 800;
}

.topic-table tbody tr:nth-child(even) {
  background: #f8fbfc;
}

.topic-references ol {
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.65;
}

.topic-references li {
  margin: 0 0 12px;
}

.topic-references a,
.topic-page .info-source a {
  color: #294db5;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .topic-section {
    margin: 22px 0;
  }

  .topic-table th,
  .topic-table td {
    min-width: 145px;
    padding: 10px;
  }
}

.topic-grid > .topic[hidden] {
  display: none !important;
}

/* Tipografía manuscrita para los títulos, inspirada en las referencias */
:root {
  --font-title: "Chewy", "Comic Sans MS", "Comic Sans", "Segoe Print", cursive;
}

h1,
.hero h1,
.pagehead h1,
.info-hero h1 {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.08;
  text-wrap: balance;
}




h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.015em;
}

/* Mantiene legibles los títulos de las tarjetas de temas */
.topic h3 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
  letter-spacing: normal;
}

/* Colores más vivos para los accesos rápidos de la portada */
.quick-grid .quick.tint-pink {
  background: #f3b9d7;
}

.quick-grid .quick.tint-sky {
  background: #9edcf4;
}

.quick-grid .quick.tint-coral {
  background: #ffb6ad;
}

.quick-grid .quick.tint-mint {
  background: #9ce8d0;
}

.quick-grid .quick.tint-lilac {
  background: #c5a8f2;
}

.quick-grid .quick.tint-yellow {
  background: #ffdc78;
}

/* Colores más vivos para las tarjetas de Mi salud */
main.shell > .topic-grid > .topic.tint-sky {
  background: #9edcf4;
}

main.shell > .topic-grid > .topic.tint-pink {
  background: #f3b9d7;
}

main.shell > .topic-grid > .topic.tint-yellow {
  background: #ffdc78;
}

main.shell > .topic-grid > .topic.tint-coral {
  background: #ffb6ad;
}

main.shell > .topic-grid > .topic.tint-mint {
  background: #9ce8d0;
}

/* Iconos ilustrados de Mi salud */
.topic-grid .topic .icon {
  width: 52px;
  height: 52px;
  vertical-align: middle;
}

/* Mantiene el texto del botón legible sobre su fondo morado */
.info-card a.button {
  color: #ffffff;
  text-decoration: none;
}

.info-card a.button:hover,
.info-card a.button:focus-visible {
  color: #ffffff;
  text-decoration: none;
}
.info-hero {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  align-items: center;
  gap: 20px;
}

.info-hero-icon {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  object-fit: contain !important;
}
