/* =============================================================
   Mi Turno Hoy
   1 tokens · 2 reset · 3 estructura · 4 tarjeta de hoy
   5 asistente · 6 componentes · 7 responsive
   ============================================================= */

/* ---------- 1. Tokens (claro completo en :root) ---------- */
:root {
  --fondo:      #F4F6FA;
  --fondo-2:    #E9EDF5;
  --sup:        #FFFFFF;
  --sup-2:      #F7F9FC;
  --tinta:      #10182B;
  --tinta-2:    #3B475F;
  --suave:      #64718A;
  --linea:      #DCE3EE;
  --linea-2:    #C3CEDF;

  --azul:       #1B3A6B;   /* principal */
  --azul-claro: #2E5FA8;
  --azul-suave: #E7EEF9;
  --verde:      #17795E;   /* descanso, resultado favorable */
  --verde-suave:#E2F3ED;
  --ambar:      #9A5F00;   /* advertencia */
  --ambar-suave:#FBF0DC;
  --rojo:       #B3261E;   /* solo errores */
  --rojo-suave: #FBE9E7;
  --noche:      #2B2F6B;   /* turno de noche */
  --noche-suave:#E8E9F6;

  --sombra-s: 0 1px 2px rgba(16,24,43,.05), 0 2px 8px rgba(16,24,43,.05);
  --sombra-m: 0 2px 8px rgba(16,24,43,.07), 0 16px 40px rgba(16,24,43,.09);

  --display: "Archivo", system-ui, -apple-system, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 10px; --r-m: 16px; --r-l: 22px; --r-xl: 28px;
  --gut: clamp(1rem, 4vw, 2rem);
  --maxw: 1120px;
  --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0C1220; --fondo-2: #111A2C; --sup: #151F33; --sup-2: #1B2740;
    --tinta: #E9EEF7; --tinta-2: #BCC8DC; --suave: #8B99B3;
    --linea: #253248; --linea-2: #33435E;
    --azul: #6C9BE8; --azul-claro: #8DB4F0; --azul-suave: #172742;
    --verde: #4FC7A1; --verde-suave: #102E27;
    --ambar: #E0A33A; --ambar-suave: #2E2412;
    --rojo: #FF8A7E; --rojo-suave: #2E1614;
    --noche: #9AA0E8; --noche-suave: #1B1E3A;
    --sombra-s: 0 1px 2px rgba(0,0,0,.4);
    --sombra-m: 0 2px 8px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #0C1220; --fondo-2: #111A2C; --sup: #151F33; --sup-2: #1B2740;
  --tinta: #E9EEF7; --tinta-2: #BCC8DC; --suave: #8B99B3;
  --linea: #253248; --linea-2: #33435E;
  --azul: #6C9BE8; --azul-claro: #8DB4F0; --azul-suave: #172742;
  --verde: #4FC7A1; --verde-suave: #102E27;
  --ambar: #E0A33A; --ambar-suave: #2E2412;
  --rojo: #FF8A7E; --rojo-suave: #2E1614;
  --noche: #9AA0E8; --noche-suave: #1B1E3A;
  --sombra-s: 0 1px 2px rgba(0,0,0,.4);
  --sombra-m: 0 2px 8px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--fondo); color: var(--tinta);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--azul); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 3. Estructura ---------- */
.wrap { width: min(100% - (var(--gut) * 2), var(--maxw)); margin-inline: auto; }
.wrap-read { width: min(100% - (var(--gut) * 2), 700px); }
.oculto { display: none !important; }
.solo-lectores { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.salto { position: fixed; top: -100px; left: 1rem; z-index: 999; padding: .7rem 1.1rem; background: var(--azul); color: #fff; border-radius: 8px; }
.salto:focus { top: 1rem; }

.cabecera {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--fondo) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea);
}
.cab-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinta); }
.marca-icono { width: 30px; height: 30px; flex: none; }
.marca-nombre { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; }
.cab-nav { display: flex; gap: 1.1rem; font-size: .92rem; }
.cab-nav a { color: var(--suave); text-decoration: none; }
.cab-nav a:hover, .cab-nav a[aria-current="page"] { color: var(--azul); }
.tema-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--linea); background: var(--sup); color: var(--tinta-2); }
.tema-btn:hover { border-color: var(--linea-2); }

.pie { border-top: 1px solid var(--linea); padding: 2.2rem 0; margin-top: 3rem; background: var(--fondo); }
.pie-in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.pie p { font-size: .85rem; color: var(--suave); }
.pie nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.pie nav a { font-size: .85rem; color: var(--suave); text-decoration: none; }
.pie nav a:hover { color: var(--azul); text-decoration: underline; }

/* ---------- 4. La tarjeta de HOY ---------- */
.hoy { padding: clamp(1.2rem, 4vw, 2.2rem) 0 1rem; }
.hoy-fecha { font-size: .92rem; color: var(--suave); }   /* la mayúscula inicial la pone el JS: capitalize destroza "24 de agosto" */

.estado {
  margin-top: .7rem; border-radius: var(--r-xl); padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--sup); border: 1px solid var(--linea); box-shadow: var(--sombra-m);
  border-top: 6px solid var(--acento, var(--azul));
}
.estado[data-tipo="work"]  { --acento: var(--azul);  --acento-suave: var(--azul-suave); }
.estado[data-tipo="night"] { --acento: var(--noche); --acento-suave: var(--noche-suave); }
.estado[data-tipo="off"]   { --acento: var(--verde); --acento-suave: var(--verde-suave); }

.estado-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acento); background: var(--acento-suave); padding: .3rem .7rem; border-radius: 999px; }
.estado-titulo { font-family: var(--display); font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 700; margin-top: .7rem; color: var(--acento); letter-spacing: -.03em; }
.estado-horario { font-size: clamp(1.05rem, 3vw, 1.35rem); color: var(--tinta-2); margin-top: .3rem; font-weight: 500; }

.cuenta { margin-top: 1.3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.cuenta-num { font-family: var(--display); font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 700; color: var(--tinta); letter-spacing: -.02em; }
.cuenta-txt { font-size: .98rem; color: var(--suave); }

.barra { margin-top: .9rem; height: 10px; border-radius: 999px; background: var(--fondo-2); overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--acento); border-radius: 999px; transition: width .6s var(--ease); }

.datos { margin-top: 1.5rem; display: grid; gap: .8rem; grid-template-columns: 1fr; padding-top: 1.3rem; border-top: 1px solid var(--linea); }
.dato { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.dato dt { font-size: .9rem; color: var(--suave); }
.dato dd { font-size: .98rem; font-weight: 600; text-align: right; }
.dato dd small { display: block; font-weight: 400; font-size: .8rem; color: var(--suave); }

.acciones { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- 5. Componentes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.15rem; border-radius: var(--r-m); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-p { background: var(--azul); color: #fff; }
.btn-p:hover { background: var(--azul-claro); }
.btn-s { background: var(--sup-2); color: var(--tinta-2); border-color: var(--linea-2); }
.btn-s:hover { border-color: var(--suave); color: var(--tinta); }
.btn-sm { padding: .5rem .85rem; font-size: .87rem; }

.aviso { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--r-m); font-size: .88rem; line-height: 1.45; }
.aviso-info { background: var(--azul-suave); color: var(--azul); }
.aviso-ok   { background: var(--verde-suave); color: var(--verde); }
.aviso-warn { background: var(--ambar-suave); color: var(--ambar); }
.aviso-err  { background: var(--rojo-suave); color: var(--rojo); }
.aviso b { flex: none; }

.tarjeta { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r-l); padding: clamp(1.1rem, 3vw, 1.6rem); box-shadow: var(--sombra-s); }

.campo { display: flex; flex-direction: column; gap: .35rem; }
.campo > label { font-size: .88rem; font-weight: 600; color: var(--tinta-2); }
.campo .pista { font-size: .82rem; color: var(--suave); }
.in {
  width: 100%; padding: .7rem .85rem; border-radius: var(--r-m);
  border: 1.5px solid var(--linea-2); background: var(--sup-2); color: var(--tinta);
  transition: border-color .18s var(--ease);
}
.in:hover { border-color: var(--suave); }
.in:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-suave); }
select.in { appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--suave) 50%), linear-gradient(135deg,var(--suave) 50%,transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; background-size: 6px 6px,6px 6px; background-repeat: no-repeat; padding-right: 2rem; }

/* ---------- 6. Asistente ---------- */
.asis { margin-top: 1rem; }
.asis-pasos { display: flex; gap: .4rem; margin-bottom: 1.3rem; }
.asis-pasos i { flex: 1; height: 5px; border-radius: 999px; background: var(--linea); transition: background .3s var(--ease); }
.asis-pasos i.on { background: var(--azul); }
.asis-titulo { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.asis-sub { color: var(--suave); margin-top: .4rem; font-size: .95rem; }
.asis-cuerpo { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.asis-nav { margin-top: 1.6rem; display: flex; gap: .5rem; justify-content: space-between; }

.patrones { display: grid; gap: .6rem; grid-template-columns: 1fr; }
.patron {
  text-align: left; padding: .9rem 1.05rem; border-radius: var(--r-m);
  border: 1.5px solid var(--linea); background: var(--sup-2);
  display: flex; flex-direction: column; gap: .2rem; transition: all .18s var(--ease);
}
.patron:hover { border-color: var(--linea-2); }
.patron[aria-pressed="true"] { border-color: var(--azul); background: var(--azul-suave); }
.patron b { font-size: .98rem; }
.patron small { font-size: .83rem; color: var(--suave); }
.patron .sec { font-size: .78rem; color: var(--azul); font-weight: 600; margin-top: .15rem; }

.tira { display: flex; flex-wrap: wrap; gap: 3px; margin-top: .5rem; }
.tira i {
  width: 22px; height: 26px; border-radius: 5px; display: grid; place-items: center;
  font-size: .62rem; font-weight: 700; color: #fff; font-style: normal;
}

.grid2 { display: grid; gap: .8rem; grid-template-columns: 1fr; }

/* ---------- 7. Contenido ---------- */
.sec { padding: clamp(2rem, 5vw, 3.2rem) 0; }
.sec-alt { background: var(--fondo-2); border-block: 1px solid var(--linea); }
.sec-t { font-size: clamp(1.4rem, 3.5vw, 2rem); }
.sec-l { margin-top: .5rem; color: var(--suave); max-width: 58ch; }
.wrap-read h3 { font-size: 1.15rem; margin-top: 1.7rem; }
.wrap-read p { margin-top: .75rem; color: var(--tinta-2); }
.faq { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.faq details { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r-m); }
.faq summary { padding: .9rem 2.5rem .9rem 1.05rem; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--azul); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.05rem 1.05rem; color: var(--suave); font-size: .92rem; }

.legal { font-size: .82rem; color: var(--suave); margin-top: 1.2rem; padding: .8rem 1rem; border-left: 3px solid var(--ambar); background: var(--ambar-suave); border-radius: 0 var(--r-s) var(--r-s) 0; }
.legal strong { color: var(--ambar); }

/* ---------- 8. Responsive ---------- */
@media (min-width: 620px) {
  .datos { grid-template-columns: 1fr 1fr; gap: .8rem 2rem; }
  .patrones { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .patrones { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .barra i { transition: none; }
}

/* ---------- 9. Huecos de publicidad (reservados, nunca junto a controles) ---------- */
.anuncio { margin: 1.6rem auto; max-width: 760px; }
.anuncio-vacio {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  border: 1.5px dashed var(--linea-2); border-radius: var(--r-m);
  background: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--linea) 40%, transparent) 9px 10px);
  color: var(--suave); text-align: center; padding: 1rem;
}
.anuncio-tag { font-size: .74rem; letter-spacing: .22em; font-weight: 700; }
.anuncio-med { font-size: .68rem; opacity: .7; font-variant-numeric: tabular-nums; }
.anuncio-nota { font-size: .72rem; opacity: .6; margin-top: .2rem; }

/* ---------- 10. Calendario ---------- */
.cal-barra { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0 .8rem; }
.cal-nav { display: flex; align-items: center; gap: .6rem; }
.cal-mes { font-size: clamp(1.15rem, 3.5vw, 1.5rem); min-width: 8.5ch; }
.cal-caja { padding: clamp(.7rem, 2vw, 1.1rem); }
.cal-cab, .cal-rejilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cab { margin-bottom: 6px; }
.cal-cab span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--suave); letter-spacing: .06em; }
.cal-hueco { aspect-ratio: 1; }
.cal-dia {
  aspect-ratio: 1; border-radius: 9px; border: 1.5px solid transparent;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 2px; text-align: center; transition: transform .12s var(--ease), border-color .15s var(--ease);
}
.cal-dia:hover { transform: scale(1.05); border-color: var(--c); }
.cal-num { font-size: .78rem; font-weight: 700; color: var(--tinta); font-variant-numeric: tabular-nums; }
.cal-cod { font-size: .6rem; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .03em; }
.cal-h { font-size: .55rem; color: var(--suave); font-variant-numeric: tabular-nums; }
.cal-dia.es-hoy { border-color: var(--tinta); box-shadow: 0 0 0 2px var(--fondo), 0 0 0 3.5px var(--tinta); }
.cal-dia.es-ex::after { content: "•"; position: absolute; }
.cal-dia.es-ex { position: relative; border-style: dashed; border-color: var(--c); }

.cal-leyenda { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--linea); }
.ley { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--tinta-2); }
.ley i { width: 11px; height: 11px; border-radius: 3px; flex: none; }

.cal-tot { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.tot { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r-m); padding: .7rem .85rem; }
.tot dt { font-size: .78rem; color: var(--suave); }
.tot dd { font-size: 1.05rem; font-weight: 700; margin-top: .1rem; }

.cal-exp { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem; }

.dia-dlg { border: 0; padding: 0; background: none; max-width: min(92vw, 420px); }
.dia-dlg::backdrop { background: rgba(8,14,26,.6); backdrop-filter: blur(3px); }
.dia-in { position: relative; background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r-l); padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--sombra-m); }
.dia-x { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; color: var(--suave); background: var(--sup-2); border: 1px solid var(--linea); }

@media (min-width: 620px) { .cal-tot { grid-template-columns: repeat(5, 1fr); } }
@media print {
  .cabecera, .pie, .cal-exp, .anuncio, .salto, .sec-alt { display: none !important; }
  body { background: #fff; color: #000; }
  .cal-caja { border: 1px solid #999; box-shadow: none; }
}

/* ---------- 11. Calculadora de horas ---------- */
.calc-cols { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.4rem; align-items: start; }
.tabla-scroll { overflow-x: auto; margin: -.3rem; padding: .3rem; }
.tabla-h { width: 100%; border-collapse: collapse; min-width: 560px; }
.tabla-h th {
  text-align: left; font-size: .72rem; font-weight: 700; color: var(--suave);
  text-transform: uppercase; letter-spacing: .05em; padding: 0 .35rem .5rem; vertical-align: bottom;
}
.tabla-h th small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .68rem; }
.tabla-h td { padding: .2rem .2rem; vertical-align: middle; }
.in-sm { padding: .45rem .5rem; font-size: .88rem; border-radius: 9px; }
.tabla-h tr.fila-mal .in-sm { border-color: var(--rojo); }
.td-res { font-weight: 700; font-size: .92rem; white-space: nowrap; padding-left: .5rem !important; }
.td-res small { display: block; font-weight: 500; font-size: .68rem; }
.td-extra { color: var(--ambar); }
.td-noche { color: var(--noche); }
.td-err { color: var(--rojo); }
.quitar {
  width: 30px; height: 30px; border-radius: 8px; color: var(--suave); font-size: 1.1rem; line-height: 1;
  border: 1px solid transparent;
}
.quitar:hover { color: var(--rojo); background: var(--rojo-suave); }
.calc-acc { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }

.reglas { margin-top: 1rem; }
.reglas summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }
.reglas summary::-webkit-details-marker { display: none; }
.reglas summary::before { content: "⚙"; margin-right: .3rem; color: var(--suave); }

.res-caja { position: sticky; top: 76px; }
.res-grande { margin-top: .8rem; padding-bottom: .9rem; border-bottom: 1px solid var(--linea); }
.res-num { display: block; font-family: var(--display); font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 700; letter-spacing: -.03em; color: var(--azul); }
.res-txt { font-size: .86rem; color: var(--suave); }
.res-lista { margin-top: .9rem; display: flex; flex-direction: column; gap: .4rem; }
.res-lista > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.res-lista dt { font-size: .86rem; color: var(--suave); }
.res-lista dd { font-size: .92rem; font-weight: 600; }
#formula code { font-size: .8rem; background: var(--sup-2); padding: .1rem .35rem; border-radius: 5px; }

@media (min-width: 900px) {
  .calc-cols { grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 1.3rem; }
}
@media print {
  .calc-acc, .reglas, .anuncio, .cabecera, .pie, .salto { display: none !important; }
  .calc-cols { grid-template-columns: 1fr; }
  .res-caja { position: static; }
  body { background: #fff; color: #000; }
}
/* los minutos de pausa se cortaban dentro de una columna estrecha */
.tabla-h td input[type="number"] { min-width: 68px; }
.tabla-h td input[type="date"] { min-width: 132px; }
.tabla-h td input[type="time"] { min-width: 104px; }

/* ---------- 12. Guías de turnos ---------- */
.miga { font-size: .82rem; color: var(--suave); margin-bottom: .8rem; }
.miga a { color: var(--suave); text-decoration: none; }
.miga a:hover { color: var(--azul); text-decoration: underline; }
.tira-g i { width: 26px; height: 30px; border-radius: 6px; font-size: .66rem; }
.cta-guia {
  margin-top: 1.8rem; padding: 1.3rem 1.4rem; border-radius: var(--r-l);
  background: var(--azul-suave); border: 1px solid color-mix(in srgb, var(--azul) 25%, transparent);
}
.cta-guia b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--azul); }
.cta-guia p { margin-top: .35rem; font-size: .92rem; color: var(--tinta-2); }
.cta-guia .btn { margin-top: .9rem; }
.guias-lista { display: grid; gap: .7rem; grid-template-columns: 1fr; }
.guia-card {
  display: flex; flex-direction: column; gap: .2rem; text-decoration: none;
  padding: .95rem 1.1rem; border-radius: var(--r-m);
  background: var(--sup); border: 1px solid var(--linea); transition: all .18s var(--ease);
}
.guia-card:hover { border-color: var(--azul); transform: translateY(-1px); }
.guia-card b { color: var(--tinta); font-size: .98rem; }
.guia-card span { font-size: .85rem; color: var(--suave); }
.guia-datos { font-size: .78rem !important; color: var(--azul) !important; font-weight: 600; margin-top: .2rem; }
@media (min-width: 720px) { .guias-lista { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .guia-card:hover { transform: none; } }
.lang { font-size: .78rem; font-weight: 700; letter-spacing: .06em; padding: .25rem .5rem; border: 1px solid var(--linea-2); border-radius: 7px; color: var(--suave) !important; }
.lang:hover { border-color: var(--azul); color: var(--azul) !important; }
