/* ============================================================================
   verbo-dia.css · TARJETA DEL «VERBO DEL DÍA»
   ----------------------------------------------------------------------------
   Regla de la casa: lo primero [hidden]. Todo lo demás, en em sobre `.vd`,
   así los tamaños (tarjeta / rejilla) se cambian con un solo font-size.

   Estados por atributo, no por clase:
     .vd[data-estado="hecho"]   la tarjeta se vuelve azul y sale el tic
     .vd[data-pag="1|2|3"]      frase / calendario / mis números

   La navegación (tres puntos) y el cierre (×) viven SIEMPRE en la esquina
   superior derecha, en la misma posición exacta.
   ========================================================================== */

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- tarjeta */
.vd {
  /* paleta propia, para que la tarjeta no dependa del resto del sitio */
  --vd-fondo: #F7F8FA;
  --vd-fondo-2: #EFF2F6;
  --vd-linea: #E4E7EC;
  --vd-tinta: #1F4E6E;
  --vd-azul: #2C6E9E;
  --vd-azul-suave: rgba(44, 110, 158, 0.09);
  --vd-gris: #7E8898;
  --vd-gris-2: #ABB3BF;
  --vd-hecho-fondo: #2C6E9E;
  --vd-btn-fondo: #2C6E9E;
  --vd-btn-tinta: #FFFFFF;

  position: relative;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  max-width: 22em;
  height: 20.5em;
  font-size: 16px;
  font-family: 'Quicksand', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--vd-tinta);
  background: var(--vd-fondo);
  border: 1px solid var(--vd-linea);
  border-radius: 1.35em;
  box-shadow: 0 0.6em 1.8em rgba(31, 78, 110, 0.10);
  overflow: hidden;
  isolation: isolate;
}

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

/* --------------------------------------------------- esqueleto de carga
   Mientras llegan los mazos (<script> de `mazos/`) la tarjeta no se queda
   vacía: enseña su propia silueta, con la misma forma que el contenido. */
.vd-esq {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  padding: 1.1em 1.25em 1.2em;
  background: var(--vd-fondo);
}

.vd-esq i {
  display: block;
  border-radius: 0.45em;
  background: var(--vd-linea);
  animation: vd-latir 1.3s ease-in-out infinite;
}

.vd-esq i:nth-child(1) { width: 42%; height: 1.5em; }
.vd-esq i:nth-child(2) { width: 28%; height: 0.62em; margin-top: 0.25em; animation-delay: 0.07s; }
.vd-esq i:nth-child(3) { width: 92%; height: 0.95em; margin-top: 0.55em; animation-delay: 0.14s; }
.vd-esq i:nth-child(4) { width: 70%; height: 0.95em; animation-delay: 0.21s; }
.vd-esq i:nth-child(5) { width: 100%; height: 2.2em; margin-top: auto; border-radius: 2em; animation-delay: 0.28s; }

.vd:not([data-cargando]) .vd-esq { display: none; }
.vd[data-cargando] .vd-pags { opacity: 0; pointer-events: none; }

@keyframes vd-latir {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --------------------------------------------------------- caras (páginas) */
.vd-cara,
.vd-hecho,
.vd-cal,
.vd-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.1em 1.25em 1.2em;
}

.vd-cara { transition: opacity 0.28s ease, transform 0.34s ease; }

.vd[data-pag="2"] .vd-cara,
.vd[data-pag="3"] .vd-cara {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

/* ------------------------------------------------------------ cabecera */
.vd-cab {
  display: flex;
  align-items: center;
  gap: 0.45em;
  min-height: 1.4em;
  padding-right: 4.2em;          /* deja sitio a los tres puntos */
}

.vd-sello {
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
  opacity: 0.95;
}

.vd-etq {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--vd-gris);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-etq i {
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--vd-gris-2);
  text-transform: none;
}

/* ------------------------------ la cinta del día de fiesta --------------
   Solo aparece los días que están en `mazos/vdia-especiales.js`. Va en la
   cabecera, pegada a la derecha (el hueco de los tres puntos ya está
   reservado con el `padding-right`), y se encoge antes de empujar nada. */
.vd-fiesta {
  margin: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  max-width: 46%;
  padding: 0.22em 0.6em 0.22em 0.5em;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--fiesta, var(--vd-azul));
  background: var(--fiesta-suave, var(--vd-azul-suave));
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
}

.vd-fiesta b {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-fiesta i {
  font-style: normal;
  opacity: 0.72;
}

.vd-fiesta-ico {
  flex: 0 0 auto;
  font-size: 0.9em;
  opacity: 1 !important;
}

/* el borde de arriba de la tarjeta se tiñe el día de fiesta */
.vd[data-fiesta="1"] .vd-cara {
  box-shadow: inset 0 0.2em 0 var(--fiesta, var(--vd-azul));
}

[data-theme="oscuro"] .vd-fiesta {
  color: #FFFFFF;
  background: var(--fiesta, var(--vd-azul));
}

/* ---------------------------- los tres puntos: siempre en el mismo sitio */
.vd-pags {
  position: absolute;
  top: 0.95em;
  right: 1.05em;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.05em;
  transition: opacity 0.2s ease;
}

.vd[data-estado="hecho"] .vd-pags {
  opacity: 0;
  pointer-events: none;
}

.vd-pag {
  width: 1.3em;
  height: 1.3em;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.vd-pag::after {
  content: '';
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--vd-gris-2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.vd-pag[aria-current="true"]::after {
  background: var(--vd-azul);
  transform: scale(1.35);
}

.vd-pag:hover::after { background: var(--vd-azul); }

/* ------------------------------------------------------------- cuerpo */
.vd-cuerpo {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0.45em;
}

.vd-verbo {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin: 0;
  line-height: 1;
}

.vd-lema {
  font-size: 2.1em;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--vd-azul);
}

.vd-zh {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--vd-gris-2);
}

/* la etiqueta de nivel de la frase que se está viendo (A1, A2, B1…) */
.vd-niv {
  align-self: center;
  padding: 0.18em 0.42em;
  border-radius: 0.38em;
  font-size: 0.6em;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--vd-niv-t, #2E7D68);
  background: var(--vd-niv-f, rgba(46, 125, 104, 0.12));
}

.vd-niv[data-n="B"] { --vd-niv-t: #A06A12; --vd-niv-f: rgba(160, 106, 18, 0.14); }
.vd-niv[data-n="C"] { --vd-niv-t: #7A5AA8; --vd-niv-f: rgba(122, 90, 168, 0.14); }

[data-theme="oscuro"] .vd-niv { --vd-niv-t: #7FD3B8; --vd-niv-f: rgba(127, 211, 184, 0.16); }
[data-theme="oscuro"] .vd-niv[data-n="B"] { --vd-niv-t: #E2B568; --vd-niv-f: rgba(226, 181, 104, 0.16); }
[data-theme="oscuro"] .vd-niv[data-n="C"] { --vd-niv-t: #B79BE0; --vd-niv-f: rgba(183, 155, 224, 0.16); }

/* --------------- bloque de la frase, con las flechas a los lados ----------
   Las flechas solo sirven si el verbo trae más de una frase; se ocultan solas
   cuando no hay nada más que ver. */
.vd-fr {
  position: relative;
  margin-top: 0.7em;
  padding: 0 1.45em;
}

.vd-frase {
  margin: 0;
  font-size: 1.02em;
  font-weight: 500;
  line-height: 1.45;
  color: var(--vd-tinta);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-frase b {
  font-weight: 700;
  color: var(--vd-azul);
  border-bottom: 2px solid var(--vd-azul-suave);
}

.vd-frase-zh {
  margin: 0.45em 0 0;
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1.5;
  color: var(--vd-gris);
}

.vd-paso {
  position: absolute;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--vd-fondo-2);
  color: var(--vd-gris);
  font-family: inherit;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.vd-paso span {
  display: block;
  margin-top: -0.1em;      /* el glifo ‹ › no queda centrado solo */
  font-size: 1.15em;
  font-weight: 700;
}

.vd-paso:hover { background: var(--vd-azul); color: #FFFFFF; }
.vd-paso:focus-visible { outline: 2px solid var(--vd-azul); outline-offset: 2px; }
.vd-paso-ant { left: -0.1em; }
.vd-paso-sig { right: -0.1em; }

/* fila de abajo: estructura a la izquierda, «1/2» a la derecha */
.vd-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  margin-top: 0.85em;
}

.vd-cnt {
  flex: 0 0 auto;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--vd-gris-2);
}

.vd-estr {
  align-self: flex-start;
  margin-top: 0;
  padding: 0.32em 0.62em;
  border-radius: 0.5em;
  background: var(--vd-azul-suave);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--vd-azul);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ---------------------------------------------------------------- pie */
.vd-pie {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-top: auto;
}

.vd-enlace {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  align-self: flex-start;
  max-width: 100%;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--vd-azul);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.vd-enlace i {
  font-style: normal;
  font-weight: 600;
  color: var(--vd-gris-2);
}

.vd-enlace .vd-flecha { font-size: 1.1em; line-height: 0.8; }
.vd-enlace:hover { border-bottom-color: currentColor; }
.vd-enlace:focus-visible { outline: 2px solid var(--vd-azul); outline-offset: 3px; border-radius: 2px; }

.vd-btn {
  width: 100%;
  padding: 0.72em 1em;
  border: 0;
  border-radius: 2em;
  background: var(--vd-btn-fondo);
  color: var(--vd-btn-tinta);
  font-family: inherit;
  font-size: 0.98em;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0.45em 1em rgba(44, 110, 158, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.vd-btn:hover { transform: translateY(-1px); box-shadow: 0 0.6em 1.2em rgba(44, 110, 158, 0.34); }
.vd-btn:active { transform: translateY(0); box-shadow: 0 0.25em 0.6em rgba(44, 110, 158, 0.3); }
.vd-btn:focus-visible { outline: 2px solid var(--vd-azul); outline-offset: 3px; }

/* ya marcado hoy: el botón se apaga y avisa */
.vd-btn-quieto {
  background: var(--vd-fondo-2);
  color: var(--vd-gris);
  box-shadow: none;
  cursor: default;
  font-size: 0.76em;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.9em 1em;
}
.vd-btn-quieto:hover { transform: none; box-shadow: none; }

/* viendo un verbo de otro día: el botón devuelve al de hoy */
.vd-btn-volver {
  background: transparent;
  color: var(--vd-azul);
  border: 1.5px solid var(--vd-azul);
  box-shadow: none;
  font-size: 0.82em;
  letter-spacing: 0.01em;
  padding: 0.85em 1em;
}

.vd-btn-volver:hover {
  background: var(--vd-azul-suave);
  box-shadow: none;
  transform: none;
}

/* ------------------------- resumen de un vistazo (debajo del botón) */
.vd-resumen {
  display: block;
  padding: 0.15em 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.68em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vd-gris);
  text-align: center;
  cursor: pointer;
  transition: color 0.16s ease;
}

.vd-resumen:hover { color: var(--vd-azul); }
.vd-resumen:focus-visible { outline: 2px solid var(--vd-azul); outline-offset: 2px; border-radius: 0.4em; }
.vd-resumen b { font-size: 1em; font-weight: 700; color: var(--vd-azul); }
.vd-resumen .vd-rs-sep { color: var(--vd-gris-2); }
.vd-resumen .vd-rs-nada { font-weight: 600; color: var(--vd-gris-2); }

/* ------------------------------------------------------- cara «hecho» */
.vd-hecho {
  z-index: 2;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  text-align: center;
  background: var(--vd-hecho-fondo);
  color: #FFFFFF;
  clip-path: circle(0% at 50% 88%);
  transition: clip-path 0.6s cubic-bezier(0.62, 0, 0.32, 1);
}

.vd[data-estado="hecho"] .vd-hecho { clip-path: circle(145% at 50% 88%); }

/* Salir del estado «hecho» por navegación no se anima: el azul se quita de
   golpe. La animación larga solo tiene sentido al marcar y al cerrar con la ×. */
.vd-quieto .vd-hecho { transition: none !important; }

/* la × ocupa el sitio de los puntos */
.vd-cerrar {
  position: absolute;
  top: 0.95em;
  right: 1.05em;
  width: 1.35em;
  height: 1.35em;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.vd-cerrar:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.06); }
.vd-cerrar:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.vd-x { font-size: 1.05em; font-weight: 700; line-height: 1; margin-top: -0.06em; }

.vd-tic {
  width: 3.1em;
  height: 3.1em;
  flex: 0 0 auto;
  margin-bottom: 0.35em;
  color: #FFFFFF;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.vd-tic path { stroke-dasharray: 34; stroke-dashoffset: 34; }

.vd[data-estado="hecho"] .vd-tic {
  transform: scale(1);
  opacity: 1;
  transition-delay: 0.26s;
}

.vd[data-estado="hecho"] .vd-tic path {
  animation: vd-trazo 0.42s cubic-bezier(0.65, 0, 0.35, 1) 0.46s forwards;
}

@keyframes vd-trazo { to { stroke-dashoffset: 0; } }

.vd-h-t,
.vd-h-p,
.vd-h-zh,
.vd-h-r {
  margin: 0;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.3s ease, transform 0.34s ease;
}

.vd[data-estado="hecho"] .vd-h-t,
.vd[data-estado="hecho"] .vd-h-p,
.vd[data-estado="hecho"] .vd-h-zh,
.vd[data-estado="hecho"] .vd-h-r {
  opacity: 1;
  transform: translateY(0);
}

.vd-h-t { font-size: 1.15em; font-weight: 700; letter-spacing: 0.01em; }
.vd[data-estado="hecho"] .vd-h-t { transition-delay: 0.5s; }

.vd-h-t i {
  display: block;
  margin-top: 0.15em;
  font-style: normal;
  font-size: 0.78em;
  font-weight: 600;
  opacity: 0.85;
}

.vd-h-p {
  max-width: 15em;
  margin-top: 0.55em;
  font-size: 0.85em;
  font-weight: 500;
  line-height: 1.45;
}
.vd[data-estado="hecho"] .vd-h-p { transition-delay: 0.58s; opacity: 0.94; }

.vd-h-zh {
  margin-top: 0.25em;
  font-size: 0.76em;
  font-weight: 500;
  line-height: 1.5;
}
.vd[data-estado="hecho"] .vd-h-zh { transition-delay: 0.64s; opacity: 0.78; }

.vd-h-r {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  margin-top: 0.9em;
  padding: 0.4em 0.85em;
  border-radius: 2em;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78em;
  font-weight: 600;
}
.vd[data-estado="hecho"] .vd-h-r { transition-delay: 0.7s; }

.vd-h-r b { font-size: 1.15em; font-weight: 700; }
.vd-h-r i {
  font-style: normal;
  margin-left: 0.35em;
  font-weight: 500;
  opacity: 0.8;
}

/* ------------------------------- cabeceras de las páginas 2 y 3 ------ */
.vd-cal-cab {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  padding-right: 4.2em;          /* el mismo hueco de los puntos */
}

.vd-cal-anio {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--vd-gris-2);
}

.vd-cal-mes {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin: 0;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--vd-tinta);
}

.vd-cal-mes i {
  font-style: normal;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--vd-gris-2);
}

/* ------------------------------------------------------ página 2 · calendario */
.vd-cal,
.vd-num {
  z-index: 3;
  background: var(--vd-fondo);
  opacity: 0;
  transform: translateX(1em);
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.vd[data-pag="2"] .vd-cal,
.vd[data-pag="3"] .vd-num {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.vd-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2em;
  margin: 0.9em 0 0.35em;
}

.vd-semana span {
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--vd-gris-2);
  text-align: center;
}

.vd-mes {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: min-content;
  align-content: center;
  gap: 0.35em 0.2em;
  flex: 1 1 auto;
  min-height: 0;
}

.vd-d {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 2.35em;
  height: 2.35em;
  border-radius: 0.4em;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--vd-tinta);
  background: transparent;
}

.vd-d-vacia { background: none; }

.vd-d-marcado {
  background: var(--vd-azul);
  color: #FFFFFF;
  font-weight: 700;
}

/* el día marcado se dibuja como el tic de la cara azul, no como un número */
.vd-tic-dia {
  display: block;
  width: 1.09em;
  height: 1.09em;
  color: currentColor;
}

.vd-d-hoy { box-shadow: inset 0 0 0 1.5px var(--vd-azul); }
.vd-d-marcado.vd-d-hoy { box-shadow: inset 0 0 0 1.5px #FFFFFF; }

.vd-d-futuro { color: var(--vd-gris-2); opacity: 0.55; }

/* día de fiesta: un punto del color del día debajo del número. No cambia el
   día ni el verbo; solo se ve que ese día era especial. */
.vd-d-fiesta { position: relative; }
.vd-d-fiesta::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.26em;
  width: 0.3em;
  height: 0.3em;
  margin-left: -0.15em;
  border-radius: 50%;
  background: var(--fiesta, var(--vd-azul));
}
.vd-d-marcado.vd-d-fiesta::after { background: #FFFFFF; }

/* Día pasado que ya tiene verbo: se puede abrir para recuperarlo (los que
   llegaron a la página más tarde). El aro gris lo distingue del día de hoy,
   que lleva el aro azul. */
.vd-d-abierto {
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--vd-gris-2);
}
.vd-d-abierto:hover,
.vd-d-abierto:focus-visible {
  background: var(--vd-azul);
  color: #FFFFFF;
  outline: none;
}

/* el enlace del pie cuando sirve para recuperar un día */
.vd-enlace-rec {
  color: var(--vd-azul);
  font-weight: 700;
  border-bottom-style: solid;
}

.vd-cal-pie {
  margin: auto 0 0;
  font-size: 0.7em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vd-gris);
  text-align: center;
}

/* --------------------------- página 3 · mis números */
/* Las cifras van arriba y pequeñas: el espacio que se gana es para la lista de
   verbos, que es lo que de verdad quiere ver el alumno. */
.vd-bloque-num {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 0.5em;
}

.vd-cifras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4em;
  margin-top: 0.25em;
}

.vd-cifra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  padding: 0.5em 0.2em 0.55em;
  border-radius: 0.6em;
  background: var(--vd-fondo-2);
}

.vd-cifra b {
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1;
  color: var(--vd-azul);
}

.vd-cifra span {
  font-size: 0.54em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--vd-gris);
  text-align: center;
}

/* Un color por idea (el mismo de toda la casa): naranja = racha, verde = días
   marcados, violeta = verbos. Así la cifra se reconoce sin leer el rótulo. */
.vd-cifra-nar b { color: #D9660F; }
.vd-cifra-ver b { color: #2E7D32; }
.vd-cifra-vio b { color: #6D5BD0; }

[data-theme="oscuro"] .vd-cifra-nar b { color: #F0904A; }
[data-theme="oscuro"] .vd-cifra-ver b { color: #7BD98F; }
[data-theme="oscuro"] .vd-cifra-vio b { color: #B1A3F0; }

.vd-lista-t {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin: 0.85em 0 0;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--vd-gris);
  text-transform: uppercase;
}

.vd-lista-t i {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--vd-gris-2);
  text-transform: none;
}

.vd-chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.35em;
  margin-top: 0.45em;
  padding-right: 0.15em;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;             /* caben todos: la lista se desplaza */
  scrollbar-width: thin;
}

.vd-chip {
  padding: 0.28em 0.6em;
  border: 0;
  border-radius: 2em;
  background: var(--vd-azul-suave);
  font-family: inherit;
  font-size: 0.68em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vd-azul);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.vd-chip:hover { background: var(--vd-azul); color: #FFFFFF; }
.vd-chip:focus-visible { outline: 2px solid var(--vd-azul); outline-offset: 2px; }

.vd-chip-mas { background: none; color: var(--vd-gris-2); }
.vd-chip-vacio { background: none; color: var(--vd-gris-2); font-weight: 600; }

/* ------------------------------------------------- tamaño de rejilla */
.vd[data-tam="tile"] {
  max-width: none;
  height: 100%;
  font-size: 13px;
  border-radius: 1em;
}

.vd[data-tam="tile"] .vd-frase-zh,
.vd[data-tam="tile"] .vd-estr,
.vd[data-tam="tile"] .vd-resumen { display: none; }

.vd[data-tam="tile"] .vd-lema { font-size: 1.85em; }
.vd[data-tam="tile"] .vd-fr { margin-top: 0.45em; padding: 0 1.15em; }
.vd[data-tam="tile"] .vd-frase { font-size: 0.95em; -webkit-line-clamp: 2; }
.vd[data-tam="tile"] .vd-paso { width: 1.32em; height: 1.32em; }
.vd[data-tam="tile"] .vd-paso span { font-size: 1em; }
.vd[data-tam="tile"] .vd-meta { display: none; }
.vd[data-tam="tile"] .vd-btn { padding: 0.65em 1em; font-size: 0.9em; }
.vd[data-tam="tile"] .vd-enlace { font-size: 0.72em; }

/* el calendario pequeño: cuadros casi cuadrados y con el mismo tic */
.vd[data-tam="tile"] { --vd-tic-tam: 11px; }

.vd[data-tam="tile"] .vd-semana { display: none; }

.vd[data-tam="tile"] .vd-mes {
  grid-auto-rows: 1fr;
  align-content: stretch;
  justify-items: center;
  gap: 0.2em;
  margin-top: 0.7em;
  flex: 1 1 auto;
  min-height: 0;
}

.vd[data-tam="tile"] .vd-d {
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;         /* cuadrado, sin rectángulos largos */
  max-width: 100%;
  min-height: 0;
  justify-self: center;
  border-radius: 0.2em;
  font-size: 1em;
  color: transparent;          /* sin números (el tic se pinta aparte) */
  background: var(--vd-linea);
}

.vd[data-tam="tile"] .vd-d-vacia { background: none; }
.vd[data-tam="tile"] .vd-d-marcado { background: var(--vd-azul); }
.vd[data-tam="tile"] .vd-d-futuro {
  background: none;
  box-shadow: inset 0 0 0 1px var(--vd-linea);
  opacity: 1;
}

.vd[data-tam="tile"] .vd-d-hoy { box-shadow: inset 0 0 0 1.5px var(--vd-azul); }
.vd[data-tam="tile"] .vd-d-marcado.vd-d-hoy { box-shadow: inset 0 0 0 1.5px #FFFFFF; }

.vd[data-tam="tile"] .vd-tic-dia {
  display: block;
  width: var(--vd-tic-tam);
  height: var(--vd-tic-tam);
  color: #FFFFFF;
}

.vd[data-tam="tile"] .vd-cal-pie { font-size: 0.66em; }

.vd[data-tam="tile"] .vd-cifras { margin-top: 0.7em; }
.vd[data-tam="tile"] .vd-cifra { padding: 0.45em 0.15em; }
.vd[data-tam="tile"] .vd-chips { max-height: 3.4em; }

/* ------------------------------------------------------------ oscuro */
[data-theme="oscuro"] .vd,
html[data-theme="oscuro"] .vd {
  --vd-fondo: #142433;
  --vd-fondo-2: #1B3040;
  --vd-linea: #24384A;
  --vd-tinta: #D7E3EC;
  --vd-azul: #6FB2DC;
  --vd-azul-suave: rgba(111, 178, 220, 0.14);
  --vd-gris: #8AA5B8;
  --vd-gris-2: #66808F;
  --vd-hecho-fondo: #245A80;
  --vd-btn-fondo: #3E85B8;
  --vd-btn-tinta: #FFFFFF;
  box-shadow: 0 0.6em 1.8em rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------- sin animación */
@media (prefers-reduced-motion: reduce) {
  .vd-cara,
  .vd-hecho,
  .vd-cal,
  .vd-num,
  .vd-tic,
  .vd-h-t,
  .vd-h-p,
  .vd-h-zh,
  .vd-h-r,
  .vd-btn,
  .vd-pag::after,
  .vd-cerrar,
  .vd-paso {
    transition: none !important;
  }
  .vd-esq i { animation: none; }
  .vd[data-estado="hecho"] .vd-tic path { animation: none; stroke-dashoffset: 0; }
}
