/* ==========================================================================
   VOSES · Voces al Servicio del Señor
   Estilos base. Celular primero. Azul mariano, blanco y dorado suave.
   ========================================================================== */

:root {
  /* Paleta */
  --azul-950: #0c1d3a;
  --azul-800: #163564;
  --azul-700: #1d4380;   /* azul mariano */
  --azul-500: #3d6db3;
  --azul-200: #c9d7ee;
  --azul-100: #e6edf8;
  --azul-50:  #f3f6fb;
  --oro:        #b08d3c; /* decorativo */
  --oro-texto:  #7d6020; /* dorado legible sobre blanco (contraste AA) */
  --oro-claro:  #d8c08a;
  --oro-suave:  #f1e7cf;
  --marfil:     #fbfaf6;
  --blanco:     #ffffff;
  --texto:      #1c2638;
  --texto-suave:#4a566b;
  --borde:      #e3e1d8;

  /* Tipografía */
  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Medidas */
  --ancho: 72rem;
  --canal: 1rem;
  --radio: 14px;
  --sombra: 0 1px 2px rgb(12 29 58 / .06), 0 8px 24px rgb(12 29 58 / .07);
  --marco-oro: 0 0 0 1px var(--oro-claro), 0 0 0 6px var(--blanco), 0 0 0 7px var(--oro);

  /* Movimiento: lento y discreto */
  --lento: 900ms;
  --medio: 450ms;
  --suave: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--marfil);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-700); text-underline-offset: 3px; }
a:hover { color: var(--azul-800); }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--azul-800);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.oculto-visual {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.saltar {
  position: absolute; left: .5rem; top: -3rem; z-index: 100;
  background: var(--azul-800); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}
.saltar:focus { top: .5rem; }

.contenedor { width: min(100% - 2 * var(--canal), var(--ancho)); margin-inline: auto; }
.estrecho { max-width: 44rem; }

/* ---------- Cabecera ---------- */
[data-cabecera] { display: block; min-height: 4rem; }
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--oro-suave);
}
.cabecera__barra {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}
.marca { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--azul-800); }
.marca__nombre { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; line-height: 1; }
.marca__lema { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .04em; color: var(--texto-suave); margin-top: .2rem; }

/* Espacio reservado para el logo (no se dibuja el nudo) */
.logo-espacio {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 10px;
  background: var(--blanco); border: 1.5px dashed var(--oro-claro);
  color: var(--oro-texto); font-size: .6rem; text-transform: uppercase; letter-spacing: .08em;
}
.logo-espacio img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.logo-espacio--con-imagen { border: 0; }

.boton-menu {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .4rem .8rem;
  border: 1px solid var(--borde); border-radius: 999px; background: var(--blanco);
  font: inherit; font-size: .95rem; color: var(--azul-800); cursor: pointer;
}
.boton-menu__icono { width: 18px; height: 12px; position: relative; }
.boton-menu__icono::before, .boton-menu__icono::after, .boton-menu__icono span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--medio) var(--suave), opacity var(--medio) var(--suave);
}
.boton-menu__icono::before { top: 0; }
.boton-menu__icono span { top: 5px; }
.boton-menu__icono::after { bottom: 0; }
.boton-menu[aria-expanded="true"] .boton-menu__icono::before { transform: translateY(5px) rotate(45deg); }
.boton-menu[aria-expanded="true"] .boton-menu__icono span { opacity: 0; }
.boton-menu[aria-expanded="true"] .boton-menu__icono::after { transform: translateY(-5px) rotate(-45deg); }

.nav { display: none; }
.nav.abierta { display: block; }
.nav__lista { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.nav__enlace {
  display: block; padding: .8rem .25rem; text-decoration: none;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--azul-800);
  border-bottom: 1px solid var(--azul-100);
}
.nav__enlace[aria-current="page"] { color: var(--oro-texto); }
.nav__redes { display: flex; gap: .5rem; padding-bottom: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .nav.abierta { animation: aparecer var(--medio) var(--suave); }
}

@media (min-width: 56rem) {
  .boton-menu { display: none; }
  .nav, .nav.abierta { display: flex; align-items: center; gap: 1.25rem; animation: none; }
  .nav__lista { display: flex; gap: .25rem; padding: 0; }
  .nav__enlace {
    font-family: var(--sans); font-size: .98rem; font-weight: 600; border: 0;
    padding: .5rem .7rem; border-radius: 999px; color: var(--texto);
    transition: background-color var(--medio) var(--suave), color var(--medio) var(--suave);
  }
  .nav__enlace:hover { background: var(--azul-50); color: var(--azul-800); }
  .nav__enlace[aria-current="page"] { color: var(--azul-800); box-shadow: inset 0 -2px 0 var(--oro); border-radius: 0; }
  .nav__redes { padding: 0; }
}

/* ---------- Redes ---------- */
.red {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--oro-claro); color: var(--azul-700); background: var(--blanco);
  transition: background-color var(--medio) var(--suave), color var(--medio) var(--suave);
}
.red svg { width: 20px; height: 20px; }
.red:hover { background: var(--azul-700); color: #fff; }
.red--pendiente { opacity: .45; cursor: help; }
.red--pendiente:hover { background: var(--blanco); color: var(--azul-700); }

/* ---------- Ornamentos ---------- */
.ornamento {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  color: var(--oro); margin: 0 auto .75rem;
}
.ornamento::before, .ornamento::after {
  content: ""; height: 1px; width: 3.5rem;
  background: linear-gradient(90deg, transparent, var(--oro-claro));
}
.ornamento::after { transform: scaleX(-1); }
.ornamento svg { width: 14px; height: 18px; }

.antetitulo {
  display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--oro-texto); margin-bottom: .4rem;
}

/* ---------- Secciones ---------- */
.seccion { padding-block: 3.5rem; }
.seccion--azul { background: var(--azul-50); }
.seccion__cabeza { text-align: center; margin-bottom: 2rem; }
.seccion__cabeza p { color: var(--texto-suave); max-width: 36rem; margin-inline: auto; }

.pagina-cabeza {
  text-align: center; padding: 2.75rem 0 1.5rem;
  background: linear-gradient(180deg, var(--azul-50), var(--marfil));
}
.pagina-cabeza p { color: var(--texto-suave); max-width: 34rem; margin-inline: auto; }

/* ---------- Héroe (Inicio) ---------- */
.heroe {
  position: relative; text-align: center; overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(60rem 30rem at 50% -10%, var(--azul-100), transparent 70%),
    var(--marfil);
}
.heroe__arco {
  width: min(15rem, 62vw); aspect-ratio: 4 / 5; margin: 0 auto 1.75rem;
  border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;
  background: var(--blanco); box-shadow: var(--marco-oro), var(--sombra);
  display: grid; place-items: center; padding: 1.5rem;
}
.heroe__logo {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  border: 1.5px dashed var(--oro-claro); border-radius: 12px;
  color: var(--oro-texto); font-size: .8rem; letter-spacing: .06em;
}
.heroe__logo img { width: 100%; height: 100%; object-fit: contain; }
.heroe__logo--con-imagen { border: 0; }
.heroe h1 { margin-bottom: .35rem; }
.heroe__sub { font-size: 1.05rem; color: var(--texto-suave); margin-bottom: 1.75rem; }
.heroe__sub strong { color: var(--oro-texto); font-weight: 600; }
.heroe__acciones { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--medio) var(--suave), color var(--medio) var(--suave),
              border-color var(--medio) var(--suave), box-shadow var(--medio) var(--suave);
}
.boton svg { width: 18px; height: 18px; flex: none; }
.boton--primario { background: var(--azul-700); color: #fff; }
.boton--primario:hover { background: var(--azul-800); color: #fff; box-shadow: 0 0 0 4px var(--oro-suave); }
.boton--secundario { background: var(--blanco); color: var(--azul-800); border-color: var(--oro-claro); }
.boton--secundario:hover { background: var(--oro-suave); color: var(--azul-800); }
.boton--texto { background: none; color: var(--azul-700); padding-inline: .5rem; }
.boton--texto:hover { text-decoration: underline; }
.acciones { display: flex; flex-wrap: wrap; gap: .65rem; }

/* ---------- Tarjetas ---------- */
.tarjeta {
  background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 1.25rem; box-shadow: var(--sombra);
}
.etiqueta {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .15rem .55rem; border-radius: 999px; background: var(--azul-100); color: var(--azul-800);
}
.etiqueta--ejemplo { background: var(--oro-suave); color: var(--oro-texto); }
.por-completar { color: var(--texto-suave); font-style: italic; }

/* Próxima presentación destacada */
.destacada {
  position: relative; max-width: 34rem; margin-inline: auto; text-align: center;
  background: var(--blanco); padding: 2.25rem 1.5rem 1.75rem;
  border-radius: 50% 50% var(--radio) var(--radio) / 7rem 7rem var(--radio) var(--radio);
  box-shadow: var(--marco-oro), var(--sombra);
}
.destacada__fecha { font-family: var(--serif); font-size: 1.3rem; color: var(--oro-texto); }
.destacada h3 { font-size: 1.75rem; margin: .35rem 0 .5rem; }
.destacada .acciones { justify-content: center; margin-top: 1rem; }
.dato { display: flex; gap: .5rem; align-items: flex-start; justify-content: center; color: var(--texto-suave); margin-bottom: .25rem; }
.dato svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--oro); }

/* Accesos a secciones */
.accesos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.acceso {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  padding: 1.25rem .75rem 1rem; text-decoration: none; color: var(--azul-800);
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: 50% 50% var(--radio) var(--radio) / 3.25rem 3.25rem var(--radio) var(--radio);
  transition: border-color var(--medio) var(--suave), box-shadow var(--medio) var(--suave), transform var(--lento) var(--suave);
}
.acceso:hover { border-color: var(--oro-claro); box-shadow: var(--sombra); color: var(--azul-800); }
.acceso__icono {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--azul-50); color: var(--azul-700);
}
.acceso__icono svg { width: 22px; height: 22px; }
.acceso__nombre { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.acceso__texto { font-size: .88rem; color: var(--texto-suave); line-height: 1.4; }
@media (min-width: 48rem) {
  .accesos { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .acceso:hover { transform: translateY(-3px); }
}

/* Avisos */
.avisos { display: grid; gap: .85rem; }
.aviso { border-left: 3px solid var(--oro); }
.aviso__meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .35rem; }
.aviso h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.aviso p { margin: 0; color: var(--texto-suave); }
@media (min-width: 48rem) { .avisos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Instagram: últimas publicaciones ---------- */
.ig-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 48rem) { .ig-rejilla { gap: 1rem; } }
.ig-item {
  text-decoration: none;
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 50% 50% 8px 8px / 26% 26% 8px 8px;
  background: var(--azul-100); box-shadow: 0 0 0 1px var(--oro-suave);
  isolation: isolate;
}
.ig-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--suave), opacity var(--lento) var(--suave);
}
.ig-item img[data-cargando] { opacity: 0; }
.ig-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5);
  background: linear-gradient(180deg, transparent 55%, rgb(12 29 58 / .35));
  opacity: 0; transition: opacity var(--lento) var(--suave);
}
.ig-item:hover::after, .ig-item:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ig-item:hover img { transform: scale(1.04); }
}
.ig-video {
  position: absolute; right: .4rem; bottom: .4rem; z-index: 1;
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  border-radius: 50%; background: rgb(12 29 58 / .55); color: #fff;
}
.ig-video svg { width: 12px; height: 12px; }
.ig-pie { text-align: center; margin-top: 1.5rem; }
.ig-aviso { text-align: center; font-size: .9rem; color: var(--texto-suave); margin-top: .75rem; }

/* Marcador de posición para imágenes que aún no llegan */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: .35rem;
  padding: .5rem; text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgb(255 255 255 / .75), transparent 70%),
    linear-gradient(160deg, var(--azul-100), var(--azul-200));
  color: var(--azul-700); font-size: .75rem; line-height: 1.3;
}
.ph svg { width: 18px; height: 24px; color: var(--oro); opacity: .9; }

/* ---------- Presentaciones ---------- */
.lista-presentaciones { display: grid; gap: 1rem; }
.presentacion { display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem; align-items: start; }
.presentacion__dia {
  text-align: center; padding: .7rem .25rem .55rem;
  background: var(--azul-700); color: #fff;
  border-radius: 50% 50% 8px 8px / 1.6rem 1.6rem 8px 8px;
  box-shadow: 0 0 0 1px var(--blanco), 0 0 0 2px var(--oro-claro);
}
.presentacion__num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.presentacion__mes { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .15rem; }
.presentacion h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.presentacion__meta { display: grid; gap: .15rem; margin-bottom: .5rem; color: var(--texto-suave); font-size: .97rem; }
.presentacion__meta span { display: flex; gap: .45rem; }
.presentacion__meta svg { width: 16px; height: 16px; margin-top: .3rem; color: var(--oro); flex: none; }
.presentacion__afiche { grid-column: 1 / -1; border-radius: 10px; overflow: hidden; }
.presentacion--pasada .presentacion__dia { background: var(--azul-100); color: var(--azul-800); }
.presentacion--pasada { opacity: .9; }
.hoy { background: var(--oro-suave); color: var(--oro-texto); }

.vacio {
  text-align: center; padding: 2rem 1rem; color: var(--texto-suave);
  border: 1px dashed var(--oro-claro); border-radius: var(--radio); background: var(--blanco);
}

details.historial { margin-top: 2.5rem; }
details.historial > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--azul-800);
  padding: .75rem 0; border-bottom: 1px solid var(--oro-suave);
}
details.historial > summary::-webkit-details-marker { display: none; }
details.historial > summary::after { content: "+"; color: var(--oro); font-size: 1.5rem; transition: transform var(--medio) var(--suave); }
details.historial[open] > summary::after { transform: rotate(45deg); }
details.historial .lista-presentaciones { margin-top: 1rem; }

/* ---------- Mapa (Ubicación) ---------- */
.ubicacion { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .ubicacion { grid-template-columns: 1.15fr .85fr; align-items: center; } }

.mapa-marco {
  position: relative; aspect-ratio: 4 / 5; max-height: 34rem; width: 100%;
  border-radius: 50% 50% var(--radio) var(--radio) / 40% 40% var(--radio) var(--radio);
  box-shadow: var(--marco-oro), var(--sombra);
  background: var(--azul-100);
  overflow: hidden; isolation: isolate; transform: translateZ(0);
}
@media (min-width: 40rem) {
  .mapa-marco { aspect-ratio: 5 / 4; border-radius: 50% 50% var(--radio) var(--radio) / 26% 26% var(--radio) var(--radio); }
}
.mapa { position: absolute; inset: 0; z-index: 0; background: var(--azul-50); }
/* Tonos del mapa ligeramente apagados para no desentonar con la capilla */
.mapa .leaflet-tile-pane { filter: saturate(.55) sepia(.12) brightness(1.03); }
.mapa .leaflet-control-zoom { border: 0; box-shadow: var(--sombra); margin-bottom: 1.25rem !important; }
.mapa .leaflet-control-zoom a { color: var(--azul-800); width: 38px; height: 38px; line-height: 38px; font-size: 20px; }
.mapa .leaflet-control-attribution { font-size: 10px; background: rgb(255 255 255 / .8); }
.mapa .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--sombra); }
.mapa .leaflet-popup-content { margin: .8rem 1rem; font-family: var(--sans); font-size: .95rem; line-height: 1.4; }
.mapa .leaflet-popup-content strong { font-family: var(--serif); font-size: 1.15rem; color: var(--azul-800); display: block; }

/* Marcador: cruz dorada sobre azul */
.marcador-cruz { background: none; border: 0; }
.marcador-cruz__forma {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--azul-700); color: var(--oro-claro);
  box-shadow: 0 0 0 3px var(--blanco), 0 0 0 4px var(--oro), 0 6px 14px rgb(12 29 58 / .35);
}
.marcador-cruz__forma svg { width: 20px; height: 26px; }
.marcador-cruz__halo {
  position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, rgb(216 192 138 / .45), transparent 65%);
  z-index: -1;
}

/* Capa que evita que el mapa "atrape" el dedo al desplazarse por la página */
.mapa-activar {
  position: absolute; inset: auto 0 0 0; z-index: 500; display: flex; justify-content: center;
  padding: 1rem; pointer-events: none;
}
.mapa-activar button {
  pointer-events: auto; min-height: 44px; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--oro-claro); background: rgb(255 255 255 / .95); color: var(--azul-800);
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; box-shadow: var(--sombra);
}
.mapa-marco.activo .mapa-activar { display: none; }

.mapa-respaldo {
  position: absolute; inset: 0; z-index: 600; display: none;
  place-items: center; align-content: center; gap: .5rem; text-align: center; padding: 3.5rem 1.5rem 2rem;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--blanco), transparent 75%),
    linear-gradient(170deg, var(--azul-50), var(--azul-100));
}
.mapa-marco.sin-mapa .mapa-respaldo { display: grid; }
.mapa-respaldo svg { width: 26px; height: 34px; color: var(--oro); }
.mapa-respaldo strong { font-family: var(--serif); font-size: 1.35rem; color: var(--azul-800); }

.direccion h2 { margin-bottom: .25rem; }
.direccion address { font-style: normal; font-size: 1.1rem; margin-bottom: 1.25rem; }
.direccion .acciones { margin-bottom: 1.5rem; }
.estado-copia { min-height: 1.5em; font-size: .92rem; color: var(--oro-texto); margin: -.75rem 0 1rem; }
.bloque { border-top: 1px solid var(--oro-suave); padding-top: 1rem; margin-top: 1rem; }
.bloque h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.redes-fila { display: flex; flex-wrap: wrap; gap: .6rem; }
.redes-fila .boton { min-height: 44px; padding: .5rem 1rem; }

/* ---------- Botones de filtro (panel) ---------- */
.filtro {
  flex: none; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--oro-claro); background: var(--blanco); color: var(--azul-800);
  font: inherit; font-size: .95rem; font-weight: 600;
  transition: background-color var(--medio) var(--suave), color var(--medio) var(--suave);
}
.filtro[aria-pressed="true"] { background: var(--azul-700); border-color: var(--azul-700); color: #fff; }

/* ---------- Nosotros ---------- */
.prosa h2 { margin-top: 2rem; }
.prosa h2:first-child { margin-top: 0; }
.cita {
  font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; color: var(--azul-800); text-align: center;
  margin: 0 auto 2rem; max-width: 30rem;
}
.cita small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--oro-texto); margin-top: .5rem; letter-spacing: .06em; }

/* ---------- Pie ---------- */
.pie { background: var(--azul-950); color: var(--azul-100); padding: 2.75rem 0 1.75rem; margin-top: 2rem; }
.pie a { color: #fff; }
.pie__rejilla { display: grid; gap: 1.75rem; }
@media (min-width: 48rem) { .pie__rejilla { grid-template-columns: 1.2fr 1fr 1fr; } }
.pie__nombre { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: #fff; letter-spacing: .06em; margin: 0; }
.pie__lema { font-family: var(--serif); font-size: 1.15rem; color: var(--oro-claro); margin: 0 0 .4rem; }
.pie h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-claro); margin-bottom: .75rem; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.pie address { font-style: normal; }
.pie .red { background: transparent; color: #fff; border-color: rgb(216 192 138 / .55); }
.pie .red:hover { background: var(--oro-claro); color: var(--azul-950); }
.pie__redes { display: flex; gap: .6rem; flex-wrap: wrap; }
.pie__legal { border-top: 1px solid rgb(216 192 138 / .25); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: var(--azul-200); text-align: center; }

/* ---------- Movimiento (lento y discreto) ---------- */
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .js-mov .revelar { opacity: 0; transform: translateY(14px); transition: opacity var(--lento) var(--suave), transform var(--lento) var(--suave); }
  .js-mov .revelar.visible { opacity: 1; transform: none; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   ETAPA 2 · Cuentas, formularios y panel
   ========================================================================== */
.caja-cuenta {
  max-width: 28rem; margin: 0 auto; background: var(--blanco);
  padding: 2rem 1.25rem 1.5rem; box-shadow: var(--marco-oro), var(--sombra);
  border-radius: 50% 50% var(--radio) var(--radio) / 5rem 5rem var(--radio) var(--radio);
}
.caja-cuenta h1 { font-size: 2rem; text-align: center; }
.caja-cuenta > p { text-align: center; color: var(--texto-suave); }
.caja-cuenta__pie { text-align: center; font-size: .95rem; margin-top: 1.25rem; display: grid; gap: .4rem; }

.formulario { display: grid; gap: 1.1rem; }
.campo { display: grid; gap: .35rem; }
.campo label, .campo legend { font-weight: 600; font-size: .98rem; color: var(--texto); }
.campo .opcional { font-weight: 400; color: var(--texto-suave); font-size: .9rem; }
.campo input[type=text], .campo input[type=email], .campo input[type=password], .campo input[type=url],
.campo input[type=date], .campo input[type=time], .campo textarea, .campo select {
  width: 100%; min-height: 48px; padding: .65rem .85rem;
  font: inherit; font-size: 1rem; color: var(--texto);
  background: var(--blanco); border: 1px solid #c9c6bb; border-radius: 10px;
  transition: border-color var(--medio) var(--suave), box-shadow var(--medio) var(--suave);
}
.campo textarea { min-height: 6.5rem; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus {
  outline: none; border-color: var(--azul-500); box-shadow: 0 0 0 3px var(--azul-100);
}
.campo input[aria-invalid=true], .campo textarea[aria-invalid=true] { border-color: #a3332b; }
.campo__ayuda { font-size: .88rem; color: var(--texto-suave); margin: 0; }
.campo__error { font-size: .9rem; color: #a3332b; margin: 0; font-weight: 600; }
.fila-2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario .boton { width: 100%; }
@media (min-width: 40rem) { .formulario .acciones .boton { width: auto; } }

.mensaje { padding: .8rem 1rem; border-radius: 10px; font-size: .97rem; line-height: 1.45; }
.mensaje:focus { outline: none; }
.mensaje--error { background: #fbeceb; color: #7a2620; border: 1px solid #efc9c5; }
.mensaje--ok { background: #eaf4ec; color: #1f5a2c; border: 1px solid #c4e0ca; }
.mensaje--info { background: var(--azul-50); color: var(--azul-800); border: 1px solid var(--azul-200); }
.mensaje code { font-size: .9em; }

.barra-cuenta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .75rem 0; border-bottom: 1px solid var(--oro-suave); margin-bottom: 1.5rem;
}
.barra-cuenta__nombre { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--azul-800); margin-right: .5rem; }

.panel-cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.panel-cabeza h1, .panel-cabeza h2 { margin: 0; }
.pestanas { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }

.item-panel {
  display: grid; gap: .5rem; padding: 1rem; background: var(--blanco);
  border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra);
}
.item-panel h3 { font-size: 1.25rem; margin: 0; }
.item-panel__meta { font-size: .93rem; color: var(--texto-suave); margin: 0; }
.item-panel .acciones .boton { min-height: 42px; padding: .45rem 1rem; font-size: .95rem; }
.lista-panel { display: grid; gap: .85rem; }
.boton--peligro { background: var(--blanco); color: #8f2a22; border-color: #e3b9b4; }
.boton--peligro:hover { background: #fbeceb; color: #7a2620; }
.contador { font-size: .85rem; color: var(--texto-suave); text-align: right; margin: 0; }

.afiche-vista { display: grid; gap: .5rem; justify-items: start; }
.afiche-vista img { max-height: 16rem; width: auto; border-radius: 10px; box-shadow: var(--sombra); }
.campo input[type=file] { font: inherit; font-size: .95rem; max-width: 100%; }

.acceso-admin { font-size: .9rem; }
