/* ==========================================================================
   VARIABLES GLOBALES
   ========================================================================== */
:root {
    --accent: #7F77DD;
    --accent-light: #EEEDFE;
    --accent-mid: #534AB7;
    --accent-border: #AFA9EC;
    --dark: #1a1917;
    --mid: #6b6965;
    --light: #9a9895;
    --border: #e8e5e0;
}

/* ==========================================================================
   NAV CUSTOM
   ========================================================================== */
.navbar-custom {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    height: 58px;
    display: flex;
    align-items: center;
    z-index: 1000;
    top: 0;
    width: 100%;
    transition: box-shadow 0.3s ease;
}
.navbar-custom.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar-custom-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}
.navbar-links-custom {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-links-custom a {
    font-size: 0.75rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--light);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}
.navbar-links-custom a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}
.navbar-links-custom a:hover { color: var(--dark); }
.navbar-links-custom a:hover::after { width: 100%; }
.navbar-pill-custom {
    background: var(--dark) !important;
    color: #ffffff !important;
    border-radius: 999px;
    padding: 7px 18px !important;
    transition: opacity 0.2s ease !important;
}
.navbar-pill-custom:hover { opacity: 0.75; color: #ffffff !important; }
.navbar-pill-custom::after { display: none !important; }
.navbar-toggler-custom {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.navbar-toggler-custom span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   PORTADA HERO
   ========================================================================== */
header#inicio.hero-editorial {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 40px 32px;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}
.hero-main-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}
.hero-photo-col { flex-shrink: 0; }
.hero-avatar-card {
    width: 280px; height: 370px;
    border-radius: 4px;
    overflow: hidden;
    background: #d0cdc8;
    border: 1.5px solid #c0bdb8;
    outline: 2px solid transparent;
    outline-offset: 0px;
    transition: outline 0.35s ease, outline-offset 0.35s ease;
    opacity: 0;
    animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
.hero-avatar-card:hover {
    outline: 2px solid var(--dark);
    outline-offset: 6px;
}
.hero-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hero-title-giant {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 5.5vw, 5rem);
    color: var(--dark);
    line-height: 0.95;
    margin: 0 0 20px;
    letter-spacing: -2px;
    opacity: 0;
    animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}
.hero-description-short {
    font-size: 1rem;
    font-weight: 400;
    color: var(--mid);
    line-height: 1.6;
    margin: 0 0 24px;
    opacity: 0;
    animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.65s forwards;
}
.aw-col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.85s forwards;
}
.aw-tags-right { display: flex; flex-wrap: wrap; gap: 8px; }
.aw-tag {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--mid);
    background: transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.aw-tag:hover { border-color: var(--dark); color: var(--dark); }
.aw-bio {
    font-size: 0.92rem;
    color: var(--light);
    line-height: 1.75;
    margin: 0;
    border-left: 1.5px solid var(--border);
    padding-left: 16px;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    header#inicio.hero-editorial { padding: 50px 24px; }
    .hero-main-wrapper { flex-direction: column; text-align: center; gap: 36px; }
    .hero-text-col { align-items: center; flex: unset; }
    .hero-title-giant { font-size: 3rem; letter-spacing: -1px; }
    .hero-avatar-card { width: 200px; height: 270px; }
    .aw-col-right { align-items: center; }
    .aw-bio { border-left: none; padding-left: 0; border-top: 1.5px solid var(--border); padding-top: 14px; text-align: center; }
}

/* ==========================================================================
   MATERIAS — EDITORIAL SPLIT
   ========================================================================== */
.materias-section {
    padding: 56px 0 64px;
    background: #ffffff;
    border-top: 1px solid var(--border);
}
.materias-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}
.materias-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
}
.mat-left {
    padding-right: 56px;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 80px;
}
.mat-right { padding-left: 56px; }

.mat-label {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--light);
    font-weight: 500;
    margin-bottom: 16px;
    display: block;
}
.mat-heading {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    color: var(--dark);
    letter-spacing: -1.5px;
    line-height: 1.0;
    margin: 0 0 32px;
}
.mat-heading em {
    color: var(--accent);
    font-style: normal;
}
.mat-pct-block { margin-bottom: 32px; }
.mat-pct-num {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(5rem, 10vw, 7.5rem);
    color: var(--accent);
    letter-spacing: -3px;
    line-height: 1;
}
.mat-pct-num sup {
    font-size: 2.4rem;
    vertical-align: top;
    margin-top: 14px;
    display: inline-block;
}
.mat-pct-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light);
    margin-top: 4px;
}
.mat-stats {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.mat-stat-num {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.2rem;
    color: var(--dark);
    letter-spacing: -1px;
    line-height: 1;
}
.mat-stat-lbl {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--light);
    margin-top: 4px;
}

/* Filas de años */
.year-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.year-row:first-child { border-top: 1px solid var(--border); }
.year-row.visible { opacity: 1; transform: translateY(0); }
.year-row:nth-child(1) { transition-delay: 0s; }
.year-row:nth-child(2) { transition-delay: 0.08s; }
.year-row:nth-child(3) { transition-delay: 0.16s; }
.year-row:nth-child(4) { transition-delay: 0.24s; }
.year-row:nth-child(5) { transition-delay: 0.32s; }

.year-num {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.2rem;
    color: var(--dark);
    min-width: 56px;
    flex-shrink: 0;
}
.pills-row { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.card-materia-pill {
    font-size: 0.78rem;
    color: var(--mid);
    background: rgba(0,0,0,0.04);
    border-radius: 4px;
    padding: 5px 12px;
}
.card-badge-ok {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: #2d7a4f;
    background: #e8f5ee;
    border: 1px solid #b8e0cb;
    border-radius: 999px;
    padding: 4px 10px;
    flex-shrink: 0;
    margin-left: auto;
}
.card-badge-cur {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-mid);
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    padding: 4px 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ==========================================================================
   EQUIPO
   ========================================================================== */
.equipo-section {
    padding: 56px 0 64px;
    background: #ffffff;
    border-top: 1px solid var(--border);
}
.equipo-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 48px;
    align-items: start;
}
.equipo-label-vert {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--light);
    padding-top: 8px;
}
.equipo-body {
    width: 100%;
}
.equipo-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3.5rem, 7vw, 6rem);
    color: var(--dark);
    letter-spacing: -3px;
    line-height: 0.95;
    margin-bottom: 36px;
}
.equipo-title em {
    color: var(--accent);
    font-style: normal;
}
.equipo-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}
.eq-card {
    background: #ffffff;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
    cursor: default;
}
.eq-card--link { cursor: pointer; }
.eq-card--link:hover { background: var(--dark); }
.eq-card--link:hover .eq-name { color: #ffffff; }
.eq-card--link:hover .eq-sub { color: var(--accent); }
.eq-card--link:hover .eq-arrow { color: #ffffff; transform: translate(2px,-2px); }
.eq-card--link:hover .eq-init { background: var(--accent); color: #ffffff; }
.eq-init {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-mid);
    font-family: 'Archivo Black', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}
.eq-card--you .eq-init { background: var(--dark); color: #ffffff; }
.eq-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--dark);
    transition: color 0.3s;
}
.eq-sub {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--light);
    margin-top: 2px;
    transition: color 0.3s;
}
.eq-arrow {
    margin-left: auto;
    font-size: 1.1rem;
    color: var(--light);
    transition: color 0.3s, transform 0.3s;
}
.eq-you-badge {
    margin-left: auto;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-mid);
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    padding: 5px 12px;
}

/* ==========================================================================
   INSTITUCIONAL — 3 COLUMNAS
   ========================================================================== */
.institucional-section {
    padding: 48px 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
}
.institucional-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.inst-col {
    padding: 0 36px;
    border-right: 1px solid var(--border);
}
.inst-col:first-child { padding-left: 0; }
.inst-col:last-child { border-right: none; }
.inst-col-title {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.inst-col ul { list-style: none; margin: 0; padding: 0; }
.inst-col li {
    font-size: 0.88rem;
    color: var(--mid);
    line-height: 2;
}

/* ==========================================================================
   DECISIONES — LISTA EDITORIAL
   ========================================================================== */
.decisiones-section {
    padding: 56px 0 64px;
    background: #ffffff;
    border-top: 1px solid var(--border);
}
.decisiones-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}
.dec-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--dark);
    margin-bottom: 0;
}
.dec-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--light);
}
.dec-main-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    color: var(--dark);
    letter-spacing: -0.8px;
    margin: 0;
}
.dec-item {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1),
                transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.dec-item.visible { opacity: 1; transform: translateY(0); }
.dec-item:nth-child(1) { transition-delay: 0s; }
.dec-item:nth-child(2) { transition-delay: 0.08s; }
.dec-item:nth-child(3) { transition-delay: 0.16s; }
.dec-item:nth-child(4) { transition-delay: 0.24s; }
.dec-idx {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    min-width: 44px;
}
.dec-title-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}
.dec-body {
    font-size: 0.88rem;
    color: var(--mid);
    line-height: 1.8;
    max-width: 680px;
}
.dec-body code {
    font-size: 0.82rem;
    background: rgba(0,0,0,0.05);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--dark);
}

/* ==========================================================================
   CTA — BANDA NEGRA
   ========================================================================== */
.cta-section {
    background: var(--dark);
    padding: 64px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta-inner {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    color: #ffffff;
    letter-spacing: -1.5px;
    line-height: 1.05;
}
.cta-title span { color: var(--accent); }
.cta-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
    max-width: 340px;
    line-height: 1.7;
}
.cta-btn {
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #ffffff;
    border-radius: 999px;
    padding: 16px 36px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.25s, border-color 0.25s;
    font-family: 'DM Sans', sans-serif;
}
.cta-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.footer-nuevo {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 28px 32px;
}
.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.7;
}
.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0; padding: 0;
}
.footer-links a {
    font-size: 0.7rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ==========================================================================
   RESPONSIVE GENERAL
   ========================================================================== */
@media (max-width: 992px) {
    .materias-split { grid-template-columns: 1fr; }
    .mat-left { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 40px; margin-bottom: 40px; position: static; }
    .mat-right { padding-left: 0; }
    .equipo-inner { grid-template-columns: 1fr; }
    .equipo-label-vert { writing-mode: horizontal-tb; transform: none; }
    .institucional-inner { grid-template-columns: 1fr; gap: 32px; }
    .inst-col { border-right: none; padding: 0; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
    .inst-col:last-child { border-bottom: none; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 768px) {
    .materias-inner, .equipo-inner, .institucional-inner, .decisiones-inner { padding: 0 20px; }
    .cta-section { padding: 48px 20px; }
    footer.footer-nuevo { padding: 24px 20px; }
    .navbar-custom-inner { padding: 0 20px; flex-wrap: wrap; height: auto; min-height: 58px; justify-content: space-between; }
    .navbar-toggler-custom { display: flex; }
    .navbar-links-custom { display: none; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 12px 0 20px; border-top: 1px solid var(--border); }
    .navbar-links-custom.open { display: flex; }
    .navbar-links-custom li { width: 100%; }
    .navbar-links-custom a { display: block; padding: 12px 0; font-size: 0.82rem; }
    .navbar-pill-custom { margin-top: 8px; display: inline-block !important; }
    .dec-header { flex-direction: column; gap: 6px; }
}