/* =====================================================================
 * ESTILOS BASE DEL REDISEÑO (prefijo cm- para no chocar con la plantilla)
 * Compartidos por todas las páginas; se carga desde encabezado.php.
 * ===================================================================== */
:root {
    --cm-primary: #0b4f8a;
    --cm-primary-dark: #062f55;
    --cm-accent: #ff851b;
    --cm-accent-dark: #e0670a;
    --cm-bg-soft: #f3f6fa;
    --cm-text: #1f2d3d;
    --cm-muted: #5b6b7c;
    --cm-border: #e2e8f0;
    --cm-radius: 14px;
    --cm-shadow: 0 6px 20px rgba(15, 40, 70, .08);
    --cm-shadow-hover: 0 12px 28px rgba(15, 40, 70, .16);
}

/* El atributo hidden siempre oculta, aunque el elemento tenga display propio */
[hidden] { display: none !important; }

.cm-section { padding: 70px 0; scroll-margin-top: 90px; }
.cm-section--soft { background: var(--cm-bg-soft); }
.cm-section--dark { background: var(--cm-primary-dark); color: #fff; }

.cm-heading { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.cm-eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--cm-accent); margin-bottom: 8px;
}
.cm-heading h2 { font-size: 32px; font-weight: 800; color: var(--cm-primary-dark); margin: 0 0 10px; }
.cm-heading p { color: var(--cm-muted); margin: 0; }
.cm-section--dark .cm-heading h2 { color: #fff; }
.cm-section--dark .cm-heading p { color: rgba(255,255,255,.75); }

.cm-card {
    background: #fff; border: 1px solid var(--cm-border); border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow); overflow: hidden; height: 100%;
    display: flex; flex-direction: column; color: var(--cm-text);
}
.cm-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cm-card__title { font-size: 19px; font-weight: 700; color: var(--cm-primary-dark); margin: 0 0 8px; }
.cm-card__text { color: var(--cm-muted); font-size: 14px; }

.cm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
    text-decoration: none; transition: background-color .2s, color .2s, transform .2s;
    border: 2px solid transparent; cursor: pointer;
}
.cm-btn:hover { text-decoration: none; transform: translateY(-1px); }
.cm-btn--primary { background: var(--cm-primary); color: #fff; }
.cm-btn--primary:hover { background: var(--cm-primary-dark); color: #fff; }
.cm-btn--accent { background: var(--cm-accent); color: #fff; }
.cm-btn--accent:hover { background: var(--cm-accent-dark); color: #fff; }
.cm-btn--ghost { background: transparent; color: var(--cm-primary); border-color: var(--cm-primary); }
.cm-btn--ghost:hover { background: var(--cm-primary); color: #fff; }
.cm-btn--light { background: #fff; color: var(--cm-primary-dark); }
.cm-btn--light:hover { background: var(--cm-accent); color: #fff; }

.cm-checklist { list-style: none; padding: 0; margin: 10px 0; font-size: 14px; color: var(--cm-muted); text-align: left; }
.cm-checklist li { padding: 4px 0 4px 24px; position: relative; }
.cm-checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--cm-accent); }

/* --- Encabezado oscuro de página interna (hero) --- */
.cm-hero {
    position: relative; overflow: hidden; color: #fff; padding: 80px 0 70px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,133,27,.28), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(11,79,138,.7), transparent 50%),
        linear-gradient(135deg, #071a2e 0%, #0b3561 100%);
}
.cm-hero::after {
    content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
    background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.cm-hero .container { position: relative; z-index: 1; }
.cm-breadcrumb { font-size: 13px; color: #9db0c6; margin-bottom: 18px; }
.cm-breadcrumb a { color: #9db0c6; }
.cm-breadcrumb a:hover { color: #fff; }
.cm-hero h1 { font-size: 52px; font-weight: 800; color: #fff; margin: 0 0 14px; line-height: 1.05; }
.cm-hero h1 span { color: var(--cm-accent); }
.cm-hero__lead { font-size: 18px; color: #c9d6e6; max-width: 640px; margin-bottom: 28px; }
.cm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.cm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 760px; }
.cm-stat {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
    padding: 16px 18px; backdrop-filter: blur(4px);
}
.cm-stat strong { display: block; font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.cm-stat span { font-size: 13px; color: #9db0c6; }
@media (max-width: 767px) {
    .cm-hero { padding: 50px 0 44px; }
    .cm-hero h1 { font-size: 36px; }
    .cm-hero__lead { font-size: 16px; }
    .cm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Tarjeta de documento PDF (cm-doc) --- */
.cm-doclist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cm-doc {
    display: flex; gap: 14px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--cm-border);
    border-radius: 12px; text-decoration: none; color: var(--cm-text); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cm-doc:hover { transform: translateY(-3px); box-shadow: var(--cm-shadow-hover); border-color: var(--cm-primary); text-decoration: none; color: var(--cm-text); }
.cm-doc__icon { position: relative; width: 46px; height: 54px; flex: 0 0 46px; border-radius: 6px 14px 6px 6px; background: #fdecea; color: #d93025; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cm-doc__icon::after { content: "PDF"; position: absolute; bottom: -6px; font-size: 9px; font-weight: 800; background: #d93025; color: #fff; padding: 1px 5px; border-radius: 4px; }
.cm-doc__info { flex: 1; min-width: 0; }
.cm-doc__tipo { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cm-accent-dark); margin-bottom: 3px; }
.cm-doc__titulo { display: block; font-size: 15px; font-weight: 700; color: var(--cm-primary-dark); line-height: 1.35; }
.cm-doc__peso { font-size: 12px; color: var(--cm-muted); }
.cm-doc__go { color: var(--cm-muted); transition: color .2s, transform .2s; }
.cm-doc:hover .cm-doc__go { color: var(--cm-accent); transform: translateX(3px); }
