/* Sitio de mylia.com.mx. Mismos tonos que la app de escritorio (apps/desktop/src/App.css). */
:root {
  --fondo: #ffffff;
  --fondo-2: #f4f4f5;
  --borde: #e4e4e7;
  --texto: #18181b;
  --tenue: #71717a;
  --marca: #0b45f0;
  --marca-hover: #0937c4;
  --rojo: #d92d20;
  --azul: #0a63e8;
  --ancho: 1120px;
  --radio: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
section[id] {
  /* Al bajar a una sección, el título queda cerca de la barra y no tras el padding de 128px. */
  scroll-margin-top: -72px;
}
body {
  margin: 0;
  overflow-x: clip;
}
h1,
h2 {
  overflow-wrap: break-word;
}
img {
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}

/* ------------------------------------------------------------------ Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--marca);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s;
}
.boton:hover {
  background: var(--marca-hover);
}
.boton--claro {
  background: var(--fondo-2);
  color: var(--texto);
}
.boton--claro:hover {
  background: var(--borde);
}
.boton--blanco {
  background: #fff;
  color: var(--marca);
}
.boton--blanco:hover {
  background: var(--fondo-2);
}
.boton--chico {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.acciones {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ------------------------------------------------------------------ Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--borde);
}
.nav__fila {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__wordmark {
  height: 28px;
  width: auto;
}
.nav__enlaces {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__enlaces a {
  text-decoration: none;
  color: var(--tenue);
  font-size: 15px;
  font-weight: 500;
}
.nav__enlaces a:hover {
  color: var(--texto);
}

/* ------------------------------------------------------------------ Texto común */
h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.028em;
  font-weight: 750;
}
h2 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 720;
}
h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------------ Hero */
.hero {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 88px 24px 0;
  text-align: center;
}
.hero__texto {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--tenue);
}

/* Ventana con la agenda */
.ventana {
  margin: 64px auto 0;
  max-width: 1000px;
  text-align: left;
  border: 1px solid var(--borde);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 30px 80px rgb(15 23 42 / 0.12),
    0 4px 14px rgb(15 23 42 / 0.05);
}
.ventana__barra {
  height: 36px;
  background: var(--fondo-2);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
}
.ventana__barra span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d4d4d8;
}
.ventana__cuerpo {
  display: flex;
  background: var(--fondo-2);
}
.app-menu {
  width: 190px;
  padding: 14px 10px;
  font-size: 13px;
  color: var(--tenue);
  flex-shrink: 0;
}
.app-menu__marca {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--texto);
  padding: 4px 8px 14px;
}
.app-menu__marca img {
  border-radius: 6px;
}
.app-menu p {
  padding: 7px 10px;
  border-radius: 8px;
}
.app-menu .activo {
  background: #fff;
  color: var(--texto);
  font-weight: 600;
}
.agenda {
  flex: 1;
  background: #fff;
  margin: 8px 8px 8px 0;
  border-radius: 12px;
  padding: 18px 18px 22px;
  min-width: 0;
}
.agenda__titulo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  margin-bottom: 14px;
}
.agenda__titulo span {
  color: var(--tenue);
  font-size: 13px;
}
.agenda__rejilla {
  display: grid;
  grid-template-columns: 44px repeat(5, 1fr);
  gap: 6px;
  --fila: 46px;
}
.agenda__horas {
  padding-top: 26px;
  display: grid;
  grid-auto-rows: var(--fila);
  font-size: 11px;
  color: var(--tenue);
}
.agenda__dia {
  position: relative;
  height: calc(26px + var(--fila) * 6);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--fila) - 1px),
    var(--borde) calc(var(--fila) - 1px) var(--fila)
  );
  background-position: 0 26px;
  background-repeat: no-repeat;
  background-size: 100% calc(var(--fila) * 6);
}
.agenda__dia b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  height: 26px;
}
.cita {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(26px + var(--y) * var(--fila) + 2px);
  height: calc(var(--h) * var(--fila) - 4px);
  border-radius: 8px;
  padding: 6px 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  color: #fff;
}
.cita small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c1 {
  background: #0b45f0;
}
.c2 {
  background: #18181b;
}
.c3 {
  background: #0a8f6a;
}

/* ------------------------------------------------------------------ Plataformas */
.plataformas {
  max-width: var(--ancho);
  margin: 72px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.plataformas p {
  color: var(--tenue);
  font-size: 15px;
}
.plataformas ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.plataformas li {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #3f3f46;
}

/* ------------------------------------------------------------------ Secciones */
.seccion {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 128px 24px 0;
  text-align: center;
}
.seccion__texto {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--tenue);
}

.funciones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 36px;
  margin-top: 64px;
  text-align: left;
}
.funciones--tres {
  grid-template-columns: repeat(3, 1fr);
}
.funciones article p {
  margin-top: 8px;
  color: var(--tenue);
  font-size: 15px;
  line-height: 1.55;
}
.icono {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--fondo-2);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.icono svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--texto);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Datos */
.datos {
  max-width: var(--ancho);
  margin: 128px auto 0;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
}
.datos div {
  text-align: center;
}
.datos strong {
  display: block;
  font-size: 44px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--marca);
}
.datos span {
  display: block;
  margin: 8px auto 0;
  max-width: 220px;
  color: var(--tenue);
  font-size: 15px;
  line-height: 1.45;
}

/* Secciones divididas */
.seccion--dividida {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  text-align: left;
}
.seccion--dividida .seccion__texto {
  margin-left: 0;
}
.seccion--invertida .dividida__texto {
  order: 2;
}
.lista {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.lista li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.5;
}
.lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    var(--marca)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Tableta del checador */
.tableta {
  justify-self: center;
  width: min(440px, 100%);
  aspect-ratio: 4 / 5;
  background: #18181b;
  border-radius: 34px;
  padding: 14px;
  box-shadow: 0 30px 70px rgb(15 23 42 / 0.18);
}
.tableta__pantalla {
  height: 100%;
  background: #fff;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
}
.tableta__pantalla img {
  border-radius: 11px;
  margin-bottom: 4px;
}
.tableta__hora {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.tableta__fecha {
  color: var(--tenue);
  font-size: 15px;
}
.pin {
  display: flex;
  gap: 14px;
  margin: 14px 0 10px;
}
.pin span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #d4d4d8;
}
.pin .lleno {
  background: var(--texto);
  border-color: var(--texto);
}
.teclado {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 10px;
}
.teclado b {
  height: 50px;
  border-radius: 14px;
  background: var(--fondo-2);
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 600;
}
.teclado .vacio {
  background: none;
}
.tableta__rostro {
  margin-top: 12px;
  background: var(--marca);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
}

/* Odontograma */
.odonto {
  display: grid;
  gap: 10px;
}
.odonto__fila {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
}
.odonto__fila i {
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--tenue);
  font-weight: 600;
}
.odonto__fila i::before {
  content: "";
  width: 100%;
  aspect-ratio: 1;
  background: #d4d4d8;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3c-2.5 0-4 2-4 4.5 0 3 1.2 4.5 1.8 8 .4 2.5 1 5.5 2.4 5.5 1.5 0 1.3-4.5 3.8-4.5s2.3 4.5 3.8 4.5c1.4 0 2-3 2.4-5.5.6-3.5 1.8-5 1.8-8C20 5 18.5 3 16 3c-1.7 0-2.6 1-4 1S9.7 3 8 3z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3c-2.5 0-4 2-4 4.5 0 3 1.2 4.5 1.8 8 .4 2.5 1 5.5 2.4 5.5 1.5 0 1.3-4.5 3.8-4.5s2.3 4.5 3.8 4.5c1.4 0 2-3 2.4-5.5.6-3.5 1.8-5 1.8-8C20 5 18.5 3 16 3c-1.7 0-2.6 1-4 1S9.7 3 8 3z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.odonto__fila:nth-child(2) i {
  flex-direction: column-reverse;
}
.odonto__fila:nth-child(2) i::before {
  transform: rotate(180deg);
}
.odonto__fila .rojo::before {
  background: var(--rojo);
}
.odonto__fila .azul::before {
  background: var(--azul);
}
.odonto__fila .ausente {
  opacity: 0.3;
}
.odonto__fila .rojo,
.odonto__fila .azul {
  color: var(--texto);
}
.plan {
  margin-top: 18px;
  border-top: 1px solid var(--borde);
}
.plan p {
  display: flex;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid var(--borde);
  font-size: 15px;
}
.plan span {
  color: #3f3f46;
}
.plan__total span,
.plan__total b {
  color: var(--texto);
  font-weight: 700;
}

/* Etapas */
.etapas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}
.etapas div {
  padding-top: 22px;
  border-top: 2px solid var(--texto);
  text-align: left;
}
.etapas strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.etapas span {
  display: block;
  margin-top: 6px;
  color: var(--tenue);
  font-size: 16px;
}

/* Preguntas */
.faq {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
  border-top: 1px solid var(--borde);
}
.faq details {
  border-bottom: 1px solid var(--borde);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 2px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--tenue);
  border-bottom: 2px solid var(--tenue);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}
.faq details p {
  padding: 0 2px 24px;
  color: var(--tenue);
  font-size: 16px;
  line-height: 1.6;
  max-width: 680px;
}

/* Cierre */
.cierre {
  margin: 128px auto 0;
  max-width: var(--ancho);
  padding: 96px 24px;
  text-align: center;
  background: var(--marca);
  color: #fff;
  border-radius: 28px;
}
@media (min-width: 1168px) {
  .cierre {
    margin-inline: auto;
  }
}
.cierre h2 {
  color: #fff;
}

/* Pie */
.pie {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 72px 24px 40px;
}
.pie__fila {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.pie__fila img {
  height: 24px;
  width: auto;
}
.pie__fila p {
  margin-top: 14px;
  color: var(--tenue);
  font-size: 14px;
  line-height: 1.6;
}
.pie__enlaces {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.pie__enlaces a {
  color: var(--tenue);
  text-decoration: none;
  font-size: 14px;
}
.pie__enlaces a:hover {
  color: var(--texto);
}
.pie__legal {
  margin-top: 48px;
  color: var(--tenue);
  font-size: 13px;
}

/* ------------------------------------------------------------------ Pantallas chicas */
@media (max-width: 960px) {
  .funciones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .funciones--tres {
    grid-template-columns: 1fr;
  }
  .datos {
    grid-template-columns: repeat(2, 1fr);
  }
  .seccion--dividida {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .seccion--invertida .dividida__texto {
    order: 0;
  }
  .app-menu {
    display: none;
  }
  .agenda {
    margin: 8px;
  }
}
@media (max-width: 720px) {
  .nav__enlaces {
    display: none;
  }
  .nav__fila {
    justify-content: space-between;
  }
  .hero {
    padding-top: 56px;
  }
  .hero__texto {
    font-size: 18px;
  }
  .seccion {
    padding-top: 96px;
  }
  .funciones {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .etapas {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .agenda__rejilla {
    grid-template-columns: 36px repeat(3, 1fr);
  }
  .agenda__dia:nth-child(n + 5) {
    display: none;
  }
  .cierre {
    border-radius: 0;
  }
  .odonto__fila {
    grid-template-columns: repeat(8, 1fr);
  }
}
