/* style.css - Gris Revolucion Elegant Editorial Aesthetic */

:root {
    --bg-color: #F4F4F2;
    /* Off-White elegante */
    --text-color: #1A1A1A;
    /* Negro suave */
    --accent-red: #D91A2A;
    --gray-light: #A0A0A0;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    /* Ruido de grano sutil para efecto papel de revista */
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
}

/* Tipografía de fondo (Oversized Statement) */
.bg-statement {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Oswald', sans-serif;
    font-size: 15vw;
    color: rgba(0, 0, 0, 0.03);
    /* Casi invisible, muy elegante */
    white-space: nowrap;
    z-index: -2;
    pointer-events: none;
    text-transform: uppercase;
    font-weight: 700;
}

/* Arte de Tatuaje flotando sutilmente */
.bg-tattoo {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply;
    animation: floatTattoo 20s ease-in-out infinite alternate;
}

@keyframes floatTattoo {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Header Editorial */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    animation: logoReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.manifesto {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--gray-light);
    text-transform: uppercase;
}

/* Divisor estilo Dazed/i-D */
.divider {
    border-top: 1px solid var(--accent-red);
    border-bottom: 1px solid var(--accent-red);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

.news-ticker-container {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--accent-red);
    border-bottom: 1px solid var(--accent-red);
    padding: 0.5rem 0;
    margin-bottom: 3rem;
    background: transparent;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.news-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.news-ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.ticker-item:hover {
    color: var(--accent-red);
}

.ticker-separator {
    color: var(--accent-red);
    font-weight: 800;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Articles Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    width: 100%;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 3px;
    margin: 4rem auto 2.5rem auto;
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.index-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.featured-article-container {
    width: 100%;
    margin-bottom: 2rem;
}

/* Estilo de Tarjetas Editorial */
.card {
    grid-column: span 6;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(20%) contrast(110%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(100%);
}

.card.featured {
    grid-column: span 12;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 3rem;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
}

.card.featured .card-image {
    width: 55%;
    height: 450px;
    margin-bottom: 0;
}

.card.featured .card-content {
    width: 45%;
}

.card.featured .article-title {
    font-size: 4rem;
}

.category {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 1rem;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.card:hover .article-title {
    color: var(--accent-red);
}

.article-excerpt {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    max-width: 80%;
    font-weight: 300;
}

.read-more {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.read-more:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

/* --- FOOTER EDITORIAL COMPLEJO --- */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 4rem 2rem 1.5rem 2rem;
    font-family: 'Inter', sans-serif;
    margin-top: 6rem;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-col {
    max-width: 350px;
}

.footer-logo {
    max-width: 180px;
    filter: invert(1);
    /* Vuelve el logo blanco */
    margin-bottom: 1rem;
}

.footer-manifesto {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-col a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .brand-col {
        margin: 0 auto;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card {
        grid-column: span 1;
    }

    .card.featured {
        grid-column: span 1;
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .card.featured .card-image {
        width: 100%;
        height: auto;
    }

    .card.featured .card-content {
        width: 100%;
    }

    .card.featured .article-title {
        font-size: 2.2rem;
    }

    .article-excerpt {
        max-width: 100%;
    }
}

/* --- ESTILOS PARA PÁGINAS DE ARTÍCULOS --- */

.article-page {
    background-color: var(--bg-color);
}

.article-page .header {
    padding: 1.5rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.small-logo {
    max-width: 150px;
    margin-bottom: 0;
}

.article-hero {
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(10%) contrast(105%);
}

.article-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.main-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    line-height: 1.1;
    color: var(--text-color);
}

.article-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    font-weight: 400;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Letra Capital (Drop Cap) */
.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
}

/* --- ESTILOS CMS (Buscador, Tags, Relacionados) --- */

.search-container {
    text-align: center;
    margin-bottom: 3rem;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-color);
    background: transparent;
    border: 2px solid var(--text-color);
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
}

.search-bar:focus {
    background: rgba(0, 0, 0, 0.05);
}

.hashtags-list {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hashtag {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 1px;
}

.author-signature {
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.author-signature hr {
    width: 50px;
    margin: 0 auto 2rem auto;
    border: none;
    border-top: 2px solid var(--text-color);
}

.author-signature a {
    color: var(--text-color);
    font-weight: bold;
}

.related-articles {
    margin-top: 5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 3rem;
}

.related-articles h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    transition: transform 0.3s ease;
}

.related-card:hover a {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.related-card:hover img {
    filter: grayscale(0%);
}

.related-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .bg-statement {
        font-size: 15vw;
        white-space: normal;
        text-align: center;
        width: 100%;
        line-height: 1.1;
    }

    .bg-tattoo {
        width: 300px;
        top: 10%;
        opacity: 0.1;
    }

    .divider {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        text-align: center;
    }

    .search-bar {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .article-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .card.featured .article-title {
        font-size: 2rem;
    }

    .manifesto {
        font-size: 1rem;
    }
}

/* --- HEADER Y NAVEGACIÓN EDITORIAL --- */
.site-header {
    background-color: var(--bg-color);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.header-logo-container {
    margin-bottom: 1.5rem;
}

.site-header .brand-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    animation: none;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-social {
    display: flex;
    gap: 1.5rem;
    position: absolute;
    right: 0;
}

.nav-social a {
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-social a:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .site-header .brand-logo {
        max-width: 150px;
    }

    .main-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-social {
        position: static;
        justify-content: center;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- ESTILOS PARA LA PÁGINA DE LINKS (LINKTREE) --- */
.link-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--text-color);
    background-color: transparent;
    color: var(--text-color);
    text-transform: uppercase;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}