/* Estilo de la invitación: tela verde, papel crema, caligrafía y serif de alto contraste. */
:root {
  --verde: #4d6b3c; --verde-osc: #2f4228; --salvia: #7f9f6a; --crema: #f4efe4; --papel: #fbf8f1;
  --caramelo: #8a6446; --tinta: #2f3a2b; --suave: #5d6757; --borde: #d9d1bf;
  --serif: 'Bodoni Moda', Georgia, serif; --script: 'Pinyon Script', cursive; --sans: 'Montserrat', system-ui, sans-serif;
  --tela: repeating-linear-gradient(0deg, rgb(0 0 0 / .07) 0 1px, transparent 1px 4px),
          repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 4px), var(--verde);
  --vv-alto: 100vh; --vv-arriba: 0px; /* el JS los ajusta al teclado; 100vh por si no hay visualViewport */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 400 1rem/1.55 var(--sans); color: var(--tinta); background: var(--verde-osc); overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h2, p { margin: 0; }
svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .lleno { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid #e7c9a0; outline-offset: 2px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.vista { position: fixed; top: 0; right: 0; bottom: 0; left: 0; }

/* ---------- Apertura ---------- */
.apertura { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 30; background: #10160d; transition: opacity .8s ease; }
.apertura.saliendo { opacity: 0; pointer-events: none; }
.apertura video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-aspect-ratio: 3/4) { .apertura video { object-fit: contain; } }
.sobre { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 1.5rem; text-align: center; color: var(--crema);
  background: linear-gradient(180deg, rgb(20 30 16 / .35), rgb(20 30 16 / .75)), url('/media/pareja-fondo.jpg') center / cover; transition: opacity .7s ease, transform .9s ease; }
.sobre.abierto { opacity: 0; transform: scale(1.06); pointer-events: none; }
.sobre .nombres { width: min(70vw, 17rem); animation: entrar 1.2s ease-out both; }
.sobre .lema { font: 400 clamp(.9rem, 4vw, 1.1rem) var(--serif); letter-spacing: .32em; text-transform: uppercase; animation: entrar 1.2s .3s both; }
.abrir { margin-top: 2rem; width: 8.5rem; height: 8.5rem; border-radius: 50%; border: 1.5px solid var(--crema); background: rgb(244 239 228 / .12);
  color: var(--crema); font: 400 1.6rem/1.1 var(--script); cursor: pointer; animation: entrar 1.2s .6s both, latido 2.4s 2s ease-in-out infinite; }
.cargando-video { position: absolute; left: 0; right: 0; bottom: calc(2rem + env(safe-area-inset-bottom)); text-align: center; color: var(--crema); font-size: .9rem; letter-spacing: .06em; text-shadow: 0 1px 6px rgb(0 0 0 / .6); animation: punto 1.6s infinite; }
.controles-video { position: absolute; top: calc(.75rem + env(safe-area-inset-top)); right: .75rem; display: flex; gap: .5rem; }
.controles-video button { min-width: 44px; min-height: 44px; padding: 0 1rem; border: 1px solid rgb(244 239 228 / .6); border-radius: 999px;
  background: rgb(0 0 0 / .45); color: var(--crema); font: 600 .85rem var(--sans); cursor: pointer; }
.sobre:not(.abierto) ~ .controles-video { display: none; }

/* ---------- Inicio ---------- */
.inicio { overflow-y: auto; color: var(--crema); background: var(--verde-osc); }
.inicio .fondo { position: fixed; top: -4%; right: -4%; bottom: -4%; left: -4%; background: linear-gradient(180deg, rgb(30 44 24 / .15) 0%, rgb(30 44 24 / .55) 45%, rgb(26 38 21 / .96) 78%),
  url('/media/pareja-fondo.jpg') center 20% / cover; will-change: transform; animation: acercar 30s ease-in-out infinite alternate; }
.inicio .contenido { position: relative; min-height: 100vh; min-height: 100svh; width: min(100%, 30rem); margin: 0 auto; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: .35rem; padding: 2rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); text-align: center; }
.inicio .nombres { width: min(64vw, 15rem); animation: entrar 1s .1s both; }
.inicio .lema { font: 400 clamp(.85rem, 3.8vw, 1rem) var(--serif); letter-spacing: .32em; text-transform: uppercase; animation: entrar 1s .3s both; }
.inicio .detalle { font-size: .82rem; letter-spacing: .08em; opacity: .92; animation: entrar 1s .45s both; }
.opciones { display: grid; gap: .6rem; width: 100%; margin-top: 1.1rem; }
.opcion { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 60px; padding: .7rem 1rem; text-align: left; text-decoration: none; cursor: pointer;
  color: var(--tinta); background: rgb(251 248 241 / .94); border: 0; border-radius: 14px; box-shadow: 0 6px 18px rgb(0 0 0 / .22); font: inherit;
  animation: entrar .8s both; transition: transform .2s ease; }
.opcion:active { transform: scale(.98); }
.opcion:nth-child(1) { animation-delay: .6s; } .opcion:nth-child(2) { animation-delay: .72s; } .opcion:nth-child(3) { animation-delay: .84s; } .opcion:nth-child(4) { animation-delay: .96s; }
.opcion svg { flex: none; width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 50%; background: var(--verde); color: var(--crema); }
.opcion b { display: block; font-weight: 600; font-size: 1rem; }
.opcion small { display: block; color: var(--suave); font-size: .8rem; }
.opcion.principal { background: var(--crema); outline: 2px solid #e7c9a0; outline-offset: -2px; }
.enlace { margin-top: .6rem; min-height: 44px; padding: .5rem 1rem; border: 0; background: none; color: var(--crema); font: 500 .85rem var(--sans); cursor: pointer; opacity: .9; animation: entrar 1s 1.1s both; }
.petalos i { position: fixed; top: -5vh; will-change: transform; left: var(--x); width: var(--t); height: calc(var(--t) * .7); border-radius: 60% 0 60% 0; background: var(--c);
  opacity: .85; animation: caer var(--d) linear var(--r) infinite; pointer-events: none; }
.petalos i:nth-child(1) { --x: 8%; --t: 10px; --c: #f4efe4; --d: 14s; --r: 0s; } .petalos i:nth-child(2) { --x: 24%; --t: 12px; --c: #fff; --d: 12s; --r: 5s; }
.petalos i:nth-child(3) { --x: 40%; --t: 8px; --c: #dfe9d3; --d: 17s; --r: 2s; } .petalos i:nth-child(4) { --x: 56%; --t: 11px; --c: #e7c9a0; --d: 15s; --r: 8s; }
.petalos i:nth-child(5) { --x: 70%; --t: 9px; --c: #fff; --d: 16s; --r: 3s; } .petalos i:nth-child(6) { --x: 84%; --t: 12px; --c: #f4efe4; --d: 13s; --r: 10s; }
.petalos i:nth-child(7) { --x: 94%; --t: 9px; --c: #dfe9d3; --d: 18s; --r: 6s; }

/* ---------- Barras de las vistas ---------- */
.barra { flex: none; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; padding-top: calc(.5rem + env(safe-area-inset-top));
  background: var(--tela); color: var(--crema); }
.barra div { flex: 1; min-width: 0; line-height: 1.25; }
.barra b { display: block; font: 500 1rem var(--serif); letter-spacing: .02em; }
.barra span { display: block; font-size: .75rem; opacity: .85; }
.volver { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; color: var(--crema); }
.boton-barra { min-height: 40px; padding: .4rem 1rem; border: 1.5px solid var(--crema); border-radius: 999px; background: transparent; color: var(--crema); font: 600 .85rem var(--sans); cursor: pointer; }

/* ---------- Chat: la altura sigue al teclado (visualViewport) ---------- */
.vista-chat { top: var(--vv-arriba); bottom: auto; height: var(--vv-alto); display: flex; flex-direction: column; background: var(--papel); }
.mensajes { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 1rem .9rem .5rem;
  display: flex; flex-direction: column; gap: .5rem; }
.mensajes li { position: relative; max-width: 86%; padding: .6rem .9rem; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; animation: entrar .25s ease-out both; }
.mensajes .nosotros { align-self: flex-start; background: #fff; border: 1px solid var(--borde); border-bottom-left-radius: 4px; }
.mensajes .invitado { align-self: flex-end; background: var(--verde); color: var(--crema); border-bottom-right-radius: 4px; }
.mensajes .aviso { align-self: center; font-size: .82rem; color: var(--suave); }
.mensajes a { color: var(--verde-osc); font-weight: 600; }
.reaccion { position: absolute; right: -.35rem; bottom: -.85rem; padding: 0 .3rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .2); font-size: .9rem; }
.mensajes li:has(.reaccion) { margin-bottom: .6rem; }
.escribiendo { display: inline-flex; gap: .25rem; padding: .2rem 0; }
.escribiendo i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--salvia); animation: punto 1s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
.sugerencias { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; padding: .25rem .9rem .6rem; }
.sugerencias button { min-height: 44px; padding: .4rem .95rem; border: 1px solid var(--verde); border-radius: 999px; background: #fff; color: var(--verde-osc); font: 500 .85rem var(--sans); cursor: pointer; }
.escribir { flex: none; display: flex; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--borde); background: #fff; }
.escribir input { flex: 1; min-width: 0; min-height: 46px; padding: .5rem 1rem; font: 400 1rem var(--sans); color: var(--tinta); border: 1px solid var(--borde); border-radius: 999px; background: var(--papel); }
.escribir button { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--verde); color: var(--crema); cursor: pointer; }

/* ---------- Galería ---------- */
.pestanas { flex: none; display: flex; gap: .4rem; padding: .6rem .75rem; background: var(--papel); border-bottom: 1px solid var(--borde); }
.pestanas button { flex: 1; min-height: 44px; border: 1px solid var(--verde); border-radius: 999px; background: #fff; color: var(--verde-osc); font: 600 .9rem var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.pestanas button[aria-selected="true"] { background: var(--verde); color: var(--crema); }
/* <dialog> no existe en navegadores antiguos: se abre como capa fija */
.sin-dialog { position: fixed; z-index: 50; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.visor.sin-dialog { top: 0; left: 0; transform: none; }
.vista-galeria { display: flex; flex-direction: column; background: var(--papel); }
.cuerpo-galeria { flex: 1; overflow-y: auto; padding: .75rem .75rem calc(1.5rem + env(safe-area-inset-bottom)); }
.rejilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(28vw, 9rem), 1fr)); gap: 8px; }
.rejilla button { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 14px; background: #e8e2d4; cursor: pointer; overflow: hidden; box-shadow: 0 2px 8px rgb(47 66 40 / .12); }
.rejilla img { width: 100%; height: 100%; object-fit: cover; animation: entrar .4s ease-out both; }
.rejilla .sin-mini { display: grid; place-items: center; height: 100%; color: var(--suave); font-size: .75rem; }
.rejilla .es-video::after { content: '▶'; position: absolute; right: .35rem; bottom: .3rem; padding: .1rem .4rem; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font-size: .7rem; }
.vacia { margin: 3rem 1.5rem; text-align: center; color: var(--suave); font: 400 1.6rem/1.3 var(--script); }
.subidas { display: grid; gap: .5rem; margin: .25rem .25rem .75rem; padding: .85rem; border-radius: 12px; background: #fff; border: 1px solid var(--borde); font-size: .85rem; }
.subidas p { color: var(--suave); }
.subida { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; }
.subida progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--verde); }
.subida .error { color: #9b2c2c; }
#ver-mas { display: block; margin: 1rem auto 0; padding: 0 1.5rem; }

.visor { width: 100vw; height: 100vh; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0f09; color: #fff; }
.visor::backdrop { background: #0b0f09; }
.visor-medio { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; touch-action: pan-y; }
.visor-medio img, .visor-medio video { max-width: calc(100% - 1rem); max-height: calc(100% - 9rem); object-fit: contain; border-radius: 14px; }
.visor-boton { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.cerrar-visor { top: calc(.75rem + env(safe-area-inset-top)); right: .75rem; }
.anterior { left: .5rem; top: 50%; transform: translateY(-50%); } .siguiente { right: .5rem; top: 50%; transform: translateY(-50%); }
.visor-descargar { position: absolute; left: 50%; transform: translateX(-50%); top: calc(.75rem + env(safe-area-inset-top)); min-height: 48px; display: inline-grid; place-items: center;
  padding: 0 1.25rem; border-radius: 999px; background: rgb(244 239 228 / .92); color: var(--verde-osc); font: 600 .9rem var(--sans); text-decoration: none; }

/* ---------- Confirmar asistencia ---------- */
.hoja { width: min(calc(100% - 1.5rem), 30rem); max-height: calc(100vh - 1.5rem); max-height: calc(100svh - 1.5rem); overflow-y: auto; padding: 1.5rem 1.25rem; border: 0; border-radius: 8px;
  background: var(--papel); color: var(--tinta); box-shadow: 0 16px 50px rgb(0 0 0 / .45); text-align: center; }
.hoja::backdrop { background: rgb(28 38 24 / .65); }
.hoja[open] { animation: entrar .3s ease-out both; }
.cerrar { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--suave); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.antetitulo { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--suave); }
.script { font: 400 2.6rem/1.15 var(--script); color: var(--verde-osc); margin: .1rem 0 .4rem; }
.nota { font-size: .9rem; color: var(--suave); margin-bottom: 1rem; }
.formulario { display: grid; gap: .85rem; text-align: left; }
.formulario label, .formulario legend { display: grid; gap: .3rem; font-weight: 500; font-size: .9rem; }
.formulario input:not([type=radio]), .formulario textarea { width: 100%; min-height: 44px; padding: .55rem .8rem; font: 400 1rem var(--sans); color: var(--tinta); background: #fff; border: 1px solid var(--borde); border-radius: 6px; }
.formulario fieldset { border: 0; padding: 0; margin: 0; display: grid; }
.formulario .opcion-radio { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 400; }
.opcion-radio input { width: 1.25rem; height: 1.25rem; accent-color: var(--verde); }
.trampa { position: absolute; left: -9999px; }
.boton { min-height: 48px; border: 0; border-radius: 999px; background: var(--verde); color: var(--crema); font: 600 1rem var(--sans); letter-spacing: .04em; cursor: pointer; }
.estado { min-height: 1.4em; font-weight: 500; text-align: center; }
.estado.ok { color: var(--verde); } .estado.error { color: #9b2c2c; }

@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }
@keyframes latido { 50% { transform: scale(1.06); } }
@keyframes acercar { to { transform: scale(1.05); } }
@keyframes caer { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6vw, 55vh) rotate(200deg); } 100% { transform: translate(-3vw, 112vh) rotate(400deg); } }
@keyframes punto { 50% { opacity: .3; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .petalos { display: none; } }



/* ---------- Subir: hoja con cámara y bandeja ---------- */
.hoja-subir { text-align: center; }
@media (max-width: 40rem) { .hoja-subir { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); } }
.acciones-subir { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .5rem 0 1rem; }
.accion { display: grid; justify-items: center; gap: .35rem; min-height: 88px; padding: .75rem .25rem; border: 1px solid var(--borde); border-radius: 14px;
  background: #fff; color: var(--verde-osc); font: 600 .82rem/1.2 var(--sans); cursor: pointer; }
.accion svg { width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: 50%; background: var(--verde); color: var(--crema); }
.bandeja { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 6px; }
.bandeja li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e8e2d4; }
.bandeja img, .bandeja video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bandeja .es-video::after { content: '▶'; position: absolute; left: .3rem; bottom: .25rem; padding: 0 .35rem; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font-size: .7rem; }
.bandeja .quitar { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hoja-subir .boton { width: 100%; }
.hoja-subir .boton:disabled { opacity: .45; cursor: default; }
.hoja-subir .subidas { margin: 0 0 1rem; text-align: left; }
.aviso-bandeja { margin-top: .6rem; min-height: 44px; padding: .5rem 1.1rem; border: 0; border-radius: 999px; background: #e7c9a0; color: var(--verde-osc);
  font: 600 .85rem var(--sans); cursor: pointer; animation: entrar 1s 1.1s both; }

/* ---------- Panel de los novios (/admin) ---------- */
body.panel { overflow: auto; background: #f1ece0; color: var(--tinta); }
.panel-cabecera { display: grid; justify-items: center; gap: .25rem; padding: 1.4rem 1rem 1.2rem; text-align: center; color: var(--crema); background: var(--tela); }
.panel-cabecera img { width: min(60vw, 13rem); }
.panel-cabecera p { font-size: .82rem; letter-spacing: .08em; }
.panel-cabecera a { color: var(--crema); font-size: .82rem; }
.panel-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: .4rem; overflow-x: auto; padding: .6rem .75rem; background: rgb(241 236 224 / .96); border-bottom: 1px solid var(--borde); scrollbar-width: none; }
.panel-nav a { flex: none; min-height: 40px; display: inline-grid; place-items: center; padding: 0 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--borde); color: var(--verde-osc); font: 600 .85rem var(--sans); text-decoration: none; }
.panel-cuerpo { width: min(100%, 60rem); margin: 0 auto; padding: 1rem .75rem 4rem; display: grid; gap: 1rem; }
.panel-cuerpo section { scroll-margin-top: 4rem; }
.aviso-panel { padding: .8rem 1rem; border-radius: 12px; background: #e3eed9; color: var(--verde-osc); font-weight: 600; }
.cifras { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; }
.cifra { display: grid; gap: .15rem; padding: .9rem 1rem; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(47 66 40 / .08); }
.cifra b { font: 600 1.9rem/1.1 var(--sans); color: var(--verde-osc); }
.cifra b small, .cifra span small { font-size: .7em; color: var(--suave); font-family: var(--sans); }
.cifra span { font-size: .8rem; color: var(--suave); }
.cifra.destacada { background: var(--tela); }
.cifra.destacada b, .cifra.destacada span { color: var(--crema); }
.cifra.pendiente b { color: var(--caramelo); }
.caja { padding: 1.2rem 1rem; border-radius: 18px; background: #fff; box-shadow: 0 2px 10px rgb(47 66 40 / .08); }
.caja h2 { font: 500 1.35rem var(--serif); color: var(--verde-osc); margin: 0 0 .75rem; }
.caja h2 small { font: 400 .9rem var(--sans); color: var(--suave); }
.panel .nota { margin: 0 0 .75rem; color: var(--suave); font-size: .88rem; }
.cargar { margin-bottom: 1rem; padding: .25rem .9rem; border-radius: 12px; background: var(--papel); border: 1px dashed var(--borde); }
.cargar summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--verde-osc); cursor: pointer; }
.cargar .formulario { padding-bottom: .9rem; }
.cargar textarea { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.cargar .modo { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.panel .boton-archivo { display: inline-grid; place-items: center; justify-self: start; min-height: 46px; padding: 0 1.3rem; border-radius: 999px; background: var(--verde); color: var(--crema); font-weight: 600; cursor: pointer; }
.panel .boton-archivo.secundario { background: #fff; color: var(--verde-osc); border: 1px solid var(--verde); }
.panel .boton { padding: 0 1.5rem; justify-self: start; }
.filtros { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.filtros button { min-height: 40px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--borde); background: #fff; color: var(--verde-osc); font: 500 .85rem var(--sans); cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: var(--crema); }
.buscar { width: 100%; min-height: 44px; margin-bottom: .6rem; padding: .5rem 1rem; border: 1px solid var(--borde); border-radius: 999px; font: 400 1rem var(--sans); background: var(--papel); }
.invitados, .respuestas, .preguntas { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.invitado, .respuestas li { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 12px; background: var(--papel); }
.quien { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.quien small { color: var(--suave); font-size: .78rem; }
.quien q { font-size: .85rem; color: var(--tinta); font-style: italic; }
.estado-invitado { display: grid; justify-items: end; gap: .25rem; }
.sello { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.sello.confirmado { background: #dcebd0; color: #2f5a22; }
.sello.no-asiste { background: #f0dede; color: #8a2b2b; }
.sello.sin-respuesta { background: #efe6d4; color: #7a5a2c; }
.sello.excede { background: #f7d9b0; color: #7a4a10; }
.sello.oficial { background: var(--verde); color: var(--crema); }
.sello.invitados { background: #e6e0d2; color: var(--tinta); }
.sello.oculto { background: #ddd; color: #555; }
.invitado .quitar { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--suave); font-size: 1.3rem; cursor: pointer; }
.sueltas { margin-bottom: .8rem; padding: .8rem 1rem; border-radius: 12px; background: #fbf0dc; color: #6b4a16; font-size: .88rem; }
.sueltas ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.preguntas li { padding: .6rem .8rem; border-radius: 12px; background: var(--papel); font-size: .9rem; }
.preguntas small { display: block; color: var(--suave); font-size: .75rem; }
.panel .enlaces { margin: .8rem 0 0; font-size: .88rem; }
.panel .enlaces a { color: var(--verde-osc); font-weight: 600; }
form.en-linea { display: inline; }
form.en-linea button { border: 0; background: none; padding: 0; color: #8a2b2b; font: 600 .88rem var(--sans); text-decoration: underline; cursor: pointer; }
.medios-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; }
.medios-admin figure { margin: 0; padding: .4rem; border-radius: 14px; background: var(--papel); font-size: .75rem; }
.medios-admin img, .medios-admin .sin-mini { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: grid; place-items: center; background: #e8e2d4; }
.medios-admin figure.oculto img { opacity: .4; }
.medios-admin figcaption { display: grid; gap: .3rem; padding-top: .35rem; }
.medios-admin .acciones { display: flex; gap: .3rem; }
.medios-admin .acciones form { flex: 1; }
.medios-admin .acciones button { width: 100%; min-height: 34px; border: 1px solid var(--borde); border-radius: 8px; background: #fff; cursor: pointer; font: 500 .78rem var(--sans); }
.medios-admin .acciones form:last-child button { color: #8a2b2b; border-color: #e3b5b5; }
.panel .subidas { margin: .8rem 0; }
.panel .qr { width: min(100%, 20rem); border-radius: 14px; box-shadow: 0 4px 16px rgb(0 0 0 / .15); }
