/* REFLEJOS — Cédula de sala.
   El sitio es un muro de galería: pared pintada, obra colgada, cédulas montadas. */
:root {
  --wall: #f3f3f0;          /* muro blanco de sala, neutro */
  --wall-2: #e8e8e3;
  --paint: #274b3f;         /* pared pintada: verde sala */
  --paint-ink: #eef3ef;
  --paint-soft: #c9d8d0;
  --label: #ffffff;         /* cédula montada */
  --ink: #1c1d1b;
  --ink-2: #4e514c;
  --ink-3: #62665f;
  --rule: #d6d7d1;
  --accent: #274b3f;
  --accent-hover: #1b372e;
  --error: #b3261e;
  --ok: #2f6b45;
  --mount: 0 0 0 1px rgba(28, 29, 27, .05), 0 1px 0 1px rgba(28, 29, 27, .07), 0 7px 18px -6px rgba(28, 29, 27, .2);
  --hang: 0 2px 3px rgba(0, 0, 0, .18), 0 24px 48px -12px rgba(0, 0, 0, .45);
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --brand: "Great Vibes", cursive;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) var(--wall-2); scrollbar-width: thin; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-variant-numeric: lining-nums;
  caret-color: var(--accent); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--paint); color: var(--paint-ink); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.muted { color: var(--ink-3); }
.opt { color: var(--ink-3); font-weight: 400; }

/* ---------- Barra superior ---------- */
.site-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter);
}
.site-bar.on-paint { background: var(--paint); color: var(--paint-ink); }
.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; color: inherit; }
.brand-script { font-family: var(--brand); font-size: 2rem; line-height: 1; }
.brand-org { font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.site-bar a.bar-link { color: inherit; font-weight: 600; font-size: .95rem; }
.brand:hover { color: inherit; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.4rem; border: 1px solid transparent; border-radius: 2px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #8f1d17; color: #fff; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.linklike.danger { color: var(--error); }
.inline { display: inline; }

/* ---------- Cédula (componente base) ---------- */
.cedula {
  background: var(--label); color: var(--ink); box-shadow: var(--mount);
  padding: clamp(1.1rem, 2.4vw, 1.6rem); border-radius: 1px;
}
.cedula-autor { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5rem; }
.cedula-titulo { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: 0; line-height: 1; }
.cedula-sub { font-size: 1.05rem; margin: .35rem 0 1rem; color: var(--ink-2); }
.cedula-datos { margin: 0; border-top: 1px solid var(--rule); }
.cedula-datos > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.cedula-datos dt { font-size: .82rem; color: var(--ink-3); padding-top: .12rem; }
.cedula-datos dd { margin: 0; font-weight: 500; }

/* ---------- Home: pared pintada ---------- */
.home .site-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: transparent; color: var(--paint-ink); }
.home main { position: relative; }
.pared {
  background:
    radial-gradient(ellipse 60% 75% at 32% 38%, rgba(255, 234, 196, .2), transparent 72%),
    var(--paint);
  color: var(--paint-ink);
  padding: calc(64px + clamp(1rem, 4vw, 3rem)) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.pared-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.obra { margin: 0; position: relative; justify-self: end; width: min(100%, 540px); }
.obra img { width: 100%; height: auto; box-shadow: var(--hang); }
.obra figcaption { margin-top: .9rem; font-size: .8rem; color: var(--paint-soft); }
.cedula--hero { max-width: 430px; }
.cedula--hero .btn { margin-top: 1.4rem; width: 100%; }
.cedula-pregunta { font-weight: 700; }

/* ---------- Home: muro blanco ---------- */
.muro { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); }
.muro-inner { max-width: 1240px; margin: 0 auto; }

.ficha {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0;
  border-top: 2px solid var(--ink);
}
.ficha > div { padding: 1rem 1.2rem 1.2rem 0; border-bottom: 1px solid var(--rule); }
.ficha > div + div { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.ficha dt { font-size: .82rem; color: var(--ink-3); margin-bottom: .35rem; }
.ficha dd { margin: 0; font-weight: 600; font-size: 1.02rem; line-height: 1.4; }

.texto-sala {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 5vw, 5rem); margin-top: clamp(4rem, 9vw, 7rem);
}
.texto-sala h2 { font-size: clamp(2rem, 4vw, 3rem); }
.texto-sala .cuerpo { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 38em; }
.texto-sala .cuerpo p:last-child { margin-bottom: 0; }
.objetivos { list-style: none; margin: 0; padding: 0; }
.objetivos li { padding: .9rem 0; border-top: 1px solid var(--rule); }
.objetivos li:last-child { border-bottom: 1px solid var(--rule); }

/* Hueco en el muro: la invitación */
.hueco-wrap { background: var(--wall-2); padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); }
.hueco-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.hueco {
  aspect-ratio: 4 / 5; width: min(100%, 440px); justify-self: end;
  border: 2px dashed #a6a9a1; display: grid; place-items: center; text-align: center;
  color: var(--ink-3); padding: 2rem; position: relative;
}
.hueco svg { width: 40px; height: 40px; margin: 0 auto .8rem; color: #8d918a; }
.hueco p { margin: 0; font-size: 1.05rem; }
.hueco::before, .hueco::after { /* clavos */
  content: ""; position: absolute; top: -9px; width: 8px; height: 8px; border-radius: 50%;
  background: #9a9d95; box-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.hueco::before { left: 28%; }
.hueco::after { right: 28%; }
.invitacion h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.invitacion p { font-size: 1.15rem; max-width: 30em; color: var(--ink-2); }
.tecnicas { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.tecnicas li { background: var(--label); box-shadow: var(--mount); padding: .35rem .7rem; font-size: .9rem; font-weight: 500; }

.site-footer {
  padding: 2rem var(--gutter); border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  font-size: .88rem; color: var(--ink-3);
}
.site-footer p { margin: 0; }

/* ---------- Inscripción ---------- */
.inscripcion-page { background: var(--wall); }
.form-layout {
  max-width: 1180px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 3rem;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.form-head { grid-column: 1 / -1; max-width: 760px; }
.form-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: .3em; }
.form-head p { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.form-head .evento { font-weight: 600; color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; margin-bottom: 1.4rem; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; }
.back svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-ghost svg, .back svg { stroke-width: 2; }

.preview { position: sticky; top: 1.5rem; grid-column: 2; grid-row: 2; }
.preview-label { font-size: .85rem; color: var(--ink-3); margin: 0 0 .6rem; }
.preview .cedula-titulo { font-size: 1.7rem; overflow-wrap: anywhere; }
.preview .vacio { color: var(--ink-3); font-weight: 400; }
.preview .cedula-datos > div { grid-template-columns: 5.5rem 1fr; }
.preview .cedula-datos dd { overflow-wrap: anywhere; }

.form { grid-column: 1; grid-row: 2; min-width: 0; }
.form fieldset { border: 0; padding: 0; margin: 0 0 2.6rem; min-width: 0; }
.form legend {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; padding: 0 0 .8rem;
  width: 100%; border-bottom: 2px solid var(--ink); margin-bottom: 1.4rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.span-2 { grid-column: 1 / -1; }
.field { margin-bottom: 1.35rem; min-width: 0; }
.field[hidden] { display: none; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: .4rem; }
.help { margin: -.2rem 0 .5rem; color: var(--ink-3); font-size: .92rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url],
input[type=password], input[type=search], select, textarea {
  width: 100%; background: var(--label); color: var(--ink);
  border: 1px solid #b9bbb4; border-bottom: 2px solid var(--ink-2); border-radius: 0;
  padding: .7rem .85rem; font: 400 1rem/1.4 var(--sans); min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1d1b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
textarea { resize: vertical; min-height: 7.5rem; }
::placeholder { color: var(--ink-3); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39, 75, 63, .18); }
/* Error: doble subrayado además del color */
[aria-invalid="true"]:not(.chips) { border-color: var(--error); border-bottom: 4px double var(--error); }
.field-error { color: var(--error); font-size: .92rem; font-weight: 500; margin: .4rem 0 0; }

input[type=file] { width: 100%; font: inherit; color: var(--ink-2); padding: .8rem; background: var(--label); border: 1px dashed #9ea198; }
input[type=file]::file-selector-button { font: 600 .92rem var(--sans); border: 1px solid var(--ink); border-radius: 2px; padding: .55rem .9rem; margin-right: .9rem; background: transparent; color: var(--ink); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--ink); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .55rem .85rem; background: var(--label); box-shadow: var(--mount);
  font-size: .95rem; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: background-color .12s ease, color .12s ease;
}
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--accent); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.previews { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.previews img { width: 92px; height: 92px; object-fit: cover; box-shadow: var(--mount); }

.consent { margin: 0 0 1.6rem; padding: 1.1rem 1.2rem; background: var(--label); box-shadow: var(--mount); }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: .9rem 1.1rem; margin: 0 0 1.6rem; font-size: 1rem; background: var(--label); box-shadow: var(--mount); }
.alert-error { color: var(--error); box-shadow: var(--mount), inset 0 -3px 0 var(--error); font-weight: 500; }
.alert-ok { color: var(--ok); box-shadow: var(--mount), inset 0 -3px 0 var(--ok); font-weight: 500; }

/* ---------- Gracias ---------- */
.gracias {
  max-width: 1080px; margin: 0 auto; padding: clamp(2.5rem, 8vw, 6rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.gracias h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.gracias p { font-size: 1.12rem; color: var(--ink-2); max-width: 32em; }
.gracias .btn { margin-top: .6rem; }

/* ---------- Admin ---------- */
body.admin { font-size: 15px; }
.admin-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem;
  padding: .7rem var(--gutter); background: var(--paint); color: var(--paint-ink);
  position: sticky; top: 0; z-index: 5;
}
.admin-brand { display: flex; align-items: baseline; gap: .5rem; color: inherit; text-decoration: none; }
.admin-brand .brand-script { font-size: 1.8rem; }
.admin-brand .brand-org { font-size: .68rem; }
.admin-bar nav { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; align-items: center; }
.admin-bar nav a, .admin-bar nav .linklike { color: var(--paint-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.admin-bar nav a:hover, .admin-bar nav .linklike:hover { color: #fff; }
.admin-bar nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 #fff; padding-bottom: 2px; }
.admin-main { max-width: 1320px; margin: 0 auto; padding: 1.8rem var(--gutter) 3rem; }
.admin-main h1 { font-size: 2rem; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.admin-top h1 { margin: 0; }
.count { font-size: .85rem; font-weight: 600; background: var(--wall-2); padding: .15rem .55rem; vertical-align: middle; letter-spacing: 0; }
.badge { font-size: .72rem; background: var(--accent); color: #fff; padding: .1rem .45rem; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 0 0 1.6rem; border-top: 2px solid var(--ink); }
.stat { padding: .8rem .8rem .9rem 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.stat + .stat { padding-left: .8rem; border-left: 1px solid var(--rule); }
.stat:hover { background: var(--label); color: var(--ink); }
.stat.is-active { background: var(--accent); color: #fff; }
.stat.is-active .stat-l { color: var(--paint-soft); }
.stat-n { font-size: 1.7rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-l { font-size: .8rem; color: var(--ink-3); line-height: 1.3; }

.admin-cols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.panel { background: var(--label); box-shadow: var(--mount); padding: 1.1rem 1.25rem; margin-bottom: 1.4rem; min-width: 0; }
.panel h2 { font-size: 1.2rem; }
.panel.narrow { max-width: 480px; }
.iglesias { list-style: none; margin: 0 -.5rem; padding: 0; }
.iglesias a { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem; color: var(--ink); text-decoration: none; font-size: .95rem; }
.iglesias a span { font-weight: 700; font-variant-numeric: tabular-nums; }
.iglesias a:hover { background: var(--wall); }
.iglesias a[aria-current] { background: var(--accent); color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { flex: 0 1 230px; width: auto; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tabla .inv, .tabla td.num { font-variant-numeric: tabular-nums; }
.tabla th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--ink-3); padding: .55rem .7rem; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tabla td { padding: .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tabla tbody tr:hover td { background: var(--wall); }
.tabla .nowrap { white-space: nowrap; }
.tabla .right { text-align: right; }
.inv { color: var(--ink-3); font-size: .85rem; }
.empty { color: var(--ink-3); padding: 2rem 0; text-align: center; }

.detalle-head { margin-bottom: 1.4rem; }
.detalle-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .2rem; }
.detalle-head p { margin: 0; color: var(--ink-2); }
.detalle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.4rem; }
.datos { margin: 0; }
.dato { padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.dato:last-child { border-bottom: 0; }
.dato dt { font-size: .82rem; color: var(--ink-3); margin-bottom: .15rem; }
.dato dd { margin: 0; overflow-wrap: anywhere; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.2rem; }
.galeria figure { margin: 0; }
.galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--mount); }
.cedula--mini { display: grid; gap: .1rem; padding: .7rem .8rem; margin-top: .8rem; font-size: .85rem; overflow-wrap: anywhere; }
.cedula--mini .cedula-autor { font-size: .7rem; margin: 0; }
.cedula--mini a { margin-top: .35rem; font-size: .82rem; }
.peligro summary { cursor: pointer; color: var(--error); font-weight: 600; list-style: none; display: flex; align-items: center; gap: .5rem; }
.peligro summary::-webkit-details-marker { display: none; }
.peligro summary::before { content: ""; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.peligro[open] summary::before { transform: rotate(45deg); }
.peligro form { margin-top: 1rem; display: grid; gap: .6rem; max-width: 360px; }

.login-page { background: var(--paint); min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter); }
.login-box { width: min(100%, 400px); }
.login-box .brand { color: var(--paint-ink); margin-bottom: 1rem; }
.login-box .cedula h1 { font-size: 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ficha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ficha > div + div { padding-left: 0; border-left: 0; }
  .ficha > div:nth-child(even) { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat:nth-child(5) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .pared-inner, .texto-sala, .hueco-inner, .gracias, .admin-cols, .detalle-grid { grid-template-columns: 1fr; }
  .obra { justify-self: center; width: auto; }
  .obra img { max-height: 40svh; width: auto; margin: 0 auto; }
  .cedula--hero { max-width: none; }
  .hueco { justify-self: center; order: 2; aspect-ratio: 4 / 3; }
  .form-layout { grid-template-columns: 1fr; }
  .preview { position: static; grid-column: 1; grid-row: 2; }
  .form { grid-row: 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pared { padding-top: 64px; }
  .pared-inner { gap: 1.2rem; }
  .cedula--hero { padding: 1rem 1.1rem; }
  .cedula--hero .cedula-titulo { font-size: 2rem; }
  .cedula--hero .cedula-sub { margin-bottom: .6rem; }
  .cedula--hero .cedula-datos > div { grid-template-columns: 5rem 1fr; padding: .4rem 0; }
  .cedula--hero .btn { margin-top: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .ficha { grid-template-columns: 1fr; }
  .ficha > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: .8rem; border-left: 1px solid var(--rule); }
  .brand-org { display: none; }
}

/* Movimiento: la obra se asienta en el muro una sola vez */
@media (prefers-reduced-motion: no-preference) {
  .obra img { animation: colgar .9s cubic-bezier(.16, 1, .3, 1) both; transform-origin: 50% 0; }
  .cedula--hero { animation: montar .7s .25s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes colgar { from { transform: rotate(-1.2deg) translateY(-6px); box-shadow: 0 2px 3px rgba(0,0,0,.1), 0 40px 60px -12px rgba(0,0,0,.35); } to { transform: none; } }
  @keyframes montar { from { transform: translateY(8px); filter: blur(2px); } to { transform: none; filter: none; } }
}
