/* ==========================================================
   NATALY MÉNDEZ | IDENTIDAD EDITORIAL
   Adaptación base del CSS
   (Revisado: sin errores que causen 404. Debe permanecer en
   la misma carpeta que index.html porque este lo referencia
   con la ruta relativa href="index.css")
   ========================================================== */

:root {
    --marfil: #F8F5EF;
    --papel: #FCFAF7;
    --azul: #4D578C;
    --rosa: #F2529D;
    --turquesa: #4BBFB4;
    --durazno: #F2AB6D;
    --coral: #F28A80;
    --texto: #4E4E4E;
    --texto-sec: #7C7C7C;
    --linea: #E8E1D9;

    --radius: 18px;
    --radius-xl: 28px;

    --shadow: 0 12px 35px rgba(0, 0, 0, .08);

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;

    --transition: .35s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--texto);
    background:
        linear-gradient(rgba(248, 245, 239, .92), rgba(248, 245, 239, .92));
    background-color: var(--marfil);
    line-height: 1.8;
}

.three-col-layout {
    display: grid;
    grid-template-columns: 260px 1fr 240px;
    gap: 56px;
    max-width: 1800px;
    margin: auto;
    padding: 48px;
}

.col-sticky {
    position: sticky;
    top: 40px;
}

.col-left,
.col-right {
    padding: 8px;
}

.col-heading {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--linea);
    padding-bottom: 12px;
}

.col-label {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--azul);
}

.index-list,
.phases-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.index-item,
.phase-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--texto-sec);
    border-left: 2px solid transparent;
    transition: var(--transition);
    border-radius: 10px;
}

.index-item:hover,
.phase-item:hover,
.index-item.active {
    color: var(--azul);
    background: #fff;
    border-left-color: var(--rosa);
}

.index-num {
    font-family: var(--font-display);
    color: var(--rosa);
    font-size: 1.1rem;
}

.col-center {
    min-width: 0;
}

.doc-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--linea);
    opacity: 1;
    transform: none;
}

.section-header {
    display: flex;
    gap: 24px;
    margin-bottom: 34px;
}

.section-number {
    font-family: var(--font-display);
    font-size: 3.2rem;
    color: var(--rosa);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--azul);
    font-weight: 500;
}

.section-title-wrap::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: var(--rosa);
    margin-top: 12px;
}

.doc-card {
    background: var(--papel);
    border: 1px solid var(--linea);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.doc-card::before {
    content: "";
    position: absolute;
    right: 26px;
    top: 18px;
    width: 70px;
    height: 18px;
    background: #E7D7A4;
    opacity: .55;
    transform: rotate(-4deg);
    border-radius: 3px;
}

.doc-card-label {
    padding: 18px 28px;
    background: #fff;
    border-bottom: 1px solid var(--linea);
    color: var(--azul);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pdf-wrapper {
    background: #fff;
    padding: 18px;
    text-align: center;
}

.pdf-wrapper iframe,
.pdf-wrapper img {
    width: 100%;
    border: none;
    border-radius: 12px;
}

.pdf-wrapper iframe {
    height: 80vh;
    min-height: 500px;
    background: #525659;
}

.pending-note {
    padding: 60px 20px;
    text-align: center;
    color: var(--texto-sec);
    font-style: italic;
}

/*======================================
VIDEO
======================================*/

.video-wrapper {

    background: #fff;

    padding: 20px;

    display: flex;

    justify-content: center;

}

.video-wrapper video {

    width: 70%;

    max-width: 650px;

    height: auto;

    border-radius: 12px;

    background: #000;

}

.audio-bg,
.video-wrapper {
    background: var(--papel);
    border: 1px solid var(--linea);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    padding: 18px;
}

.audio-bg img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.footer {
    margin-top: 70px;
    border-top: 1px solid var(--linea);
    padding: 36px 0;
    text-align: center;
    color: var(--texto-sec);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--azul);
}

@media (max-width:900px) {
    .three-col-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .col-sticky {
        position: static;
    }

    .section-title {
        font-size: 2.2rem;
    }
}