/* VARIABLES ESPECÍFICAS DEL BLOG */
:root {
    --bone-white: #fdfdfd;
    --gray-dark: #333333;
    --gray-light: #eeeeee;
    --neon-green: #4cd78f;
    --text-muted: #666;
}

/* FUENTES PARA BREVO (si aplica) */
@font-face {
    font-display: block;
    font-family: Roboto;
    src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff")
}

@font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 600;
    src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff")
}

@font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 700;
    src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff")
}

/* ESTILOS BASE PARA EL CUERPO DEL BLOG Y ARTÍCULOS */
body {
    background-color: var(--bone-white);
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* Estilos específicos para el body de los artículos */
body.article-page {
    color: var(--gray-dark);
    line-height: 1.8;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Estilos específicos para el body de la página principal del blog */
body.blog-home-page {
    color: var(--gray-dark);
    line-height: 1.6;
}


/* --- HEADER --- */
header {
    padding: 15px 5% 0; /* Default for blog home */
    text-align: center;
    border-bottom: 1px solid var(--gray-light); /* Default for blog home */
}

/* Header para artículos (sin border-bottom y padding ajustado) */
header.article-header {
    padding: 15px 0 0 0px;
    border-bottom: none;
}

.logo-vora {
    height: 40px;
    transition: opacity 0.3s;
}

.logo-vora:hover { opacity: 0.7; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- SECCIÓN DESTACADA (blog.html) --- */
.featured-article {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.featured-img-container {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16/9;
}

.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-article:hover .featured-img-container img {
    transform: scale(1.03);
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-green);
    margin-bottom: 15px;
    display: block;
}

.featured-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 20px 0;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-content p {
    font-family: Georgia, serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-read {
    text-decoration: none;
    color: var(--neon-green);
    font-weight: 700;
    border-bottom: 2px solid var(--neon-green);
    padding-bottom: 5px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .featured-article { grid-template-columns: 1fr; padding: 40px 0; }
}

/* --- MAIN CONTENT WRAPPER (Artículos) --- */
.main-content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    padding: 10px 20px 80px;
}

.article-container {
    flex: 1;
    max-width: 800px;
    text-align: left;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 40px; /* Default for articles */
    display: block;
}

/* Specific margin for articulo004.html */
.article-container.articulo004 .featured-image {
    margin-bottom: 20px;
}


.sidebar {
    width: 30%;
    border-left: 1px solid var(--gray-light);
    padding-left: 40px;
    text-align: left;
}

.sidebar h3 {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 35px;
    color: var(--neon-green);
    font-weight: 900;
    border-bottom: 2px solid var(--neon-green);
    display: inline-block;
    padding-bottom: 5px;
}

.sidebar-item {
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sidebar-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    display: block;
    background-color: var(--gray-light);
}

.sidebar-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1.2;
    transition: color 0.3s;
}

.sidebar-item a:hover h4 {
    color: var(--neon-green);
}

.sidebar-item p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

h1, h2 {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    color: #000;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 60px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #444;
}

/* Specific paragraph styles for articles */
.article-container p.intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: #666;
    margin-top: -30px;
    margin-bottom: 30px;
    font-weight: 400;
}

.article-container p.quote-text {
    font-style: italic;
    color: #555;
    border-left: 3px solid var(--neon-green);
    padding-left: 20px;
    margin: 30px 0;
}

.article-container p.quote-text.large-margin {
    margin: 40px 0;
}

.article-container p.image-caption {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin-top: -15px;
    margin-bottom: 40px;
}

.article-container p.author-signature {
    text-align: right;
}


@media (max-width: 1024px) {
    .main-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    h1 { font-size: 1.8rem; }
    .sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--gray-light);
        padding-left: 0;
        padding-top: 40px;
    }
    .article-container {
        max-width: 100%;
    }
}

/* --- CTA BANNER (blog.html) --- */
.cta-banner {
    background-color: #000;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-samples {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-samples img {
    width: 280px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.footer-samples img:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.btn-portafolio {
    background-color: var(--neon-green);
    color: #000;
    padding: 20px 40px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-portafolio:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(76, 215, 143, 0.4);
    background-color: #59ffaa;
}

/* --- SECCIÓN ARTÍCULOS RECIENTES (INFERIOR blog.html) --- */
.recent-articles-bottom {
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 100px;
}

/* SEPARADOR */
.blog-separator {
    border: none;
    height: 1px;
    background-color: var(--gray-light);
    margin: 0 auto;
}

/* --- FILTROS DE CATEGORÍAS --- */
.filter-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: #000000 !important;
    border: none;
    text-decoration: underline;
    text-decoration-color: #000;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    padding: 10px 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.filter-btn:link,
.filter-btn:visited {
    color: #000000 !important;
    text-decoration-color: #000000 !important;
}

.filter-btn:hover,
.filter-btn:active,
.filter-btn.active {
    color: var(--neon-green) !important;
    text-decoration-color: var(--neon-green) !important;
}

.filter-btn.active {
    background-color: #000 !important;
    text-decoration: none !important;
}

.recent-articles-bottom h3 {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 35px;
    color: var(--neon-green);
    font-weight: 900;
    border-bottom: 2px solid var(--neon-green);
    display: inline-block;
    padding-bottom: 5px;
}

#lista-recientes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

/* --- POPUP SUBSCRIPCIÓN (ESTILO VORA) --- */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-content {
    background-color: var(--bone-white);
    border: 3px solid #000;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 12px 12px 0px #000;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 30px;
    font-weight: 900;
    cursor: pointer;
    color: #000;
}

.popup-content h2 {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-input {
    padding: 15px;
    border: 3px solid #000;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
}

.btn-submit-popup {
    background-color: #28a745;
    color: #fff;
    padding: 15px;
    border: 3px solid #000;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit-popup:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
}

.popup-feedback {
    margin-top: 20px;
    font-weight: 700;
    color: #28a745;
    display: none;
}

@media (max-width: 480px) {
    .popup-content { padding: 30px 20px; }
}

/* SECCIÓN COMENTARIOS CUSDIS */
#comments-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 3px solid #000;
    width: 100%;
}
.cta-comentarios {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #000; /* Default for blog.html */
}

/* Specific for articles */
.article-page .cta-comentarios {
    color: var(--gray-dark);
}

#cusdis_thread {
    min-height: 200px; /* Default for blog.html */
    overflow: visible !important;
}

/* Specific for articles */
.article-page #cusdis_thread {
    min-height: 100px; /* Adjusted for articles */
}

#cusdis_thread iframe {
    width: 100% !important;
    min-width: 100% !important;
    border: none !important;
    overflow: hidden !important;
    height: auto; /* Permite que el JS controle la altura */
}

/* --- SECCIÓN COMPARTIR (Artículos) --- */
.share-section {
    margin-top: 60px;
    padding: 30px;
    background-color: #fff;
    text-align: center;
}

.share-btn {
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}
.share-btn:hover {
    background-color: var(--neon-green);
    color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
}
.share-btn.btn-copy:hover {
    background-color: #333;
    color: #fff;
}

/* BANNERS PROMOCIONALES ÉLITE */
.banner-elite-hero, .banner-elite-footer {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    max-height: 200px;
    overflow: hidden;
    width: 100%; /* Default for blog.html */
    margin: 40px 0; /* Default for blog.html */
    border-radius: 4px; /* Default for blog.html */
}

/* Specific for articles */
.article-page .banner-elite-hero, .article-page .banner-elite-footer {
    width: calc(100% + 40px);
    margin: 0px 0px;
    border-radius: 0;
}

.banner-content {
    display: flex;
    width: 100%;
    height: 100%;
}
.banner-image {
    flex: 1;
    height: 300px;
}
.banner-image img {
    content: url('../assets/Galeria/poster_002.webp');
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}
.banner-text h2 {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    margin: 0 0 15px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
}
.btn-banner {
    background-color: #4cd78f;
    color: #000000;
    padding: 12px 25px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 2px solid #4cd78f;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Specific hover for article banners */
.article-page .btn-banner:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
}

@media (max-width: 768px) {
    .banner-elite-hero, .banner-elite-footer {
        flex-direction: column;
        max-height: none;
        width: 100%; /* Default for blog.html */
        margin: 20px 0; /* Default for blog.html */
    }

    /* Specific for articles */
    .article-page .banner-elite-hero, .article-page .banner-elite-footer {
        width: calc(100% + 40px);
        margin: 20px -20px;
    }

    .banner-content {
        flex-direction: column;
    }
    .banner-image {
        width: 100%;
        height: 150px;
    }
    .banner-text {
        padding: 20px;
        align-items: center;
        text-align: center;
    }
    .banner-text h2 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    .btn-banner {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
}