/* Estilos y animaciones compartidos por todas las páginas */
:root {
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.logo-badge {
    background: #ffffff;
    border-radius: 9999px;
    padding: 2px;
}

/* Navegación: enlace activo según la sección visible */
.nav-link {
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: color .3s, border-color .3s;
}
.nav-link:hover, .nav-link.is-active { color: #ffffff; }
.nav-link.is-active { border-color: #EBAB1F; }

/* Etiqueta de sección */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-family: Manrope, sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 2rem;
    height: 3px;
    border-radius: 9999px;
    background: currentColor;
}

/* ---------- Portada: entrada al cargar ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.swash { position: relative; display: inline-block; }
.swash svg { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .3em; overflow: visible; }
.swash path { stroke-dasharray: 1; stroke-dashoffset: 0; }

html.js .hero-anim .w > span { animation: line-up 1.1s var(--ease-out) both; animation-delay: calc(.35s + var(--i, 0) * .07s); }
html.js .hero-anim .rise { animation: rise 1s var(--ease-out) both; animation-delay: calc(.3s + var(--i, 0) * .12s); }
html.js .hero-anim .swash path { stroke-dashoffset: 1; animation: draw 1.1s var(--ease-out) 1.25s forwards; }
html.js .hero-photo { animation: curtain 1.5s var(--ease-out) .1s both; }
html.js .hero-photo img { animation: settle 3.2s var(--ease-out) .1s both, drift 26s ease-in-out 3.3s infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1%, -1%); } }

/* ---------- Capa holográfica de datos (estilo HUD) ---------- */
.hud-panel {
    position: absolute;
    width: 210px;
    padding: 14px 16px 16px;
    color: #fff;
    border-radius: 4px;
    background: rgba(7, 21, 56, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 148, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(77, 148, 255, 0.08), 0 0 32px rgba(77, 148, 255, 0.22);
}
.hud-title { font: 700 10px/1.2 Manrope, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #9cc0ff; }
.hud-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 9999px; background: #EBAB1F; box-shadow: 0 0 0 4px rgba(235, 171, 31, .25), 0 0 18px 2px rgba(235, 171, 31, .9); }
.hud-dot::after { content: ""; position: absolute; inset: -10px; border-radius: 9999px; border: 1px solid rgba(235, 171, 31, .8); animation: hud-ping 2.4s ease-out infinite; }
.hud-line { fill: none; stroke: rgba(140, 185, 255, .9); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(77, 148, 255, .9)); }
.hud-pulse { fill: none; stroke: #FFD36B; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .07 .93; opacity: 0; filter: drop-shadow(0 0 6px #EBAB1F); }
.hud-bar { transform-origin: bottom; }
.hud-ring { transform: rotate(-90deg); transform-origin: center; }

html.js .hud .hud-panel { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(6px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(.35s + var(--i, 0) * .18s); }
html.js .hud .hud-dot { transform: scale(0); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * .12s); }
html.js .hud .hud-line { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out) .25s; }
html.js .hud .hud-hbar { transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-out); transition-delay: calc(1.1s + var(--i, 0) * .2s); }
html.js .hud .hud-bar { transform: scaleY(0); transition: transform 1.3s var(--ease-out); transition-delay: calc(1.1s + var(--i, 0) * .14s); }
html.js .hud .hud-ring-fill { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease-out) 1.1s; }
html.js .hud .hud-spark { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) 1.3s; }
html.js .hud .hud-area { opacity: 0; transition: opacity 1.2s ease 2s; }

html.js .hud.on .hud-panel { opacity: 1; transform: none; filter: none; animation: hud-float 6s ease-in-out calc(2.4s + var(--i, 0) * .7s) infinite alternate; }
html.js .hud.on .hud-dot { transform: scale(1); }
html.js .hud.on .hud-line, html.js .hud.on .hud-spark { stroke-dashoffset: 0; }
html.js .hud.on .hud-bar, html.js .hud.on .hud-hbar { transform: none; }
html.js .hud.on .hud-ring-fill { stroke-dashoffset: var(--to, 0); }
html.js .hud.on .hud-area { opacity: 1; }
html.js .hud.on .hud-pulse { opacity: 1; animation: hud-flow 2.8s linear calc(1.4s + var(--i, 0) * .5s) infinite; }

@keyframes hud-ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes hud-flow { from { stroke-dashoffset: 1.07; } to { stroke-dashoffset: 0; } }
@keyframes hud-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }

/* Esquinas doradas que se dibujan al aparecer */
.hud-corners { position: relative; }
.hud-panel.hud-corners { position: absolute; }
.hud-corners::before, .hud-corners::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid #EBAB1F; pointer-events: none; z-index: 2; transition: opacity .6s ease, transform .9s var(--ease-out); transition-delay: .35s; }
.hud-corners::before { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.hud-corners::after { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }
html.js .hud-corners::before { opacity: 0; transform: translate(10px, 10px); }
html.js .hud-corners::after { opacity: 0; transform: translate(-10px, -10px); }
html.js .is-visible.hud-corners::before, html.js .is-visible .hud-corners::before, html.js .hud.on .hud-corners::before,
html.js .is-visible.hud-corners::after, html.js .is-visible .hud-corners::after, html.js .hud.on .hud-corners::after { opacity: 1; transform: none; }

/* Línea de las etiquetas de sección */
html.js .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out) .25s; }
html.js .is-visible .eyebrow::before, html.js .is-visible.eyebrow::before, html.js .hero-anim .eyebrow::before { transform: none; }

/* Títulos de sección palabra por palabra */
html.js [data-reveal].split { opacity: 1; transform: none; filter: none; }
html.js .split .w > span { transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(.1s + var(--wi, 0) * 60ms); }
html.js .split.is-visible .w > span, html.js .is-visible .split .w > span { transform: none; }

/* Anillos de avance de los proyectos */
.ring-fill { transition: stroke-dashoffset 1.8s var(--ease-out) .5s; }
html.js .ring-fill { stroke-dashoffset: 100 !important; }
html.js .is-visible .ring-fill { stroke-dashoffset: var(--offset) !important; }

@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes curtain { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1.04); } }
@keyframes scroll-cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.scroll-cue-line { animation: scroll-cue 2.4s var(--ease-out) infinite; }

/* ---------- Aparición al hacer scroll ---------- */
html.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    filter: blur(6px);
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
}
/* Imágenes: se descubren con una cortina y se asientan */
html.js [data-reveal="mask"] {
    opacity: 1;
    filter: none;
    transform: none;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.3s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 140ms);
}
html.js [data-reveal="mask"] img {
    transform: scale(1.15);
    transition: transform 1.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 140ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
html.js [data-reveal="mask"].is-visible { clip-path: inset(0 0 0 0); }
html.js [data-reveal="mask"].is-visible img { transform: none; }

/* Barras de avance de los proyectos */

.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
    html.js [data-reveal], html.js [data-reveal="mask"], html.js [data-reveal="mask"] img,
    html.js .hud .hud-panel, html.js .hud .hud-dot, html.js .hud .hud-bar, html.js .split .w > span,
    html.js .hud-corners::before, html.js .hud-corners::after, html.js .eyebrow::before {
        opacity: 1; transform: none; filter: none; clip-path: none;
    }
    html.js .hud .hud-line, html.js .hud .hud-spark, html.js .hud .hud-ring-fill { stroke-dashoffset: 0; }
    html.js .ring-fill { stroke-dashoffset: var(--offset) !important; }
    html.js .hud .hud-area { opacity: 1; }
    .hud-pulse { display: none; }
    .swash path { stroke-dashoffset: 0 !important; }
}

/* ---------- Línea de tiempo (nosotros.html) ---------- */
.tl-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(77, 148, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 148, 255, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    pointer-events: none;
}
.tl-track { --tl-pad: 40px; --tl-x: 12px; position: relative; padding-left: var(--tl-pad); }
.tl-line { position: absolute; left: calc(var(--tl-x) - 1px); top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .1); }
.tl-line-fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(#EBAB1F, #4D94FF); box-shadow: 0 0 12px rgba(77, 148, 255, .8); }
.tl-year { position: relative; padding-bottom: 64px; scroll-margin-top: 150px; transition: opacity .5s; }
.tl-year.is-empty { opacity: .35; }
.tl-node { position: absolute; top: 14px; left: calc(-1 * var(--tl-pad) + var(--tl-x) - 9px); width: 18px; height: 18px; border-radius: 9999px; background: #071538; border: 2px solid rgba(255, 255, 255, .25); transition: background .5s, border-color .5s, box-shadow .5s; }
.tl-node.is-passed { background: #EBAB1F; border-color: #EBAB1F; box-shadow: 0 0 0 5px rgba(235, 171, 31, .18), 0 0 18px rgba(235, 171, 31, .9); }
.tl-node.is-current::after { content: ""; position: absolute; inset: -10px; border-radius: 9999px; border: 1px solid rgba(235, 171, 31, .8); animation: hud-ping 2.4s ease-out infinite; }
.tl-end .tl-node { top: 4px; }
.tl-year-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }

.tl-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(18, 41, 106, .55);
    border: 1px solid rgba(77, 148, 255, .25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s, opacity .5s, filter .5s;
}
.tl-card:hover { transform: translateY(-4px); border-color: rgba(77, 148, 255, .65); box-shadow: 0 0 30px rgba(77, 148, 255, .2); }
#historia .tl-card.is-dimmed { opacity: .2; filter: grayscale(1); }
.tl-card-media { overflow: hidden; }
.tl-card-media img { width: 100%; height: 180px; object-fit: cover; transition: transform .8s var(--ease-out); }
.tl-card:hover .tl-card-media img { transform: scale(1.05); }
.tl-card-body { padding: 18px 20px 20px; }
.tl-chip { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font: 700 11px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9cc0ff; }
.tl-chip .material-symbols-outlined { font-size: 16px; color: #EBAB1F; }
.tl-range { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 10px; border-radius: 9999px; border: 1px solid rgba(235, 171, 31, .45); font: 600 12px/1.2 Manrope, sans-serif; color: #EBAB1F; }
.tl-range .material-symbols-outlined { font-size: 15px; }

.tl-filter { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, .18); font: 600 13px/1 Manrope, sans-serif; color: rgba(255, 255, 255, .82); transition: background .3s, color .3s, border-color .3s; }
.tl-filter .material-symbols-outlined { font-size: 18px; }
.tl-filter:hover { border-color: #4D94FF; color: #fff; }
.tl-filter.is-on { background: #EBAB1F; border-color: #EBAB1F; color: #0B1F4F; }
.tl-filter-count { font-size: 11px; opacity: .7; }
.tl-year-link { display: block; padding: 6px 12px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .12); font: 700 13px/1.2 Manrope, sans-serif; color: rgba(255, 255, 255, .65); white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.tl-year-link:hover { color: #fff; border-color: #4D94FF; }
.tl-year-link.is-current { background: #4D94FF; border-color: #4D94FF; color: #071538; }

/* Panel de seguimiento: barra fija arriba en celular, columna fija en escritorio */
.tl-hud { position: sticky; top: 88px; z-index: 20; margin-bottom: 28px; }
.tl-hud-inner { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-radius: 4px; background: rgba(7, 21, 56, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(77, 148, 255, .4); box-shadow: 0 0 30px rgba(77, 148, 255, .2); }
.tl-hud .hud-title { display: none; }
.tl-hud-year { font-size: 28px; line-height: 1; }
.tl-hud-year.tick { animation: hud-tick .55s var(--ease-out); }
.tl-hud-ring { position: relative; width: 44px; height: 44px; }
.tl-hud-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tl-hud-ring-fill { transition: stroke-dashoffset .9s var(--ease-out); filter: drop-shadow(0 0 5px rgba(235, 171, 31, .8)); }
.tl-hud-ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: Manrope, sans-serif; color: #fff; }
.tl-hud-ring b { font-size: 14px; font-weight: 800; }
.tl-hud-ring small { display: none; }
.tl-hud-caption { font: 600 12px/1.3 Manrope, sans-serif; color: rgba(255, 255, 255, .6); }
@keyframes hud-tick { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

@media (min-width: 768px) {
    .tl-track { --tl-pad: 64px; --tl-x: 20px; }
}
@media (min-width: 1024px) {
    .tl-hud { top: 120px; align-self: start; margin: 0; }
    .tl-hud-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px; }
    .tl-hud .hud-title { display: block; }
    .tl-hud-year { font-size: 64px; letter-spacing: -.02em; }
    .tl-hud-ring { width: 120px; height: 120px; margin: 14px 0 6px; }
    .tl-hud-ring b { font-size: 30px; }
    .tl-hud-ring small { display: block; font-size: 11px; color: rgba(255, 255, 255, .6); }
}

/* ---------- Extracto de la línea de tiempo en el inicio ---------- */
.mini-line { position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: rgba(255, 255, 255, .1); }
.mini-line-fill { position: absolute; inset: 0; transform-origin: top; background: linear-gradient(#EBAB1F, #4D94FF); box-shadow: 0 0 10px rgba(77, 148, 255, .8); transition: transform 1.8s var(--ease-out) .5s; }
.mini-node { position: absolute; left: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 9999px; background: #EBAB1F; box-shadow: 0 0 0 4px rgba(235, 171, 31, .2), 0 0 14px rgba(235, 171, 31, .9); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(.6s + var(--i, 0) * .25s); }
.mini-item > a { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), border-color .3s, background-color .3s; transition-delay: calc(.7s + var(--i, 0) * .25s), calc(.7s + var(--i, 0) * .25s), 0s, 0s; }
.mini-tl .hud-bar, .mini-bar { transform-origin: bottom; transition: transform 1.2s var(--ease-out); transition-delay: calc(.3s + var(--i, 0) * .06s); }
html.js .mini-line-fill { transform: scaleY(0); }
html.js .mini-node { transform: scale(0); }
html.js .mini-item > a { opacity: 0; transform: translateX(16px); }
html.js .mini-bar { transform: scaleY(0); }
html.js .mini-tl.is-visible .mini-line-fill, html.js .mini-tl.is-visible .mini-bar { transform: none; }
html.js .mini-tl.is-visible .mini-node { transform: scale(1); }
html.js .mini-tl.is-visible .mini-item > a { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js .mini-line-fill, html.js .mini-node, html.js .mini-bar, html.js .mini-item > a { opacity: 1; transform: none; }
}

/* ---------- Rifa: premios y estado ---------- */
.prize-card { position: relative; overflow: hidden; border-radius: 4px; background: #0B1F4F; box-shadow: 0 24px 48px -20px rgba(11, 31, 79, .45); transition: transform .5s var(--ease-out), box-shadow .5s; }
.prize-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(11, 31, 79, .6); }
.prize-media { position: relative; overflow: hidden; background: #2B4FA0; }
.prize-media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .8s var(--ease-out); }
.prize-card:hover .prize-media img { transform: scale(1.05); }
.ticket { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 4px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background .4s, border-color .4s, box-shadow .4s; }
.ticket-number { font: 800 18px/1 Manrope, sans-serif; letter-spacing: .1em; color: #fff; font-variant-numeric: tabular-nums; }
.ticket[data-status="reclamado"] .ticket-number { color: rgba(255, 255, 255, .55); }
.ticket.is-match { background: rgba(235, 171, 31, .18); border-color: #EBAB1F; box-shadow: 0 0 0 3px rgba(235, 171, 31, .25), 0 0 24px rgba(235, 171, 31, .35); }
.prize-status { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 8px; border-radius: 9999px; font: 700 11px/1 Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.prize-status .material-symbols-outlined { font-size: 15px; }
.prize-status.is-claimed { background: rgba(77, 148, 255, .16); color: #9cc0ff; }
.prize-status.is-claimed { border-radius: 6px; padding: 5px 8px; line-height: 1.25; }
.prize-status.is-claimed small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: none; color: rgba(255, 255, 255, .7); }
.prize-status.is-pending { background: rgba(235, 171, 31, .16); color: #EBAB1F; }
.prize-status.is-delivered { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); }
.prize-status.is-pending::before { content: ""; width: 7px; height: 7px; border-radius: 9999px; background: #EBAB1F; animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.summary-ring { transition: stroke-dashoffset 1.8s var(--ease-out) .4s; }
.ticket-result:not(:empty) { margin-top: 16px; padding: 14px 16px; border-radius: 4px; font-size: 14px; line-height: 1.5; }
.ticket-result.is-win { background: rgba(235, 171, 31, .14); border: 1px solid rgba(235, 171, 31, .6); color: #0F172A; }
.ticket-result.is-none { background: #EAF2FD; color: #0F172A; }
.ticket-result.is-error { background: #FFF4E5; color: #7A4A00; }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- Proyectos (proyectos.html e inicio) ---------- */
.cur-card { position: relative; overflow: hidden; border-radius: 4px; background: linear-gradient(180deg, #12296A, #0B1F4F); box-shadow: 0 24px 48px -24px rgba(11, 31, 79, .5); border: 1px solid rgba(77, 148, 255, .25); color: #fff; transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s; }
.cur-card:hover { transform: translateY(-4px); border-color: rgba(77, 148, 255, .6); box-shadow: 0 0 34px rgba(77, 148, 255, .22); }
.cur-media { position: relative; overflow: hidden; height: 190px; background: #071538; }
.cur-card.sm\:col-span-2 .cur-media { height: 240px; }
.cur-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.cur-card:hover .cur-media img { transform: scale(1.05); }
.cur-media.is-icon { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 60%, rgba(42, 112, 222, .45), #071538 70%); }
.cur-media.is-icon > .material-symbols-outlined { position: relative; font-size: 72px; color: #9cc0ff; filter: drop-shadow(0 0 18px rgba(77, 148, 255, .8)); transition: transform .8s var(--ease-out); }
.cur-card:hover .cur-media.is-icon > .material-symbols-outlined { transform: scale(1.08); }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9999px; font: 700 11px/1 Manrope, sans-serif; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.status-badge .material-symbols-outlined { font-size: 15px; }
.status-badge.is-saldado { background: rgba(235, 171, 31, .18); color: #6E4B00; }
.status-badge.is-vigente { background: rgba(42, 112, 222, .12); color: #2A70DE; }
.status-badge.is-entregado { background: #EBAB1F; color: #0B1F4F; }
.status-badge.is-ejecucion { background: #0B1F4F; color: #fff; }
.cur-card .status-badge.is-ejecucion, #en-ejecucion .status-badge.is-ejecucion { background: rgba(77, 148, 255, .9); color: #071538; }
.cur-card .status-badge, #en-ejecucion .status-badge { box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .5); }

.raise-bar { position: relative; height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.raise-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: #EBAB1F; box-shadow: 0 0 10px rgba(235, 171, 31, .7); transition: width 1.6s var(--ease-out) .3s; }
.raise-label { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 600 12px/1.3 Manrope, sans-serif; color: rgba(255, 255, 255, .7); }
.raise-label .material-symbols-outlined { font-size: 16px; color: #EBAB1F; }
/* Avance por confirmar: barra en movimiento continuo */
.raise[data-raised=""] .raise-bar > span { width: 35%; background: linear-gradient(90deg, transparent, #4D94FF, transparent); box-shadow: none; animation: raise-scan 2.2s ease-in-out infinite; }
.raise.is-ongoing .raise-bar > span { width: 100%; background: repeating-linear-gradient(90deg, rgba(42, 112, 222, .55) 0 10px, rgba(42, 112, 222, .25) 10px 20px); box-shadow: none; animation: raise-stripes 1.4s linear infinite; background-size: 40px 100%; }
@keyframes raise-scan { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes raise-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } }
html.js .raise.is-done .raise-bar > span { width: 0 !important; }
html.js .is-visible .raise.is-done .raise-bar > span, html.js .raise.is-done.is-visible .raise-bar > span, html.js tr.is-shown .raise.is-done .raise-bar > span { width: 100% !important; }

/* Tabla del listado (en celular cada fila se vuelve tarjeta) */
.pj-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.pj-table thead th { text-align: left; padding: 12px 16px; font: 700 11px/1 Manrope, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #5B6478; border-bottom: 2px solid #0B1F4F; }
.pj-table td { padding: 16px; vertical-align: middle; border-bottom: 1px solid rgba(11, 31, 79, .08); }
.pj-table tbody tr { transition: background .3s, opacity .4s; }
.pj-table tbody tr:hover { background: #F5F9FF; }
.pj-table tr.is-hidden { display: none; }
.pj-table td:first-child { width: 90px; }
.pj-table td:last-child { width: 240px; }
.pj-table .raise-bar { background: rgba(11, 31, 79, .1); }
.pj-table .raise-label { color: #5B6478; }
.cat-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font: 700 10px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #2A70DE; }
.cat-chip .material-symbols-outlined { font-size: 14px; }
.pj-filter { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; border: 1px solid rgba(11, 31, 79, .18); background: #fff; font: 600 13px/1 Manrope, sans-serif; color: #0B1F4F; transition: background .3s, color .3s, border-color .3s; }
.pj-filter .material-symbols-outlined { font-size: 18px; }
.pj-filter:hover { border-color: #2A70DE; }
.pj-filter.is-on { background: #0B1F4F; border-color: #0B1F4F; color: #fff; }
@media (max-width: 767px) {
    .pj-table thead { display: none; }
    .pj-table, .pj-table tbody, .pj-table tr, .pj-table td { display: block; width: auto !important; }
    .pj-table tbody tr { margin-bottom: 12px; padding: 16px; border: 1px solid rgba(11, 31, 79, .1); border-radius: 4px; }
    .pj-table td { padding: 6px 0; border: 0; }
    .pj-table td[data-label="Año"] { font-size: 13px; }
}

.stmt-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: 4px; background: rgba(18, 41, 106, .6); border: 1px solid rgba(77, 148, 255, .25); transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s; }
.stmt-card:hover { transform: translateY(-3px); border-color: #EBAB1F; box-shadow: 0 0 26px rgba(235, 171, 31, .25); }
@media (prefers-reduced-motion: reduce) {
    .raise[data-raised=""] .raise-bar > span, .raise.is-ongoing .raise-bar > span { animation: none; }
    html.js .raise.is-done .raise-bar > span { width: 100% !important; }
}

/* ---------- Donación (donar.html) ---------- */
.dn-trust { flex-shrink: 0; width: 44px; height: 44px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #EBAB1F; border: 1px solid rgba(235, 171, 31, .45); background: rgba(235, 171, 31, .08); box-shadow: 0 0 18px rgba(235, 171, 31, .18); }
.dn-card { position: relative; padding: 28px; border-radius: 6px; background: rgba(11, 31, 79, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(77, 148, 255, .4); box-shadow: inset 0 0 0 1px rgba(77, 148, 255, .08), 0 0 60px rgba(42, 112, 222, .25), 0 40px 80px -30px rgba(0, 0, 0, .6); }
@media (min-width: 768px) { .dn-card { padding: 36px; } }

.dn-steps { position: relative; display: flex; justify-content: space-between; margin-bottom: 28px; }
.dn-steps-line { position: absolute; left: 18px; right: 18px; top: 17px; height: 2px; background: rgba(255, 255, 255, .12); }
.dn-steps-line > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #EBAB1F, #4D94FF); box-shadow: 0 0 10px rgba(77, 148, 255, .8); transition: transform .8s var(--ease-out); }
.dn-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dn-step b { width: 36px; height: 36px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font: 800 14px Manrope, sans-serif; color: rgba(255, 255, 255, .6); background: #071538; border: 2px solid rgba(255, 255, 255, .2); transition: all .5s var(--ease-out); }
.dn-step small { font: 700 10px Manrope, sans-serif; letter-spacing: .15em; text-transform: uppercase; color: rgba(255, 255, 255, .5); transition: color .5s; }
.dn-step.is-current b { color: #0B1F4F; background: #EBAB1F; border-color: #EBAB1F; box-shadow: 0 0 0 5px rgba(235, 171, 31, .2), 0 0 20px rgba(235, 171, 31, .7); }
.dn-step.is-current small { color: #fff; }
.dn-step.is-done b { color: #fff; background: #2A70DE; border-color: #2A70DE; }

.dn-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.dn-panel.is-active { animation: dn-in .6s var(--ease-out) both; }
.dn-panel.is-active.from-back { animation-name: dn-in-back; }
@keyframes dn-in { from { opacity: 0; transform: translateX(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dn-in-back { from { opacity: 0; transform: translateX(-28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.dn-legend { display: block; width: 100%; margin-bottom: 18px; font: 800 22px/1.25 Manrope, sans-serif; color: #fff; outline: none; }
.dn-label { margin-bottom: 8px; font: 700 11px Manrope, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #9cc0ff; }
.dn-scroll { scrollbar-width: thin; scrollbar-color: rgba(77, 148, 255, .5) transparent; }

.dn-option { display: block; cursor: pointer; }
.dn-option input { position: absolute; opacity: 0; pointer-events: none; }
.dn-option-box { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; transition: border-color .3s, background .3s, box-shadow .3s, transform .3s; }
.dn-option:hover .dn-option-box { border-color: rgba(77, 148, 255, .6); transform: translateX(3px); }
.dn-option input:focus-visible + .dn-option-box { outline: 2px solid #EBAB1F; outline-offset: 2px; }
.dn-option input:checked + .dn-option-box { border-color: #EBAB1F; background: rgba(235, 171, 31, .1); box-shadow: 0 0 0 1px #EBAB1F, 0 0 24px rgba(235, 171, 31, .25); }
.dn-check { margin-left: auto; color: #EBAB1F; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.dn-option input:checked + .dn-option-box .dn-check { opacity: 1; transform: none; }

.dn-selected { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(77, 148, 255, .45); }
.dn-selected button { margin-left: auto; font: 700 12px Manrope, sans-serif; color: #EBAB1F; text-decoration: underline; text-underline-offset: 3px; }

.dn-segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 8px; background: rgba(7, 21, 56, .8); border: 1px solid rgba(255, 255, 255, .1); }
.dn-segment label { position: relative; cursor: pointer; }
.dn-segment input { position: absolute; opacity: 0; pointer-events: none; }
.dn-segment span { display: block; text-align: center; padding: 11px 8px; border-radius: 6px; font: 700 15px Manrope, sans-serif; color: rgba(255, 255, 255, .7); transition: background .35s, color .35s, box-shadow .35s; }
.dn-segment.is-small span { padding: 8px; font-size: 13px; }
.dn-segment label:hover span { color: #fff; }
.dn-segment input:checked + span { background: #2A70DE; color: #fff; box-shadow: 0 0 18px rgba(42, 112, 222, .6); }
.dn-segment input:focus-visible + span { outline: 2px solid #EBAB1F; outline-offset: 2px; }

.dn-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dn-amount { position: relative; cursor: pointer; }
.dn-amount input { position: absolute; opacity: 0; pointer-events: none; }
.dn-amount span { display: block; text-align: center; padding: 14px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .15); font: 800 18px Manrope, sans-serif; color: #fff; font-variant-numeric: tabular-nums; transition: all .3s var(--ease-out); }
.dn-amount:hover span { border-color: #4D94FF; transform: translateY(-2px); }
.dn-amount input:checked + span { background: #EBAB1F; border-color: #EBAB1F; color: #0B1F4F; box-shadow: 0 0 0 4px rgba(235, 171, 31, .2), 0 10px 30px -8px rgba(235, 171, 31, .7); transform: translateY(-2px); }
.dn-amount input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.dn-custom { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .04); transition: border-color .3s, box-shadow .3s; }
.dn-custom:focus-within { border-color: #EBAB1F; box-shadow: 0 0 0 3px rgba(235, 171, 31, .2); }
.dn-custom-prefix { font: 800 20px Manrope, sans-serif; color: #EBAB1F; }
.dn-custom input { flex: 1; min-width: 0; padding: 14px 0; border: 0; background: transparent; color: #fff; font: 700 18px Manrope, sans-serif; }
.dn-custom input:focus { outline: none; box-shadow: none; }
.dn-custom input::placeholder { color: rgba(255, 255, 255, .4); font-weight: 600; }
.dn-error { min-height: 20px; margin-top: 8px; font-size: 13px; color: #FFD36B; }

.dn-summary { position: relative; overflow: hidden; padding: 24px; border-radius: 6px; border: 1px solid rgba(235, 171, 31, .5); background: linear-gradient(135deg, rgba(42, 112, 222, .35), rgba(7, 21, 56, .6)); box-shadow: 0 0 30px rgba(235, 171, 31, .15); margin-bottom: 18px; }
.dn-summary > * { position: relative; }
.dn-summary-media { position: absolute; inset: 0; opacity: .22; }
.dn-summary-media img { width: 100%; height: 100%; object-fit: cover; }
.dn-pay { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 6px; background: #EBAB1F; color: #0B1F4F; font-family: Manrope, sans-serif; box-shadow: 0 16px 40px -12px rgba(235, 171, 31, .7); transition: transform .3s var(--ease-out), filter .3s; }
.dn-pay:hover { transform: translateY(-2px); filter: brightness(1.05); }
.dn-pay b { font-size: 17px; }
.dn-pay small { display: block; font-size: 12px; font-weight: 600; opacity: .75; }
.dn-alt { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.dn-alt summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font: 700 14px Manrope, sans-serif; color: #fff; list-style: none; }
.dn-alt summary::-webkit-details-marker { display: none; }
.dn-alt summary::after { content: "expand_more"; font-family: "Material Symbols Outlined"; margin-left: auto; transition: transform .3s; }
.dn-alt[open] summary::after { transform: rotate(180deg); }
.dn-alt summary .material-symbols-outlined { color: #EBAB1F; }
.dn-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, .25); font: 700 12px Manrope, sans-serif; color: #fff; transition: border-color .3s, background .3s; }
.dn-copy:hover { border-color: #EBAB1F; }
.dn-copy.is-light { border-color: rgba(11, 31, 79, .2); color: #0B1F4F; }
.dn-copy.is-light:hover { border-color: #2A70DE; }
.dn-copy.is-copied { background: #EBAB1F; border-color: #EBAB1F; color: #0B1F4F; }

.dn-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.dn-back { display: inline-flex; align-items: center; gap: 6px; padding: 12px 6px; font: 700 14px Manrope, sans-serif; color: rgba(255, 255, 255, .75); }
.dn-back:hover { color: #fff; }
.dn-next { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 6px; background: #2A70DE; color: #fff; font: 800 16px Manrope, sans-serif; box-shadow: 0 12px 30px -10px rgba(42, 112, 222, .8); transition: transform .3s var(--ease-out), filter .3s; }
.dn-next:hover { transform: translateY(-2px); filter: brightness(1.1); }
@media (prefers-reduced-motion: reduce) { .dn-panel.is-active { animation: none; } }
.dn-card { scroll-margin-top: 96px; }
/* En la página de donación el botón "volver arriba" no debe tapar el botón principal en celular */
@media (max-width: 1023px) { body[data-page="donar"] #back-to-top { display: none; } }

/* ---------- Página de proyecto (proyecto-*.html) ---------- */
.phase-track { position: relative; }
.phase-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .phase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .phase-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .phase-grid { grid-template-columns: repeat(7, 1fr); padding-top: 34px; } }
.phase-line { display: none; }
@media (min-width: 1280px) {
    .phase-line { display: block; position: absolute; left: 7%; right: 7%; top: 16px; height: 2px; background: rgba(255, 255, 255, .12); }
    .phase-line > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #EBAB1F, #4D94FF); box-shadow: 0 0 12px rgba(77, 148, 255, .8); transition: transform 2.2s var(--ease-out) .3s; }
    html.js .phase-track.is-visible .phase-line > span, .phase-track:not([data-reveal]) .phase-line > span { transform: none; }
}
.phase-card { position: relative; overflow: visible; border-radius: 4px; background: linear-gradient(180deg, #12296A, #0B1F4F); border: 1px solid rgba(77, 148, 255, .25); transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s, opacity .8s var(--ease-out); }
.phase-card:hover { transform: translateY(-6px); border-color: rgba(77, 148, 255, .7); box-shadow: 0 0 34px rgba(77, 148, 255, .25); }
.phase-node { position: absolute; z-index: 3; top: -14px; right: 16px; width: 30px; height: 30px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font: 800 13px Manrope, sans-serif; color: #0B1F4F; background: #EBAB1F; box-shadow: 0 0 0 4px rgba(235, 171, 31, .2), 0 0 16px rgba(235, 171, 31, .8); }
@media (min-width: 1280px) { .phase-node { top: -33px; right: auto; left: 50%; margin-left: -15px; } }
html.js .phase-track .phase-node { transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(.5s + var(--i, 0) * .25s); }
html.js .phase-track .phase-card { opacity: 0; transform: translateY(24px); transition-delay: calc(.4s + var(--i, 0) * .25s); }
html.js .phase-track.is-visible .phase-node, html.js .phase-track:not([data-reveal]) .phase-node { transform: none; }
html.js .phase-track.is-visible .phase-card, html.js .phase-track:not([data-reveal]) .phase-card { opacity: 1; transform: none; }
html.js .phase-track:not([data-reveal]) .phase-card { transition-delay: 0s; }
.phase-media { position: relative; height: 150px; overflow: hidden; border-radius: 4px 4px 0 0; }
.phase-media img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .8s var(--ease-out), opacity .5s; }
.phase-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #12296A); }
.phase-media > .material-symbols-outlined { position: absolute; z-index: 2; right: 12px; bottom: 8px; font-size: 30px; color: #9cc0ff; filter: drop-shadow(0 0 10px rgba(77, 148, 255, .9)); }
.phase-card:hover .phase-media img { transform: scale(1.06); opacity: 1; }

.impact-card { position: relative; padding: 32px 24px; border-radius: 4px; text-align: center; background: linear-gradient(180deg, #12296A, rgba(11, 31, 79, .6)); border: 1px solid rgba(77, 148, 255, .25); }

.inv-bar { position: relative; height: 10px; border-radius: 9999px; background: #EAF2FD; overflow: hidden; }
.inv-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2A70DE, #EBAB1F); box-shadow: 0 0 12px rgba(235, 171, 31, .5); transition: width 1.8s var(--ease-out) .4s; }
.is-visible .inv-bar > span { width: var(--w); }
html:not(.js) .inv-bar > span { width: var(--w); }

.plan-card { display: block; overflow: hidden; border-radius: 4px; background: #fff; border: 1px solid rgba(77, 148, 255, .3); transition: transform .5s var(--ease-out), box-shadow .5s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(77, 148, 255, .3); }
.plan-card img { width: 100%; aspect-ratio: 11 / 8; object-fit: cover; }
.plan-card > span { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #0B1F4F; font: 700 13px Manrope, sans-serif; color: #fff; }
@media (prefers-reduced-motion: reduce) {
    html.js .phase-track .phase-node, html.js .phase-track .phase-card { opacity: 1; transform: none; }
    .phase-line > span, .inv-bar > span { transform: none !important; width: var(--w); }
}

/* Enlaces "Ver proyecto" hacia las fichas de detalle */
.pj-link { display: block; }
.pj-link:hover .font-display { color: #2A70DE; }
.pj-more, .tl-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font: 700 12px/1 Manrope, sans-serif; }
.pj-more { color: #2A70DE; }
.tl-more { margin-top: 12px; color: #EBAB1F; }
.pj-more .material-symbols-outlined, .tl-more .material-symbols-outlined { font-size: 16px; transition: transform .3s var(--ease-out); }
.pj-link:hover .pj-more .material-symbols-outlined, .tl-more:hover .material-symbols-outlined { transform: translateX(3px); }

/* Variante de 3 fases (Calidad de Vida) */
@media (min-width: 1024px) {
    .phase-grid.is-3 { grid-template-columns: repeat(3, 1fr); padding-top: 34px; }
    .phase-track.is-3 .phase-line { display: block; position: absolute; left: 16.6%; right: 16.6%; top: 16px; height: 2px; background: rgba(255, 255, 255, .12); }
    .phase-track.is-3 .phase-line > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #EBAB1F 50%, #4D94FF); box-shadow: 0 0 12px rgba(77, 148, 255, .8); transition: transform 2.2s var(--ease-out) .3s; }
    html.js .phase-track.is-3.is-visible .phase-line > span, .phase-track.is-3:not([data-reveal]) .phase-line > span { transform: none; }
    .phase-grid.is-3 .phase-node { top: -33px; right: auto; left: 50%; margin-left: -15px; }
}
@media (min-width: 1280px) { .phase-grid.is-3 { grid-template-columns: repeat(3, 1fr); } }
.phase-card .status-badge.is-ejecucion { background: rgba(77, 148, 255, .9); color: #071538; }
.phase-card.is-live { border-color: rgba(77, 148, 255, .7); animation: live-glow 2.6s ease-in-out infinite; }
.phase-card.is-live .phase-node { background: #4D94FF; box-shadow: 0 0 0 4px rgba(77, 148, 255, .25), 0 0 18px rgba(77, 148, 255, .9); }
@keyframes live-glow { 50% { box-shadow: 0 0 36px rgba(77, 148, 255, .35); } }

.impact-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 9999px; align-items: center; justify-content: center; color: #EBAB1F; border: 1px solid rgba(235, 171, 31, .45); background: rgba(235, 171, 31, .08); box-shadow: 0 0 22px rgba(235, 171, 31, .2); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s; }
.impact-icon .material-symbols-outlined { font-size: 30px; }
.impact-card:hover .impact-icon { transform: scale(1.12); box-shadow: 0 0 34px rgba(235, 171, 31, .45); }
@media (prefers-reduced-motion: reduce) { .phase-card.is-live { animation: none; } }
.status-badge.is-permanente { background: rgba(42, 112, 222, .12); color: #0B1F4F; border: 1px dashed rgba(42, 112, 222, .6); }

/* ---------- Voluntariado ---------- */
.area-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; color: #fff; background: linear-gradient(180deg, #12296A, #0B1F4F); border: 1px solid rgba(77, 148, 255, .25); box-shadow: 0 24px 48px -24px rgba(11, 31, 79, .5); transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s; }
.area-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, rgba(42, 112, 222, .35), transparent 55%); pointer-events: none; }
.area-card > * { position: relative; z-index: 1; }
.area-card:hover { transform: translateY(-6px); border-color: rgba(77, 148, 255, .7); box-shadow: 0 0 40px rgba(77, 148, 255, .25), 0 30px 60px -24px rgba(11, 31, 79, .6); }
.area-head { display: flex; align-items: center; justify-content: space-between; padding: 28px; }
.area-num { font: 800 56px/1 Manrope, sans-serif; color: transparent; -webkit-text-stroke: 1.5px rgba(156, 192, 255, .5); }

/* ---------- Estilo plano técnico (proyecto-mantenimiento.html) ---------- */
.bp-grid { position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(77, 148, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 148, 255, .16) 1px, transparent 1px),
        linear-gradient(rgba(77, 148, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 148, 255, .06) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; }
.bp-grid.is-light { background-image:
        linear-gradient(rgba(42, 112, 222, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 112, 222, .12) 1px, transparent 1px),
        linear-gradient(rgba(42, 112, 222, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 112, 222, .05) 1px, transparent 1px); }

/* Trazos que se dibujan como en un plotter */
.bp-svg { overflow: visible; }
.bp-line { fill: none; stroke: #7AACFF; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bp-line.is-gold { stroke: #EBAB1F; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(235, 171, 31, .7)); }
.bp-line.is-thin { stroke-width: .8; opacity: .6; }
.bp-line.is-dash { stroke-dasharray: 4 4; }
.bp-text { font: 600 11px Manrope, sans-serif; letter-spacing: .12em; fill: #9cc0ff; text-transform: uppercase; }
.bp-text.is-gold { fill: #EBAB1F; }
html.js .bp-draw .bp-line:not(.is-dash) { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 1s); }
html.js .bp-draw .bp-line.is-dash, html.js .bp-draw .bp-text, html.js .bp-draw .bp-fade { opacity: 0; transition: opacity 1s ease; transition-delay: calc(var(--d, 0) * 1s); }
html.js .bp-draw.is-visible .bp-line:not(.is-dash) { stroke-dashoffset: 0; }
html.js .bp-draw.is-visible .bp-line.is-dash { opacity: .7; }
html.js .bp-draw.is-visible .bp-text, html.js .bp-draw.is-visible .bp-fade { opacity: 1; }
/* En la portada el dibujo arranca al cargar */
html.js .hero-anim .bp-hero .bp-line:not(.is-dash) { stroke-dashoffset: 1; animation: draw 2.4s var(--ease-out) forwards; animation-delay: calc(.6s + var(--d, 0) * 1s); }
html.js .hero-anim .bp-hero .bp-text, html.js .hero-anim .bp-hero .bp-fade, html.js .hero-anim .bp-hero .bp-line.is-dash { opacity: 0; animation: bp-fade 1s ease forwards; animation-delay: calc(.6s + var(--d, 0) * 1s); }
@keyframes bp-fade { to { opacity: 1; } }

/* Línea de escaneo */
.bp-scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, #4D94FF, transparent); box-shadow: 0 0 18px 2px rgba(77, 148, 255, .7); animation: bp-scan 5s ease-in-out infinite; pointer-events: none; }
@keyframes bp-scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Marco con marcas de corte */
.bp-frame { position: relative; }
.bp-frame::before, .bp-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid #EBAB1F; z-index: 3; pointer-events: none; }
.bp-frame::before { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; }
.bp-frame::after { bottom: -8px; right: -8px; border-bottom-width: 2px; border-right-width: 2px; }
.bp-cross { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.bp-cross::before, .bp-cross::after { content: ""; position: absolute; background: #EBAB1F; }
.bp-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.bp-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.bp-cross { animation: bp-blink 2.4s ease-in-out infinite; }
@keyframes bp-blink { 50% { opacity: .3; } }

/* Cota (línea de medida) */
.bp-dim { display: flex; align-items: center; gap: 8px; font: 700 10px Manrope, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #9cc0ff; }
.bp-dim::before, .bp-dim::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #7AACFF, #7AACFF) center / 100% 1px no-repeat; border-left: 1px solid #7AACFF; border-right: 1px solid #7AACFF; height: 9px; background-size: 100% 1px; }
.bp-dim.is-dark { color: #2A70DE; }
.bp-dim.is-dark::before, .bp-dim.is-dark::after { background-image: linear-gradient(90deg, #2A70DE, #2A70DE); border-color: #2A70DE; }

/* Cuadro de rótulo (cartela) */
.bp-title { display: grid; grid-template-columns: auto 1fr; font-family: Manrope, sans-serif; color: #fff; background: rgba(7, 21, 56, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(77, 148, 255, .55); box-shadow: 0 0 30px rgba(77, 148, 255, .25); }
.bp-title > * { padding: 8px 12px; border-bottom: 1px solid rgba(77, 148, 255, .3); }
.bp-title > :nth-child(odd) { font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9cc0ff; border-right: 1px solid rgba(77, 148, 255, .3); }
.bp-title > :nth-child(even) { font-size: 12px; font-weight: 700; }
.bp-title > :nth-last-child(-n+2) { border-bottom: 0; }
.bp-sheet { display: inline-flex; align-items: center; gap: 10px; font: 700 11px Manrope, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.bp-sheet b { padding: 3px 8px; border: 1px solid currentColor; }

.bp-gear { animation: bp-spin 14s linear infinite; }
@keyframes bp-spin { to { transform: rotate(360deg); } }

/* Indicadores tipo instrumento */
.gauge-needle { transform-origin: 60px 60px; transform: rotate(-90deg); transition: transform 1.8s cubic-bezier(.34, 1.4, .64, 1); transition-delay: calc(.4s + var(--i, 0) * .2s); }
.is-visible .gauge-needle, [data-stagger] > .is-visible .gauge-needle { transform: rotate(var(--a)); }

/* Plan de trabajo tipo diagrama de Gantt */
.gantt-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@media (min-width: 768px) { .gantt-row { grid-template-columns: 240px 1fr; align-items: center; gap: 20px; } }
.gantt-track { position: relative; height: 34px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(77, 148, 255, .1) 0 1px, transparent 1px 25%); }
.gantt-bar { position: absolute; top: 4px; bottom: 4px; left: var(--x); width: 0; border-radius: 3px; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; font: 700 11px Manrope, sans-serif; letter-spacing: .06em; color: #071538; background: linear-gradient(90deg, #EBAB1F, #FFD36B); box-shadow: 0 0 14px rgba(235, 171, 31, .45); transition: width 1.4s var(--ease-out); transition-delay: calc(.3s + var(--i, 0) * .18s); }
.gantt-bar.is-blue { color: #fff; background: linear-gradient(90deg, #2A70DE, #4D94FF); box-shadow: 0 0 14px rgba(77, 148, 255, .5); }
.is-visible .gantt-bar { width: var(--w); }
html:not(.js) .gantt-bar { width: var(--w); }

@media (prefers-reduced-motion: reduce) {
    .bp-scan, .bp-cross, .bp-gear { animation: none; }
    html.js .bp-draw .bp-line, html.js .hero-anim .bp-hero .bp-line { stroke-dashoffset: 0 !important; opacity: 1 !important; }
    html.js .bp-draw .bp-text, html.js .bp-draw .bp-fade, html.js .hero-anim .bp-hero .bp-text, html.js .hero-anim .bp-hero .bp-fade { opacity: 1 !important; }
    .gauge-needle { transform: rotate(var(--a)); }
    .gantt-bar { width: var(--w); }
}

/* Etiquetas con línea guía sobre la foto */
.callout { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9999px; background: #0B1F4F; color: #fff; font: 700 12px Manrope, sans-serif; box-shadow: 0 10px 24px -8px rgba(11, 31, 79, .6), 0 0 0 1px rgba(77, 148, 255, .5); white-space: nowrap; }
.callout-dot { width: 9px; height: 9px; border-radius: 9999px; background: #EBAB1F; box-shadow: 0 0 0 3px rgba(235, 171, 31, .3), 0 0 10px #EBAB1F; }

/* Hoja de especificaciones */
.spec-sheet { border-top: 2px solid #0B1F4F; }
.spec-row { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: start; padding: 20px 4px; border-bottom: 1px dashed rgba(42, 112, 222, .35); transition: background .3s; }
.spec-row:hover { background: rgba(42, 112, 222, .05); }
.spec-code { font: 800 11px Manrope, sans-serif; letter-spacing: .14em; color: #2A70DE; padding-top: 12px; }
.spec-icon { width: 44px; height: 44px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: #0B1F4F; color: #EBAB1F; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.spec-row:hover .spec-icon { transform: rotate(-6deg) scale(1.08); }
@media (max-width: 639px) { .spec-row { grid-template-columns: auto 1fr; } .spec-code { grid-column: 1 / -1; padding-top: 0; } .callout { font-size: 11px; padding: 5px 10px; } }

/* ---------- Tema agua (proyecto-piscina.html) ---------- */
/* Reflejos de luz como en el fondo de una piscina */
.caustics { position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: screen; opacity: .35;
    background:
        radial-gradient(ellipse 18% 9% at 20% 30%, rgba(156, 192, 255, .55), transparent 70%),
        radial-gradient(ellipse 14% 7% at 70% 60%, rgba(77, 148, 255, .5), transparent 70%),
        radial-gradient(ellipse 20% 8% at 45% 80%, rgba(156, 192, 255, .45), transparent 70%),
        radial-gradient(ellipse 12% 6% at 85% 25%, rgba(235, 211, 107, .35), transparent 70%);
    animation: caustics 12s ease-in-out infinite alternate; }
@keyframes caustics { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-4%, 3%) scale(1.08); } 100% { transform: translate(3%, -2%) scale(1.02); } }

/* Ola al pie de la portada */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 15; }
.wave-divider path { fill: #fff; }
.wave-a { opacity: .35; animation: wave 7s ease-in-out infinite alternate; }
.wave-b { animation: wave 9s ease-in-out infinite alternate-reverse; }
@keyframes wave { from { transform: translateX(-40px); } to { transform: translateX(40px); } }

/* Galería */
.gal-item { position: relative; display: block; height: 100%; min-height: 160px; overflow: hidden; border-radius: 4px; background: #071538; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gal-item:hover img { transform: scale(1.06); }
.gal-zoom { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: rgba(7, 21, 56, .75); color: #fff; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.gal-item:hover .gal-zoom, .gal-item:focus-visible .gal-zoom { opacity: 1; transform: none; }

/* Comparador diseño / realidad */
.compare { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; box-shadow: 0 30px 60px -24px rgba(11, 31, 79, .55); user-select: none; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #EBAB1F; box-shadow: 0 0 14px rgba(235, 171, 31, .9); pointer-events: none; }
.compare-handle .material-symbols-outlined { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: #EBAB1F; color: #0B1F4F; transform: rotate(90deg); box-shadow: 0 0 0 6px rgba(235, 171, 31, .25); }
.compare-tag { position: absolute; top: 12px; z-index: 2; padding: 5px 12px; border-radius: 9999px; background: rgba(7, 21, 56, .8); color: #fff; font: 700 11px Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:focus-within .compare-handle .material-symbols-outlined { outline: 2px solid #fff; outline-offset: 2px; }

/* Ficha técnica */
.spec-tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 4px; background: rgba(18, 41, 106, .6); border: 1px solid rgba(77, 148, 255, .25); transition: transform .5s var(--ease-out), border-color .5s; }
.spec-tile:hover { transform: translateY(-3px); border-color: rgba(77, 148, 255, .7); }
.ripple-icon { position: relative; flex-shrink: 0; width: 46px; height: 46px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #9cc0ff; background: rgba(77, 148, 255, .15); }
.ripple-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(77, 148, 255, .7); animation: ripple 2.8s ease-out infinite; }
.spec-tile:nth-child(2n) .ripple-icon::after { animation-delay: 1.4s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.ripple-ring { fill: none; stroke: #9cc0ff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ripple 2.8s ease-out infinite; }

/* Termómetro */
.thermo { position: relative; flex-shrink: 0; width: 22px; height: 110px; border-radius: 9999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.thermo-fill { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 0; border-radius: 9999px; background: linear-gradient(0deg, #2A70DE, #EBAB1F); box-shadow: 0 0 12px rgba(235, 171, 31, .6); transition: height 2s var(--ease-out) .4s; }
.thermo-bulb { position: absolute; left: 50%; bottom: -12px; width: 30px; height: 30px; margin-left: -15px; border-radius: 9999px; background: #2A70DE; box-shadow: 0 0 16px rgba(77, 148, 255, .9); }
.is-visible .thermo-fill { height: 78%; }
html:not(.js) .thermo-fill { height: 78%; }

/* Variante de 4 fases */
@media (min-width: 1024px) {
    .phase-grid.is-4 { grid-template-columns: repeat(4, 1fr); padding-top: 34px; }
    .phase-track.is-4 .phase-line { display: block; position: absolute; left: 12.5%; right: 12.5%; top: 16px; height: 2px; background: rgba(255, 255, 255, .12); }
    .phase-track.is-4 .phase-line > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #EBAB1F, #4D94FF, #EBAB1F); box-shadow: 0 0 12px rgba(77, 148, 255, .8); transition: transform 2.2s var(--ease-out) .3s; }
    html.js .phase-track.is-4.is-visible .phase-line > span, .phase-track.is-4:not([data-reveal]) .phase-line > span { transform: none; }
    .phase-grid.is-4 .phase-node { top: -33px; right: auto; left: 50%; margin-left: -15px; }
}
@media (min-width: 1280px) { .phase-grid.is-4 { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .caustics, .wave-a, .wave-b, .ripple-icon::after, .ripple-ring { animation: none; } .thermo-fill { height: 78%; } }
.gal-wide img { object-position: 50% 28%; }

/* ---------- Tema tomografía (proyecto-tomografo.html) ---------- */
.status-badge.is-sostenimiento { background: rgba(77, 148, 255, .15); color: #9cc0ff; border: 1px solid rgba(77, 148, 255, .6); animation: live-glow 2.6s ease-in-out infinite; }
.pj-table .status-badge.is-sostenimiento, .bg-white .status-badge.is-sostenimiento { color: #2A70DE; background: rgba(42, 112, 222, .1); }

.ct-gantry { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.ct-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ct-ticks line { stroke: rgba(156, 192, 255, .55); stroke-width: 1.2; }
.ct-ticks { transform-origin: 200px 200px; animation: bp-spin 60s linear infinite; }
.ct-ring { fill: none; transform-origin: 200px 200px; }
.ct-ring-a { stroke: #4D94FF; stroke-width: 2; stroke-dasharray: 2 10; animation: bp-spin 18s linear infinite; filter: drop-shadow(0 0 6px rgba(77, 148, 255, .9)); }
.ct-ring-b { stroke: rgba(235, 171, 31, .85); stroke-width: 3; stroke-dasharray: 120 60 20 60; animation: bp-spin 9s linear infinite reverse; filter: drop-shadow(0 0 6px rgba(235, 171, 31, .8)); }
.ct-ring-c { stroke: rgba(156, 192, 255, .25); stroke-width: 1; }
.ct-sweep { position: absolute; inset: 9%; border-radius: 9999px; background: conic-gradient(from 0deg, transparent 0 300deg, rgba(77, 148, 255, .05) 320deg, rgba(77, 148, 255, .55) 360deg); animation: bp-spin 4s linear infinite; mix-blend-mode: screen; z-index: 2; pointer-events: none; }
.ct-photo { position: absolute; inset: 14%; border-radius: 9999px; overflow: hidden; border: 2px solid rgba(77, 148, 255, .6); box-shadow: 0 0 60px rgba(42, 112, 222, .5), inset 0 0 40px rgba(7, 21, 56, .6); }
.ct-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.15); }

/* Líneas de corte que recorren tarjetas e imágenes */
.slice-card { position: relative; overflow: hidden; }
.slice-scan { position: absolute; left: 0; right: 0; top: -10%; height: 2px; background: linear-gradient(90deg, transparent, #4D94FF, transparent); box-shadow: 0 0 14px 2px rgba(77, 148, 255, .6); opacity: 0; pointer-events: none; z-index: 2; }
.slice-card:hover .slice-scan, .slice-scan.is-big { animation: slice 3.2s ease-in-out infinite; }
.slice-scan.is-big { background: repeating-linear-gradient(90deg, rgba(77, 148, 255, .9) 0 6px, transparent 6px 10px); }
@keyframes slice { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.study-chip { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 4px; background: #fff; border: 1px solid rgba(11, 31, 79, .1); overflow: hidden; transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s; }
.study-chip .material-symbols-outlined { flex-shrink: 0; width: 42px; height: 42px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #fff; background: #0B1F4F; }
.study-chip::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, #2A70DE, transparent); opacity: 0; }
.study-chip:hover { transform: translateY(-3px); border-color: rgba(42, 112, 222, .5); box-shadow: 0 16px 30px -18px rgba(11, 31, 79, .5); }
.study-chip:hover::after { animation: slice 1.6s ease-in-out infinite; }

/* Ciclo de sostenibilidad */
.sustain-loop { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 44px 0; }
.sustain-core { position: relative; width: 74%; margin: 0 auto; }
.sustain-arc { stroke-dashoffset: 100; transition: stroke-dashoffset 2.4s var(--ease-out) .3s; }
.is-visible .sustain-arc { stroke-dashoffset: 0; }
.sustain-orbit { transform-origin: 200px 200px; animation: bp-spin 8s linear infinite; }
.sustain-center { position: absolute; inset: 30%; border-radius: 9999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: #fff; box-shadow: 0 20px 50px -20px rgba(11, 31, 79, .45); }
.sustain-center .material-symbols-outlined { font-size: 40px; color: #2A70DE; }
.sustain-steps { position: absolute; inset: 0; }
.sustain-steps li { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; background: #0B1F4F; color: #fff; font: 700 11px Manrope, sans-serif; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(11, 31, 79, .6); opacity: 0; transform: scale(.8); transition: opacity .6s, transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(1s + var(--i) * .25s); }
.sustain-steps li .material-symbols-outlined { font-size: 16px; color: #EBAB1F; }
.is-visible .sustain-steps li { opacity: 1; transform: none; }
.sustain-steps li:nth-child(1) { top: 0; left: 50%; translate: -50% 0; }
.sustain-steps li:nth-child(2) { top: 50%; right: 0; translate: 0 -50%; }
.sustain-steps li:nth-child(3) { bottom: 0; left: 50%; translate: -50% 0; }
.sustain-steps li:nth-child(4) { top: 50%; left: 0; translate: 0 -50%; }
@media (max-width: 639px) { .sustain-core { width: 64%; } .sustain-steps li { font-size: 9.5px; padding: 4px 8px; } .sustain-steps li:nth-child(2), .sustain-steps li:nth-child(4) { max-width: 30%; white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .ct-ticks, .ct-ring-a, .ct-ring-b, .ct-sweep, .sustain-orbit, .status-badge.is-sostenimiento { animation: none; } .sustain-arc { stroke-dashoffset: 0; } .sustain-steps li { opacity: 1; transform: none; } }

/* Llamado de sostenibilidad en el inicio */
.sustain-banner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px 28px; border-radius: 4px; background: linear-gradient(110deg, #071538, #12296A 60%, #0B1F4F); border: 1px solid rgba(77, 148, 255, .4); box-shadow: 0 0 40px rgba(42, 112, 222, .2), 0 30px 60px -30px rgba(11, 31, 79, .7); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s; }
.sustain-banner:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(42, 112, 222, .35), 0 30px 60px -30px rgba(11, 31, 79, .7); }
.sustain-banner-ring { position: relative; width: 92px; height: 92px; flex-shrink: 0; border-radius: 9999px; padding: 5px; background: conic-gradient(from 0deg, #EBAB1F, #4D94FF, #EBAB1F); animation: bp-spin 6s linear infinite; }
.sustain-banner-ring img { width: 100%; height: 100%; border-radius: 9999px; object-fit: cover; animation: bp-spin 6s linear infinite reverse; border: 3px solid #071538; }
@media (prefers-reduced-motion: reduce) { .sustain-banner-ring, .sustain-banner-ring img { animation: none; } }
@media (max-width: 639px) { .sustain-center p { font-size: 13px !important; } .sustain-center .material-symbols-outlined { font-size: 26px; } }

/* ---------- Tema óptica (proyecto-oftalmologia.html) ---------- */
/* Imágenes que pasan de desenfocadas a nítidas, como al graduar un lente */
@keyframes focus-in { from { filter: blur(16px) saturate(.6); } to { filter: none; } }
html.js .hero-photo img.focus-pull { animation: focus-in 2.6s ease-out .2s both, settle 3.2s var(--ease-out) .1s both, drift 26s ease-in-out 3.3s infinite alternate; }
html.js .render-frame .focus-pull { filter: blur(14px) saturate(.6); transition: filter 1.8s ease-out .3s; }
html.js .is-visible .render-frame .focus-pull { filter: none; }

/* Lente con anillos e iris */
.lens { position: relative; aspect-ratio: 1; }
.lens-ring { position: absolute; border-radius: 9999px; border: 2px solid rgba(77, 148, 255, .55); }
.lens-ring.r1 { inset: 0; border-style: dashed; border-color: rgba(156, 192, 255, .35); animation: bp-spin 40s linear infinite; }
.lens-ring.r2 { inset: 8%; border-width: 3px; border-color: transparent; border-top-color: #EBAB1F; border-right-color: rgba(235, 171, 31, .4); animation: bp-spin 7s linear infinite; filter: drop-shadow(0 0 8px rgba(235, 171, 31, .8)); }
.lens-ring.r3 { inset: 16%; background: radial-gradient(circle at 40% 35%, rgba(156, 192, 255, .25), rgba(7, 21, 56, .55) 60%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: inset 0 0 40px rgba(77, 148, 255, .35), 0 0 50px rgba(42, 112, 222, .35); }
.lens-iris { position: absolute; inset: 31%; border-radius: 9999px; overflow: hidden; animation: iris 6s ease-in-out infinite; }
.lens-iris i { position: absolute; left: 50%; top: 50%; width: 120%; height: 120%; margin: -60% 0 0 -60%; border-radius: 0 0 40% 0; background: linear-gradient(135deg, rgba(42, 112, 222, .85), rgba(11, 31, 79, .95)); transform-origin: 0 0; transform: rotate(calc(var(--k) * 45deg)) translate(var(--o, 18%), var(--o, 18%)); border: 1px solid rgba(156, 192, 255, .35); }
@keyframes iris { 0%, 100% { --o: 18%; transform: rotate(0); } 50% { --o: 28%; transform: rotate(30deg); } }
@property --o { syntax: "<percentage>"; inherits: true; initial-value: 18%; }
.lens-glint { position: absolute; left: 30%; top: 26%; width: 16%; height: 8%; border-radius: 9999px; background: rgba(255, 255, 255, .75); filter: blur(3px); transform: rotate(-35deg); }

/* Pestañas y renders con puntos */
.view-tabs { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 8px; background: rgba(7, 21, 56, .8); border: 1px solid rgba(255, 255, 255, .12); }
.view-tab { padding: 10px 18px; border-radius: 6px; font: 700 14px Manrope, sans-serif; color: rgba(255, 255, 255, .7); transition: background .3s, color .3s; }
.view-tab:hover { color: #fff; }
.view-tab.is-on { background: #2A70DE; color: #fff; box-shadow: 0 0 18px rgba(42, 112, 222, .6); }
.view-panel.is-active { animation: dn-in .6s var(--ease-out) both; }
.render-frame { position: relative; overflow: visible; border-radius: 4px; }
.render-frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 0 0 50px rgba(42, 112, 222, .25); }
.render-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 9999px; background: rgba(7, 21, 56, .85); font: 700 11px Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.pin { position: absolute; z-index: 3; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 9999px; opacity: 0; transform: scale(.4); transition: opacity .5s, transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(1.4s + var(--i) * .2s); }
.is-visible .pin { opacity: 1; transform: none; }
.pin-dot { position: absolute; inset: 9px; border-radius: 9999px; background: #EBAB1F; box-shadow: 0 0 0 4px rgba(235, 171, 31, .35), 0 0 16px #EBAB1F; }
.pin-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 9999px; border: 2px solid rgba(235, 171, 31, .8); animation: hud-ping 2.4s ease-out infinite; }
.pin-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: 220px; translate: -50% 6px; padding: 10px 12px; border-radius: 6px; background: #071538; border: 1px solid rgba(77, 148, 255, .6); box-shadow: 0 0 24px rgba(42, 112, 222, .4); text-align: left; font: 500 12px/1.4 "Plus Jakarta Sans", sans-serif; color: rgba(255, 255, 255, .8); opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s; }
.pin-tip b { display: block; font: 700 13px Manrope, sans-serif; color: #fff; margin-bottom: 2px; }
.pin:hover .pin-tip, .pin:focus-visible .pin-tip, .pin.is-open .pin-tip { opacity: 1; translate: -50% 0; }
.pin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lens-icon { position: relative; width: 56px; height: 56px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; color: #2A70DE; background: radial-gradient(circle at 35% 30%, #fff, #EAF2FD 60%); box-shadow: inset 0 0 0 2px rgba(42, 112, 222, .25), 0 10px 20px -10px rgba(42, 112, 222, .6); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.lens-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 9999px; border: 2px dashed rgba(235, 171, 31, .7); animation: bp-spin 12s linear infinite; }
.group:hover .lens-icon { transform: scale(1.1); }

/* Cartilla de visión que se enfoca fila por fila */
.eye-chart { padding: 28px 40px; border-radius: 4px; background: #fff; box-shadow: 0 30px 60px -24px rgba(11, 31, 79, .45); text-align: center; }
.eye-chart ol { display: flex; flex-direction: column; gap: 8px; }
.eye-chart li { font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: .3em; line-height: 1.1; color: #0B1F4F; }
html.js .eye-chart li { filter: blur(8px); opacity: .5; transition: filter 1s ease-out, opacity 1s; transition-delay: calc(.3s + var(--r) * .3s); }
html.js .eye-chart.is-visible li { filter: none; opacity: 1; }
.eye-chart li:first-child { color: #2A70DE; }
@media (prefers-reduced-motion: reduce) {
    html.js .hero-photo img.focus-pull, html.js .render-frame .focus-pull, html.js .eye-chart li { animation: none; filter: none; opacity: 1; }
    .lens-ring, .lens-iris, .lens-icon::after { animation: none; }
    .pin { opacity: 1; transform: none; }
}

/* ---------- Sanitarios públicos ---------- */
.render-frame.is-plan { width: fit-content; max-width: 100%; margin: 0 auto; }
.render-frame.is-plan img { width: auto; max-width: 100%; max-height: 640px; aspect-ratio: auto; object-fit: contain; background: #f2f2f0; }

/* Flujo del modelo autosostenible */
.flow { position: relative; }
.flow-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 768px) { .flow-grid { grid-template-columns: repeat(4, 1fr); } }
.flow-line { display: none; }
@media (min-width: 768px) {
    .flow-line { display: block; position: absolute; left: 12.5%; right: 12.5%; top: 38px; height: 3px; border-radius: 9999px; background: rgba(42, 112, 222, .15); overflow: hidden; }
    .flow-line > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #2A70DE, #EBAB1F); transition: transform 2s var(--ease-out) .4s; }
    .is-visible .flow-line > span { transform: none; }
    .flow-line i { position: absolute; top: -4px; left: 0; width: 11px; height: 11px; border-radius: 9999px; background: #EBAB1F; box-shadow: 0 0 12px #EBAB1F; animation: flow-coin 3.6s linear infinite; }
}
@keyframes flow-coin { from { left: -2%; } to { left: 100%; } }
.flow-step { position: relative; opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .8s var(--ease-out); transition-delay: calc(.4s + var(--i) * .3s); }
.is-visible .flow-step { opacity: 1; transform: none; }
html:not(.js) .flow-step { opacity: 1; transform: none; }
.flow-node { position: relative; z-index: 1; display: inline-flex; width: 78px; height: 78px; border-radius: 9999px; align-items: center; justify-content: center; color: #fff; background: #0B1F4F; box-shadow: 0 0 0 6px #EAF2FD, 0 14px 30px -10px rgba(11, 31, 79, .6); }
.flow-node .material-symbols-outlined { font-size: 34px; }
.flow-step:last-child .flow-node { background: #EBAB1F; color: #0B1F4F; }
/* Variante de 5 pasos (avance de obra) */
@media (max-width: 767px) { .flow-grid.is-5 > :last-child { grid-column: 1 / -1; } }
@media (min-width: 768px) { .flow-grid.is-5 { grid-template-columns: repeat(5, 1fr); } .flow.is-5 .flow-line { left: 10%; right: 10%; } }
.flow-step .status-badge.is-ejecucion { display: inline-flex; background: rgba(42, 112, 222, .12); color: #2A70DE; }
.flow.is-5 .flow-step:last-child .flow-node { animation: live-glow 2.6s ease-in-out infinite; }

/* Control de ingreso: personas que entran en una hora */
.turnstile { padding: 28px; border-radius: 4px; background: rgba(18, 41, 106, .6); border: 1px solid rgba(77, 148, 255, .3); box-shadow: 0 0 40px rgba(42, 112, 222, .2); }
.people-grid { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.person { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 6px; background: rgba(255, 255, 255, .05); color: rgba(156, 192, 255, .25); transition: color .4s, background .4s, transform .5s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(.3s + var(--p) * 45ms); }
.person .material-symbols-outlined { font-size: 22px; }
.is-visible .person { color: #9cc0ff; background: rgba(77, 148, 255, .15); transform: scale(1.04); }
.is-visible .person:nth-child(5n) { color: #EBAB1F; background: rgba(235, 171, 31, .15); }

/* Siguientes procesos */
.next-steps { display: flex; flex-direction: column; gap: 10px; }
.next-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 4px; border: 1px dashed rgba(77, 148, 255, .5); background: rgba(7, 21, 56, .5); }
.next-num { font: 800 12px Manrope, sans-serif; letter-spacing: .14em; color: #9cc0ff; }
@media (prefers-reduced-motion: reduce) { .flow-step, .person { opacity: 1; transform: none; transition: none; } .flow-line i { animation: none; display: none; } }

/* ---------- Clínica de Ojos: historia, perfiles y alternativas ---------- */
.eye-timeline { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 64px; }
.eye-timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(#EBAB1F, #4D94FF 70%, rgba(77, 148, 255, .2) 80%, #EBAB1F); box-shadow: 0 0 10px rgba(77, 148, 255, .6); }
.eye-step { position: relative; }
.eye-node { position: absolute; left: -64px; top: 10px; width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #0B1F4F; background: #EBAB1F; box-shadow: 0 0 0 5px rgba(235, 171, 31, .2), 0 0 18px rgba(235, 171, 31, .7); }
.eye-step.is-pause .eye-node { background: #12296A; color: #9cc0ff; box-shadow: 0 0 0 5px rgba(77, 148, 255, .15); }
.eye-step.is-now .eye-node { background: #4D94FF; color: #071538; animation: live-glow 2.6s ease-in-out infinite; }
.eye-card { padding: 18px 22px; border-radius: 4px; background: rgba(18, 41, 106, .6); border: 1px solid rgba(77, 148, 255, .25); }
.eye-step.is-pause .eye-card { border-style: dashed; background: rgba(7, 21, 56, .5); }
.eye-step.is-now .eye-card { border-color: #4D94FF; box-shadow: 0 0 30px rgba(77, 148, 255, .25); }
@media (min-width: 768px) { .eye-card { padding: 22px 28px; } }

.profile-card { position: relative; padding: 32px; border-radius: 4px; background: #fff; border: 1px solid rgba(11, 31, 79, .12); color: #0B1F4F; transition: transform .5s var(--ease-out), box-shadow .5s; }
.profile-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(11, 31, 79, .5); }
.profile-card.is-primary { background: linear-gradient(160deg, #12296A, #0B1F4F); color: #fff; border-color: transparent; }
.profile-sub { margin-top: 4px; font: 600 13px Manrope, sans-serif; letter-spacing: .04em; color: #2A70DE; }
.profile-card.is-primary .profile-sub { color: #9cc0ff; }
.profile-card ul { color: inherit; opacity: .9; }

.opt-compare li { display: flex; align-items: center; gap: 12px; }
.opt-bar { position: relative; flex: 1; height: 12px; border-radius: 9999px; background: #EAF2FD; overflow: hidden; }
.opt-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2A70DE, #EBAB1F); transition: width 1.6s var(--ease-out); transition-delay: calc(.3s + var(--i) * .2s); }
.is-visible .opt-bar > span { width: var(--w); }
@media (max-width: 639px) { .opt-compare li { flex-wrap: wrap; gap: 4px 12px; } .opt-compare .opt-bar { order: 3; flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .opt-bar > span { width: var(--w); transition: none; } .eye-step.is-now .eye-node { animation: none; } }

@media (max-width: 639px) { .view-tab { flex: 1 1 45%; padding: 10px 12px; font-size: 13px; } }

/* ---------- Tema centro de datos (proyecto-datacenter.html) ---------- */
/* Paquetes de datos que caen por la portada */
.dc-stream { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dc-stream i { position: absolute; top: -120px; left: var(--x); width: 2px; height: 90px; border-radius: 2px; background: linear-gradient(transparent, #4D94FF); box-shadow: 0 0 10px rgba(77, 148, 255, .8); opacity: .55; animation: dc-fall var(--t) linear var(--d) infinite; }
.dc-stream i.is-gold { background: linear-gradient(transparent, #EBAB1F); box-shadow: 0 0 10px rgba(235, 171, 31, .8); }
@keyframes dc-fall { to { transform: translateY(1300px); } }

.dc-led { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 9999px; background: #4D94FF; box-shadow: 0 0 8px #4D94FF; animation: dc-blink var(--t, 1.6s) steps(2, jump-none) var(--d, 0s) infinite; }
.dc-led.is-gold { background: #EBAB1F; box-shadow: 0 0 8px #EBAB1F; }
@keyframes dc-blink { 50% { opacity: .25; } }

/* Foto de portada con lecturas del sistema */
.dc-frame { position: relative; width: min(100%, 400px); aspect-ratio: 4 / 5; margin: 0 auto; }
.dc-frame-img { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; border: 1px solid rgba(77, 148, 255, .45); box-shadow: 0 0 70px rgba(42, 112, 222, .4); }
.dc-frame-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.dc-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; background: rgba(7, 21, 56, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(77, 148, 255, .5); box-shadow: 0 0 24px rgba(42, 112, 222, .35); font-family: Manrope, sans-serif; white-space: nowrap; }
.dc-chip small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9cc0ff; }
.dc-chip b { display: block; font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2; }
.dc-chip > .material-symbols-outlined { color: #EBAB1F; }
.dc-chip.c1 { left: -18%; top: 12%; }
.dc-chip.c2 { right: -16%; top: 44%; }
.dc-chip.c3 { left: -10%; bottom: 9%; }
.dc-spark { width: 64px; height: 22px; overflow: visible; }
.dc-spark path { fill: none; stroke: #4D94FF; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dc-spark 3.6s ease-in-out infinite; }
@keyframes dc-spark { 0% { stroke-dashoffset: 1; } 45%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@media (max-width: 1023px) { .dc-chip.c1 { left: -6%; } .dc-chip.c2 { right: -6%; } .dc-chip.c3 { left: -4%; } }
@media (max-width: 639px) { .dc-chip { padding: 7px 10px; gap: 7px; } .dc-chip b { font-size: 13px; } .dc-chip small { font-size: 8px; } .dc-chip.c1 { left: 8px; top: 8px; } .dc-chip.c2 { right: 8px; } .dc-chip.c3 { left: 8px; bottom: 8px; } .dc-spark { display: none; } }

/* Red de la alianza: nodos unidos por paquetes que viajan */
.dc-net { position: relative; }
.dc-net-line { display: none; }
@media (min-width: 768px) {
    .dc-net-line { display: block; position: absolute; left: 16.6%; right: 16.6%; top: 40px; height: 2px; background: rgba(42, 112, 222, .2); }
    .dc-net-line i { position: absolute; top: -3px; left: 0; width: 28px; height: 8px; border-radius: 9999px; background: linear-gradient(90deg, transparent, #2A70DE); box-shadow: 0 0 10px rgba(42, 112, 222, .7); animation: dc-packet 3.2s linear infinite; }
    .dc-net-line i:nth-child(2) { background: linear-gradient(270deg, transparent, #EBAB1F); box-shadow: 0 0 10px rgba(235, 171, 31, .7); animation-direction: reverse; animation-delay: 1.6s; }
}
@keyframes dc-packet { from { left: 0; } to { left: calc(100% - 28px); } }
.dc-node { position: relative; z-index: 1; display: flex; width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 9999px; align-items: center; justify-content: center; color: #EBAB1F; background: #0B1F4F; box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(42, 112, 222, .25), 0 14px 30px -10px rgba(11, 31, 79, .6); }
.dc-node .material-symbols-outlined { font-size: 34px; }

/* Antes / después */
.dc-ba { position: relative; overflow: hidden; border-radius: 4px; background: #071538; }
.dc-ba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: filter 1s ease, transform .9s var(--ease-out); }
.dc-ba.is-before img { filter: grayscale(.85) contrast(.95) brightness(.9); }
.dc-ba.is-before:hover img { filter: none; }
.dc-ba.is-before::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(7, 21, 56, .25) 0 2px, transparent 2px 5px); }
.dc-ba.is-after { box-shadow: 0 0 0 1px rgba(77, 148, 255, .6), 0 0 40px rgba(42, 112, 222, .35); }
.dc-ba.is-after img { object-position: 50% 52%; }
.dc-ba:hover img { transform: scale(1.04); }
.dc-tag { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; background: rgba(7, 21, 56, .85); color: #fff; font: 700 11px Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.dc-ba.is-after .dc-tag { background: #EBAB1F; color: #0B1F4F; }
.dc-arrow { display: none; }
@media (min-width: 768px) { .dc-arrow { display: flex; position: absolute; left: 50%; top: 50%; z-index: 4; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 9999px; align-items: center; justify-content: center; background: #EBAB1F; color: #0B1F4F; box-shadow: 0 0 0 8px rgba(235, 171, 31, .25), 0 0 24px rgba(235, 171, 31, .7); } }

/* Línea de tiempo como registro de despliegue */
.dc-log { position: relative; overflow: hidden; border-radius: 6px; background: #050f2a; border: 1px solid rgba(77, 148, 255, .35); box-shadow: 0 0 60px rgba(42, 112, 222, .2); }
.dc-log-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: rgba(18, 41, 106, .7); border-bottom: 1px solid rgba(77, 148, 255, .2); font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #9cc0ff; }
.dc-log-bar i { width: 10px; height: 10px; border-radius: 9999px; background: rgba(156, 192, 255, .3); }
.dc-log-bar i:nth-child(2) { background: #EBAB1F; }
.dc-log-bar i:nth-child(3) { background: #4D94FF; }
.dc-log-bar span { margin-left: 10px; }
.dc-log-progress { position: relative; height: 3px; background: rgba(77, 148, 255, .12); }
.dc-log-progress > span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #2A70DE, #EBAB1F); box-shadow: 0 0 10px rgba(235, 171, 31, .7); transition: width 3.4s var(--ease-out) .3s; }
.dc-log.is-visible .dc-log-progress > span { width: 100%; }
.dc-log > ol { padding: 8px 22px 6px; }
.dc-log > ol > li { display: grid; grid-template-columns: 150px 1fr auto; gap: 6px 18px; padding: 18px 0; border-bottom: 1px dashed rgba(77, 148, 255, .2); }
html.js .dc-log > ol > li { opacity: 0; transform: translateX(-14px); transition: opacity .6s, transform .7s var(--ease-out); transition-delay: calc(.3s + var(--i) * .32s); }
html.js .dc-log.is-visible > ol > li { opacity: 1; transform: none; }
.dc-log-date { padding-top: 3px; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: #9cc0ff; white-space: nowrap; }
.dc-log-date b { color: #EBAB1F; margin-right: 8px; }
.dc-log-title { font: 700 17px/1.35 Manrope, sans-serif; color: #fff; }
.dc-log-ok { padding-top: 3px; font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #EBAB1F; white-space: nowrap; }
.dc-log-sub { grid-column: 2 / 3; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .65); }
.dc-log-sub li { position: relative; padding-left: 16px; }
.dc-log-sub li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 1px; background: rgba(77, 148, 255, .8); }
.dc-log-end { padding: 18px 22px 22px; font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: #9cc0ff; }
.dc-log-end b { color: #EBAB1F; }
.dc-cursor { display: inline-block; width: 9px; height: 1.1em; margin-left: 4px; vertical-align: text-bottom; background: #EBAB1F; animation: dc-blink 1s steps(2, jump-none) infinite; }
@media (max-width: 767px) {
    .dc-log > ol { padding: 4px 16px; }
    .dc-log > ol > li { grid-template-columns: 1fr auto; }
    .dc-log-title { grid-column: 1 / -1; grid-row: 2; }
    .dc-log-sub { grid-column: 1 / -1; }
}

/* Gabinete con unidades de rack */
.dc-cab { position: relative; padding: 16px 22px; border-radius: 6px; background: linear-gradient(180deg, #0d1a3d, #071538); border: 2px solid #1d2f63; box-shadow: inset 0 0 0 5px #050f2a, 0 30px 60px -24px rgba(11, 31, 79, .7); }
.dc-cab::before, .dc-cab::after { content: ""; position: absolute; top: 14px; bottom: 14px; width: 4px; background: repeating-linear-gradient(180deg, rgba(156, 192, 255, .35) 0 3px, transparent 3px 11px); }
.dc-cab::before { left: 8px; }
.dc-cab::after { right: 8px; }
.dc-cab-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 12px; font: 700 10px Manrope, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #9cc0ff; }
.dc-unit { position: relative; display: flex; align-items: center; gap: 14px; margin: 6px 0; padding: 12px 14px; border-radius: 3px; color: #fff; background: linear-gradient(90deg, #12296A, #0f2257); border: 1px solid rgba(77, 148, 255, .25); transition: border-color .4s, box-shadow .4s; }
html.js .dc-unit { opacity: 0; transform: translateX(34px); transition: opacity .6s, transform .8s var(--ease-out), border-color .4s, box-shadow .4s; transition-delay: calc(.2s + var(--i) * .14s), calc(.2s + var(--i) * .14s), 0s, 0s; }
html.js .dc-cab.is-visible .dc-unit { opacity: 1; transform: none; }
.dc-unit:hover { border-color: rgba(77, 148, 255, .8); box-shadow: 0 0 20px rgba(77, 148, 255, .25); }
.dc-unit-u { flex-shrink: 0; width: 30px; font: 800 10px Manrope, sans-serif; letter-spacing: .1em; color: rgba(156, 192, 255, .7); }
.dc-unit > .material-symbols-outlined { flex-shrink: 0; color: #EBAB1F; }
.dc-unit p { font: 700 15px/1.3 Manrope, sans-serif; }
.dc-unit-leds { display: flex; gap: 5px; margin-left: auto; padding-left: 8px; }

/* Plano con flujo de aire */
.dc-duct { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .22; }
.dc-flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 14; animation: dc-flow 1.1s linear infinite; }
.dc-flow.is-cold, .dc-duct.is-cold { stroke: #4D94FF; }
.dc-flow.is-hot, .dc-duct.is-hot { stroke: #EBAB1F; }
.dc-flow.is-cold { filter: drop-shadow(0 0 4px rgba(77, 148, 255, .9)); }
.dc-flow.is-hot { filter: drop-shadow(0 0 4px rgba(235, 171, 31, .9)); }
@keyframes dc-flow { to { stroke-dashoffset: -20; } }
.dc-cab-svg { fill: rgba(77, 148, 255, .14); stroke: #7AACFF; stroke-width: 1.4; }
.dc-cab-svg.is-inrow { fill: rgba(235, 171, 31, .2); stroke: #EBAB1F; }

.dc-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 4px; background: #fff; border: 1px solid rgba(11, 31, 79, .1); color: #0B1F4F; font-weight: 600; line-height: 1.45; transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s; }
.dc-check:hover { transform: translateY(-3px); border-color: rgba(42, 112, 222, .5); box-shadow: 0 16px 30px -18px rgba(11, 31, 79, .5); }
.dc-check .material-symbols-outlined { flex-shrink: 0; color: #2A70DE; }

@media (prefers-reduced-motion: reduce) {
    .dc-stream i, .dc-led, .dc-spark path, .dc-net-line i, .dc-cursor, .dc-flow { animation: none; }
    .dc-spark path { stroke-dashoffset: 0; }
    html.js .dc-log > ol > li, html.js .dc-unit { opacity: 1; transform: none; }
    .dc-log-progress > span { width: 100%; transition: none; }
}

/* ---------- Donación en especie (proyecto-digitalizacion.html) ---------- */
.es-filter { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; border: 1px solid rgba(11, 31, 79, .15); background: #fff; font: 700 13px Manrope, sans-serif; color: #0B1F4F; transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.es-filter .material-symbols-outlined { font-size: 18px; color: #2A70DE; }
.es-filter b { font-size: 11px; opacity: .6; }
.es-filter:hover { border-color: #2A70DE; }
.es-filter.is-on { background: #0B1F4F; border-color: #0B1F4F; color: #fff; box-shadow: 0 8px 20px -10px rgba(11, 31, 79, .7); }
.es-filter.is-on .material-symbols-outlined { color: #EBAB1F; }
.es-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; background: #fff; border: 1px solid rgba(11, 31, 79, .1); transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s; animation: es-in .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.es-card:hover { transform: translateY(-4px); border-color: rgba(42, 112, 222, .45); box-shadow: 0 24px 44px -26px rgba(11, 31, 79, .55); }
.es-card.is-picked { border-color: #EBAB1F; box-shadow: 0 0 0 2px #EBAB1F, 0 24px 44px -26px rgba(235, 171, 31, .7); }
@keyframes es-in { from { opacity: 0; transform: translateY(14px); } }
.es-media { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 60%, #fff, #EAF2FD 75%); }
.es-media img { max-width: 78%; max-height: 120px; object-fit: contain; transition: transform .6s var(--ease-out); }
.es-card:hover .es-media img { transform: scale(1.06); }
.es-media > .material-symbols-outlined { font-size: 54px; color: #2A70DE; }
.es-cat { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 9999px; background: rgba(11, 31, 79, .9); color: #fff; font: 700 10px Manrope, sans-serif; letter-spacing: .06em; }
.es-cat .material-symbols-outlined { font-size: 14px; color: #EBAB1F; }
.es-bar { height: 8px; border-radius: 9999px; background: #EAF2FD; overflow: hidden; }
.es-bar > span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #2A70DE, #EBAB1F); animation: es-grow 1.4s var(--ease-out) both .2s; }
@keyframes es-grow { from { width: 0; } }
.es-pick { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 11px 14px; border-radius: 4px; background: #0B1F4F; color: #fff; font: 700 14px Manrope, sans-serif; transition: background .3s, color .3s; }
.es-pick:hover { background: #2A70DE; }
.es-card.is-picked .es-pick { background: #EBAB1F; color: #0B1F4F; }
.es-form label { display: block; }
.es-form .es-label { display: block; margin-bottom: 6px; font: 700 12px Manrope, sans-serif; letter-spacing: .04em; color: rgba(255, 255, 255, .75); }
.es-form .es-input { width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: 500 15px "Plus Jakarta Sans", sans-serif; transition: border-color .3s, box-shadow .3s; }
.es-form .es-input::placeholder { color: rgba(255, 255, 255, .4); }
.es-form .es-input:focus { outline: none; border-color: #EBAB1F; box-shadow: 0 0 0 3px rgba(235, 171, 31, .2); }
.es-form select.es-input option, .es-form select.es-input optgroup { color: #0B1F4F; }
.es-qty { display: flex; align-items: stretch; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18); overflow: hidden; }
.es-qty button { width: 44px; font-size: 20px; color: #EBAB1F; background: rgba(255, 255, 255, .06); }
.es-qty button:hover { background: rgba(255, 255, 255, .12); }
.es-form .es-qty input { flex: 1; min-width: 0; text-align: center; border: 0; background: transparent; color: #fff; font: 800 18px Manrope, sans-serif; }
.es-form .es-qty input:focus { outline: none; box-shadow: none; }
.es-status { min-height: 22px; font-size: 14px; }
.es-status.is-ok { color: #9ee6b8; }
.es-status.is-error, .es-status.is-warn { color: #FFD36B; }
@media (prefers-reduced-motion: reduce) { .es-card, .es-bar > span { animation: none; } }
#es-filters > li { flex-shrink: 0; }
.es-filter { white-space: nowrap; }
