/* Lomas de Nirgua - Sala de Prensa y Estilos Editoriales (Prensa Style) */

/* Contenedor del Artículo */
.article-container {
    max-width: 900px;
    margin: calc(var(--nav-height, 76px) + clamp(24px, 4vw, 40px)) auto 60px;
    padding: 0 max(5%, 16px);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumbs a:hover {
    color: var(--secondary);
}
.breadcrumbs span {
    color: var(--secondary);
    font-weight: 600;
}

/* Header del Artículo */
.article-header {
    margin-bottom: 32px;
}
.article-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.category-badge {
    background: rgba(46, 125, 50, 0.25);
    color: var(--accent);
    border: 1px solid rgba(46, 125, 50, 0.4);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.official-badge {
    background: linear-gradient(135deg, var(--secondary), #FF8F00);
    color: #1a1a1a;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}
.article-badges time {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: auto;
}

.article-title {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 300;
    margin-bottom: 28px;
    border-left: 3px solid var(--secondary);
    padding-left: 18px;
}

/* Barra de Metadatos y Compartir */
.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.author-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.author-info strong {
    display: block;
    color: white;
    font-size: 0.95rem;
}
.author-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.share-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.share-btn {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.share-btn.whatsapp:hover {
    background: #25D366;
    color: #0b141a;
    border-color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.share-btn.twitter:hover {
    background: white;
    color: black;
    border-color: white;
}
.share-btn.copy-link:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Portada Hero */
.article-hero-figure {
    margin: 32px 0 40px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.hero-cover-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.article-hero-figure figcaption {
    padding: 12px 18px;
    background: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    border-top: 1px solid var(--glass-border);
}

/* AI Key Takeaways (Perplexity, SearchGPT, Gemini Snippets) */
.ai-key-takeaways {
    margin: 35px 0 45px;
    padding: 28px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.04) 0%, rgba(46, 125, 50, 0.06) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.ai-badge {
    background: rgba(255, 193, 7, 0.15);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ai-read-time {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.ai-key-takeaways ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.ai-key-takeaways li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #e2e8f0;
    font-size: 0.98rem;
    line-height: 1.6;
}
.ai-key-takeaways li:last-child {
    margin-bottom: 0;
}
.ai-key-takeaways li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
}
.ai-key-takeaways strong {
    color: white;
}

/* Cuerpo Editorial */
.article-body {
    color: #cbd5e1;
    font-size: 1.12rem;
    line-height: 1.85;
}
.article-body p {
    margin-bottom: 24px;
}
.article-section {
    margin-bottom: 50px;
}
.article-section h2 {
    font-size: 1.85rem;
    color: white;
    margin: 40px 0 20px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 10px;
}
.article-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Citas Editoriales Destacadas */
.editorial-quote {
    margin: 35px 0;
    padding: 24px 28px;
    background: var(--glass-bg);
    border-left: 4px solid var(--secondary);
    border-radius: 0 18px 18px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.editorial-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: #f1f5f9;
    line-height: 1.6;
    margin-bottom: 14px;
}
.editorial-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.editorial-quote cite strong {
    color: var(--secondary);
}

/* Figuras de los Directores */
.article-figure {
    margin: 35px auto;
    max-width: 540px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: var(--bg-dark);
}
.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}
.article-figure figcaption {
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

/* Banner de Conversión al Final del Artículo */
.article-cta {
    margin: 60px 0 40px;
    padding: 50px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(46, 125, 50, 0.3);
    background: radial-gradient(circle at 50% 0%, rgba(46, 125, 50, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.article-cta h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 12px;
}
.article-cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 30px;
}
.article-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- ESTILOS DEL PORTAL CENTRAL (prensa.html) --- */
.hub-container {
    max-width: 1200px;
    margin: calc(var(--nav-height, 76px) + clamp(24px, 4vw, 42px)) auto 70px;
    padding: 0 max(5%, 16px);
}
.hub-header {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 50px);
}
.hub-header h1 {
    font-size: clamp(1.95rem, 4.8vw, 3.4rem);
    color: white;
    margin: 16px 0 14px;
}
.hub-header p {
    font-size: clamp(0.98rem, 1.4vw, 1.15rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Tarjeta Destacada en el Hub */
.featured-news-card {
    padding: clamp(20px, 3.5vw, 35px);
    border-radius: 24px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    background: var(--bg-dark);
    margin-bottom: clamp(40px, 6vw, 60px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}
.featured-news-card:hover {
    transform: translateY(-4px);
}
.featured-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 22px;
}
.featured-badge-row time {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.featured-body-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(20px, 3vw, 35px);
    align-items: center;
}
.featured-img-col img {
    width: 100%;
    height: clamp(220px, 32vw, 340px);
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    display: block;
}
.featured-content-col h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.25;
    margin-bottom: 14px;
}
.featured-content-col h2 a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}
.featured-content-col h2 a:hover {
    color: var(--secondary);
}
.featured-content-col p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.read-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Secciones secundarias del Hub */
.media-coverage-section {
    margin-bottom: clamp(44px, 6vw, 68px);
}
.section-title-row {
    margin-bottom: 28px;
}
.section-title-row h2 {
    font-size: clamp(1.45rem, 2.8vw, 1.85rem);
    color: white;
    margin-bottom: 8px;
}
.section-title-row p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Grid de Noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: 24px;
}
.news-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(46, 125, 50, 0.5);
}
.news-card-img-wrap {
    position: relative;
    height: 200px;
}
.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(2, 6, 23, 0.85);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}
.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.news-card-content h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 12px;
}
.news-card-content h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}
.news-card-content h3 a:hover {
    color: var(--secondary);
}
.news-card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 18px;
}
.read-more-link {
    margin-top: auto;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: transform 0.2s ease;
    display: inline-block;
}
.read-more-link:hover {
    transform: translateX(4px);
}

/* --- RESPONSIVE EN TABLETS Y MÓVILES --- */
@media (max-width: 900px) {
    .featured-body-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .featured-img-col img {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: clamp(1.6rem, 6vw, 1.95rem);
    }
    .article-lead {
        font-size: 1.02rem;
        padding-left: 14px;
    }
    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 14px;
    }
    .share-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .share-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    .ai-key-takeaways {
        padding: 20px 18px;
    }
    .article-body {
        font-size: 1rem;
        line-height: 1.75;
    }
    .article-section h2 {
        font-size: 1.45rem;
    }
    .editorial-quote {
        padding: 18px 20px;
        margin: 25px 0;
    }
    .editorial-quote p {
        font-size: 1.05rem;
    }
    .article-figure img {
        height: auto;
    }
    .article-cta {
        padding: 34px 20px;
    }
    .article-cta h3 {
        font-size: 1.45rem;
    }
    .article-cta-buttons {
        flex-direction: column;
    }
    .article-cta-buttons a {
        width: 100%;
        min-height: 48px;
    }
    .featured-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .featured-footer a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .article-badges time,
    .featured-badge-row time {
        margin-left: 0;
        width: 100%;
    }
}
