﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DOCUMENTACIÃ“N / MARCO JURÃDICO â€” Estilos
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.doc-header-left {
    display: flex; flex-direction: column; gap: .25rem;
}
.doc-page-title {
    font-size: 1.25rem; font-weight: 800; color: var(--dark);
    margin: 0; line-height: 1.2;
}
.doc-page-title i { color: var(--primary); }
.doc-page-sub {
    font-size: .79rem; color: #6b7280; margin: 0;
}

/* â”€â”€ HERO SECTION â”€â”€ */
.doc-hero {
    background: url('/img/hero/fondo_hero_marco_juridico.png') center center / cover no-repeat;
    border-bottom: 1px solid var(--gray-border);
    padding: 3rem 1.5rem 2.75rem;
    position: relative;
}
.doc-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,.78);
}
.doc-hero__inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr auto;
    gap: 2rem; align-items: center;
    position: relative; z-index: 1;
}
.doc-hero__tag {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .64rem; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: .1em;
    background: rgba(191,9,9,.07); border: 1px solid rgba(191,9,9,.2);
    border-radius: 20px; padding: .25rem .85rem;
    margin-bottom: .9rem;
}
.doc-hero__tag::before {
    content: ''; display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary);
}
.doc-hero__title {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 900; color: var(--dark);
    line-height: 1.18; margin: 0 0 .85rem;
}
.doc-hero__title em {
    font-style: normal; color: var(--primary);
}
.doc-hero__desc {
    font-size: .93rem; color: #4b5563;
    line-height: 1.65; max-width: 640px; margin: 0 0 1.4rem;
}
.doc-hero__actions {
    display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
}
.btn-hero-outline {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.1rem; border: 1.5px solid var(--gray-border);
    border-radius: 6px; font-size: .85rem; font-weight: 600;
    color: #374151; background: #fff; text-decoration: none;
    transition: border-color .18s, color .18s, box-shadow .18s;
    white-space: nowrap;
}
.btn-hero-outline:hover {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 2px 8px rgba(191,9,9,.1);
}
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.25rem; background: var(--primary);
    border-radius: 6px; font-size: .85rem; font-weight: 700;
    color: #fff; text-decoration: none;
    transition: background .18s, box-shadow .18s;
    white-space: nowrap;
}
.btn-hero-primary:hover {
    background: var(--primary-dark); color: #fff;
    box-shadow: 0 4px 14px rgba(191,9,9,.25);
}
.doc-hero__meta {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: .5rem; flex-shrink: 0;
}
.doc-hero__stat {
    background: #fff; border: 1px solid var(--gray-border);
    border-radius: 10px; padding: 1rem 1.35rem;
    text-align: center; min-width: 140px;
}
.doc-hero__stat-num {
    font-size: 2.1rem; font-weight: 900; color: var(--primary);
    line-height: 1;
}
.doc-hero__stat-label {
    font-size: .72rem; color: #6b7280; font-weight: 500;
    text-transform: uppercase; letter-spacing: .05em;
    margin-top: .2rem;
}

/* â”€â”€ SECCIÃ“N DE NORMAS â”€â”€ */
.doc-section {
    padding: 2.25rem 1.5rem 3rem;
}
.doc-section__inner {
    max-width: 1280px; margin: 0 auto;
}
.doc-section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-border);
}
.doc-section-label {
    font-size: .65rem; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: .1em;
    margin: 0 0 .35rem;
}
.doc-section-title {
    font-size: 1.35rem; font-weight: 800; color: var(--dark);
    margin: 0;
}
.doc-section-count {
    font-size: .76rem; font-weight: 600; color: #6b7280;
    background: var(--gray-bg); border: 1px solid var(--gray-border);
    border-radius: 20px; padding: .3rem .85rem;
    white-space: nowrap; flex-shrink: 0;
}

/* â”€â”€ GRID DE TARJETAS â”€â”€ */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}
.doc-grid__last-odd {
    grid-column: 1 / -1;
    max-width: calc(50% - .55rem);
}

/* â”€â”€ TARJETA DE NORMA â”€â”€ */
.norm-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    padding: 1.25rem 1.35rem 1.1rem;
    display: flex; flex-direction: column; gap: .7rem;
    transition: box-shadow .22s, transform .18s, border-color .22s;
    text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
}
.norm-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--primary);
    opacity: 0; transition: opacity .22s;
    border-radius: 10px 0 0 10px;
}
.norm-card:hover {
    box-shadow: 0 6px 22px rgba(191,9,9,.12);
    transform: translateY(-2px);
    border-color: rgba(191,9,9,.25);
}
.norm-card:hover::before { opacity: 1; }

/* Cabecera de tarjeta */
.norm-card__head {
    display: flex; align-items: center;
    justify-content: space-between; gap: .5rem;
}
.norm-card__head-left {
    display: flex; align-items: center; gap: .5rem;
    flex-wrap: wrap;
}
.norm-badge {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--primary); color: var(--primary);
    font-size: .6rem; font-weight: 800; padding: .18rem .55rem;
    border-radius: 3px; text-transform: uppercase; letter-spacing: .07em;
    white-space: nowrap; background: transparent;
}
.norm-institucion {
    font-size: .71rem; color: #6b7280; font-weight: 500;
    white-space: nowrap;
}
.norm-icon {
    font-size: 1.05rem; color: #d1d5db;
    flex-shrink: 0; transition: color .22s;
}
.norm-card:hover .norm-icon { color: var(--primary); }

/* NÃºmero y tÃ­tulo */
.norm-numero {
    font-size: .75rem; color: #9ca3af; font-weight: 600;
    margin: 0;
}
.norm-titulo {
    font-size: .97rem; font-weight: 800; color: var(--primary);
    margin: 0; line-height: 1.35;
}

/* DescripciÃ³n */
.norm-desc {
    font-size: .82rem; color: #4b5563;
    line-height: 1.6; margin: 0;
    flex: 1;
}

/* Footer de tarjeta */
.norm-card__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; flex-wrap: wrap;
    padding-top: .7rem;
    border-top: 1px dashed var(--gray-border);
    margin-top: auto;
}
.norm-foot-label {
    font-size: .6rem; font-weight: 700; color: #adb5bd;
    text-transform: uppercase; letter-spacing: .08em;
    display: flex; align-items: center; gap: .35rem;
}
.norm-foot-label i { font-size: .55rem; }
.norm-link {
    font-size: .75rem; font-weight: 700; color: var(--blue);
    text-decoration: none; display: inline-flex;
    align-items: center; gap: .3rem;
    white-space: nowrap; transition: color .18s;
}
.norm-link:hover { color: var(--primary); }
.norm-link i { font-size: .65rem; }

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 900px) {
    .doc-hero__inner   { grid-template-columns: 1fr; }
    .doc-hero__meta    { align-items: flex-start; flex-direction: row; }
    .doc-grid          { grid-template-columns: 1fr; }
    .doc-grid__last-odd { grid-column: auto; max-width: 100%; }
    .doc-section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) {
    .doc-hero { padding: 1.75rem 1rem; }
    .doc-hero__actions { flex-direction: column; align-items: flex-start; }
    .doc-section { padding: 1.5rem 1rem 2rem; }
}
