/* =========================================================
   SMA AMANALCO - CÁPSULA DIGITAL DE INTEGRIDAD PÚBLICA
   Página pública, responsive, imprimible y orientada a evidencia.
========================================================= */

.cdi {
    --cdi-navy: #082c55;
    --cdi-blue: #0d5f8f;
    --cdi-cyan: #20b8ca;
    --cdi-gold: #d8aa3e;
    --cdi-gold-soft: #f0cf76;
    --cdi-ink: #17334d;
    --cdi-muted: #65788a;
    --cdi-surface: #f5f9fc;
    --cdi-white: #ffffff;
    color: var(--cdi-ink);
    background: #ffffff;
}

.cdi a {
    text-decoration: none;
}

.cdi-hero {
    position: relative;
    overflow: hidden;
    padding: 148px 0 84px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 15%, rgba(41, 188, 210, 0.22), transparent 27%),
        radial-gradient(circle at 84% 22%, rgba(216, 170, 62, 0.18), transparent 29%),
        linear-gradient(128deg, #061f42 0%, #0a416e 52%, #187887 100%);
}

.cdi-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .25;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.65) 72%, transparent 100%);
}

.cdi-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}

.cdi-orb-one {
    width: 320px;
    height: 320px;
    left: -130px;
    bottom: -90px;
    background: rgba(32, 184, 202, .13);
}

.cdi-orb-two {
    width: 380px;
    height: 380px;
    right: -150px;
    top: 8%;
    background: rgba(216, 170, 62, .12);
}

.cdi-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 30px;
    color: rgba(255,255,255,.68);
    font-size: .82rem;
    font-weight: 600;
}

.cdi-breadcrumb a {
    color: rgba(255,255,255,.82);
}

.cdi-breadcrumb a:hover {
    color: #ffffff;
}

.cdi-kicker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
}

.cdi-kicker,
.cdi-folio {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .025em;
}

.cdi-kicker {
    color: #ffffff;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
}

.cdi-folio {
    color: #fff5d9;
    background: rgba(216,170,62,.15);
    border: 1px solid rgba(240,207,118,.26);
}

.cdi-hero h1 {
    max-width: 800px;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.055em;
    text-shadow: 0 20px 50px rgba(0,10,30,.30);
}

.cdi-hero-lead {
    max-width: 720px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.80);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.75;
}

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

.cdi-hero-actions .btn,
.cdi-btn-glass {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 800;
}

.cdi-btn-glass {
    color: #ffffff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.18);
    transition: .25s ease;
}

.cdi-btn-glass:hover {
    color: #ffffff;
    transform: translateY(-2px);
    background: rgba(255,255,255,.13);
}

.cdi-publication-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: rgba(255,255,255,.68);
    font-size: .82rem;
}

.cdi-publication-line strong {
    color: #ffffff;
}

.cdi-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6fe9f4;
    box-shadow: 0 0 0 6px rgba(111,233,244,.10), 0 0 18px rgba(111,233,244,.45);
}

.cdi-hero-panel {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border-radius: 34px;
    color: var(--cdi-ink);
    background:
        radial-gradient(circle at 100% 0%, rgba(216,170,62,.14), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,249,252,.94));
    border: 1px solid rgba(255,255,255,.62);
    box-shadow: 0 34px 82px rgba(0,15,38,.33), inset 0 1px 0 rgba(255,255,255,.90);
}

.cdi-hero-panel::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 25px;
    border: 1px solid rgba(12,74,117,.08);
    pointer-events: none;
}

.cdi-hero-panel > * {
    position: relative;
    z-index: 2;
}

.cdi-panel-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    color: #0d527c;
    background: rgba(32,184,202,.10);
    border: 1px solid rgba(32,184,202,.16);
    font-size: .76rem;
    font-weight: 800;
}

.cdi-panel-symbol {
    width: 102px;
    height: 102px;
    display: grid;
    place-items: center;
    margin: 24px 0 20px;
    border-radius: 30px;
    color: #0c628f;
    background: linear-gradient(145deg, #eaf9fc, #ffffff);
    border: 1px solid rgba(32,184,202,.15);
    box-shadow: 0 18px 36px rgba(7,68,103,.10);
}

.cdi-panel-symbol svg {
    width: 62px;
    height: 62px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cdi-hero-panel h2 {
    margin: 0 0 12px;
    color: #103c63;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.cdi-hero-panel p {
    margin: 0;
    color: rgba(23,51,77,.70);
    line-height: 1.65;
}

.cdi-panel-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.cdi-panel-metrics div {
    padding: 13px 10px;
    border-radius: 17px;
    text-align: center;
    background: rgba(8,44,85,.035);
    border: 1px solid rgba(8,44,85,.07);
}

.cdi-panel-metrics strong,
.cdi-panel-metrics span {
    display: block;
}

.cdi-panel-metrics strong {
    color: #0e5f8d;
    font-size: 1.05rem;
    font-weight: 900;
}

.cdi-panel-metrics span {
    margin-top: 2px;
    color: var(--cdi-muted);
    font-size: .72rem;
    font-weight: 700;
}

.cdi-intro {
    padding: 72px 0 36px;
    background: #ffffff;
}

.cdi-intro-card {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 44px;
    align-items: center;
    padding: 34px 38px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, #f8fbfd 0%, #eff8fa 58%, #fffaf0 100%);
    border: 1px solid rgba(13,95,143,.10);
    box-shadow: 0 24px 60px rgba(8,44,85,.08);
}

.cdi-intro-card span,
.cdi-section-head > span,
.cdi-checklist-heading span,
.cdi-message-card > span,
.cdi-guidance-card > div:nth-child(2) > span {
    display: inline-block;
    margin-bottom: 9px;
    color: #0e7395;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cdi-intro-card h2,
.cdi-section-head h2,
.cdi-checklist-heading h2,
.cdi-guidance-card h2 {
    margin: 0;
    color: #0f3e68;
    font-weight: 800;
    letter-spacing: -.035em;
}

.cdi-intro-card h2 {
    font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.cdi-intro-card p {
    margin: 0;
    color: rgba(23,51,77,.70);
    font-size: 1rem;
    line-height: 1.75;
}

.cdi-actions {
    padding: 62px 0 84px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
}

.cdi-section-head {
    max-width: 820px;
    margin: 0 auto 38px;
    text-align: center;
}

.cdi-section-head h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.cdi-section-head p {
    max-width: 690px;
    margin: 16px auto 0;
    color: rgba(23,51,77,.66);
    line-height: 1.7;
}

.cdi-action-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.cdi-action-card {
    position: relative;
    grid-column: span 2;
    min-height: 400px;
    overflow: hidden;
    padding: 25px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    border: 1px solid rgba(14,95,143,.10);
    box-shadow: 0 22px 52px rgba(8,44,85,.08);
    transition: transform .28s ease, box-shadow .28s ease;
}

.cdi-action-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.cdi-action-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.cdi-action-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 70px rgba(8,44,85,.13);
}

.cdi-action-topline {
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #0ea5c5, #58d2df, #d8aa3e);
}

.cdi-action-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.cdi-action-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #0a4f7d, #168fb7);
    box-shadow: 0 12px 24px rgba(10,79,125,.20);
    font-size: .85rem;
    font-weight: 900;
}

.cdi-action-key {
    padding: 7px 10px;
    border-radius: 999px;
    color: #8b6818;
    background: rgba(216,170,62,.12);
    border: 1px solid rgba(216,170,62,.18);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cdi-action-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 23px 0 16px;
    border-radius: 20px;
    color: #0d668e;
    background: linear-gradient(145deg, rgba(32,184,202,.10), #ffffff);
    border: 1px solid rgba(32,184,202,.13);
}

.cdi-action-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cdi-action-card h3 {
    margin: 0 0 11px;
    color: #113f68;
    font-size: 1.3rem;
    font-weight: 850;
    letter-spacing: -.025em;
}

.cdi-action-card > p {
    margin: 0;
    color: rgba(23,51,77,.68);
    font-size: .91rem;
    line-height: 1.65;
}

.cdi-application-box {
    margin-top: 20px;
    padding: 15px 16px;
    border-radius: 17px;
    background: rgba(8,44,85,.035);
    border: 1px solid rgba(8,44,85,.065);
}

.cdi-application-box span {
    display: block;
    margin-bottom: 5px;
    color: #0d688f;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cdi-application-box p {
    margin: 0;
    color: rgba(23,51,77,.70);
    font-size: .82rem;
    line-height: 1.55;
}

.cdi-commitment {
    padding: 84px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(32,184,202,.10), transparent 28%),
        linear-gradient(135deg, #072d55 0%, #0c517d 60%, #17818f 100%);
}

.cdi-checklist-card,
.cdi-message-card {
    height: 100%;
    padding: 30px;
    border-radius: 30px;
}

.cdi-checklist-card {
    background: rgba(255,255,255,.97);
    box-shadow: 0 30px 72px rgba(0,15,38,.26);
}

.cdi-checklist-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.cdi-checklist-heading h2 {
    font-size: 2rem;
}

.cdi-progress-badge {
    flex: 0 0 auto;
    min-width: 90px;
    padding: 12px;
    border-radius: 17px;
    text-align: center;
    background: linear-gradient(145deg, #e9f8fb, #ffffff);
    border: 1px solid rgba(32,184,202,.14);
}

.cdi-progress-badge strong,
.cdi-progress-badge span {
    display: block;
}

.cdi-progress-badge strong {
    color: #0b6f94;
    font-size: 1.25rem;
    font-weight: 900;
}

.cdi-progress-badge span {
    margin: 2px 0 0;
    color: var(--cdi-muted);
    font-size: .65rem;
    text-transform: none;
    letter-spacing: 0;
}

.cdi-progress-track {
    height: 10px;
    overflow: hidden;
    margin: 22px 0;
    border-radius: 999px;
    background: #e5eef4;
}

.cdi-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b80ac, #22bac5, #d8aa3e);
    transition: width .28s ease;
}

.cdi-checklist {
    display: grid;
    gap: 10px;
}

.cdi-check-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 16px;
    cursor: pointer;
    color: rgba(23,51,77,.78);
    background: #f7fafc;
    border: 1px solid rgba(8,44,85,.06);
    font-size: .88rem;
    font-weight: 650;
    transition: .2s ease;
}

.cdi-check-item:hover {
    border-color: rgba(32,184,202,.18);
    background: #f2fafb;
}

.cdi-check-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cdi-check-control {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 8px;
    background: #ffffff;
    border: 2px solid #b8c8d4;
    transition: .2s ease;
}

.cdi-check-item input:checked + .cdi-check-control {
    border-color: #17a9bc;
    background:
        center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #0c76a0, #21bcc3);
}

.cdi-check-item:has(input:checked) {
    color: #154b70;
    background: rgba(32,184,202,.07);
    border-color: rgba(32,184,202,.16);
}

.cdi-reset-button {
    margin-top: 17px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #0d648c;
    background: transparent;
    border: 1px solid rgba(13,100,140,.18);
    font-size: .75rem;
    font-weight: 800;
}

.cdi-message-card {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(216,170,62,.20), transparent 32%),
        linear-gradient(145deg, rgba(4,29,62,.96), rgba(8,64,99,.92));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 30px 72px rgba(0,15,38,.24);
}

.cdi-message-card > span {
    color: #f1cf72;
}

.cdi-message-card blockquote {
    margin: 25px 0 38px;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.cdi-message-seal {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.cdi-message-seal > div {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    border-radius: 18px;
    color: #082c55;
    background: linear-gradient(145deg, #f2d27b, #d8aa3e);
    font-weight: 900;
}

.cdi-message-seal p,
.cdi-message-seal small {
    display: block;
    margin: 0;
}

.cdi-message-seal p {
    color: rgba(255,255,255,.90);
    font-size: .86rem;
    font-weight: 700;
}

.cdi-message-seal small {
    margin-top: 4px;
    color: rgba(255,255,255,.58);
    font-size: .7rem;
    font-weight: 600;
}

.cdi-guidance {
    padding: 76px 0;
    background: #ffffff;
}

.cdi-guidance-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 28px 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f7fbfd, #eef8fa);
    border: 1px solid rgba(13,95,143,.10);
    box-shadow: 0 22px 52px rgba(8,44,85,.08);
}

.cdi-guidance-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 21px;
    color: #0f6b92;
    background: #ffffff;
    border: 1px solid rgba(13,95,143,.10);
}

.cdi-guidance-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cdi-guidance-card h2 {
    font-size: 1.45rem;
}

.cdi-guidance-card p {
    margin: 8px 0 0;
    color: rgba(23,51,77,.68);
    font-size: .88rem;
    line-height: 1.55;
}

.cdi-guidance-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cdi-secondary-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    color: #0d638b;
    background: #ffffff;
    border: 1px solid rgba(13,99,139,.14);
    font-size: .78rem;
    font-weight: 800;
}

.cdi-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    padding: 13px 18px;
    border-radius: 14px;
    color: #ffffff;
    background: #082f57;
    box-shadow: 0 18px 40px rgba(0,15,38,.28);
    font-size: .8rem;
    font-weight: 800;
}

/* =========================================================
   FICHA DE EVIDENCIA
========================================================= */

.cdi-evidence-page {
    min-height: 100vh;
    padding-top: 112px;
    background: #edf3f7;
}

.cdi-evidence-toolbar {
    padding: 18px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #082c55, #0e638e);
}

.cdi-evidence-toolbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cdi-evidence-toolbar div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cdi-evidence-toolbar a,
.cdi-evidence-toolbar span {
    color: rgba(255,255,255,.84);
    font-size: .8rem;
    font-weight: 700;
}

.cdi-evidence-toolbar button {
    padding: 10px 16px;
    border-radius: 999px;
    color: #082c55;
    background: linear-gradient(135deg, #f1d27a, #d8aa3e);
    border: 0;
    font-size: .78rem;
    font-weight: 900;
}

.cdi-evidence-sheet {
    padding: 38px 0 72px;
}

.cdi-evidence-document {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px;
    background: #ffffff;
    box-shadow: 0 30px 72px rgba(8,44,85,.12);
}

.cdi-evidence-header {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 3px solid #0d638e;
}

.cdi-evidence-brand img {
    display: block;
    width: 100%;
    max-width: 240px;
}

.cdi-evidence-header span {
    color: #0d6f94;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.cdi-evidence-header h1 {
    margin: 8px 0 8px;
    color: #0b3b64;
    font-size: 2.1rem;
    font-weight: 850;
    letter-spacing: -.035em;
}

.cdi-evidence-header p {
    margin: 0;
    color: var(--cdi-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.cdi-evidence-folio-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 24px 0 30px;
}

.cdi-evidence-folio-row div {
    padding: 13px;
    border-radius: 12px;
    background: #f4f8fb;
    border: 1px solid #e2ecf2;
}

.cdi-evidence-folio-row span,
.cdi-evidence-folio-row strong {
    display: block;
}

.cdi-evidence-folio-row span {
    margin-bottom: 4px;
    color: #718397;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cdi-evidence-folio-row strong {
    color: #163f62;
    font-size: .78rem;
    line-height: 1.35;
}

.cdi-evidence-block {
    margin-top: 30px;
}

.cdi-evidence-block h2 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    color: #0b456f;
    font-size: 1.15rem;
    font-weight: 850;
    border-bottom: 1px solid #dbe7ee;
}

.cdi-evidence-block > p {
    margin: 0 0 11px;
    color: #40586e;
    font-size: .86rem;
    line-height: 1.65;
}

.cdi-evidence-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin: 0;
}

.cdi-evidence-data div {
    padding: 13px 14px;
    border-radius: 11px;
    background: #f7fafc;
    border: 1px solid #e5edf3;
}

.cdi-evidence-data dt,
.cdi-evidence-data dd {
    margin: 0;
}

.cdi-evidence-data dt {
    margin-bottom: 5px;
    color: #0d648d;
    font-size: .67rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cdi-evidence-data dd {
    color: #3d566d;
    font-size: .8rem;
    line-height: 1.5;
}

.cdi-evidence-url {
    overflow-wrap: anywhere;
}

.cdi-verification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cdi-verification-grid div {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f5fafc, #ffffff);
    border: 1px solid #e1ebf1;
}

.cdi-verification-grid strong {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d5f8f, #20b8ca);
    font-size: .7rem;
}

.cdi-verification-grid span {
    color: #38556e;
    font-size: .78rem;
    font-weight: 750;
}

.cdi-evidence-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cdi-evidence-placeholder-grid div {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    border-radius: 12px;
    background: repeating-linear-gradient(-45deg, #fafcfd, #fafcfd 10px, #f4f8fa 10px, #f4f8fa 20px);
    border: 1px dashed #b8c9d5;
}

.cdi-evidence-placeholder-grid span {
    color: #194f75;
    font-size: .8rem;
    font-weight: 850;
}

.cdi-evidence-placeholder-grid p {
    margin: 7px 0 0;
    color: #748496;
    font-size: .72rem;
}

.cdi-evidence-footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 2px solid #0d638e;
}

.cdi-evidence-footer > p {
    margin: 0;
    color: #5b7184;
    font-size: .76rem;
    line-height: 1.55;
}

.cdi-signature-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 64px;
}

.cdi-signature-row div {
    padding-top: 9px;
    text-align: center;
    border-top: 1px solid #53697b;
}

.cdi-signature-row span,
.cdi-signature-row strong {
    display: block;
}

.cdi-signature-row span {
    color: #758696;
    font-size: .65rem;
    text-transform: uppercase;
}

.cdi-signature-row strong {
    margin-top: 4px;
    color: #314d63;
    font-size: .76rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    .cdi-hero {
        padding-top: 142px;
    }

    .cdi-action-card {
        grid-column: span 3;
    }

    .cdi-action-card:nth-child(4),
    .cdi-action-card:nth-child(5) {
        grid-column: span 3;
    }

    .cdi-action-card:nth-child(5) {
        grid-column: 2 / span 4;
    }
}

@media (max-width: 991.98px) {
    .cdi-hero {
        padding: 130px 0 68px;
    }

    .cdi-hero-panel {
        max-width: 720px;
        margin: 0 auto;
    }

    .cdi-intro-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cdi-action-card,
    .cdi-action-card:nth-child(4),
    .cdi-action-card:nth-child(5) {
        grid-column: span 3;
    }

    .cdi-guidance-card {
        grid-template-columns: auto 1fr;
    }

    .cdi-guidance-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .cdi-evidence-document {
        padding: 34px;
    }

    .cdi-evidence-header {
        grid-template-columns: 190px 1fr;
    }

    .cdi-evidence-folio-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .cdi-hero {
        padding: 112px 0 54px;
    }

    .cdi-hero h1 {
        font-size: clamp(2.65rem, 12vw, 4rem);
    }

    .cdi-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cdi-hero-actions .btn,
    .cdi-btn-glass {
        width: 100%;
    }

    .cdi-hero-panel {
        padding: 24px;
        border-radius: 26px;
    }

    .cdi-panel-metrics {
        gap: 7px;
    }

    .cdi-intro {
        padding: 50px 0 28px;
    }

    .cdi-intro-card {
        padding: 25px;
        border-radius: 23px;
    }

    .cdi-actions,
    .cdi-commitment,
    .cdi-guidance {
        padding: 58px 0;
    }

    .cdi-action-grid {
        grid-template-columns: 1fr;
    }

    .cdi-action-card,
    .cdi-action-card:nth-child(4),
    .cdi-action-card:nth-child(5) {
        grid-column: auto;
        min-height: auto;
    }

    .cdi-checklist-card,
    .cdi-message-card {
        padding: 24px;
        border-radius: 24px;
    }

    .cdi-checklist-heading {
        align-items: center;
    }

    .cdi-guidance-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .cdi-guidance-actions {
        grid-column: auto;
        flex-direction: column;
    }

    .cdi-guidance-actions a {
        width: 100%;
    }

    .cdi-evidence-page {
        padding-top: 90px;
    }

    .cdi-evidence-toolbar .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .cdi-evidence-document {
        padding: 24px 18px;
    }

    .cdi-evidence-header {
        grid-template-columns: 1fr;
    }

    .cdi-evidence-brand img {
        max-width: 260px;
    }

    .cdi-evidence-header h1 {
        font-size: 1.65rem;
    }

    .cdi-evidence-folio-row,
    .cdi-evidence-data,
    .cdi-verification-grid,
    .cdi-evidence-placeholder-grid,
    .cdi-signature-row {
        grid-template-columns: 1fr;
    }

    .cdi-signature-row {
        gap: 58px;
    }
}

@media (max-width: 420px) {
    .cdi-panel-metrics {
        grid-template-columns: 1fr;
    }

    .cdi-checklist-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   IMPRESIÓN
========================================================= */

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    .site-header,
    .footer-sma,
    .cdi-hero-actions,
    .cdi-toast,
    .cdi-reset-button,
    .cdi-guidance-actions,
    .cdi-evidence-toolbar {
        display: none !important;
    }

    body,
    .cdi,
    .cdi-evidence-page {
        background: #ffffff !important;
    }

    .cdi-hero {
        padding: 18px 0;
        color: #17334d;
        background: #ffffff !important;
    }

    .cdi-grid-bg,
    .cdi-orb,
    .cdi-hero-panel,
    .cdi-intro,
    .cdi-commitment,
    .cdi-guidance {
        display: none !important;
    }

    .cdi-breadcrumb,
    .cdi-kicker-row,
    .cdi-publication-line {
        color: #17334d !important;
    }

    .cdi-hero h1,
    .cdi-hero-lead {
        color: #17334d !important;
        text-shadow: none;
    }

    .cdi-actions {
        padding: 10px 0 0;
        background: #ffffff !important;
    }

    .cdi-section-head {
        margin-bottom: 20px;
    }

    .cdi-action-grid {
        display: block;
    }

    .cdi-action-card {
        min-height: auto;
        margin-bottom: 12px;
        padding: 16px;
        break-inside: avoid;
        box-shadow: none;
    }

    .cdi-action-icon {
        display: none;
    }

    .cdi-application-box {
        margin-top: 10px;
    }

    .cdi-evidence-page {
        padding-top: 0;
    }

    .cdi-evidence-sheet {
        padding: 0;
    }

    .cdi-evidence-document {
        max-width: none;
        padding: 0;
        box-shadow: none;
    }

    .cdi-evidence-block,
    .cdi-evidence-data div,
    .cdi-verification-grid div,
    .cdi-evidence-placeholder-grid div {
        break-inside: avoid;
    }
}

/* =========================================================
   AJUSTE VIDEO-FIRST - CÁPSULA 01/2026
========================================================= */

.cdi-video-panel {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(255,255,255,.64);
    box-shadow: 0 34px 82px rgba(0,15,38,.34), inset 0 1px 0 rgba(255,255,255,.92);
}

.cdi-video-status {
    position: absolute;
    z-index: 4;
    top: 18px;
    left: 18px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff2ce;
    background: rgba(176,121,27,.75);
    border: 1px solid rgba(255,225,147,.28);
    backdrop-filter: blur(12px);
    font-size: .72rem;
    font-weight: 850;
}

.cdi-video-status.is-ready {
    color: #e9feff;
    background: rgba(7,126,139,.78);
}

.cdi-video-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #061f42;
}

.cdi-video-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cdi-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,15,35,.04), rgba(0,15,35,.15) 58%, rgba(0,15,35,.58));
}

.cdi-video-play {
    position: absolute;
    z-index: 3;
    left: 72%;
    top: 52%;
    width: 88px;
    height: 88px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 18px 30px rgba(0,12,30,.34));
    transition: .25s ease;
}

.cdi-video-play:hover { transform: translate(-50%, -50%) scale(1.07); }
.cdi-video-play svg { width: 88px; height: 88px; }
.cdi-video-play circle { fill: rgba(244,211,124,.96); stroke: rgba(255,255,255,.56); stroke-width: 2; }
.cdi-video-play path { fill: #092c53; }

.cdi-video-duration {
    position: absolute;
    z-index: 3;
    left: 18px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    border-radius: 14px;
    color: #fff;
    background: rgba(4,29,60,.72);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
}

.cdi-video-duration small { color: rgba(255,255,255,.68); font-size: .64rem; }
.cdi-video-duration strong { font-size: .80rem; }

.cdi-video-caption {
    padding: 24px 26px 26px;
    color: var(--cdi-ink);
    background:
        radial-gradient(circle at 100% 0%, rgba(216,170,62,.12), transparent 30%),
        linear-gradient(180deg, #fff, #f5f9fc);
}

.cdi-video-caption > span {
    display: block;
    margin-bottom: 6px;
    color: #0a8191;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cdi-video-caption h2 {
    margin: 0 0 9px;
    color: #123f69;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.cdi-video-caption p {
    margin: 0;
    color: var(--cdi-muted);
    font-size: .84rem;
    line-height: 1.62;
}

.cdi-video-external {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 14px;
    color: #123f69;
    background: rgba(18,63,105,.07);
    border: 1px solid rgba(18,63,105,.12);
    font-size: .80rem;
    font-weight: 850;
    transition: transform .22s ease, color .22s ease, background .22s ease;
}

.cdi-video-external svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cdi-video-external:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #123f69, #0a8191);
    transform: translateY(-2px);
}

.cdi-video-modal[hidden] { display: none !important; }
.cdi-video-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cdi-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1,12,27,.82);
    backdrop-filter: blur(12px);
}

.cdi-video-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(960px, 100%);
    padding: 22px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 34px 100px rgba(0,0,0,.42);
}

.cdi-video-modal-close {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #123f69;
    background: #edf4f8;
    font-size: 1.5rem;
    line-height: 1;
}

.cdi-video-modal-heading { padding: 4px 52px 16px 4px; }
.cdi-video-modal-heading span { display: block; color: #0b8795; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.cdi-video-modal-heading h2 { margin: 5px 0 0; color: #123f69; font-size: 1.35rem; }
.cdi-video-frame { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: #061f42; }
.cdi-video-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 767.98px) {
    .cdi-video-panel { border-radius: 26px; }
    .cdi-video-play, .cdi-video-play svg { width: 72px; height: 72px; }
    .cdi-video-caption { padding: 20px; }
}

@media print {
    .cdi-video-play,
    .cdi-video-modal { display: none !important; }
}
