/* =========================================================
   Vitrina de Proyectos — sistema visual v2 (institucional)
   ========================================================= */
:root {
  --black: #000;
  --band: #0E0F12;
  --white: #fff;
  --ink: #111214;
  --gray-50: #F4F5F7;
  --gray-200: #E1E3E8;
  --gray-300: #C9CCD3;
  --gray-500: #686D78;
  --gray-700: #3B3F47;
  --dim: #A9AEB8;
  --line-dark: #2B2E35;
  --accent: #3552FF;
  --accent-hover: #1F3BEB;
  --accent-soft: #E8ECFF;

  --sans: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(90px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .88em; background: var(--gray-50); padding: 1px 6px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* etiqueta institucional en mayúsculas espaciadas */
.label { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--light { background: #fff; color: var(--black); }
.btn--light:hover { background: var(--gray-200); }
.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline:hover { background: rgba(127, 127, 127, .12); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }

/* flecha circular, firma visual del sitio */
.arrow { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; }
.arrow::before { content: ""; width: 12px; height: 2px; background: currentColor; transform: translateX(-2px); }
.arrow::after { content: ""; position: absolute; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateX(3px) rotate(45deg); }
.arrow { position: relative; }
.arrow--lg { width: 44px; height: 44px; }
.link-arrow { display: inline-flex; align-items: center; gap: 14px; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.link-arrow:hover .arrow { background: var(--accent-hover); }

/* ---------- cabecera ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--black); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.top__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; gap: 24px; }
.search { position: relative; max-width: 300px; }
.search input { width: 100%; height: 44px; background: transparent; border: 1px solid #5B5F68; color: #fff; padding: 0 14px 0 42px; border-radius: 0; font-size: 1rem; }
.search input::placeholder { color: #9EA3AD; }
.search input:focus { outline: none; border-color: #fff; }
.search::before { content: ""; position: absolute; left: 15px; top: 13px; width: 13px; height: 13px; border: 2px solid #9EA3AD; border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 27px; top: 28px; width: 6px; height: 2px; background: #9EA3AD; transform: rotate(45deg); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: center; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.05; }
.nav { justify-self: end; display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.nav .btn:hover { text-decoration: none; }
.menu-btn { display: none; justify-self: end; background: none; border: 1px solid #5B5F68; color: #fff; height: 42px; padding: 0 16px; cursor: pointer; font-weight: 700; }
@media (max-width: 1020px) {
  .top__inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; order: -1; }
  .search { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); border-top: 1px solid var(--line-dark); padding: 8px var(--gutter) 20px; }
  .nav.is-open { display: flex; }
  .nav li a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 16px; width: 100%; min-height: 50px; }
}

/* sub-navegación con migas */
.subnav { background: var(--band); color: #fff; border-top: 1px solid var(--line-dark); }
.subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: .95rem; min-width: 0; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.subnav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.subnav__links a { text-decoration: none; font-weight: 700; font-size: .98rem; }
.subnav__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 720px) { .subnav__links { display: none; } }

/* ---------- portada ---------- */
.hero { background: var(--black); color: #fff; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 88px); align-items: end; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 96px); }
@media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; } }
.hero__label { color: var(--dim); margin: 0 0 22px; }
.hero__title { font-weight: 800; font-size: clamp(2.5rem, 5.8vw, 5rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 26px; max-width: 15ch; text-wrap: balance; }
.hero__lede { color: #D5D8DE; font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 50ch; margin: 0 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-dark); list-style: none; }
.hero__facts li { color: var(--dim); }
.hero__facts strong { color: #fff; font-weight: 500; }
.hero__feature .card { min-height: 520px; }
.hero__feature-label { color: var(--dim); margin: 0 0 14px; }
.notice { margin: 26px 0 0; padding: 14px 18px; border-left: 4px solid #F2C94C; background: #17181C; color: #F3DE9B; font-size: .96rem; }
.notice--error { border-color: #FF7B6B; color: #FFC3BA; }

/* ---------- secciones ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--dark { background: var(--black); color: #fff; }
.section--gray { background: var(--gray-50); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px 40px; margin-bottom: 40px; }
.h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.section__lede { margin: 14px 0 0; color: var(--gray-500); max-width: 56ch; font-size: 1.08rem; }
.section--dark .section__lede { color: var(--dim); }

/* controles del listado */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 36px; padding: 0 0 22px; margin-bottom: 34px; border-bottom: 1px solid var(--gray-200); }
.find { position: relative; flex: 1 1 320px; max-width: 520px; }
.find input { width: 100%; height: 52px; border: 0; border-bottom: 2px solid var(--gray-300); background: transparent; padding: 0 8px 0 46px; font-size: 1.1rem; border-radius: 0; }
.find input:focus { outline: none; border-color: var(--ink); }
.find::before { content: ""; position: absolute; left: 6px; top: 13px; width: 20px; height: 20px; border: 3px solid var(--ink); border-radius: 50%; }
.find::after { content: ""; position: absolute; left: 23px; top: 36px; width: 10px; height: 3px; background: var(--ink); transform: rotate(45deg); }
.selects { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.select { display: inline-flex; align-items: center; gap: 8px; }
.select span { color: var(--gray-500); }
.select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 8px 30px 8px 2px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px; background-repeat: no-repeat; max-width: 240px; }
.result-count { color: var(--gray-500); margin: -18px 0 26px; font-size: .95rem; }

/* ---------- tarjetas de imagen ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; overflow: hidden; background: #15161A; color: #fff; isolation: isolate; }
.card__media { position: absolute; inset: 0; z-index: -2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.92) 100%); }
.gen { --h: 225; position: absolute; inset: 0;
  background: var(--grain), radial-gradient(90% 70% at 85% 10%, hsl(var(--h) 55% 42%), transparent 60%), radial-gradient(80% 70% at 0% 100%, hsl(calc(var(--h) + 40) 45% 22%), transparent 65%), hsl(var(--h) 30% 9%); }
.gen::before, .gen::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.gen::before { width: 150%; aspect-ratio: 1; left: 30%; top: -60%; }
.gen::after { width: 95%; aspect-ratio: 1; left: 58%; top: -32%; border-style: dashed; border-color: rgba(255, 255, 255, .1); }
.card__top { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 10px; }
.card__tag { background: rgba(0, 0, 0, .55); padding: 5px 9px; backdrop-filter: blur(4px); }
.card__rank { background: #fff; color: var(--black); padding: 5px 9px; }
.card__body { padding: 26px 24px 26px; }
.card__meta { color: #C9CCD3; margin: 0 0 12px; }
.card__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.card__title { margin: 0; font-weight: 800; font-size: 1.55rem; line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.card__desc { margin: 12px 0 0; color: #D5D8DE; font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin: 16px 0 0; color: #C9CCD3; }
.card--lg .card__title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }

.skeleton { min-height: 460px; background: linear-gradient(100deg, var(--gray-50) 30%, var(--gray-200) 50%, var(--gray-50) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.empty { grid-column: 1 / -1; padding: 64px 28px; border: 1px solid var(--gray-200); text-align: center; color: var(--gray-500); }
.empty__title { font-weight: 800; color: var(--ink); font-size: 1.5rem; margin: 0 0 8px; letter-spacing: -.02em; }
.empty .btn { margin-top: 22px; }

/* ---------- pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.step__n { color: var(--dim); margin: 0 0 30px; }
.step__title { margin: 0 0 10px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.step__text { margin: 0; color: var(--dim); }

/* ---------- preguntas ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px 80px; }
@media (max-width: 960px) { .faq-layout { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--gray-200); }
.faq details:last-child { border-bottom: 1px solid var(--gray-200); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 26px; color: var(--gray-700); max-width: 64ch; }

/* ---------- llamada final ---------- */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--gray-200); }
.cta__title { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -.035em; line-height: 1.02; margin: 0; max-width: 16ch; }

/* ---------- pie ---------- */
.footer { background: var(--black); color: #fff; padding: clamp(56px, 7vw, 88px) 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .7fr)); gap: 44px 40px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__mark { width: 64px; height: 64px; margin-bottom: 26px; }
.footer__name { font-weight: 800; font-size: 1.9rem; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 18px; }
.footer__mission { color: #D5D8DE; margin: 0 0 26px; max-width: 42ch; }
.footer__about .link-arrow { color: #fff; }
.footer__col h2 { color: var(--dim); margin: 6px 0 18px; font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer__col a { text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; color: var(--dim); font-size: .95rem; }
.footer__bottom strong { color: #fff; font-weight: 600; }

/* ---------- página de proyecto ---------- */
.phead { background: var(--black); color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.phead__label { color: var(--dim); margin: 0 0 18px; }
.phead__title { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.03; letter-spacing: -.035em; margin: 0; max-width: 22ch; overflow-wrap: anywhere; }
.phead__facts { display: flex; flex-wrap: wrap; gap: 10px 34px; list-style: none; margin: 30px 0 0; padding: 0; color: var(--dim); }
.phead__facts strong { color: #fff; font-weight: 500; }
.detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: clamp(36px, 5vw, 56px); }
@media (max-width: 980px) { .detail { grid-template-columns: 1fr; } }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player--vertical { aspect-ratio: 9 / 16; max-width: 420px; }
.player--empty, .player--link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: center; background: var(--gray-50); color: var(--gray-500); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.player__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.player__facade:hover img { opacity: 1; }
.player__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; background: var(--accent); }
.player__play::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 26px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.tabs { display: flex; gap: 28px; margin-bottom: 18px; border-bottom: 1px solid var(--gray-200); }
.tab { border: 0; background: none; padding: 0 0 12px; cursor: pointer; color: var(--gray-500); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.about { margin-top: 40px; }
.about h2 { margin: 0 0 12px; color: var(--gray-500); font-weight: 500; }
.about p { margin: 0; font-size: 1.15rem; max-width: 62ch; }
.aside { position: sticky; top: 108px; }
@media (max-width: 980px) { .aside { position: static; } }
.panel { border: 1px solid var(--gray-200); padding: 30px; }
.panel + .panel { border-top: 0; }
.panel__title { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 6px; }
.panel__text { color: var(--gray-500); margin: 0 0 22px; font-size: 1rem; }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field__hint { font-weight: 400; color: var(--gray-500); }
.field input, .field textarea { width: 100%; border: 1px solid var(--gray-300); border-radius: 0; padding: 12px 14px; font-size: 1rem; background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field__count { display: block; text-align: right; color: var(--gray-500); font-size: .85rem; margin-top: 4px; font-family: var(--mono); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 14px 0 0; font-size: .95rem; }
.form-msg--error { color: #B42318; }
.done { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; }
.done__title { font-weight: 800; font-size: 1.3rem; margin: 0 0 6px; }
.done p { margin: 0 0 16px; color: var(--gray-700); }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share .btn { min-height: 48px; padding: 0 12px; font-size: .95rem; }
.fine { color: var(--gray-500); font-size: .88rem; margin: 18px 0 0; }
.report-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.report-link:hover .arrow { background: var(--accent-hover); }

.block { padding-top: clamp(56px, 7vw, 88px); }
.block__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.block__title { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; margin: 0; }
.comments { list-style: none; margin: 0; padding: 0; }
.comment { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--gray-200); }
@media (max-width: 720px) { .comment { grid-template-columns: 1fr; } }
.comment__who { margin: 0; font-weight: 800; }
.comment__meta { margin: 4px 0 0; color: var(--gray-500); }
.comment__text { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.comment--pending { background: var(--accent-soft); padding-left: 18px; padding-right: 18px; }
.muted { color: var(--gray-500); }
.empty-note { color: var(--gray-500); padding: 26px 0; margin: 0; border-bottom: 1px solid var(--gray-200); }

/* ---------- páginas legales ---------- */
.prose { max-width: 780px; padding: clamp(48px, 6vw, 80px) 0 20px; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--gray-700); }

/* ---------- aviso flotante ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); z-index: 90; background: var(--black); color: #fff; padding: 14px 22px; font-weight: 700; font-size: .96rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reporte ---------- */
.report-page { background: #E6E8EC; }
.report__bar { max-width: 880px; margin: 0 auto; padding: 24px var(--gutter) 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.report__bar .link { color: var(--ink); font-weight: 700; }
.sheet { max-width: 880px; margin: 18px auto 60px; background: #fff; padding: clamp(28px, 6vw, 64px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .35); }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 3px solid var(--black); }
.sheet__brand { font-weight: 800; margin: 0; font-size: 1.05rem; }
.sheet__edition, .sheet__stamp { margin: 2px 0 0; color: var(--gray-500); font-size: .86rem; }
.sheet__stamp { text-align: right; }
.sheet__kicker { margin: 34px 0 8px; color: var(--gray-500); }
.sheet__title { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 8px; overflow-wrap: anywhere; }
.sheet__meta { margin: 0; color: var(--gray-500); }
.sheet__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 8px; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
@media (max-width: 520px) { .sheet__stats { grid-template-columns: 1fr; } }
.sheet__stats > div { padding: 18px 16px 18px 0; display: flex; flex-direction: column; gap: 4px; }
.sheet__stats > div + div { border-left: 1px solid var(--gray-200); padding-left: 18px; }
.sheet__n { font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.02em; }
.sheet__l { color: var(--gray-500); font-size: .82rem; }
.sheet__h2 { font-size: 1.05rem; margin: 34px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--gray-200); }
.sheet__links { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: .92rem; }
.sheet__links dt { font-weight: 700; }
.sheet__links dd { margin: 0; overflow-wrap: anywhere; color: var(--accent); }
.sheet__comments { margin: 0; padding-left: 22px; }
.sheet__comments li { margin-bottom: 14px; }
.sheet__comments blockquote { margin: 0; padding: 8px 14px; border-left: 3px solid var(--black); background: var(--gray-50); }
.sheet__comments p { margin: 4px 0 0; color: var(--gray-500); font-size: .86rem; }
.sheet__muted { color: var(--gray-500); font-size: .92rem; }
.sheet__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sheet__table th, .sheet__table td { border: 1px solid var(--gray-300); padding: 10px; text-align: left; }
.sheet__table thead th { background: var(--gray-50); }
.sheet__table td { height: 38px; }
.sheet__foot { margin-top: 34px; padding-top: 16px; border-top: 3px solid var(--black); font-size: .86rem; color: var(--gray-700); }
@media print {
  @page { size: A4; margin: 14mm; }
  .no-print { display: none !important; }
  .report-page { background: #fff; }
  .sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .sheet__comments li { break-inside: avoid; }
}

/* ---------- ajustes ---------- */
.steps-cta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px; }
#project > .wrap { padding-bottom: clamp(72px, 9vw, 120px); }
.page-end { padding-bottom: clamp(72px, 9vw, 120px); }
.phead__meta { color: var(--dim); margin: 22px 0 0; }
.link { color: var(--accent); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.notice code { background: rgba(255, 255, 255, .12); color: inherit; }
