/*
 * assets/css/pages/sujetos-obligados.css
 * Estilos exclusivos del micrositio Sujetos Obligados.
 * Versión visual en gama de grises, alineada con la página de Inicio.
 * No modificar base.css, layout.css ni components.css para ajustes específicos de esta página.
 */

/* =========================================================
   VARIABLES LOCALES DE LA PÁGINA
   ========================================================= */
.so-page {
    --so-bg: #ffffff;
    --so-bg-soft: #f5f6f7;
    --so-bg-muted: #eef0f2;
    --so-panel: #ffffff;
    --so-text: #2f3437;
    --so-heading: #1f2428;
    --so-muted: #6b7075;
    --so-muted-2: #8a9095;
    --so-line: #dfe3e6;
    --so-line-dark: #cfd5da;
    --so-dark: #2f3437;
    --so-dark-2: #40464b;
    --so-action: #40464b;
    --so-action-dark: #2f3437;
    --so-shadow: 0 14px 34px rgba(31, 36, 40, 0.08);
    --so-shadow-soft: 0 8px 22px rgba(31, 36, 40, 0.06);
    color: var(--so-text);
    background: var(--so-bg);
}

.so-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.so-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--so-dark-2);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.so-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--so-line-dark);
    border-radius: 99px;
}

/* =========================================================
   HERO DEL MICROSITIO
   ========================================================= */
.so-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(31, 36, 40, 0.82), rgba(78, 85, 91, 0.72)),
        url('../../images/pages/so-hero.jpg') center/cover no-repeat;
}

.so-hero__overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,0.12), transparent 28%),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: auto, 46px 46px, 46px 46px;
    pointer-events: none;
}

.so-hero__content {
    position: relative;
    z-index: 1;
    padding: 88px 0 78px;
    color: #ffffff;
}

.so-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.78);
}

.so-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
}

.so-hero .so-kicker {
    color: rgba(255,255,255,0.86);
}

.so-hero .so-kicker::before {
    background: rgba(255,255,255,0.45);
}

.so-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.1rem, 4.4vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.so-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255,255,255,0.88);
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.8;
}

.so-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* =========================================================
   BOTONES DE LA PÁGINA
   ========================================================= */
.so-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.so-btn:hover {
    transform: translateY(-2px);
}

.so-btn--primary {
    color: #ffffff;
    background: var(--so-dark);
    box-shadow: 0 12px 26px rgba(31, 36, 40, 0.22);
}

.so-btn--primary:hover {
    background: #1f2428;
}

.so-btn--light {
    color: var(--so-heading);
    background: #ffffff;
    border-color: rgba(255,255,255,0.75);
}

.so-btn--light:hover {
    background: var(--so-bg-soft);
}

/* =========================================================
   NAVEGACIÓN INTERNA
   ========================================================= */
.so-anchorbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--so-line);
}

.so-anchorbar__inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: thin;
}

.so-anchorbar a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--so-line);
    border-radius: 999px;
    color: var(--so-dark-2);
    background: var(--so-bg-soft);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.so-anchorbar a:hover,
.so-anchorbar a.is-active {
    color: #ffffff;
    border-color: var(--so-dark);
    background: var(--so-dark);
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.so-section {
    padding: 82px 0;
    background: #ffffff;
}

.so-section--soft {
    background: var(--so-bg-soft);
}

.so-section--dark {
    background: linear-gradient(135deg, #2f3437, #4d5358);
    color: #ffffff;
}

.so-section__header {
    max-width: 820px;
    margin-bottom: 36px;
}

.so-section__header h2 {
    margin: 0;
    color: var(--so-heading);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.so-section__header p {
    margin: 14px 0 0;
    color: var(--so-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.so-section__header--light h2,
.so-section__header--light p,
.so-section--dark .so-kicker {
    color: #ffffff;
}

.so-section--dark .so-kicker::before {
    background: rgba(255,255,255,0.45);
}

.so-section__header--light p {
    opacity: 0.86;
}

/* =========================================================
   TARJETAS DE ACCIÓN PRINCIPAL
   ========================================================= */
.so-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.so-action-card {
    min-height: 280px;
    padding: 26px;
    border: 1px solid var(--so-line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--so-shadow-soft);
}

.so-action-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border: 1px solid var(--so-line-dark);
    border-radius: 16px;
    color: var(--so-heading);
    background: var(--so-bg-muted);
    font-weight: 800;
}

.so-action-card h3 {
    margin: 0;
    color: var(--so-heading);
    font-size: 1.2rem;
}

.so-action-card p {
    margin: 14px 0 20px;
    color: var(--so-muted);
    line-height: 1.7;
}

.so-action-card a {
    color: var(--so-dark);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid var(--so-line-dark);
}

.so-action-card a:hover {
    color: var(--so-action-dark);
    border-color: rgba(64, 70, 75, 0.22);
}

/* =========================================================
   GUÍA / TIMELINE DE CUMPLIMIENTO
   ========================================================= */
.so-split {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
    gap: 44px;
    align-items: start;
}

.so-split__intro h2 {
    margin: 0;
    color: var(--so-heading);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.so-split__intro p {
    margin: 16px 0 0;
    color: var(--so-muted);
    line-height: 1.75;
}

.so-timeline {
    display: grid;
    gap: 14px;
}

.so-timeline__item {
    position: relative;
    padding: 20px 22px 20px 64px;
    border: 1px solid var(--so-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--so-shadow-soft);
}

.so-timeline__item::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 22px;
    width: 18px;
    height: 18px;
    border: 5px solid var(--so-bg-muted);
    border-radius: 50%;
    background: var(--so-dark-2);
}

.so-timeline__item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--so-heading);
    font-size: 1.02rem;
}

.so-timeline__item span {
    color: var(--so-muted);
    line-height: 1.65;
}

/* =========================================================
   TARJETAS DE ENLACES RNA
   ========================================================= */
.so-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.so-link-card {
    display: block;
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 26px;
    color: #ffffff;
    background: rgba(255,255,255,0.095);
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.so-link-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
}

.so-link-card span {
    display: inline-block;
    margin-bottom: 22px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.so-link-card strong,
.so-link-card small {
    display: block;
}

.so-link-card strong {
    font-size: 1.2rem;
    line-height: 1.35;
}

.so-link-card small {
    margin-top: 10px;
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
}

/* =========================================================
   DIRECTORIO FILTRABLE
   ========================================================= */
.so-directory-tools {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(160px, 0.7fr));
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--so-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--so-shadow-soft);
}

.so-directory-tools label {
    display: grid;
    gap: 8px;
    color: var(--so-heading);
    font-size: 0.84rem;
    font-weight: 800;
}

.so-directory-tools input,
.so-directory-tools select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--so-line-dark);
    border-radius: 14px;
    color: var(--so-text);
    background: var(--so-bg-soft);
    font: inherit;
}

.so-directory-tools input:focus,
.so-directory-tools select:focus {
    outline: 3px solid rgba(64, 70, 75, 0.13);
    border-color: var(--so-dark-2);
    background: #ffffff;
}

.so-directory-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--so-muted);
}

.so-directory-summary strong {
    color: var(--so-heading);
    font-size: 1.08rem;
}

.so-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--so-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--so-shadow);
}

.so-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.so-table th,
.so-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--so-line);
    text-align: left;
    vertical-align: middle;
}

.so-table thead th {
    color: #ffffff;
    background: var(--so-dark);
    font-size: 0.84rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.so-table tbody tr:hover {
    background: var(--so-bg-soft);
}

.so-table tbody tr:last-child td {
    border-bottom: 0;
}

.so-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--so-line-dark);
    background: var(--so-bg-muted);
    color: var(--so-heading);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.so-status--actualizado {
    background: #edf1ee;
    color: #344239;
    border-color: #d5ded7;
}

.so-status--pendiente {
    background: #f4f1e8;
    color: #5b523b;
    border-color: #e3dcc9;
}

.so-status--revision {
    background: #eef1f4;
    color: #3f4a54;
    border-color: #d8dee4;
}

/* =========================================================
   CAPACITACIONES
   ========================================================= */
.so-training-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.so-training-card {
    padding: 24px;
    border: 1px solid var(--so-line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--so-shadow-soft);
}

.so-training-card h3 {
    margin: 0;
    color: var(--so-heading);
    font-size: 1.15rem;
}

.so-training-card p {
    margin: 12px 0 0;
    color: var(--so-muted);
    line-height: 1.7;
}

.so-training-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.so-training-card__meta span {
    padding: 6px 9px;
    border: 1px solid var(--so-line);
    border-radius: 999px;
    color: var(--so-dark-2);
    background: var(--so-bg-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

/* =========================================================
   RECURSOS RÁPIDOS
   ========================================================= */
.so-resource-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.so-resource-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 18px 20px;
    border: 1px solid var(--so-line);
    border-radius: 20px;
    color: var(--so-heading);
    background: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--so-shadow-soft);
}

.so-resource-list a::after {
    content: "→";
    opacity: 0.65;
}

.so-resource-list a:hover {
    border-color: var(--so-line-dark);
    background: var(--so-bg-soft);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    .so-action-grid,
    .so-link-grid,
    .so-training-grid,
    .so-resource-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .so-split,
    .so-directory-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .so-container {
        width: min(100% - 24px, 1180px);
    }

    .so-hero {
        min-height: 500px;
    }

    .so-hero__content {
        padding: 72px 0 64px;
    }

    .so-hero__actions,
    .so-action-grid,
    .so-link-grid,
    .so-training-grid,
    .so-resource-list {
        grid-template-columns: 1fr;
    }

    .so-hero__actions {
        display: grid;
    }

    .so-btn {
        width: 100%;
    }

    .so-section {
        padding: 58px 0;
    }

    .so-action-card {
        min-height: auto;
    }

    .so-resource-list a {
        min-height: 64px;
    }
}


/* =========================================================
   AJUSTE VISUAL AGEJ V7 - ESCALA DE GRISES ELEGANTE
   Regla: botones, badges y acentos en escala de grises.
   Esta capa final fuerza la integración con Inicio y CEAJ.
   ========================================================= */
.so-page{
    --so-action:#40464b;
    --so-action-dark:#2f3437;
}

.so-btn,
.so-action-card__link,
.so-resource-link,
.so-update-card a,
.so-training-card a,
.so-table a{
    background:#ffffff;
    color:#2f3437 !important;
    border:1px solid #cfd5da;
    box-shadow:0 8px 20px rgba(31,36,40,.06);
}

.so-btn:hover,
.so-action-card__link:hover,
.so-resource-link:hover,
.so-update-card a:hover,
.so-training-card a:hover,
.so-table a:hover{
    background:#f5f6f7;
    border-color:#8a9095;
    color:#1f2428 !important;
    transform:translateY(-2px);
}

.so-btn--primary,
.so-btn--secondary{
    background:#ffffff;
    color:#2f3437 !important;
    border-color:#ffffff;
}

.so-btn--primary:hover,
.so-btn--secondary:hover{
    background:#f5f6f7;
    color:#1f2428 !important;
}

.so-badge,
.so-status,
.so-pill,
.so-filter-chip{
    background:#eef0f2 !important;
    color:#3f4a54 !important;
    border-color:#d8dee4 !important;
}

.so-table th,
.so-directory-table th{
    background:#eceff1 !important;
    color:#2f3437 !important;
}

.so-input:focus,
.so-select:focus,
.so-search input:focus,
.so-filter select:focus{
    border-color:#7d8791 !important;
    box-shadow:0 0 0 4px rgba(125,135,145,.14) !important;
}
