/* ============================================================
   css/blog.css — Dark Green Premium Blog Design
   Disfruta Saludable
   ============================================================ */

/* ── Keyframes del Blog ──────────────────────────────────── */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes lineExpand {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

@keyframes blogNeonBorder {

    0%,
    100% {
        border-color: rgba(76, 175, 80, 0.25);
        box-shadow: 0 0 0 rgba(76, 175, 80, 0);
    }

    50% {
        border-color: rgba(76, 175, 80, 0.7);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.25);
    }
}

/* ── 1. Base del cuerpo del blog ─────────────────────────── */
.blog-body {
    background: linear-gradient(135deg, #081A0A 0%, #0D2B0F 55%, #0A2010 100%);
    font-family: 'Inter', sans-serif;
    color: #C8E6C9;
    min-height: 100vh;
}

/* ── 2. Navbar del Blog ──────────────────────────────────── */
.blog-header-nav {
    background: rgba(8, 26, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.blog-header-nav:hover {
    background: rgba(8, 26, 10, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ── 3. Hero del Blog ─────────────────────────────────────── */
.blog-hero {
    position: relative;
    padding: 160px 20px 120px;
    text-align: center;
    overflow: hidden;
    /* Fondo translúcido sobre el body verde oscuro */
    background: linear-gradient(180deg,
            rgba(13, 43, 15, 0.50) 0%,
            rgba(8, 26, 10, 0.75) 100%);
    border-bottom: 1px solid rgba(76, 175, 80, 0.15);
}

/* Orbes decorativos animados de fondo */
.blog-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -8%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat 16s ease-in-out infinite reverse;
}

.blog-hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: heroFadeIn 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* ── 4. Badge de categoría ───────────────────────────────── */
.blog-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: #FFFFFF;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── 5. Título principal del hero ────────────────────────── */
.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    /* Verde oscuro profundo: visible y elegante */
    color: #1B5E20;
    -webkit-text-fill-color: #1B5E20;
    background: none;
    margin-bottom: 0.8rem;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(76, 175, 80, 0.25);
    position: relative;
    display: inline-block;
}

/* Línea animada debajo del título */
.blog-title::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #81C784, #4CAF50);
    border-radius: 2px;
    margin: 0.8rem auto 0;
    animation: lineExpand 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s forwards;
}

/* ── 6. Párrafo intro del hero ───────────────────────────── */
.blog-intro {
    font-size: 1.2rem;
    color: #1B5E20 !important;
    line-height: 1.8;
    margin: 1.5rem auto 2rem;
    max-width: 680px;
    text-shadow: none;
    font-weight: 600;
}

/* ── 7. Info del autor ───────────────────────────────────── */
.blog-author {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 700;
    color: #E8F5E9;
    font-size: 0.95rem;
    margin: 0;
}

.author-date {
    font-size: 0.82rem;
    color: #A5D6A7;
    margin: 0;
}

/* ── 8. Contenedor del artículo ──────────────────────────── */
.article-container {
    max-width: 820px;
    margin: -40px auto 100px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid rgba(76, 175, 80, 0.18);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #A5D6A7;
    margin-bottom: 1.5rem;
}

.article-content strong {
    color: #81C784;
    font-weight: 700;
}

/* ── 9. Tarjetas de sección (trend-card) ─────────────────── */
.trend-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 4px solid #4CAF50;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
    border-right: 1px solid rgba(76, 175, 80, 0.15);
    border-bottom: 1px solid rgba(76, 175, 80, 0.15);
    padding: 2.5rem;
    margin: 2.5rem 0;
    border-radius: 0 20px 20px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer al hacer hover */
.trend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(76, 175, 80, 0.08), transparent);
    transition: 0.7s ease;
}

.trend-card:hover {
    transform: translateY(-6px) translateX(3px);
    border-left-color: #81C784;
    animation: blogNeonBorder 2s ease-in-out infinite;
}

.trend-card:hover::before {
    left: 100%;
}

/* Número / emoji de la tarjeta */
.trend-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(76, 175, 80, 0.15);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    transition: color 0.4s ease, transform 0.4s ease;
}

.trend-card:hover .trend-number {
    color: rgba(76, 175, 80, 0.35);
    transform: scale(1.1) rotate(-5deg);
}

/* Emoji del trend-card de video — grande y visible */
.video-section .trend-number {
    position: static;
    font-size: 4rem;
    color: #A5D6A7;
    display: block;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 12px rgba(76, 175, 80, 0.5));
}

.trend-card h2 {
    font-size: 1.75rem;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    background: none;
    margin-bottom: 1.2rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ── 10. Listas interactivas ─────────────────────────────── */
.trend-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.trend-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    color: #A5D6A7;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.trend-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
}

.trend-list li:hover {
    color: #C8E6C9;
    transform: translateX(6px);
}

.trend-list li:hover::before {
    transform: translateX(4px);
    color: #81C784;
}

.trend-list li strong {
    color: #81C784;
    font-weight: 700;
}

/* ── 11. CTA Final ───────────────────────────────────────── */
.blog-cta {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.3) 0%, rgba(27, 94, 32, 0.4) 100%);
    backdrop-filter: blur(16px);
    color: #E8F5E9;
    text-align: center;
    padding: 4rem 2.5rem;
    border-radius: 24px;
    margin-top: 4rem;
    border: 1px solid rgba(76, 175, 80, 0.35);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.blog-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: none !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.blog-cta p {
    color: #A5D6A7 !important;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.blog-cta .btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2.8rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.blog-cta .btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.55);
}

/* ── 12. Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.3rem;
    }

    .blog-intro {
        font-size: 1.05rem;
    }

    .article-container {
        padding: 2rem 1.5rem;
        margin-top: -20px;
        border-radius: 18px;
    }

    .trend-card {
        padding: 2rem 1.5rem;
    }

    .trend-card h2 {
        font-size: 1.4rem;
        padding-right: 25px;
    }

    .trend-number {
        font-size: 2.8rem;
    }

    .blog-author {
        flex-direction: column;
        text-align: center;
        border-radius: 16px;
    }

    .author-info {
        text-align: center;
    }
}


/* Navbar Especial Blog */
.blog-header-nav {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Hero del Blog */
.blog-hero {
    position: relative;
    padding: 160px 20px 100px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    text-align: center;
    overflow: hidden;
}

.blog-hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-badge {
    display: inline-block;
    background-color: var(--primary-color, #4CAF50);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.blog-title {
    font-family: 'Playfair Display', serif;
    /* Un toque editorial / Premium */
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a2b3c;
    margin-bottom: 2rem;
}

.blog-intro {
    font-size: 1.25rem;
    color: #1B5E20 !important;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Detalles del autor */
.blog-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: #1a2b3c;
    font-size: 1rem;
    margin: 0;
}

.author-date {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* Contenido del Artículo */
.article-container {
    max-width: 800px;
    margin: -40px auto 100px;
    /* Sube sobre el hero ligeramente */
    background: white;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 10;
}

.article-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

/* Tarjetas Animadas (Tendencias) */
.trend-card {
    background: #ffffff;
    border-left: 5px solid var(--primary-color);
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.trend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(76, 175, 80, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.trend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.trend-card:hover::before {
    transform: translateX(100%);
}

.trend-number {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(76, 175, 80, 0.1);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.trend-card h2 {
    font-size: 1.8rem;
    color: #1a2b3c;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Listas Interactivas dentro de las tendencias */
.trend-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.trend-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #555;
    transition: all 0.3s ease;
}

.trend-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.trend-list li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.trend-list li:hover::before {
    transform: translateX(3px);
}

/* Call to action final */
.blog-cta {
    background: linear-gradient(135deg, #1a2b3c 0%, #2c3e50 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-top: 4rem;
    box-shadow: 0 15px 40px rgba(26, 43, 60, 0.2);
}

.blog-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-cta p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.blog-cta .btn {
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-cta .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.2rem;
    }

    .blog-intro {
        font-size: 1.1rem;
    }

    .article-container {
        padding: 2rem 1.5rem;
        margin-top: -20px;
        border-radius: 15px;
    }

    .trend-card {
        padding: 1.8rem;
    }

    .trend-card h2 {
        font-size: 1.4rem;
        padding-right: 20px;
    }

    .trend-number {
        font-size: 3rem;
    }
}