/* Los colores compartidos permiten cambiar el aspecto desde un solo lugar. */
:root {
  --primary: #00355f;
  --teal: #006972;
  --canvas: #f7f9ff;
  --paper: #fff;
  --text: #121c27;
  --muted: #475569;
  --border: #d5dce2;
  --pale-blue: #e8f0fc;
  --pale-teal: #e0f2f1;
  --warm: #92400e;
  --focus: #006699;
  color-scheme: light;
}

/* Base legible: el navegador conserva sus barras y su ampliación habitual. */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 1rem/1.65 "Segoe UI", Arial, sans-serif;
}
h1, h2, h3, p, ul, ol, dl {
  margin-top: 0;
}
h1, h2, h3 {
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
h1 {
  margin-bottom: 1.2rem;
  font-size: 3.1rem;
  font-weight: 800;
  max-width: 18ch;
}
h1 span {
  color: var(--teal);
}
h2 {
  font-size: 2rem;
}
h3 {
  margin-bottom: .7rem;
  font-size: 1.2rem;
  letter-spacing: -.015em;
}
p {
  margin-bottom: 1rem;
}
a {
  color: var(--teal);
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: .55;
  cursor: default;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
img, svg {
  max-width: 100%;
}
section[id] {
  scroll-margin-top: 1.5rem;
}
.site-shell, .page-shell {
  width: min(75rem, calc(100% - 3rem));
  margin-inline: auto;
}
.page-shell {
  padding-block: 2.8rem 3.5rem;
}
.page-shell > * + * {
  margin-top: 3.5rem;
}
.muted {
  color: var(--muted);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 30;
  padding: .8rem 1.2rem;
  background: var(--primary);
  color: white;
  border-radius: .5rem;
}
.skip-link:focus {
  top: 1rem;
}

/* Encabezado y menú compartidos por las dos páginas. */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.header-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--primary);
  text-decoration: none;
}
.brand img {
  object-fit: contain;
  flex-shrink: 0;
}
.brand strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: .75rem;
  color: var(--teal);
  margin-top: .15rem;
}
.initiative-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 2rem;
  padding: .4rem .85rem;
  background: var(--pale-teal);
  color: var(--teal);
  font-size: .8rem;
  font-weight: 600;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .65rem;
  padding-block: .6rem .85rem;
  border-top: 1px solid #edf1f6;
}
.site-nav a {
  padding: .55rem .55rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: .35rem;
}
.site-nav a:hover {
  background: var(--pale-blue);
  color: var(--primary);
}
.site-nav .nav-guide {
  color: var(--teal);
  background: var(--pale-teal);
  margin-left: auto;
}
.site-nav [aria-current="page"] {
  box-shadow: inset 0 -3px var(--teal);
}
.reading-bar {
  background: var(--pale-blue);
}
.reading-bar-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1rem;
  padding-block: .65rem;
  font-size: .78rem;
}
.reading-bar p {
  margin: 0;
  color: var(--primary);
}
.font-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}
.font-controls > span:first-child {
  margin-right: .4rem;
}
.font-controls button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: .35rem .55rem;
  background: white;
  border: 1px solid #b9c9dd;
  border-radius: .3rem;
  color: var(--primary);
  font-weight: 700;
}

/* Presentación del portal y avisos educativos. */
.hero-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}
.hero-description {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 0;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-bottom: .7rem;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.badge {
  display: inline-block;
  width: fit-content;
  padding: .2rem .6rem;
  border-radius: .3rem;
  background: var(--pale-teal);
  color: #00545c;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .01em;
}
.badge-blue {
  background: var(--pale-blue);
  color: var(--primary);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--pale-blue);
  border-radius: .7rem;
  color: var(--primary);
}
.hero-note strong {
  display: block;
  font-size: .95rem;
}
.hero-note p {
  color: var(--muted);
  font-size: .82rem;
  margin: .3rem 0 0;
}
.hero-symbol, .code-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: .7rem;
  background: var(--teal);
  color: white;
  font-weight: 800;
}
.notice {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #b45309;
  background: #fff8ef;
  border-radius: .5rem;
  font-size: .9rem;
}
.notice strong {
  color: #713708;
}
.notice p {
  margin: .35rem 0 0;
}
.hero-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.hero-notice > div {
  flex: 1 1 30rem;
}
.medical-notice {
  margin-bottom: 1.3rem;
  background: var(--pale-blue);
  border-left-color: var(--primary);
}
.medical-notice strong {
  color: var(--primary);
}

/* Tarjetas y columnas: se ajustan al espacio de la ventana sin reglas por dispositivo. */
.section-heading {
  margin-bottom: .7rem;
}
.section-number {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: .7rem;
  letter-spacing: 0;
}
.section-intro {
  max-width: 75ch;
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.card-grid {
  display: grid;
  gap: 1.25rem;
}
.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}
.card {
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: .65rem;
  min-width: 0;
}
.card p, .card li, .card dd {
  font-size: .93rem;
  color: var(--muted);
}
.card p:last-child {
  margin-bottom: 0;
}
.resource-card {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.resource-card > .badge {
  margin-bottom: .8rem;
}
.resource-card > .button {
  margin-top: auto;
  width: 100%;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
  background: var(--pale-blue);
  border-radius: .5rem;
  font-size: 1.5rem;
}
.teal-icon {
  background: var(--pale-teal);
  color: var(--teal);
}
.warm-icon {
  background: #fff0df;
  color: var(--warm);
}
.health-card {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.health-card > .timer, .health-card > .card-tip, .health-card > .text-link {
  margin-top: auto;
  width: 100%;
}
.card-tip {
  padding: .7rem .85rem;
  background: var(--pale-blue);
  border-radius: .35rem;
  font-size: .85rem;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  min-height: 2.8rem;
  max-width: 100%;
  padding: .65rem 1rem;
  background: var(--primary);
  color: white;
  border: 1px solid transparent;
  border-radius: .4rem;
  font-size: .83rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.button:hover {
  background: #0f4c81;
  text-decoration: none;
}
.button-secondary {
  background: var(--pale-blue);
  color: var(--primary);
  border-color: #c9d8eb;
}
.button-secondary:hover {
  background: #d6e5f8;
}
.button-warm {
  background: #713708;
}
.button-warm:hover {
  background: #92400e;
}
.text-link {
  font-weight: 650;
  font-size: .9rem;
}
.check-list {
  padding-left: 1.1rem;
  margin-bottom: 1.5rem;
}
.check-list li {
  margin-bottom: .45rem;
}
.check-list li::marker {
  color: var(--teal);
}
.sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.4rem;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0;
  background: var(--pale-blue);
  border-radius: .45rem;
  font-size: .76rem;
}
.sources strong {
  color: var(--primary);
}
.lens-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin-bottom: 1.25rem;
}
.compact-card {
  padding: 1.15rem;
  border-top: 3px solid #a9d7da;
}
.compact-card h3 {
  font-size: 1rem;
}
.compact-card p {
  font-size: .85rem;
}
.definition-list {
  margin-bottom: 1rem;
}
.definition-list > div {
  padding: .65rem .85rem;
  background: var(--pale-blue);
  border-radius: .35rem;
}
.definition-list > div + div {
  margin-top: .5rem;
}
.definition-list dt {
  font-weight: 700;
  color: var(--primary);
  font-size: .85rem;
}
.definition-list dd {
  margin-left: 0;
}
.care-list {
  padding-left: 1.3rem;
}
.care-list li {
  padding-left: .3rem;
  margin-bottom: .85rem;
}
.care-list li::marker {
  color: var(--primary);
  font-weight: 700;
}

/* El temporizador anuncia el final; los segundos no son mensajes de voz. */
.timer {
  padding: 1rem;
  background: var(--pale-blue);
  border-radius: .45rem;
}
.timer-label {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.timer-display {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1.4;
}
.timer-status {
  min-height: 2.8em;
  font-size: .8rem !important;
  margin-block: .3rem .7rem;
}
.timer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.timer-controls .button {
  flex: 1 1 auto;
}

/* Probadores y prestadores locales. La ilustración no utiliza la cámara. */
.try-on-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: .65rem;
}
.try-on-intro h3 {
  margin-top: .8rem;
}
.try-on-intro p {
  font-size: .93rem;
}
.try-on-intro p:last-child {
  margin-bottom: 0;
}
.glasses-illustration {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--pale-blue);
  padding: 1rem;
  border-radius: .55rem;
}
.glasses-illustration svg {
  width: 100%;
  fill: none;
  stroke: var(--primary);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glasses-illustration .lens-highlight {
  stroke: #60a4ad;
  stroke-width: 5;
}
.glasses-illustration span {
  color: var(--primary);
  font-size: .75rem;
  text-align: center;
}
.provider-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 1.25rem;
}
.provider-list {
  flex: 2 1 32rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.provider-card h3 {
  margin-top: .7rem;
}
.provider-address {
  padding-block: .7rem;
  border-top: 1px solid #e8edf4;
}
.provider-card .verification {
  margin-top: .9rem;
  color: var(--muted);
  font-size: .72rem;
}
.consultation-guide {
  flex: 1 1 16rem;
  padding: 1.5rem;
  background: var(--pale-blue);
  border-radius: .65rem;
}
.consultation-guide p, .consultation-guide li {
  color: var(--muted);
  font-size: .88rem;
}

/* La sección oscura agrupa las herramientas de inclusión. */
.software-section {
  padding: 2rem;
  background: #24313e;
  border-radius: .8rem;
}
.software-section > .section-heading {
  color: white;
}
.software-section > .eyebrow {
  color: #b9e8eb;
}
.software-section > .section-intro {
  color: #d2dfec;
}
.convertic-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--teal);
  border-radius: .5rem;
  background: white;
}
.convertic-card > div {
  flex: 1 1 28rem;
}
.convertic-card h3 {
  margin-block: .5rem;
}
.convertic-card p {
  margin-bottom: 0;
  font-size: .9rem;
  color: var(--muted);
}
.convertic-card .button {
  background: var(--teal);
}
.software-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: .5rem 1rem;
  justify-content: space-between;
  width: 100%;
  margin-bottom: .5rem;
}
.software-card-heading h3 {
  margin-bottom: 0;
}
.software-note {
  color: var(--teal) !important;
  font-size: .83rem !important;
}
.software-section .card {
  border: 0;
}
.software-section :focus-visible {
  outline-color: #008f9a;
}
.student-guide-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 1.7rem;
  background: #ddeafa;
  border: 1px solid #c9d9ed;
  border-radius: .7rem;
}
.student-guide-callout > div {
  flex: 1 1 30rem;
}
.student-guide-callout h2 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}
.student-guide-callout p:last-child {
  margin-bottom: 0;
  font-size: .9rem;
  color: var(--muted);
}
.code-symbol {
  background: var(--primary);
}

/* Pie de página: fuentes y propósito del proyecto. */
.site-footer {
  background: #edf2f9;
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 1.5rem;
}
.footer-notice {
  background: white;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.8rem 1rem;
}
.footer-brand {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.footer-content p {
  margin: .4rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.3rem;
  font-size: .82rem;
}
/* Los nombres se mantienen juntos y pueden pasar a otra línea al ampliar el texto. */
.footer-authors {
  padding-block: 1.3rem;
  border-top: 1px solid var(--border);
}
.footer-authors h2 {
  margin-bottom: .8rem;
  font-size: 1rem;
}
.footer-authors ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-authors li {
  color: var(--primary);
  font-size: .9rem;
}
.footer-bottom {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--muted);
}
