/* ═══════════════════════════════════════════════════════════════
   Plan Campus — plan-campus.css
   Estilos exclusivos del módulo. Hereda tokens de general.css
   (--brand, --gold, --font-heading, --radius-*, --shadow-*, etc.).
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero vanguardia (primera pantalla) ────────────────────────── */
.pc-vhero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0 0 clamp(60px, 8vw, 100px);
}

.pc-vhero-content {
    position: relative;
    z-index: 1;
    padding-top: clamp(90px, 14vw, 130px);
}

/* Eyebrow pill de vidrio */
.pc-vhero-eyebrow {
    margin: 0 0 28px;
    display: block;
}

.pc-vhero-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}
.pc-vhero-eyebrow-pill i { color: var(--brand); font-size: .78rem; }

.pc-vhero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.4rem, 6.5vw, 5.6rem);
    line-height: .98;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0 0 28px;
    text-shadow: 0 4px 48px rgba(3, 22, 18, .3);
}
.pc-vhero-title span {
    background: linear-gradient(135deg, #2dd4bf 0%, #00a896 50%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.pc-vhero-sub {
    font-size: clamp(.95rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, .7);
    font-weight: 400;
    line-height: 1.6;
    max-width: 52ch;
    margin: 0;
}

/* ── Panel derecho: tarjeta glass oscura ────────────────────────── */
.pc-vhero-panel {
    background: rgba(10, 30, 24, .55);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    padding: 28px;
    transform: translateY(-7%);
    box-shadow:
        0 32px 80px rgba(3, 22, 18, .38),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pc-vhero-panel-label {
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .38);
    margin: 0;
}
.pc-vhero-panel-label i { color: var(--brand); opacity: .7; }

.pc-vhero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pc-vhero-stat {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    padding: 18px 20px;
    transition: background .18s ease;
}
.pc-vhero-stat:hover { background: rgba(255, 255, 255, .08); }

.pc-vhero-stat-n {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 35%, rgba(255, 255, 255, .72));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pc-vhero-stat-l {
    font-size: .63rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .42);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 7px;
    line-height: 1.3;
}

.pc-vhero-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin: 0;
}

/* CTA principal — ancho completo, icono en caja */
.pc-vhero-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    padding: 1rem 1rem 1rem 1.6rem;
    border-radius: 18px;
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
    box-shadow: 0 8px 28px rgba(0, 89, 78, .48);
    letter-spacing: .01em;
    gap: 12px;
}
.pc-vhero-cta:hover {
    background: #007a6a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 89, 78, .62);
}
.pc-vhero-cta i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .16s ease;
}
.pc-vhero-cta:hover i { transform: translateX(4px); }

/* CTA secundario — ghost link */
.pc-vhero-cta-sec {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, .55);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .15s ease;
    padding: .15rem 0;
}
.pc-vhero-cta-sec:hover { color: rgba(255, 255, 255, .9); }
.pc-vhero-cta-sec i { font-size: .78rem; }

.pc-vhero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .35);
    font-size: .9rem;
    animation: pcVheroScroll 2.2s ease-in-out infinite;
    cursor: default;
}
@keyframes pcVheroScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: .35; }
    50%       { transform: translateX(-50%) translateY(7px); opacity: .65; }
}

@media (max-width: 991px) {
    .pc-vhero-panel { transform: none; margin-top: 32px; }
    .pc-vhero-content { padding-top: clamp(80px, 14vw, 110px); }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.pc-hero {
    padding: clamp(48px, 9vw, 96px) 0 clamp(32px, 6vw, 64px);
    position: relative;
}

.pc-hero-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}

.pc-hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    color: var(--text);
    margin: 8px 0 16px;
    letter-spacing: -0.02em;
}

.pc-hero-title span {
    color: var(--brand);
    display: block;
}

.pc-hero-text {
    font-size: clamp(.95rem, 1.6vw, 1.1rem);
    color: var(--text-soft);
    max-width: 60ch;
    margin: 0 0 24px;
    line-height: 1.6;
}

.pc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Section base ──────────────────────────────────────────────── */
.pc-section {
    padding: clamp(40px, 7vw, 80px) 0;
}

.pc-section-alt {
    background: linear-gradient(180deg, transparent, var(--bg-soft) 30%, transparent);
}

.pc-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.pc-section-head h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--text);
    margin: 8px 0 12px;
    letter-spacing: -0.01em;
}

.pc-section-head p {
    color: var(--text-soft);
    font-size: clamp(.9rem, 1.4vw, 1.05rem);
    line-height: 1.6;
    margin: 0;
}

/* ── Anatomía grid ─────────────────────────────────────────────── */
.pc-grid {
    display: grid;
    gap: var(--gap-md);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pc-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast),
                border-color var(--transition-fast);
    backdrop-filter: blur(14px);
}

.pc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 89, 78, 0.25);
    color: var(--text);
}

.pc-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(0, 89, 78, 0.10);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.pc-card-icon.gold {
    background: rgba(181, 161, 96, 0.14);
    color: #8a6b19;
}

.pc-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0 0 10px;
    color: var(--text);
}

.pc-card p {
    color: var(--text-soft);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0 0 18px;
    flex: 1;
}

.pc-card-link {
    font-weight: 700;
    font-size: .85rem;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pc-card:hover .pc-card-link i {
    transform: translateX(4px);
    transition: transform var(--transition-fast);
}

/* ── Fases preview ─────────────────────────────────────────────── */
.pc-fases-grid {
    display: grid;
    gap: var(--gap-md);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 24px;
}

.pc-fase-card {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.pc-fase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pc-fase-tag {
    background: rgba(0, 89, 78, 0.10);
    color: var(--brand);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pc-fase-rango {
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 600;
}

.pc-fase-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    margin: 0 0 10px;
}

.pc-fase-card p {
    color: var(--text-soft);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 28px;
}

.pc-fase-progress {
    position: relative;
    background: var(--bg-soft);
    border-radius: 999px;
    height: 10px;
    overflow: visible;
}

.pc-fase-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-radius: 999px;
    transition: width .8s ease;
}

.pc-fase-progress-pct {
    position: absolute;
    right: 0;
    top: -22px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--brand);
}

/* ── Estado vacío ──────────────────────────────────────────────── */
.pc-card-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.pc-card-empty i {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 12px;
    display: inline-block;
}

.pc-card-empty p {
    margin: 0 0 16px;
    font-size: .95rem;
}

/* ── Footer del módulo ─────────────────────────────────────────── */
.pc-footer {
    padding: clamp(32px, 5vw, 56px) 0;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    margin-top: clamp(40px, 7vw, 80px);
}

.pc-footer-grid {
    display: grid;
    gap: var(--gap-md);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pc-footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    margin: 0 0 8px;
}

.pc-footer-line {
    color: var(--text-muted);
    font-size: .85rem;
    line-height: 1.5;
    margin: 0 0 4px;
}

/* ── Tarjeta de proyecto (preview en hito 1) ───────────────────── */
.pc-proy-card {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pc-proy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pc-proy-card .pc-proy-thumb {
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    background: var(--bg-soft);
    position: relative;
    isolation: isolate;
}

.pc-proy-card .pc-proy-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pc-proy-card .pc-proy-thumb-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .55) 0%, rgba(15, 23, 42, .15) 38%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.pc-proy-card .pc-proy-badges-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
    align-items: flex-start;
}

.pc-proy-card .pc-proy-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pc-proy-card .pc-proy-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.pc-proy-card .pc-proy-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: .78rem;
    color: var(--text-soft);
    line-height: 1.3;
}

.pc-proy-card .pc-proy-loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pc-proy-card .pc-proy-loc i {
    color: var(--brand);
    font-size: .8rem;
}

.pc-proy-card .pc-proy-cat {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .05);
}

.pc-proy-card .pc-proy-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.pc-proy-card .pc-proy-progress-row .pc-progress {
    flex: 1;
}

/* Solid backgrounds para badges sobre la foto: legibles sobre cualquier imagen */
.pc-proy-badges-top .pc-badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
    border: 1px solid rgba(255, 255, 255, .18);
}

.pc-proy-badges-top .pc-badge-estado-ejecutado    { background: rgba(15, 118, 110, .92); color: #fff; }
.pc-proy-badges-top .pc-badge-estado-ejecucion    { background: rgba(0, 89, 78, .92);    color: #fff; }
.pc-proy-badges-top .pc-badge-estado-formulacion  { background: rgba(37, 99, 235, .92);  color: #fff; }
.pc-proy-badges-top .pc-badge-estado-emergente    { background: rgba(220, 53, 69, .92);  color: #fff; }
.pc-proy-badges-top .pc-badge-estado-complementario { background: rgba(124, 58, 237, .92); color: #fff; }
.pc-proy-badges-top .pc-badge-estado-sin          { background: rgba(15, 23, 42, .72);   color: #fff; }
.pc-proy-badges-top .pc-badge-fase {
    background: rgba(255, 255, 255, .92);
    color: #6b5316;
}

.pc-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pc-badge-estado-ejecutado    { background: rgba(15,118,110,.12); color: var(--green); }
.pc-badge-estado-ejecucion    { background: rgba(0,89,78,.12);   color: var(--brand); }
.pc-badge-estado-formulacion  { background: rgba(37,99,235,.10); color: var(--blue); }
.pc-badge-estado-emergente    { background: rgba(220,53,69,.10); color: #dc3545; }
.pc-badge-estado-complementario { background: rgba(124,58,237,.10); color: var(--violet); }

.pc-progress {
    background: var(--bg-soft);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.pc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transition: width .6s ease;
}

/* ── Filtros del portafolio ────────────────────────────────────── */
.pc-filtros {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(14px);
}

.pc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pc-chip {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-soft);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}
.pc-chip:hover {
    color: var(--brand);
    border-color: rgba(0, 89, 78, .3);
}
.pc-chip.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.pc-filtros-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.pc-filtro-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-filtro-field label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pc-filtro-field input,
.pc-filtro-field select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-solid);
    color: var(--text);
    font-size: .9rem;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.pc-filtro-field input:focus,
.pc-filtro-field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 89, 78, .12);
}

.pc-counter {
    color: var(--text-muted);
    font-size: .85rem;
    margin: 0 0 16px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ── Grid del portafolio ───────────────────────────────────────── */
.pc-portfolio-grid {
    display: grid;
    gap: var(--gap-md);
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Badges adicionales */
.pc-badge-fase {
    background: rgba(181, 161, 96, .14);
    color: #8a6b19;
}
.pc-badge-cat {
    background: rgba(15, 23, 42, .06);
    color: var(--text-soft);
}
.pc-badge-estado-sin {
    background: rgba(15, 23, 42, .06);
    color: var(--text-muted);
}

.pc-proy-card .pc-proy-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pc-proy-card .pc-proy-meta i {
    margin-right: 4px;
    color: var(--brand);
}

.pc-proy-card .pc-proy-pct {
    font-weight: 800;
    color: var(--brand);
}

/* ── Detalle de proyecto ───────────────────────────────────────── */
.pc-proy-detalle {
    max-width: 920px;
    margin: 0 auto;
}

.pc-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-soft);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 16px;
    transition: color var(--transition-fast);
}
.pc-back-link:hover { color: var(--brand); }

.pc-detalle-head {
    margin-bottom: 24px;
}

.pc-detalle-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pc-detalle-titulo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.pc-detalle-ubicacion {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 0;
}

.pc-detalle-ubicacion i {
    color: var(--brand);
    margin-right: 6px;
}

.pc-detalle-imagen {
    margin: 0 0 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 16 / 9;
}

.pc-detalle-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pc-detalle-progreso {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-detalle-progreso .pc-progress {
    height: 10px;
}

.pc-detalle-progreso-pct {
    font-weight: 800;
    color: var(--brand);
    font-size: .95rem;
    align-self: flex-end;
}

.pc-detalle-resumen {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.55;
    margin: 0 0 20px;
    font-weight: 500;
}

.pc-detalle-descripcion {
    color: var(--text-soft);
    line-height: 1.7;
    margin: 0 0 28px;
    font-size: .98rem;
}

.pc-detalle-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.pc-detalle-galeria,
.pc-detalle-videos {
    margin-top: 32px;
}

.pc-detalle-galeria h2,
.pc-detalle-videos h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    margin: 0 0 16px;
}

.pc-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.pc-galeria-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    transition: transform var(--transition-fast);
}

.pc-galeria-item:hover {
    transform: scale(1.02);
}

.pc-galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pc-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.pc-video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.pc-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Responsive tweaks ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .pc-hero-panel { padding: 24px; }
    .pc-fase-progress-pct { top: -20px; }
    .pc-detalle-progreso-pct { align-self: flex-start; }
}

/* ── Destacados (sección de marketing) ───────────────────────── */
.pc-destacados {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, rgba(0, 89, 78, .08), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(181, 161, 96, .08), transparent 55%);
}

.pc-destacados-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 89, 78, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 89, 78, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 75%);
    z-index: 0;
}

.pc-destacados-inner {
    position: relative;
    z-index: 1;
}

.pc-section-head-impact h2 {
    font-size: clamp(1.85rem, 3.6vw, 2.7rem);
    background: linear-gradient(120deg, var(--text) 30%, var(--brand) 75%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.eyebrow-gold {
    color: #8a6b19;
    background: rgba(181, 161, 96, .14);
}

/* Stats strip */
.pc-impact-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.pc-impact-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 89, 78, .04), transparent 60%);
    pointer-events: none;
}

.pc-impact-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px dashed var(--border);
    position: relative;
    z-index: 1;
}

.pc-impact-cell:last-child { border-right: 0; }

.pc-impact-icon {
    font-size: 1.15rem;
    color: var(--brand);
    margin-bottom: 6px;
    opacity: .85;
}

.pc-impact-value {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.7rem, 3.8vw, 2.6rem);
    line-height: 1;
    color: var(--text);
    background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.pc-impact-label {
    color: var(--text-soft);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 4px;
    line-height: 1.3;
}

/* Featured first card en grid de destacados */
.pc-portfolio-grid-impact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (min-width: 992px) {
    .pc-portfolio-grid-impact {
        grid-template-columns: repeat(3, 1fr);
    }
    .pc-portfolio-grid-impact > .pc-proy-card:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
    .pc-portfolio-grid-impact > .pc-proy-card:first-child .pc-proy-thumb {
        aspect-ratio: 16 / 9;
    }
    .pc-portfolio-grid-impact > .pc-proy-card.is-featured .pc-proy-title {
        font-size: 1.4rem;
    }
    .pc-portfolio-grid-impact > .pc-proy-card.is-featured .pc-proy-body {
        padding: 22px 24px 24px;
        gap: 12px;
    }
    .pc-portfolio-grid-impact > .pc-proy-card.is-featured .pc-proy-desc {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
}

.pc-portfolio-grid-impact > .pc-proy-card {
    position: relative;
}

/* Cinta DESTACADO sobre la primera card */
.pc-proy-destacado-ribbon {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 8px 20px rgba(0, 89, 78, .35);
}

.pc-proy-destacado-ribbon i {
    font-size: .78rem;
    color: var(--gold);
}

/* Zoom suave de imagen al hover (sin overlay) */
.pc-portfolio-grid-impact .pc-proy-card .pc-proy-thumb > img {
    transition: transform .6s ease;
}

.pc-portfolio-grid-impact .pc-proy-card:not(.is-featured):hover .pc-proy-thumb > img {
    transform: scale(1.06);
}

.pc-portfolio-grid-impact .pc-proy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0, 89, 78, .18);
}

.pc-portfolio-grid-impact .pc-proy-card.is-featured:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

/* Descripción corta — oculta por defecto, se muestra solo en featured */
.pc-proy-desc {
    display: none;
    color: var(--text-soft);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
    overflow: hidden;
}

/* CTA al pie de destacados */
.pc-destacados-cta {
    margin-top: 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pc-destacados-cta-line {
    color: var(--text-soft);
    font-size: .95rem;
    margin: 0;
    max-width: 56ch;
    line-height: 1.55;
}

.pc-destacados-cta .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    box-shadow: 0 14px 30px rgba(0, 89, 78, .22);
}

/* Responsive del strip */
@media (max-width: 768px) {
    .pc-impact-strip {
        grid-template-columns: repeat(2, 1fr);
        padding: 18px 8px;
    }
    .pc-impact-cell { border-right: 0; }
    .pc-impact-cell:nth-child(odd) { border-right: 1px dashed var(--border); }
    .pc-impact-cell:nth-child(-n+2) { border-bottom: 1px dashed var(--border); padding-bottom: 16px; }
    .pc-impact-cell:nth-child(n+3) { padding-top: 16px; }
}

/* ════════════════════════════════════════════════════════════════
   Cinematic stage — fondo inmersivo para .pc-immersive
   ════════════════════════════════════════════════════════════════ */

/* Ocultar las decoraciones globales heredadas en este modo */
body.pc-immersive .bg-shell,
body.pc-immersive .bg-grid,
body.pc-immersive .blob { display: none !important; }

body.pc-immersive {
    background: var(--bg, #f5f7fb);
}

.pc-stage {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
}

/* ── Capa 1: fotos crossfade ────────────────────────────────── */
.pc-stage-photos {
    position: absolute;
    inset: 0;
}

.pc-stage-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--pc-stage-img, none);
    opacity: 0;
    transform: scale(1.08);
    will-change: opacity, transform;
    animation: pcStageFade 35s ease-in-out infinite;
    filter: contrast(1.05) saturate(1.05);
}

@keyframes pcStageFade {
    0%       { opacity: 0; transform: scale(1.08); }
    3%       { opacity: 1; transform: scale(1.04); }
    26%      { opacity: 1; transform: scale(1.0); }
    29%      { opacity: 0; transform: scale(1.0); }
    100%     { opacity: 0; transform: scale(1.08); }
}

/* ── Capa 2: overlay verde-negro con transparencia ──────────── */
.pc-stage-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 22%, rgba(0, 89, 78, .42), transparent 55%),
        radial-gradient(ellipse at 80% 78%, rgba(181, 161, 96, .18), transparent 55%),
        linear-gradient(180deg,
            rgba(3, 22, 18, .58) 0%,
            rgba(3, 22, 18, .48) 35%,
            rgba(3, 22, 18, .68) 70%,
            rgba(3, 22, 18, .88) 100%);
}

/* ── Capa 3: blueprint grid en deriva ───────────────────────── */
.pc-stage-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 89, 78, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 89, 78, .07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1), rgba(0,0,0,.4) 60%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1), rgba(0,0,0,.4) 60%, transparent 90%);
    animation: pcStageDrift 90s linear infinite;
}

@keyframes pcStageDrift {
    from { background-position: 0 0; }
    to   { background-position: 64px 64px; }
}

/* ── Capa 4: figuras flotantes (icons + svg) ────────────────── */
.pc-stage-shapes {
    position: absolute;
    inset: 0;
    color: rgba(0, 89, 78, .14);
}

.pc-stage-shape {
    position: absolute;
    will-change: transform;
}

.pc-stage-shape--ico { font-size: 88px; }

.pc-stage-shape.s1 { top: 14%;    left: 5%;    animation: pcShapeA 18s ease-in-out infinite; }
.pc-stage-shape.s2 { top: 9%;     right: 9%;   color: rgba(181, 161, 96, .26); font-size: 72px; animation: pcShapeB 22s ease-in-out infinite; }
.pc-stage-shape.s3 { bottom: 14%; left: 11%;   font-size: 96px; animation: pcShapeC 26s ease-in-out infinite; }
.pc-stage-shape.s4 { bottom: 22%; right: 14%;  color: rgba(0, 89, 78, .12); font-size: 80px; animation: pcShapeA 30s ease-in-out infinite reverse; }

.pc-stage-shape.s5 { width: 240px; bottom: 7%;  right: 4%;  opacity: .20; animation: pcShapeRotate 60s linear infinite; }
.pc-stage-shape.s6 { width: 180px; top: 56%;   left: 38%;  opacity: .14; animation: pcShapeRotate 80s linear infinite reverse; }
.pc-stage-shape.s7 { width: 320px; top: 6%;    left: 36%;  opacity: .10; animation: pcShapeRotate 120s linear infinite; }
.pc-stage-shape.s8 { width: 200px; top: 38%;   right: 28%; opacity: .12; animation: pcShapeRotate 95s linear infinite reverse; }

@keyframes pcShapeA {
    0%, 100% { transform: translate(0, 0) rotate(-8deg); }
    50%      { transform: translate(28px, -36px) rotate(4deg); }
}
@keyframes pcShapeB {
    0%, 100% { transform: translate(0, 0) rotate(12deg); }
    50%      { transform: translate(-32px, 40px) rotate(-6deg); }
}
@keyframes pcShapeC {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(36px, -24px) rotate(15deg); }
}
@keyframes pcShapeRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .pc-stage-shape--ico { font-size: 56px; }
    .pc-stage-shape.s5 { width: 160px; }
    .pc-stage-shape.s6, .pc-stage-shape.s7, .pc-stage-shape.s8 { display: none; }
    .pc-stage-overlay {
        background:
            radial-gradient(ellipse at 50% 30%, rgba(0, 89, 78, .35), transparent 55%),
            linear-gradient(180deg,
                rgba(3, 22, 18, .68) 0%,
                rgba(3, 22, 18, .60) 35%,
                rgba(3, 22, 18, .78) 70%,
                rgba(3, 22, 18, .92) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-stage-photo,
    .pc-stage-grid,
    .pc-stage-shape { animation: none !important; }
    .pc-stage-photo:first-child { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════════
   Hero glass — panel difuminado para que el stage respire
   ════════════════════════════════════════════════════════════════ */
body.pc-immersive .pc-hero-panel {
    background: rgba(255, 255, 255, .48);
    border: 1px solid rgba(255, 255, 255, .65);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    box-shadow:
        0 28px 80px rgba(15, 23, 42, .14),
        inset 0 1px 0 rgba(255, 255, 255, .7);
    position: relative;
    overflow: hidden;
}

body.pc-immersive .pc-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 89, 78, .06) 0%, transparent 45%, rgba(181, 161, 96, .07) 100%);
    pointer-events: none;
    z-index: 0;
}

body.pc-immersive .pc-hero-panel > * {
    position: relative;
    z-index: 1;
}

body.pc-immersive .pc-hero {
    position: relative;
    isolation: isolate;
}

[data-theme="dark"] body.pc-immersive .pc-hero-panel {
    background: rgba(20, 28, 40, .55);
    border-color: rgba(255, 255, 255, .08);
}

/* ════════════════════════════════════════════════════════════════
   Modo immersive — texto y decoración para el overlay oscuro
   No tocar tarjetas (pc-card, pc-fase-card, pc-proy-card,
   pc-impact-strip, hero-panel) — se quedan como están.
   ════════════════════════════════════════════════════════════════ */

/* Grid blueprint visible sobre el verde-negro */
body.pc-immersive .pc-stage-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
}

/* Figuras flotantes — color claro para que se vean en el overlay oscuro */
body.pc-immersive .pc-stage-shapes { color: rgba(255, 255, 255, .12); }
body.pc-immersive .pc-stage-shape.s2 { color: rgba(229, 197, 122, .32); }
body.pc-immersive .pc-stage-shape.s4 { color: rgba(255, 255, 255, .10); }

/* Quitar la banda lighter de pc-section-alt en modo immersive */
body.pc-immersive .pc-section-alt { background: transparent; }

/* ── Section heads (entre cards) — texto claro ──────────────── */
body.pc-immersive .pc-section-head h2 {
    color: rgba(255, 255, 255, .98);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

body.pc-immersive .pc-section-head p {
    color: rgba(255, 255, 255, .82);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}

body.pc-immersive .pc-section-head .eyebrow {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.pc-immersive .pc-section-head .eyebrow-gold {
    background: rgba(181, 161, 96, .24);
    border-color: rgba(181, 161, 96, .40);
    color: #f0d985;
}

/* Headline gradient en destacados — empezar en blanco para el dark bg */
body.pc-immersive .pc-section-head-impact h2 {
    background: linear-gradient(120deg, #ffffff 25%, #7fcfbe 65%, #e6cf91);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

/* Línea CTA del bloque destacados (entre grid y botón) */
body.pc-immersive .pc-destacados-cta-line {
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 1px 10px rgba(0, 0, 0, .25);
}

/* Footer institucional — fondo más oscuro y texto claro */
body.pc-immersive .pc-footer {
    background: rgba(3, 22, 18, .88);
    border-top-color: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.pc-immersive .pc-footer-brand   { color: #fff; }
body.pc-immersive .pc-footer-line    { color: rgba(255, 255, 255, .78); }
body.pc-immersive .pc-footer .pc-footer-line strong { color: #fff; }

/* ── Hero title blanco sobre glass ─────────────────────────────── */
body.pc-immersive .pc-hero-title {
    color: #fff;
    text-shadow: 0 2px 12px rgba(3, 22, 18, .25);
}

/* ── Hero photo frame (col derecha del panel glass) ────────────── */
.pc-hero-img-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1.5px solid rgba(255, 255, 255, .6);
    box-shadow:
        0 12px 40px rgba(3, 22, 18, .18),
        inset 0 1px 0 rgba(255, 255, 255, .72);
    background: rgba(0, 89, 78, .08);
    isolation: isolate;
}

.pc-hero-img-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .9s cubic-bezier(.25, .46, .45, .94);
}

.pc-hero-img-frame:hover img { transform: scale(1.05); }

.pc-hero-img-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 36px 14px 14px;
    background: linear-gradient(transparent, rgba(3, 22, 18, .78));
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.3;
}

.pc-hero-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 89, 78, .35);
    font-size: 5rem;
}

/* ════════════════════════════════════════════════════════════════
   Proyecto detalle — pd-*
   ════════════════════════════════════════════════════════════════ */

/* ── Loading / vacío ─────────────────────────────────────────── */
.pd-cargando,
.pd-vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 40vh;
    text-align: center;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    padding: 48px 24px;
}
.pd-cargando i, .pd-vacio i {
    font-size: 2.5rem;
    color: var(--brand);
    opacity: .7;
}

/* ── Hero full-bleed ─────────────────────────────────────────── */
.pd-hero {
    position: relative;
    min-height: clamp(480px, 68vw, 720px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}

.pd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3, 22, 18, .18) 0%,
        rgba(3, 22, 18, .42) 45%,
        rgba(3, 22, 18, .94) 100%
    );
    z-index: 0;
}

.pd-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 28px;
    padding-bottom: 44px;
    min-height: clamp(480px, 68vw, 720px);
}

.pd-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: rgba(255, 255, 255, .13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .44rem 1rem;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.pd-back:hover {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}

.pd-hero-bottom { margin-top: auto; }

.pd-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

/* Badges sólidos sobre foto */
.pd-badge-solid {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
}
.pd-badge-solid.pc-badge-estado-ejecutado    { background: rgba(15, 118, 110, .88); color: #fff; }
.pd-badge-solid.pc-badge-estado-ejecucion    { background: rgba(0, 89, 78, .88);    color: #fff; }
.pd-badge-solid.pc-badge-estado-formulacion  { background: rgba(37, 99, 235, .88);  color: #fff; }
.pd-badge-solid.pc-badge-estado-emergente    { background: rgba(220, 53, 69, .88);  color: #fff; }
.pd-badge-solid.pc-badge-estado-complementario { background: rgba(124, 58, 237, .88); color: #fff; }
.pd-badge-solid.pc-badge-estado-sin          { background: rgba(15, 23, 42, .78);   color: #fff; }
.pd-badge-solid.pc-badge-fase                { background: rgba(181, 161, 96, .82); color: #fff; }
.pd-badge-solid.pc-badge-cat                 { background: rgba(255, 255, 255, .16); color: #fff; }

.pd-hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.7rem, 4.5vw, 3.2rem);
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    text-shadow: 0 2px 20px rgba(3, 22, 18, .45);
}

.pd-hero-loc {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
    font-weight: 600;
    margin: 0;
}
.pd-hero-loc i { color: var(--brand); }

/* ── Cuerpo ──────────────────────────────────────────────────── */
.pd-body {
    padding-top: 40px;
    padding-bottom: 72px;
}

/* ── Cards ───────────────────────────────────────────────────── */
.pd-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 4vw, 32px);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

body.pc-immersive .pd-card {
    background: #fff;
    border-color: rgba(0, 0, 0, .07);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 24px rgba(3, 22, 18, .14);
}

.pd-card-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .95rem;
    color: var(--text);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-card-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(0, 89, 78, .10);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .82rem;
}

.pd-count {
    font-size: .7rem;
    font-weight: 800;
    background: rgba(0, 89, 78, .10);
    color: var(--brand);
    padding: .2rem .55rem;
    border-radius: 999px;
    margin-left: 4px;
}

/* ── Progress card ───────────────────────────────────────────── */
.pd-card--progress { padding: 22px 28px; }

.pd-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pd-progress-label {
    font-size: .75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.pd-progress-estado {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-soft);
}

.pd-progress-pct {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.03em;
}
.pd-progress-pct span {
    font-size: 1.2rem;
    opacity: .7;
}

.pd-progress-track {
    background: rgba(0, 89, 78, .12);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.pd-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand), #2dd4bf);
    border-radius: 999px;
    transition: width 1.2s cubic-bezier(.34, 1.56, .64, 1);
}
.pd-bar--animada { width: var(--pd-w, 0%); }

/* ── Descripción ─────────────────────────────────────────────── */
.pd-resumen {
    font-size: 1.02rem;
    color: var(--text);
    line-height: 1.65;
    font-weight: 500;
    border-left: 3px solid var(--brand);
    padding-left: 16px;
    margin: 0 0 20px;
    text-align: justify;
}

.pd-descripcion {
    font-size: .95rem;
    color: var(--text-soft);
    line-height: 1.72;
    text-align: justify;
}

/* ── Galería ─────────────────────────────────────────────────── */
.pd-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.pd-galeria-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    isolation: isolate;
}
.pd-galeria-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.pd-galeria-item:hover img { transform: scale(1.08); }

.pd-galeria-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 22, 18, 0);
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: all .2s ease;
}
.pd-galeria-item:hover .pd-galeria-zoom {
    background: rgba(3, 22, 18, .36);
    opacity: 1;
}

/* ── Videos ──────────────────────────────────────────────────── */
.pd-videos-grid { display: grid; gap: 20px; }

.pd-video-embed {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}
.pd-video-embed iframe { width: 100%; height: 100%; border: none; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.pd-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pd-facts-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pd-facts-title i { color: var(--brand); }

.pd-facts-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pd-facts-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .87rem;
}

.pd-facts-icon {
    width: 34px; height: 34px;
    border-radius: 11px;
    background: rgba(0, 89, 78, .10);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .8rem;
}
.pd-facts-icon.gold {
    background: rgba(181, 161, 96, .14);
    color: #8a6b19;
}

.pd-facts-label {
    flex: 1;
    color: var(--text-muted);
    font-size: .8rem;
}

.pd-facts-value {
    font-weight: 700;
    color: var(--text);
    text-align: right;
    max-width: 140px;
    word-break: break-word;
    font-size: .84rem;
}

/* ── Acciones sidebar ────────────────────────────────────────── */
.pd-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

/* ── Compartir ───────────────────────────────────────────────── */
.pd-share { margin-top: -12px; }

.pd-share-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(0, 89, 78, .07);
    border: 1px solid rgba(0, 89, 78, .15);
    color: var(--brand);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .14s ease;
}
.pd-share-btn:hover { background: rgba(0, 89, 78, .13); }

/* ── Galería modal ───────────────────────────────────────────── */
.pd-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(3, 22, 18, .94);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    animation: pdModalIn .2s ease both;
}
.pd-modal[hidden] { display: none !important; }

@keyframes pdModalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pd-modal-close {
    position: fixed;
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 3001;
    transition: background .14s ease;
}
.pd-modal-close:hover { background: rgba(255, 255, 255, .26); }

.pd-modal-nav {
    width: 52px; height: 52px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .14s ease;
}
.pd-modal-nav:hover { background: rgba(255, 255, 255, .24); }
.pd-modal-nav[hidden] { display: none; }

.pd-modal-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(100vw - 180px);
}

.pd-modal-img {
    max-width: 100%;
    max-height: calc(100vh - 130px);
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .55);
    transition: opacity .25s ease;
    display: block;
}

.pd-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
    gap: 16px;
}

.pd-modal-caption {
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
    flex: 1;
}

.pd-modal-counter {
    font-size: .76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
    letter-spacing: .06em;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: .24rem .7rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .pd-modal { gap: 8px; padding: 12px; }
    .pd-modal-nav { width: 40px; height: 40px; font-size: .85rem; }
    .pd-modal-stage { max-width: calc(100vw - 110px); }
}

/* ── Hero nav pills (controlan el stage) ─────────────────────── */
.pd-hero-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pd-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: .88rem;
    cursor: pointer;
    transition: background .15s ease;
    flex-shrink: 0;
}
.pd-nav-pill:hover { background: rgba(255, 255, 255, .28); }

.pd-nav-counter {
    font-size: .76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
    letter-spacing: .05em;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: .28rem .75rem;
    min-width: 44px;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    .pd-sidebar { position: static; }
    .pd-hero-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}
