:root {
    --bg-cream: #F9F8F6;
    /* Blanco roto / crema de papel periódico */
    --ink-black: #1A1A1A;
    --ink-gray: #4A4A4A;
    --line-gray: #D1CDCB;

    /* Degradado Pride para acentos muy sutiles */
    --pride-accent: linear-gradient(90deg, #E40303, #FF8C00, #FFED00, #008026, #24408E, #732982);
}

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

body {
    background-color: var(--bg-cream);
    color: var(--ink-black);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- MASTHEAD (CABECERA EDITORIAL) --- */
.masthead {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink-gray);
    border-bottom: 1px solid var(--ink-black);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.nav-editorial {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid var(--ink-black);
    border-bottom: 1px solid var(--ink-black);
    padding: 1rem 0;
}

.nav-editorial a {
    color: var(--ink-black);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-editorial a:hover {
    color: #E40303;
    /* Rojo sutil al hover */
}

/* --- LÍNEA DIVISORIA PRIDE --- */
.pride-divider {
    height: 4px;
    width: 100%;
    background: var(--pride-accent);
    margin-bottom: 3rem;
}

/* --- MAIN CONTAINER --- */
.editorial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-bottom: 1rem;
}

/* --- LEAD STORY (NOTICIA PRINCIPAL) --- */
.lead-story {
    margin-bottom: 4rem;
    text-align: center;
}

.headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.sub-headline {
    font-size: 1.3rem;
    color: var(--ink-gray);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.author-block {
    font-size: 0.85rem;
    color: var(--ink-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.lead-image-placeholder {
    width: 100%;
    height: 60vh;
    background-color: #d8d8d8;
    background-image: repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), repeating-linear-gradient(45deg, #e0e0e0 25%, #d8d8d8 25%, #d8d8d8 75%, #e0e0e0 75%, #e0e0e0);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.lead-image-placeholder:hover {
    filter: grayscale(0%);
}

.image-caption {
    font-size: 0.8rem;
    background: var(--bg-cream);
    padding: 0.2rem 0.5rem;
    font-style: italic;
}

/* --- STORY GRID (CUADRÍCULA DE ARTÍCULOS) --- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.story-col {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Letra Capital (Drop Cap) */
.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 0.4rem;
    padding-top: 0.35rem;
    margin: 0;
    color: var(--ink-black);
}

.story-col p {
    margin-bottom: 1.2rem;
    color: var(--ink-gray);
    text-align: justify;
}

.read-more {
    color: var(--ink-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    border-bottom: 1px solid var(--ink-black);
    align-self: flex-start;
}

/* Cita Destacada */
.center-quote {
    justify-content: center;
    border-left: 1px solid var(--line-gray);
    border-right: 1px solid var(--line-gray);
    padding: 0 2rem;
}

.pull-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.2;
    font-style: italic;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--ink-black);
}

.quote-author {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink-gray);
}

.fine-line {
    border: 0;
    height: 1px;
    background: var(--line-gray);
    margin: 2rem 0;
}

/* --- FOOTER --- */
.editorial-footer {
    text-align: center;
    padding-bottom: 3rem;
}

.footer-content {
    padding: 2rem;
}

.logo-small {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--ink-gray);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .center-quote {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--line-gray);
        border-bottom: 1px solid var(--line-gray);
        padding: 3rem 0;
    }

    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- LIGHTBOX (Fase 11) --- */
#swissLightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    justify-content: center;
    align-items: center;
}

#lightboxImg {
    object-fit: contain;
    max-height: 90vh;
    max-width: 80vw;
}

.lightbox-btn {
    position: absolute;
    color: #ffffff;
    font-size: 6rem;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    user-select: none;
    line-height: 1;
}

.lightbox-btn:hover {
    color: #E40303;
}

#lightboxClose {
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
}

#lightboxPrev {
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
}

#lightboxNext {
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
}


/* --- LOGOTIPO GRÁFICO (EMBLEMA) --- */
.brand-emblem {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.editorial-logo {
    max-width: 80px;
    /* Tamaño discreto, ajusta según la proporción de tu logo */
    height: auto;
    /* filter: grayscale(100%);
    opacity: 0.9;
    transition: all 0.4s ease; */
}

.editorial-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- REDES SOCIALES (FOOTER) --- */
.social-editorial {
    margin: 2rem 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-editorial a {
    color: var(--ink-black);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.social-editorial a:hover {
    color: #E40303;
    /* Rojo sutil del degradado Pride */
}

.dot-separator {
    margin: 0 0.8rem;
    color: var(--line-gray);
}



h1,
h2 {
    --mouse-x: -1000px;
    --mouse-y: -1000px;

    color: transparent !important;

    /* Gradiente con paradas de color exactas para evitar el difuminado (solid colors) */
    background-image: radial-gradient(circle 80px at var(--mouse-x) var(--mouse-y),
            #E40303 0%, #E40303 16.6%,
            /* Rojo */
            #FF8C00 16.6%, #FF8C00 33.3%,
            /* Naranja */
            #FFED00 33.3%, #FFED00 50%,
            /* Amarillo */
            #008026 50%, #008026 66.6%,
            /* Verde */
            #004DFF 66.6%, #004DFF 83.3%,
            /* Azul */
            #750787 83.3%, #750787 100%,
            /* Morado */
            var(--ink-black, #1A1A1A) 100%
            /* El resto del texto se mantiene negro */
        );

    -webkit-background-clip: text;
    background-clip: text;

    /* IMPORTANTE: No agregar 'transition' al background-image para que siga al ratón al instante */
}