/* =====================================================
   ESTILOS PREMIUM PARA PÁGINAS DE ARTÍCULOS
   Consistente con la estética de VinculoCritico
   ===================================================== */

/* Variables heredadas del sitio principal */
:root {
    --color-pink: #FF69B4;
    --color-purple: #9D50BB;
    --text-color: #1a1a1a;
    --text-light: #555;
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ===== LAYOUT BASE ===== */
.article-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff 0%, #f8f9ff 50%, #fff5f8 100%);
}

/* ===== HEADER FIX ===== */
.article-page header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.article-page header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-page .logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.article-page .nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.article-page .nav-links a {
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.article-page .nav-links a:hover {
    color: var(--color-pink);
}

.article-page .btn-small {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* ===== HERO SECTION ===== */
.article-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 100px 30px 120px;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: 0;
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(248, 249, 255, 1), transparent);
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    color: #ffffff !important;
}

/* Forzar colores blancos en hero con alta especificidad */
.article-page .article-hero h1,
.article-page section.article-hero h1,
body.article-page .article-hero h1 {
    color: #ffffff !important;
}

.article-hero-content h1 {
    color: #ffffff !important;
}

.article-meta {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.95;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.article-meta span i {
    font-size: 0.9rem;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.article-content {
    max-width: 850px;
    margin: -80px auto 80px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 55px 50px;
    position: relative;
    z-index: 10;
    transition: box-shadow 0.3s ease;
}

.article-content:hover {
    box-shadow: var(--shadow-hover);
}

/* ===== TAGS ===== */
.article-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.article-tag {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.25);
}

/* ===== CUERPO DEL ARTÍCULO ===== */
.article-body {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-color);
    text-align: justify;
}

.article-body p {
    margin-bottom: 1.6em;
    font-weight: 400;
}

/* ===== CUADRO DE ANÁLISIS ===== */
.article-summary {
    background: linear-gradient(135deg, #f0f7ff 0%, #fff5f8 50%, #f8f0ff 100%);
    border-left: 5px solid var(--color-pink);
    padding: 30px 35px;
    border-radius: 0 20px 20px 0;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.article-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.08) 0%, transparent 70%);
}

.article-summary h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-summary h3 i {
    color: var(--color-pink);
    font-size: 1.2rem;
}

.article-summary p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.2em;
    text-align: justify;
}

.article-summary p:last-child {
    margin-bottom: 0;
}

/* ===== BOTONES DE ACCIÓN ===== */
.article-actions {
    display: flex;
    gap: 18px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.article-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-btn i {
    font-size: 1.1rem;
}

.article-btn-primary {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(255, 105, 180, 0.35);
}

.article-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.45);
}

.article-btn-secondary {
    background: white;
    color: var(--text-color);
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.article-btn-secondary:hover {
    border-color: var(--color-pink);
    color: var(--color-pink);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ===== SECCIÓN DE COMPARTIR ===== */
.share-section {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid #f1f5f9;
}

.share-section h4 {
    margin-bottom: 18px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 14px;
}

.share-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8ed9 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
}

.share-btn.copy {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* ===== FOOTER ===== */
.article-page footer {
    margin-top: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .article-content {
        margin: -60px 30px 60px;
        padding: 45px 40px;
    }

    .article-hero {
        min-height: 50vh;
        padding: 90px 25px 110px;
    }
}

@media (max-width: 768px) {
    .article-page header nav {
        padding: 10px 20px;
    }

    .article-page .nav-links {
        display: none;
    }

    .article-page .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.6rem;
        color: var(--text-color);
        cursor: pointer;
    }

    .article-hero {
        min-height: 45vh;
        padding: 80px 20px 100px;
    }

    .article-hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .article-meta {
        gap: 10px;
        font-size: 0.85rem;
    }

    .article-meta span {
        padding: 6px 12px;
    }

    .article-content {
        margin: -50px 15px 50px;
        padding: 35px 25px;
        border-radius: 20px;
    }

    .article-body {
        font-size: 1.05rem;
    }

    .article-summary {
        padding: 22px 20px;
        margin: 30px 0;
    }

    .article-actions {
        flex-direction: column;
        gap: 14px;
    }

    .article-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 30px;
    }

    .share-buttons {
        justify-content: center;
    }

    .share-btn {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .article-hero {
        min-height: 40vh;
        padding: 70px 15px 90px;
    }

    .article-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .article-meta span {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .article-content {
        margin: -40px 10px 40px;
        padding: 28px 20px;
    }

    .article-tags {
        gap: 8px;
        margin-bottom: 25px;
    }

    .article-tag {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.8;
    }

    .article-summary {
        padding: 18px 15px;
    }

    .article-summary h3 {
        font-size: 1rem;
    }
}

/* ===== ANIMACIONES ===== */
.article-content {
    animation: slideUp 0.6s ease 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-tag {
    animation: fadeIn 0.5s ease backwards;
}

.article-tag:nth-child(1) {
    animation-delay: 0.3s;
}

.article-tag:nth-child(2) {
    animation-delay: 0.4s;
}

.article-tag:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}