/* Cartilla y expediente — Veterinaria Huellitas Sanas (demo de infoweb.mx)
   Paleta: menta (#CFEFE1), verde clínica (#1E6F58), blanco, toque de naranja (#F08A3C).
   Tipos: Baloo 2 (títulos, redonda y amable) · Figtree (texto) · Courier Prime (pasaporte y sellos). */
:root {
  --menta: #CFEFE1;
  --menta-2: #E8F7F0;
  --fondo: #F4FBF8;
  --verde: #1E6F58;
  --verde-osc: #134B3C;
  --tinta: #1D2B27;
  --gris: #4F5E59;
  --linea: #CFE5DA;
  --naranja: #F08A3C;
  --naranja-osc: #A44B17;
  --blanco: #fff;
  --papel: #FFFDF6;
  --pluma: #1C2C6E;
  --t-rojo: #B32F38;
  --t-azul: #22509E;
  --t-violeta: #5A3D9C;
  --t-verde: #1D6B55;
  --t-naranja: #B9531A;
  --r: 18px;
  --cab: 140px;
  --tabs: 64px;
  --sombra: 0 10px 30px rgba(19, 75, 60, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cab) + 12px); }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 400 1rem/1.5 'Figtree', system-ui, sans-serif;
  padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom));
}
body.rol-dueno { padding-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: 'Baloo 2', 'Figtree', sans-serif; line-height: 1.12; color: var(--verde-osc); margin: 0; }
a { color: var(--verde); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--verde); color: #fff; padding: .6rem 1rem; z-index: 100; }
.saltar:focus { left: 1rem; }
[hidden] { display: none !important; }

/* ── Cabecera ── */
.demo-banner { background: #2b2620; color: #f2ece1; text-align: center; font-size: .8rem; line-height: 1.35; padding: .35rem .9rem; letter-spacing: .01em; }
@media (min-width: 640px) { .demo-banner { font-size: .9rem; } }
.cab { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--linea); }
.cab-barra { display: flex; align-items: center; gap: .6rem; max-width: 760px; margin: 0 auto; padding: .45rem 1rem; }
.marca { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--verde-osc); margin-right: auto; min-width: 0; }
.marca-ico { width: 2rem; height: 2rem; color: var(--naranja); flex: none; }
.marca-txt { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.marca-txt strong { font-family: 'Baloo 2', sans-serif; font-size: 1.08rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca-txt small { color: var(--gris); font-size: .74rem; }
.cab-acciones { display: flex; gap: .3rem; }
.btn-icono { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--menta-2); color: var(--verde-osc); cursor: pointer; }
.btn-icono svg { width: 22px; height: 22px; }
.btn-icono:disabled { opacity: .35; cursor: default; }
#btn-sonido[aria-pressed="true"] .ico-off, #btn-sonido[aria-pressed="false"] .ico-on { display: none; }
.rol { display: flex; gap: 3px; padding: 3px; background: var(--menta-2); border-radius: 999px; flex: 0 1 330px; min-width: 0; }
.rol button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: .4rem .5rem; font-weight: 700; font-size: .9rem; line-height: 1.1; color: var(--verde-osc); cursor: pointer; min-height: 42px; transition: background .2s, color .2s; }
@media (max-width: 600px) {
  .marca { display: none; }
  .cab-barra { padding: .4rem .75rem; gap: .4rem; }
  .rol { flex: 1 1 auto; }
  .rol button { font-size: .8rem; padding: .35rem .3rem; }
  .cab-acciones { gap: .25rem; }
}
.rol button[aria-pressed="true"] { background: var(--verde); color: #fff; box-shadow: 0 3px 10px rgba(30, 111, 88, .3); }

/* ── Estructura ── */
.app { max-width: 760px; margin: 0 auto; padding: 0 1rem 1rem; outline: none; }
.vista { padding-top: 1rem; }
.intro { margin: .4rem 0 1rem; }
.intro-ojo { margin: 0 0 .25rem; color: var(--naranja-osc); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
.intro h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 800; }
.intro-lema { margin: .35rem 0 0; color: var(--gris); max-width: 46ch; }
.intro-corta h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
.sub { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.ayuda { color: var(--gris); font-size: .92rem; margin: .3rem 0 .8rem; }
.nota { color: var(--gris); font-size: .8rem; margin: .4rem 0 0; }
.vacio { background: var(--menta-2); border-radius: var(--r); padding: 1.1rem; text-align: center; color: var(--verde-osc); font-weight: 600; }
.ok { color: var(--verde); font-weight: 600; }
.link { color: var(--verde); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-size: .92rem; display: inline-flex; align-items: center; min-height: 44px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 999px; padding: .75rem 1.25rem; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; min-height: 46px; transition: transform .15s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-pri { background: var(--verde); color: #fff; }
.btn-pri:hover { background: var(--verde-osc); }
.btn-sec { background: #fff; color: var(--verde-osc); box-shadow: inset 0 0 0 2px var(--menta); }
.btn-chico { padding: .5rem .95rem; font-size: .92rem; min-height: 40px; }
.btn-wa { background: #0F7A6E; color: #fff; }
.btn-wa:hover { background: #0B6359; }
.ico-wa { width: 1.35rem; height: 1.35rem; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 1rem; }
.chip { border: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--menta); border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: .9rem; color: var(--verde-osc); cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--verde); color: #fff; box-shadow: none; }

.estado { display: inline-block; border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.est-vencida { background: #FBE1DC; color: #8E2419; }
.est-toca { background: #FFE6CF; color: #7F3D10; }
.est-proxima { background: #E2ECFA; color: #1F4579; }
.est-aldia { background: #DCF2E8; color: #145343; }

/* ── Barra de pestañas (clínica) ── */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: center; background: #fff; box-shadow: 0 -1px 0 var(--linea), 0 -6px 20px rgba(19, 75, 60, .08); padding: 0 .4rem env(safe-area-inset-bottom); }
.tabs a { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabs); text-decoration: none; color: var(--gris); font-size: .78rem; font-weight: 600; position: relative; }
.tabs svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--verde); }
.tabs a[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--naranja); }
.tab-badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 19px; height: 19px; border-radius: 10px; background: var(--t-rojo); color: #fff; font-size: .72rem; font-style: normal; display: grid; place-items: center; padding: 0 5px; }
.rol-dueno .tabs { display: none; }

/* ── Botón fijo de contacto ── */
.cta-fijo { position: fixed; right: 12px; bottom: calc(var(--tabs) + 12px + env(safe-area-inset-bottom)); z-index: 24; display: flex; align-items: center; gap: .45rem; background: #0F7A6E; color: #fff; text-decoration: none; border-radius: 999px; padding: .5rem .9rem .5rem .65rem; min-height: 44px; font-size: .82rem; box-shadow: 0 6px 18px rgba(15, 122, 110, .35); transition: opacity .25s, transform .25s; }
.cta-fijo .ico-wa { width: 1.25rem; height: 1.25rem; }
.cta-fijo.oculto, .con-guia .cta-fijo { opacity: 0; transform: translateY(10px); pointer-events: none; }
.rol-dueno .cta-fijo { bottom: calc(14px + env(safe-area-inset-bottom)); }

/* ── HOY: sala de espera ── */
.hoy-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin-bottom: .6rem; }
.hoy-fecha { margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--verde-osc); }
.hoy-fecha::first-letter { text-transform: uppercase; }
.hoy-res { margin: 0; color: var(--gris); font-size: .9rem; }
.hoy-res b { color: var(--verde-osc); }

.sala { position: relative; aspect-ratio: 4 / 4.5; border-radius: 26px; overflow: hidden; box-shadow: var(--sombra); background: #EADFCB; isolation: isolate; }
.sala-pared { position: absolute; left: 0; right: 0; top: 0; height: 39%; background: linear-gradient(#D6F2E5, #C6EBDA); }
.sala-pared::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: #A9DCC5; }
.sala-ventana { position: absolute; left: 8%; top: 18%; width: 23%; height: 40%; border-radius: 10px; background: linear-gradient(160deg, #F4FBFF 0 45%, #DDF1FA 45%); box-shadow: inset 0 0 0 5px #fff; }
.sala-ventana::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; margin-left: -2.5px; background: #fff; }
.sala-cuadro { position: absolute; left: 44%; top: 20%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 0 #A9DCC5; }
.sala-cuadro svg { width: 62%; fill: var(--naranja); }
.sala-planta { position: absolute; right: 6%; top: 34%; width: 11%; height: 25%; z-index: 1; }
.sala-planta::before { content: ''; position: absolute; left: 14%; right: 14%; bottom: 0; height: 40%; background: var(--naranja); border-radius: 4px 4px 12px 12px; }
.sala-planta::after { content: ''; position: absolute; left: 0; right: 0; bottom: 34%; height: 90%; background: radial-gradient(circle at 30% 60%, #3E9A63 0 22%, transparent 23%), radial-gradient(circle at 70% 50%, #2F8355 0 24%, transparent 25%), radial-gradient(circle at 50% 25%, #4FAE73 0 25%, transparent 26%); }
.sala::before { content: ''; position: absolute; left: 0; right: 0; top: 39%; height: 13%; background: repeating-linear-gradient(90deg, #EFE3CE 0 24px, #E6D8BF 24px 25px), #EFE3CE; z-index: -1; }
.sala-banca { position: absolute; left: 3%; right: 3%; top: 30.5%; height: 6%; border-radius: 10px; background: linear-gradient(#F59A55, #E07A2E); box-shadow: 0 4px 0 #B85F21; }
.sala-banca::before, .sala-banca::after { content: ''; position: absolute; top: 100%; width: 5px; height: 160%; background: #B88A5E; }
.sala-banca::before { left: 8%; }
.sala-banca::after { right: 8%; }
.sala-letrero { position: absolute; margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: .82rem; color: var(--verde-osc); background: rgba(255, 255, 255, .8); border-radius: 999px; padding: .05rem .6rem; }
.sala-letrero-esp { left: 4%; top: 44%; }
.sala-consul { position: absolute; left: 0; right: 0; top: 53%; bottom: 0; background: linear-gradient(#BFE8D6 0 52%, #E9EEF0 52%); border-top: 7px solid #fff; }
.sala-consul .sala-letrero { left: 4%; top: 8%; }
.sala-puerta { position: absolute; left: 6%; top: -7px; width: 18%; height: 7px; background: #E9EEF0; }
.sala-mesa { position: absolute; left: 30%; width: 40%; top: 62%; height: 9%; border-radius: 6px; background: linear-gradient(#9FE0C6 0 45%, #B9C3C7 45%); box-shadow: 0 6px 0 #8B979C; }
.sala-mesa::before, .sala-mesa::after { content: ''; position: absolute; top: 100%; width: 6px; height: 120%; background: #9AA6AA; }
.sala-mesa::before { left: 8%; }
.sala-mesa::after { right: 8%; }
.sala-lampara { position: absolute; left: 47%; top: 0; width: 6%; height: 18%; background: linear-gradient(90deg, transparent 45%, #9AA6AA 45% 55%, transparent 55%); }
.sala-lampara::after { content: ''; position: absolute; left: -60%; bottom: 0; width: 220%; height: 34%; border-radius: 50% 50% 8px 8px; background: #F4F7F8; box-shadow: 0 6px 18px rgba(255, 240, 200, .9); }
.sala-vacia { position: absolute; left: 10%; right: 10%; top: 12%; text-align: center; font-weight: 600; color: var(--verde-osc); }

.mascota { position: absolute; width: 15.5%; transform: translate(-50%, -100%); border: 0; padding: 0; background: none; cursor: pointer; z-index: 3; display: flex; flex-direction: column; align-items: center;
  transition: left 1.1s cubic-bezier(.45, .05, .4, 1), top 1.1s cubic-bezier(.45, .05, .4, 1); }
.m-cuerpo { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 5px 12px rgba(19, 75, 60, .28); background: #fff; transform-origin: 50% 100%; }
.m-cuerpo img { width: 100%; height: 100%; object-fit: cover; }
.esperando .m-cuerpo { animation: respira 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes respira { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-2.5deg); } }
.caminando { z-index: 6; }
.caminando .m-cuerpo { animation: brinca .27s ease-in-out infinite alternate; }
@keyframes brinca { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-9px) rotate(4deg); } }
.m-nombre { margin-top: 3px; font-size: .72rem; font-weight: 700; color: var(--verde-osc); background: #fff; border-radius: 999px; padding: 0 .4rem; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.m-hora { font-size: .66rem; font-weight: 600; color: var(--gris); background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 0 .3rem; margin-top: 1px; }
.mascota.sel .m-cuerpo { border-color: var(--naranja); box-shadow: 0 0 0 4px rgba(240, 138, 60, .35), 0 6px 14px rgba(19, 75, 60, .3); }
.mascota.sel .m-nombre { background: var(--naranja); color: #2b1606; }
.en-consulta { width: 19%; z-index: 4; }
.en-consulta .m-cuerpo { animation: none; }
.en-consulta .m-hora { display: none; }
.m-sello { position: absolute; right: -10%; top: -6%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 2.5px solid var(--t-rojo); display: grid; place-items: center; transform: rotate(-14deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.m-sello svg { width: 64%; fill: var(--t-rojo); }
.m-sello-cae { animation: badge .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes badge { 0% { transform: translateY(-60px) scale(2.2) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-14deg); } }
.sala-vet { position: absolute; width: 17%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; z-index: 2; animation: aparece .5s ease both; }
.sala-vet img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.sala-vet small { font-size: .66rem; font-weight: 700; background: #fff; border-radius: 999px; padding: 0 .35rem; margin-top: 2px; white-space: nowrap; color: var(--verde-osc); }
@keyframes aparece { from { opacity: 0; transform: translate(-50%, -90%); } }

.sala-panel { margin-top: .8rem; background: #fff; border-radius: var(--r); padding: .9rem; box-shadow: var(--sombra); min-height: 6.5rem; }
.panel-cita { display: flex; gap: .8rem; align-items: center; }
.panel-cita img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.panel-cita p { margin: 0; }
.pc-tit { font-size: 1.05rem; }
.pc-mot { font-weight: 600; color: var(--verde-osc); }
.pc-meta { color: var(--gris); font-size: .85rem; }
.pc-acc { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.pc-acc .btn { flex: 1 1 auto; }
.atendidos, .equipo { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.atendidos li { display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 14px; padding: .6rem .8rem; }
.atendidos img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.atendidos span { flex: 1; font-size: .92rem; }
.equipo { grid-template-columns: repeat(3, 1fr); }
.equipo li { background: #fff; border-radius: 16px; overflow: hidden; }
.equipo img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.equipo span { display: flex; flex-direction: column; padding: .5rem .6rem .7rem; font-size: .85rem; line-height: 1.25; }
.equipo small { color: var(--gris); }
.clinica-fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .6rem; }
.clinica-fotos figure { margin: 0; }
.clinica-fotos img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }
.clinica-fotos figcaption { font-size: .75rem; color: var(--gris); text-align: center; margin-top: .2rem; }
@media (max-width: 520px) {
  .equipo { grid-template-columns: 1fr; }
  .equipo li { display: flex; align-items: center; }
  .equipo img { width: 88px; flex: none; }
  .clinica-fotos { grid-template-columns: repeat(2, 1fr); }
}

/* ── Pacientes ── */
.buscar { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: 0 1rem; box-shadow: inset 0 0 0 2px var(--menta); }
.buscar svg { width: 20px; height: 20px; color: var(--gris); flex: none; }
.buscar input { flex: 1; border: 0; background: none; font: inherit; padding: .75rem 0; min-width: 0; outline: none; color: var(--tinta); }
.buscar:focus-within { box-shadow: inset 0 0 0 2px var(--verde); }
.pacientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .6rem; }
.tarjeta-pac { display: flex; align-items: center; gap: .75rem; background: #fff; border-radius: var(--r); padding: .6rem .8rem .6rem .6rem; text-decoration: none; color: var(--tinta); box-shadow: 0 2px 0 var(--linea); transition: transform .15s; position: relative; }
.tarjeta-pac:active { transform: scale(.98); }
.tarjeta-pac img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.tp-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.tp-txt strong { font-family: 'Baloo 2', sans-serif; font-size: 1.15rem; color: var(--verde-osc); }
.tp-txt small { color: var(--gris); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tarjeta-pac .estado { position: absolute; right: .7rem; top: .6rem; font-size: .72rem; }

/* ── Expediente ── */
.volver { margin: 0 0 .6rem; }
.ficha { display: flex; gap: 1rem; align-items: center; }
.ficha-foto { position: relative; width: 38%; max-width: 170px; flex: none; }
.ficha-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--sombra); }
.btn-foto { position: absolute; right: -6px; bottom: -6px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--naranja); color: #2b1606; display: grid; place-items: center; cursor: pointer; }
.btn-foto svg { width: 22px; height: 22px; }
.ficha-txt { min-width: 0; }
.ficha-ojo { margin: 0; font-size: .85rem; font-weight: 600; color: var(--naranja-osc); }
.ficha h1 { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 800; }
.ficha-meta, .ficha-dueno { margin: .1rem 0; font-size: .92rem; color: var(--gris); }
.ficha-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.chip-dato { background: var(--menta-2); color: var(--verde-osc); border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; font-weight: 600; }
.chip-dato.alergia { background: #FFE6CF; color: #7F3D10; }
.caracter { margin: 1rem 0; background: #fff; border-radius: var(--r); padding: .8rem 1rem; font-size: .95rem; border-left: 5px solid var(--naranja); }
.caracter span { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--naranja-osc); }
.humana { display: flex; gap: 1rem; align-items: flex-start; background: linear-gradient(135deg, #FFF3E6, #FFE7D1); border-radius: var(--r); padding: 1rem; margin: 1rem 0; }
.humana-num { margin: 0; flex: none; width: 5.2rem; height: 5.2rem; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(240, 138, 60, .25); }
.humana-num b { font-family: 'Baloo 2', sans-serif; font-size: 2rem; line-height: 1; color: var(--naranja-osc); }
.humana-num small { font-size: .62rem; font-weight: 700; color: var(--naranja-osc); text-align: center; line-height: 1.1; }
.humana p { margin: 0; }
.humana ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.exp-nav { position: sticky; top: var(--cab); z-index: 10; display: flex; gap: .4rem; background: var(--fondo); padding: .5rem 0; margin: 0 0 .2rem; }
.exp-nav a { flex: 1; text-align: center; background: #fff; border-radius: 999px; padding: .45rem; font-weight: 600; font-size: .88rem; text-decoration: none; color: var(--verde-osc); box-shadow: inset 0 0 0 2px var(--menta); }
.exp-sec { margin: 1.4rem 0; scroll-margin-top: calc(var(--cab) + 64px); }
.con-guia .exp-sec { scroll-margin-top: calc(var(--cab) + 96px); }
.exp-sec h2 { font-size: 1.5rem; }
.sec-cab { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .2rem; }
.sigue { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.sigue li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem .6rem; background: #fff; border-radius: 14px; padding: .6rem .8rem; }
.sigue-n { font-weight: 600; font-size: .95rem; }
.sigue-n small { color: var(--gris); font-weight: 400; }
.trat { padding-left: 1.2rem; }
.trat small { color: var(--gris); }

/* ── Pasaporte ── */
.pas { width: min(100%, 360px, calc((100svh - var(--cab) - 170px) * .76)); min-width: 260px; margin: .6rem auto 0; }
.pas-escena { perspective: 1800px; padding: 6px 10px 18px 2px; overflow: hidden; margin: 0 -10px 0 -2px; }
.pas-libro { position: relative; width: 100%; aspect-ratio: .76; transform-style: preserve-3d; cursor: pointer; touch-action: pan-y; }
.pas-libro::before { content: ''; position: absolute; inset: 4px -6px -6px 4px; border-radius: 6px 16px 16px 6px; background: #E9E1CC; box-shadow: 2px 2px 0 #DCD2B9, 4px 4px 0 #CFC4A9, 0 18px 30px rgba(19, 75, 60, .22); }
.hoja { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.32, .7, .26, 1); }
.hoja.vuelta { transform: rotateY(-178deg); }
.cara { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4px 16px 16px 4px; overflow: hidden; }
.frente { background:
  linear-gradient(90deg, rgba(19, 75, 60, .13), rgba(19, 75, 60, 0) 7%),
  repeating-radial-gradient(circle at 50% 115%, transparent 0 11px, rgba(30, 111, 88, .07) 11px 12px),
  repeating-linear-gradient(35deg, transparent 0 14px, rgba(240, 138, 60, .05) 14px 15px),
  var(--papel); }
.dorso { transform: rotateY(180deg); background: repeating-radial-gradient(circle at 50% -15%, transparent 0 11px, rgba(30, 111, 88, .07) 11px 12px), var(--papel); border-radius: 16px 4px 4px 16px; }
.dorso-hoja { height: 100%; display: grid; place-items: center; }
.dorso-hoja svg { width: 30%; fill: rgba(30, 111, 88, .08); }
.dorso-portada { height: 100%; background: #F2EBD8; padding: 12% 10%; font-family: 'Courier Prime', monospace; font-size: .85rem; color: #5b5240; display: flex; flex-direction: column; justify-content: center; gap: .8rem; }
.dorso-portada p { margin: 0; }
.hoja-portada .frente { background: radial-gradient(120% 90% at 30% 20%, #23765F, #134B3C 70%), #134B3C; border-radius: 6px 18px 18px 6px; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .15), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.portada { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12% 10% 9%; color: #F3CB94; border: 2px solid rgba(243, 203, 148, .45); border-radius: 4px 12px 12px 4px; margin: 10px; height: calc(100% - 20px); }
.por-pais { margin: 0; font-family: 'Courier Prime', monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.por-escudo { width: 44%; margin: auto 0 1rem; aspect-ratio: 1; border-radius: 50%; border: 3px double rgba(243, 203, 148, .8); display: grid; place-items: center; }
.por-escudo svg { width: 58%; fill: #F3CB94; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.por-tit { margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 7.4vw, 2rem); line-height: 1; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.por-nombre { margin: .7rem 0 auto; font-family: 'Courier Prime', monospace; font-weight: 700; font-size: 1.15rem; letter-spacing: .2em; text-transform: uppercase; }
.por-abrir { margin: 0; font-size: .78rem; font-weight: 600; color: #fff; }
.por-abrir span { display: inline-block; background: rgba(240, 138, 60, .9); color: #2b1606; border-radius: 999px; padding: .2rem .8rem; animation: late 1.8s ease-in-out infinite; }
@keyframes late { 50% { transform: scale(1.07); } }
.pag-cab { display: flex; justify-content: space-between; padding: 10px 14px 0 18px; font-family: 'Courier Prime', monospace; font-size: .7rem; letter-spacing: .1em; color: #2F5E50; }
.pag-datos { padding: 8px 14px 10px 18px; height: calc(100% - 22px); display: flex; flex-direction: column; }
.datos-foto { position: relative; width: 44%; align-self: flex-start; float: left; }
.datos-foto img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; filter: saturate(.92) contrast(1.02); box-shadow: 0 0 0 4px #fff, 0 2px 6px rgba(0, 0, 0, .15); }
.foto-sello { position: absolute; left: -10%; bottom: -12%; width: 50%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(179, 47, 56, .7); display: grid; place-items: center; transform: rotate(-16deg); mix-blend-mode: multiply; }
.foto-sello svg { width: 55%; fill: rgba(179, 47, 56, .55); }
.datos-campos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.datos-campos div { min-width: 0; }
.datos-campos dt { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #2F5E50; font-weight: 600; }
.datos-campos dd { margin: 0; font-family: 'Courier Prime', monospace; font-weight: 700; font-size: .82rem; line-height: 1.15; color: #1f2a26; overflow-wrap: anywhere; }
.pag-datos { display: grid; grid-template-columns: 44% 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 12px; row-gap: 8px; align-content: start; }
.pag-datos .datos-foto { width: 100%; grid-row: 1; grid-column: 1; float: none; }
.pag-datos .datos-campos { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; gap: 2px; align-self: start; }
.datos-humana { grid-column: 1 / -1; margin: 6px 0 0; font-size: .85rem; line-height: 1.35; background: rgba(240, 138, 60, .12); border-radius: 8px; padding: .4rem .6rem; }
.datos-humana strong { color: var(--naranja-osc); font-size: 1.05rem; }
.mrz { grid-column: 1 / -1; grid-row: 4; align-self: end; margin: 0; font-family: 'Courier Prime', monospace; font-size: clamp(.5rem, 2.55vw, .64rem); letter-spacing: .1em; line-height: 1.5; color: rgba(29, 43, 39, .62); white-space: nowrap; overflow: hidden; border-top: 1px dashed rgba(19, 75, 60, .25); padding-top: 4px; }
.pag-sellos { padding: 4px 12px 10px 16px; height: calc(100% - 22px); display: flex; flex-direction: column; }
.pag-nota { margin: auto 0 0; display: flex; align-items: center; gap: 8px; font-size: .7rem; line-height: 1.3; color: #2F5E50; border-top: 1px dashed rgba(19, 75, 60, .25); padding-top: 6px; }
.pag-nota svg { width: 26px; flex: none; fill: rgba(240, 138, 60, .45); }
.pag-tit { font-size: 1.15rem; margin: 2px 0 6px; }
.fila-sellos { margin-bottom: 8px; }
.fila-tit { margin: 0 0 3px; font-size: .74rem; font-weight: 700; color: var(--verde-osc); }
.fila-tit small { font-weight: 500; color: var(--gris); }
.sellos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: center; }
.sello-c { position: relative; }
.sello { width: 100%; height: auto; display: block; transform: rotate(var(--r)); overflow: visible; mix-blend-mode: multiply; }
.sello .s-borde { fill: none; stroke: currentColor; stroke-width: 3.4; }
.sello .s-fino { fill: none; stroke: currentColor; stroke-width: 1.2; }
.sello text { fill: currentColor; font-family: 'Courier Prime', monospace; font-weight: 700; text-anchor: middle; }
.s-tit { font-size: 11px; letter-spacing: .04em; }
.s-fecha { font-size: 17px; }
.s-ano { font-size: 10.5px; }
.s-pie { font-size: 6.4px; letter-spacing: .08em; }
.firma { fill: none; stroke: var(--pluma); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .9; }
.tinta-rojo { color: var(--t-rojo); }
.tinta-azul { color: var(--t-azul); }
.tinta-violeta { color: var(--t-violeta); }
.tinta-verde { color: var(--t-verde); }
.tinta-naranja { color: var(--t-naranja); }
.sello-vacio { aspect-ratio: 100 / 84; }
.hueco { aspect-ratio: 100 / 84; width: 100%; border: 2px dashed currentColor; border-radius: 10px; background: rgba(255, 255, 255, .5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; line-height: 1.1; text-align: center; color: var(--gris); font-family: 'Figtree', sans-serif; }
button.hueco { cursor: pointer; }
.hueco-tit { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hueco-fecha { font-family: 'Courier Prime', monospace; font-size: .7rem; font-weight: 700; }
.hueco-acc { font-size: .66rem; font-weight: 700; margin-top: 2px; }
button.hueco .hueco-acc { background: currentColor; border-radius: 999px; padding: 1px 6px; }
button.hueco .hueco-acc { color: #fff; background: var(--verde); }
.hueco-vencida { color: #8E2419; background: rgba(251, 225, 220, .55); }
button.hueco-vencida .hueco-acc { background: #8E2419; }
.hueco-toca { color: #7F3D10; background: rgba(255, 230, 207, .55); }
button.hueco-toca .hueco-acc { background: #7F3D10; }
.hueco-proxima { color: #1F4579; }
.hueco-aldia { color: #145343; }
button.hueco-vencida, .hueco.senalado { animation: llama 1.6s ease-in-out infinite; }
@keyframes llama { 50% { box-shadow: 0 0 0 5px rgba(179, 47, 56, .18); } }
.hueco.senalado { box-shadow: 0 0 0 4px rgba(240, 138, 60, .55); animation: senal 1.1s ease-in-out infinite; }
@keyframes senal { 50% { box-shadow: 0 0 0 9px rgba(240, 138, 60, .15); transform: scale(1.04); } }
.hueco.aparece { animation: aparece-h .6s ease both; }
@keyframes aparece-h { from { opacity: 0; transform: scale(.85); } }

/* El sello que cae */
.sello-cae { z-index: 5; }
.sello-cae .sello { animation: tinta 1.15s both; }
@keyframes tinta {
  0%, 33% { opacity: 0; transform: rotate(var(--r)) scale(1.2); }
  36% { opacity: 1; transform: rotate(var(--r)) scale(1.08); filter: blur(.7px); }
  50% { transform: rotate(var(--r)) scale(.97); filter: none; }
  100% { opacity: 1; transform: rotate(var(--r)) scale(1); }
}
.sellador { position: absolute; left: 50%; bottom: 6%; width: 86%; z-index: 6; pointer-events: none; display: flex; flex-direction: column; align-items: center; animation: sellador 1.15s cubic-bezier(.55, 0, .45, 1) both; }
.sellador-mango { width: 34%; aspect-ratio: .55; border-radius: 45% 45% 18% 18%; background: linear-gradient(90deg, #8A5A34, #C08A5A 45%, #8A5A34); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }
.sellador-base { width: 100%; height: 22px; border-radius: 5px; background: linear-gradient(#5E3B22 0 55%, #2E2A28 55%); box-shadow: 0 6px 10px rgba(0, 0, 0, .25); }
@keyframes sellador {
  0% { transform: translate(-50%, -190px) rotate(-6deg); opacity: 0; }
  12% { opacity: 1; }
  33% { transform: translate(-50%, 0) rotate(0); }
  39% { transform: translate(-50%, 5px) scaleY(.9); }
  55% { transform: translate(-50%, -10px); opacity: 1; }
  100% { transform: translate(-50%, -230px) rotate(8deg); opacity: 0; }
}
.salpica { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.salpica i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; color: var(--t-azul); opacity: 0; animation: gota .7s ease-out .38s both; }
.salpica i:nth-child(1) { --dx: -58px; --dy: -30px; }
.salpica i:nth-child(2) { --dx: 60px; --dy: -24px; width: 6px; height: 6px; }
.salpica i:nth-child(3) { --dx: -52px; --dy: 34px; width: 5px; height: 5px; }
.salpica i:nth-child(4) { --dx: 56px; --dy: 30px; }
.salpica i:nth-child(5) { --dx: 0; --dy: -48px; width: 5px; height: 5px; }
.salpica i:nth-child(6) { --dx: 10px; --dy: 46px; width: 6px; height: 6px; }
@keyframes gota { 0% { opacity: .9; transform: translate(0, 0) scale(.4); } 70% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
.pas.golpe .pas-libro { animation: golpe .3s ease-out; }
@keyframes golpe { 0% { transform: translateY(0); } 30% { transform: translateY(4px) scale(.995); } 100% { transform: translateY(0); } }

.pas-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .1rem; }
.pas-pag { font-size: .85rem; font-weight: 600; color: var(--gris); min-width: 7.5em; text-align: center; }

@media (min-width: 760px) {
  .pas { width: min(100%, 720px); }
  .pas-escena { padding: 6px 12px 20px; margin: 0; }
  .pas-libro { width: 50%; margin-left: 25%; transition: margin-left .7s cubic-bezier(.32, .7, .26, 1); }
  .pas.abierto .pas-libro { margin-left: 50%; }
}

/* ── Curva de peso ── */
.curva-c { background: #fff; border-radius: var(--r); padding: .6rem .4rem .2rem; box-shadow: 0 2px 0 var(--linea); }
.curva { width: 100%; height: auto; display: block; overflow: visible; }
.cv-grid { stroke: #E3EEE9; stroke-width: 1; }
.cv-eje { font-size: 10.5px; fill: var(--gris); font-family: 'Figtree', sans-serif; }
.cv-banda { fill: rgba(30, 111, 88, .13); stroke: rgba(30, 111, 88, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.cv-banda-txt { font-size: 10px; font-weight: 700; fill: #2C7A62; font-family: 'Figtree', sans-serif; }
.cv-linea { fill: none; stroke: var(--verde-osc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cv-linea-nueva { stroke-dasharray: 100; stroke-dashoffset: 0; animation: traza .7s ease .45s both; }
@keyframes traza { from { stroke-dashoffset: 100; } }
.cv-dot { fill: var(--verde); stroke: #fff; stroke-width: 2; }
.cv-pt.fuera .cv-dot { fill: var(--naranja); }
.cv-hit { fill: transparent; }
.cv-pt { cursor: pointer; outline: none; }
.cv-pt:focus-visible .cv-dot { stroke: var(--naranja); stroke-width: 3; }
.cv-pt.cae { animation: cae-pt .75s cubic-bezier(.25, 1.5, .5, 1) both; }
@keyframes cae-pt { 0% { transform: translateY(-150px); opacity: 0; } 25% { opacity: 1; } 100% { transform: none; } }
.cv-pt.cae .cv-dot { animation: onda 1.2s ease .7s 2; }
@keyframes onda { 50% { r: 10; } }
.cv-val { font-size: 13px; font-weight: 800; fill: var(--verde-osc); font-family: 'Figtree', sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.cv-val-g.tarde { animation: aparece-v .3s ease .8s both; }
@keyframes aparece-v { from { opacity: 0; } }
.cv-tip rect { fill: var(--verde-osc); }
.cv-tip text { fill: #fff; font-size: 12px; font-weight: 700; font-family: 'Figtree', sans-serif; }
.aviso-peso { border-radius: 14px; padding: .7rem .9rem; font-size: .92rem; margin: .7rem 0; }
.av-ok { background: #DCF2E8; color: #124638; }
.av-arriba, .av-abajo { background: #FFEBDA; color: #5E2C0B; border-left: 5px solid var(--naranja); }
.aviso-peso.recien { animation: aparece-h .5s ease .7s both; }
.form-peso { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: .6rem; margin: .2rem 0 .7rem; }
.form-peso .btn { flex: none; }
.form-peso label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; color: var(--verde-osc); gap: .2rem; flex: 1 1 140px; }
.campo-u { display: flex; align-items: center; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--menta); padding-right: .8rem; }
.campo-u input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.1rem; padding: .6rem .8rem; outline: none; }
.campo-u:focus-within { box-shadow: inset 0 0 0 2px var(--verde); }
.campo-u b { color: var(--gris); }
.tabla-d { margin-top: .5rem; font-size: .9rem; }
.tabla-d summary { cursor: pointer; color: var(--verde); font-weight: 600; padding: .3rem 0; }
.tabla-pesos { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; margin-top: .3rem; }
.tabla-pesos th, .tabla-pesos td { text-align: left; padding: .45rem .7rem; border-bottom: 1px solid var(--menta-2); }
.tabla-pesos th { font-size: .8rem; color: var(--gris); }

/* ── Consultas ── */
.consultas { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.consulta { background: #fff; border-radius: var(--r); padding: .9rem 1rem; box-shadow: 0 2px 0 var(--linea); }
.consulta h3 { font-size: 1.15rem; margin: .1rem 0 .3rem; }
.consulta p { margin: .3rem 0; font-size: .93rem; }
.con-fecha { color: var(--naranja-osc) !important; font-weight: 600; font-size: .82rem !important; margin: 0 !important; }
.con-datos { display: flex; gap: 1rem; margin: 0; }
.con-datos dt { font-size: .72rem; color: var(--gris); }
.con-datos dd { margin: 0; font-weight: 700; }
.con-foto { margin-top: .6rem; width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.ad { position: relative; margin-top: .7rem; max-width: 340px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; user-select: none; }
.ad > img, .ad-antes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-antes { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ad-linea { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .4); pointer-events: none; }
.ad-linea b { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.ad-linea b::before, .ad-linea b::after { content: ''; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.ad-linea b::before { left: 5px; border-right-color: var(--verde); }
.ad-linea b::after { right: 5px; border-left-color: var(--verde); }
.ad-et { position: absolute; top: 10px; font-size: .75rem; font-weight: 700; background: rgba(29, 43, 39, .75); color: #fff; border-radius: 999px; padding: .1rem .55rem; pointer-events: none; }
.ad-et-a { left: 10px; }
.ad-et-d { right: 10px; }
.ad-rango { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ad-rango:focus-visible + * { outline: none; }
.ad:focus-within { outline: 3px solid var(--naranja); outline-offset: 2px; }

/* ── Lo que toca ── */
.toca-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .4rem; }
.tr { border: 0; border-radius: 16px; padding: .6rem .3rem; line-height: 1.15; text-align: center; display: flex; flex-direction: column; align-items: center; font-weight: 600; font-size: .8rem; cursor: pointer; background: #fff; box-shadow: inset 0 0 0 2px transparent; }
.tr b { font-family: 'Baloo 2', sans-serif; font-size: 1.7rem; line-height: 1; }
.tr-v { color: #8E2419; background: #FBE1DC; }
.tr-s { color: #7F3D10; background: #FFE6CF; }
.tr-m { color: var(--verde-osc); background: var(--menta-2); }
.tr[aria-pressed="true"] { box-shadow: inset 0 0 0 3px currentColor; }
.toca { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.toca-it { background: #fff; border-radius: var(--r); padding: .9rem; box-shadow: 0 2px 0 var(--linea); border-left: 6px solid var(--menta); }
.toca-it.urg-vencida { border-left-color: var(--t-rojo); }
.toca-it.urg-toca { border-left-color: var(--naranja); }
.toca-it.avisado { opacity: .72; }
.ti-cab { display: flex; gap: .7rem; }
.ti-cab img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.ti-cab p { margin: 0; }
.ti-cab small { color: var(--gris); }
.ti-items { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .25rem; font-size: .88rem; }
.wa-d { margin: .6rem 0 .4rem; }
.wa-d summary { cursor: pointer; font-weight: 600; color: var(--verde); font-size: .9rem; padding: .5rem 0; min-height: 44px; }
.wa-chat { margin: .2rem 0 .3rem; background: #EFE7DD; border-radius: 14px; padding: .7rem; }
.wa-burbuja { margin: 0 0 0 auto; max-width: 92%; background: #D9FDD3; border-radius: 12px 2px 12px 12px; padding: .55rem .7rem .3rem; font-size: .9rem; line-height: 1.4; color: #111B21; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.wa-hora { display: block; text-align: right; font-size: .68rem; color: #4E5C55; margin-top: 2px; }
.ti-acc { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }

/* ── Agenda ── */
.semana { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; margin-bottom: .4rem; }
.dia { border: 0; background: #fff; border-radius: 14px; padding: .45rem .1rem; display: flex; flex-direction: column; align-items: center; cursor: pointer; box-shadow: 0 2px 0 var(--linea); line-height: 1.15; }
.dia small { font-size: .72rem; color: var(--gris); text-transform: capitalize; }
.dia b { font-family: 'Baloo 2', sans-serif; font-size: 1.35rem; color: var(--verde-osc); }
.dia i { font-style: normal; font-size: .64rem; color: var(--gris); }
.dia.es-hoy { box-shadow: inset 0 0 0 2px var(--naranja); }
.dia[aria-selected="true"] { background: var(--verde); }
.dia[aria-selected="true"] small, .dia[aria-selected="true"] b, .dia[aria-selected="true"] i { color: #fff; }
.dia-cab { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dia-cab .sub { text-transform: none; }
.dia-cab .sub::first-letter { text-transform: uppercase; }
.citas { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cita { display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 14px; padding: .6rem .8rem; }
.cita-hora { font-family: 'Courier Prime', monospace; font-weight: 700; color: var(--verde-osc); flex: none; }
.cita img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.cita-txt { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.3; }
.cita-txt small { display: block; color: var(--gris); font-size: .8rem; }

/* ── Vista del dueño ── */
.dueno-cab { background: #fff; border-radius: 14px; padding: .6rem .8rem; margin-bottom: .6rem; box-shadow: inset 0 0 0 2px var(--menta-2); }
.dueno-sel { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--gris); }
.dueno-sel select, .form select, .form input, .form textarea { font: inherit; font-size: 1rem; color: var(--tinta); border: 0; border-radius: 12px; padding: .6rem .8rem; background: #fff; box-shadow: inset 0 0 0 2px var(--menta); width: 100%; min-width: 0; }
.dueno-hola { display: flex; align-items: center; gap: .9rem; }
.dueno-hola img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: var(--sombra); }
.dueno-hola .intro { margin: .4rem 0; }
.dueno-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.dueno-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.compartir { background: var(--verde-osc); color: #fff; border-radius: var(--r); padding: 1rem; margin: 1.4rem 0; }
.compartir p { margin: 0 0 .6rem; }
.link-caja { font-family: 'Courier Prime', monospace; background: rgba(255, 255, 255, .12); border-radius: 10px; padding: .5rem .7rem; overflow-wrap: anywhere; font-size: .9rem; }
.compartir .btn-pri { background: var(--naranja); color: #2b1606; }

/* ── Capa (diálogos) ── */
.capa { position: fixed; inset: 0; z-index: 60; background: rgba(19, 40, 34, .5); display: flex; align-items: flex-end; justify-content: center; padding: 1rem; }
.capa-caja { background: var(--fondo); border-radius: 22px; padding: 1.2rem; width: 100%; max-width: 520px; max-height: calc(100svh - 2rem); overflow-y: auto; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.capa-caja h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.form { display: grid; gap: .7rem; }
.form label { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; font-weight: 600; color: var(--verde-osc); }
.form input:focus, .form select:focus, .form textarea:focus, .dueno-sel select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--verde); }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
.foto-campo { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.foto-campo img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: inline-block; vertical-align: middle; }
.capa-acc { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: .4rem; }
@media (min-width: 640px) { .capa { align-items: center; } }

/* ── Toast y guía ── */
.aviso-toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; max-width: 520px; bottom: calc(var(--tabs) + 14px + env(safe-area-inset-bottom)); z-index: 70; background: var(--verde-osc); color: #fff; border-radius: 14px; padding: .7rem 1rem; font-size: .92rem; display: flex; align-items: center; gap: .8rem; box-shadow: 0 8px 26px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.aviso-toast.ver { opacity: 1; transform: none; pointer-events: auto; }
.con-guia .aviso-toast { bottom: calc(var(--tabs) + var(--guia-h, 160px) + 22px + env(safe-area-inset-bottom)); }
.toast-acc { background: none; border: 0; color: #FFC89C; font-weight: 700; cursor: pointer; padding: .3rem; text-decoration: underline; }
.rol-dueno .aviso-toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
.guia { position: fixed; left: 12px; right: 12px; margin: 0 auto; max-width: 520px; bottom: calc(var(--tabs) + 10px + env(safe-area-inset-bottom)); z-index: 40; background: #fff; border-radius: 18px; padding: .75rem .95rem; box-shadow: 0 10px 30px rgba(19, 75, 60, .28), inset 0 0 0 2px var(--naranja); font-size: .93rem; }
.guia p { margin: 0 0 .4rem; }
.guia-paso { font-size: .72rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--naranja-osc); margin: 0 0 .15rem !important; }
.guia-acc { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.guia.guia-arriba { top: calc(var(--cab) + 6px); bottom: auto; padding: .55rem .9rem; }
.guia.guia-arriba p { margin: 0 0 .2rem; }
.con-guia .app { padding-bottom: 9rem; }

/* ── Huellas al cargar ── */
.huellas { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.huellas span { position: absolute; width: 34px; height: 34px; transform: rotate(var(--rot)); opacity: 0; animation: huella 1.5s ease both; }
.huellas svg { width: 100%; height: 100%; fill: var(--naranja); }
.huellas span:nth-child(even) svg { fill: var(--verde); }
@keyframes huella { 0% { opacity: 0; transform: rotate(var(--rot)) scale(.4); } 18% { opacity: .75; transform: rotate(var(--rot)) scale(1); } 65% { opacity: .65; } 100% { opacity: 0; } }

/* ── Final: restaurar, CTA y pie ── */
.restaurar-pie { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin: 2rem 0 1rem; color: var(--gris); font-size: .88rem; }
.cta { background: var(--verde-osc); color: #fff; border-radius: 26px; padding: 1.6rem 1.2rem; margin: 1rem 0 0; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(240, 138, 60, .35), transparent 70%); }
.cta-in { position: relative; z-index: 1; }
.cta-ojo { margin: 0; font-size: .8rem; font-weight: 700; color: #FFC89C; text-transform: uppercase; letter-spacing: .08em; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 6vw, 2rem); margin: .3rem 0 .5rem; }
.cta p { margin: 0 0 1rem; color: #DCEFE7; }
.cta-botones { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.cta-tel { color: #fff; font-size: .95rem; display: inline-flex; align-items: center; min-height: 44px; }
.pie { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 2rem; font-size: .85rem; color: var(--gris); text-align: center; }
.pie p { margin: 0 0 .5rem; }
.pie .credito { margin-top: 1rem; }
.pie a { color: var(--verde-osc); }
.sin-js { max-width: 520px; margin: 2rem auto; padding: 1rem; background: #FFE6CF; border-radius: 14px; }

/* ── Aviso de privacidad ── */
.legal { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 2rem; line-height: 1.65; }
.legal h1 { font-size: 2rem; margin-bottom: .3rem; }
.legal h2 { font-size: 1.25rem; margin: 1.5rem 0 .3rem; }
.legal-meta { color: var(--gris); font-size: .88rem; }
.pag-legal { padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
