/* Portada: ingreso y dos puertas (presentación y checklist) sobre el verde de la marca. */
body.inicio { min-height: 100%; background: linear-gradient(125deg, var(--band-a), var(--band-b) 55%, var(--band-c)); background-attachment: fixed; color: var(--band-fg) }
.hub { max-width: 1120px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; gap: clamp(28px, 5vw, 56px);
  padding-block: 24px 40px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.hub-top { display: flex; justify-content: space-between; align-items: center; gap: 16px }
.hub-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 8vw, 96px); line-height: .98; letter-spacing: -.035em; margin: 0; text-wrap: balance }
.hub-hero h1 .dim { color: rgba(245, 244, 238, .55) }
.hub-hero p { font-size: clamp(17px, 2vw, 21px); color: var(--band-muted); max-width: 46ch; margin-top: 18px }

.doors { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px }
.door { position: relative; display: block; min-height: 420px; border-radius: 28px; overflow: hidden; color: #F5F4EE; text-decoration: none; isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s }
.door:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65) }
.door:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) }
.door:hover img { transform: scale(1.1) }
.door-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 30, 12, .95) 0%, rgba(8, 30, 12, .55) 45%, rgba(8, 30, 12, 0) 75%) }
.door-check { background: rgba(8, 36, 14, .55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(245, 244, 238, .14) }
.door-body { position: absolute; inset: auto 0 0 0; padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px }
.door-check .door-body { inset: 0; align-content: end }
.door-k { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow) }
.door-t { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance }
.door-cta { margin-top: 8px; font-weight: 700; font-size: 16px; display: inline-flex; gap: 8px; align-items: center }
.door-cta span { transition: transform .4s cubic-bezier(.2, .8, .2, 1) }
.door:hover .door-cta span { transform: translateX(6px) }
.door-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 6px }
.door-stats span { display: grid; gap: 2px }
.door-stats b { font-family: var(--f-num); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums }
.door-stats small { font-size: 12px; color: var(--band-muted) }
.hub-foot { text-align: center; font-size: 14px }
.hub-foot a { color: var(--band-muted); text-underline-offset: 3px }
.hub-foot a:hover { color: var(--band-fg) }

/* Banner de piezas por aprobar: vidrio sobre el verde, con un abanico de las últimas piezas */
.aprob { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 40%); gap: 24px; align-items: center; min-height: 260px; padding: clamp(24px, 3.2vw, 40px);
  border-radius: 28px; overflow: hidden; isolation: isolate; color: #F5F4EE; text-decoration: none;
  background: linear-gradient(120deg, rgba(8, 36, 14, .62), rgba(8, 36, 14, .28)); border: 1px solid rgba(245, 244, 238, .16);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s }
.aprob:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .1) }
.aprob:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px }
.aprob-glow { position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 230, 58, .22), rgba(242, 230, 58, 0) 65%); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) }
.aprob:hover .aprob-glow { transform: translate(-40px, 30px) scale(1.1) }
.aprob-body { display: grid; gap: 12px; align-content: center }
.aprob .door-k { display: inline-flex; align-items: center; gap: 10px }
.aprob-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(242, 230, 58, .7); animation: pulso 2.2s ease-out infinite }
@keyframes pulso { 70% { box-shadow: 0 0 0 12px rgba(242, 230, 58, 0) } 100% { box-shadow: 0 0 0 0 rgba(242, 230, 58, 0) } }
.aprob-t { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; max-width: 20ch }
.aprob-stats { display: flex; gap: clamp(18px, 3vw, 36px); margin-top: 4px }
.aprob-stats span { display: grid; gap: 2px }
.aprob-stats b { font-family: var(--f-num); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums }
.aprob-stats small { font-size: 12px; color: var(--band-muted) }
.aprob-bar { height: 4px; max-width: 360px; border-radius: 2px; background: rgba(245, 244, 238, .18); overflow: hidden }
.aprob-bar i { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 2px; transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .5s }
.aprob .door-cta { margin-top: 2px }
.aprob:hover .door-cta span { transform: translateX(6px) }
.aprob-stack { position: relative; height: 220px }
.aprob-tile { position: absolute; top: 50%; left: 50%; width: 150px; aspect-ratio: 4 / 5; margin: -94px 0 0 -75px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; align-content: center; gap: 8px; background: linear-gradient(150deg, #2A7A34, #0F3D18); border: 1px solid rgba(245, 244, 238, .2);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7); transition: transform .8s cubic-bezier(.2, .8, .2, 1) }
.aprob-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.aprob-tile svg { width: 40px; height: 40px; fill: none; stroke: rgba(245, 244, 238, .75); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
.aprob-tile em { font: 600 11px var(--f-display); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: rgba(245, 244, 238, .7) }
.aprob-tile.t1 { transform: translateX(-70px) rotate(-9deg) }
.aprob-tile.t2 { transform: translateY(-6px) rotate(1deg); z-index: 1 }
.aprob-tile.t3 { transform: translateX(72px) rotate(10deg) }
.aprob:hover .aprob-tile.t1 { transform: translateX(-96px) translateY(4px) rotate(-13deg) }
.aprob:hover .aprob-tile.t2 { transform: translateY(-16px) rotate(0deg) scale(1.04) }
.aprob:hover .aprob-tile.t3 { transform: translateX(98px) translateY(4px) rotate(14deg) }

/* Banner del dashboard de registros: amarillo de la marca, abre en otra pestaña */
.reg { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 28px; border-radius: 24px; overflow: hidden; isolation: isolate;
  color: #15200F; text-decoration: none; background: linear-gradient(115deg, #F6EC4C, var(--yellow) 55%, #E3D52A);
  box-shadow: 0 26px 50px -28px rgba(60, 55, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .45); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s }
.reg::after { content: ''; position: absolute; z-index: -1; right: -60px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 65%); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) }
.reg:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -28px rgba(60, 55, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .5) }
.reg:hover::after { transform: translate(-40px, 30px) }
.reg:focus-visible { outline: 3px solid #F5F4EE; outline-offset: 4px }
.reg-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: #15200F }
.reg-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--yellow); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round }
.reg-body { display: grid; gap: 3px; min-width: 0 }
.reg-k { font: 600 12px var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: rgba(21, 32, 15, .7) }
.reg-t { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; letter-spacing: -.02em }
.reg-d { font-size: 15px; line-height: 1.4; color: rgba(21, 32, 15, .78) }
.reg-cta { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 700 15px var(--f-body); color: var(--yellow); background: #15200F; padding: 12px 18px; border-radius: 999px }
.reg-cta span { transition: transform .4s cubic-bezier(.2, .8, .2, 1) }
.reg:hover .reg-cta span { transform: translate(3px, -3px) }
@media (max-width: 640px) { .reg { grid-template-columns: auto minmax(0, 1fr); padding: 20px } .reg-ic { width: 48px; height: 48px; border-radius: 14px } .reg-ic svg { width: 24px; height: 24px } .reg-cta { grid-column: 1 / -1; justify-content: center } }

/* Home de campañas: una tarjeta por campaña */
.camps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.camp { position: relative; display: grid; grid-template-rows: 230px 1fr; border-radius: 28px; overflow: hidden; isolation: isolate; color: #F5F4EE; text-decoration: none;
  background: linear-gradient(160deg, rgba(8, 36, 14, .62), rgba(8, 36, 14, .3)); border: 1px solid rgba(245, 244, 238, .16);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s }
.camp:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .1) }
.camp:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px }
.camp-media { position: relative; overflow: hidden }
.camp-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) }
.camp:hover .camp-media > img { transform: scale(1.1) }
.camp-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 30, 12, .9) 0%, rgba(8, 30, 12, 0) 60%) }
.camp-glow { position: absolute; width: 420px; height: 420px; left: 50%; top: -200px; margin-left: -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 230, 58, .2), rgba(242, 230, 58, 0) 65%); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) }
.camp:hover .camp-glow { transform: translateY(30px) scale(1.1) }
.camp-media .aprob-tile { width: 112px; margin: -64px 0 0 -56px; border-radius: 14px }
.camp-media .aprob-tile svg { width: 30px; height: 30px }
.camp-media .aprob-tile.t1 { transform: translateX(-56px) rotate(-9deg) }
.camp-media .aprob-tile.t3 { transform: translateX(58px) rotate(10deg) }
.camp:hover .camp-media .aprob-tile.t1 { transform: translateX(-76px) translateY(4px) rotate(-13deg) }
.camp:hover .camp-media .aprob-tile.t2 { transform: translateY(-12px) scale(1.04) }
.camp:hover .camp-media .aprob-tile.t3 { transform: translateX(78px) translateY(4px) rotate(14deg) }
.camp-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 26px 26px }
.camp-body .door-cta { margin-top: auto; padding-top: 8px }
.camp .door-k { display: inline-flex; align-items: center; gap: 10px }
.camp-t { font-family: var(--f-num); font-style: italic; font-weight: 800; font-size: clamp(34px, 3.6vw, 46px); line-height: .95; text-transform: uppercase; letter-spacing: .005em }
.camp-d { font-size: 15px; line-height: 1.45; color: var(--band-muted); min-height: 2.9em }
.camp-stats { display: flex; gap: 22px; margin-top: 6px }
.camp-stats span { display: grid; gap: 2px }
.camp-stats b { font-family: var(--f-num); font-style: italic; font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums }
.camp-stats small { font-size: 12px; color: var(--band-muted) }
.camp-x { font-size: 13px; color: var(--band-muted) }
.camp-x:empty { display: none }
.camp:hover .door-cta span { transform: translateX(6px) }
.volver { color: var(--band-fg); text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px 8px 10px; margin-left: -10px; border-radius: 999px; transition: background .25s }
.volver:hover { background: rgba(245, 244, 238, .1) }
.volver span { transition: transform .4s cubic-bezier(.2, .8, .2, 1) }
.volver:hover span { transform: translateX(-4px) }
.volver:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px }
.hub-hero .eyebrow { margin-bottom: 14px }
@media (max-width: 900px) { .camps { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 640px) { .camps { grid-template-columns: minmax(0, 1fr) } .camp { grid-template-rows: 200px 1fr } }

/* Entrada escalonada */
.rise { opacity: 0; transform: translateY(28px); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d) * 110ms + 80ms) }
@keyframes rise { to { opacity: 1; transform: none } }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr } .door { min-height: 340px } .aprob { grid-template-columns: 1fr } .aprob-stack { height: 200px; order: -1 } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none }
  .door, .door img, .door-cta span, .aprob, .aprob-tile, .aprob-glow, .aprob-bar i, .camp, .camp-media > img, .camp-glow, .reg, .reg::after, .reg-cta span { transition: none }
  .aprob-pulse { animation: none }
}
