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

body {
    background: #050505;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    padding-top: 100px;
}

/* HERO DEL BLOG */
.blog-hero {
    padding: 80px 24px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, #050505 0%, #0b0b0b 100%);
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-tag {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: #d43820;
    display: block;
    margin-bottom: 16px;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    line-height: 1.6;
}

/* CONTENEDOR DE ARTÍCULOS */
.blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 120px;
    padding: 0 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* TARJETAS DEL BLOG (PREMIUM EDITORIAL) */
.blog-card {
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 56, 32, 0.3);
}

.card-image-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #111;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image-box img {
    transform: scale(1.04);
}

.card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-category {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #ff604b;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.card-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.card-content h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.card-content h2 a:hover {
    color: #ff604b;
}

.post-excerpt {
    font-size: 0.92rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    font-size: 0.8rem;
}

.post-date {
    color: #666;
}

.read-more-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.read-more-link:hover {
    color: #d43820;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .blog-hero h1 { font-size: 2.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   LOADER PREMIUM: INFRAESTRUCTURA DE FUEGO DIGITAL CODIZADO
========================================================= */
#fire-loader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.9s;
    opacity: 1;
    visibility: visible;
}

#fire-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.fire-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contenedor de la llamarada simulada */
.fire-container-digital {
    position: relative;
    width: 160px;
    height: 250px; /* Tamaño gigante e imponente */
    filter: blur(4px) contrast(3); /* Suaviza las capas para crear un fluido de fuego real */
    animation: fireShake 0.15s ease-in-out infinite alternate;
}

.fuego-capa {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-ground: transparent;
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    transform-origin: bottom center;
    animation: riseUp 1.2s ease-in-out infinite;
}

/* Capas de temperatura del fuego */
.fuego-capa.red {
    background: linear-gradient(to top, #d43820, rgba(212, 56, 32, 0));
    animation-duration: 1.4s;
    opacity: 0.9;
}

.fuego-capa.orange {
    left: 10%;
    width: 80%;
    background: linear-gradient(to top, #ff604b, rgba(255, 96, 75, 0));
    animation-duration: 1s;
    opacity: 0.8;
}

.fuego-capa.gold {
    left: 20%;
    width: 60%;
    background: linear-gradient(to top, #ff9233, rgba(255, 146, 51, 0));
    animation-duration: 0.8s;
    opacity: 0.7;
}

.fuego-capa.white {
    left: 30%;
    width: 40%;
    background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
    animation-duration: 0.5s;
    opacity: 0.9;
}

.loader-text {
    margin-top: 30px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.45em;
    color: #444;
    text-transform: uppercase;
    animation: pulseText 1.5s infinite ease-in-out;
}

/* ANIMACIONES DE FÍSICA PARPADEO DE LLAMA */
@keyframes riseUp {
    0% { transform: scaleX(0.9) scaleY(0.7) translateY(0); filter: blur(2px); }
    50% { transform: scaleX(1.1) scaleY(1.1) translateY(-15px); filter: blur(5px); }
    100% { transform: scaleX(0.8) scaleY(0.5) translateY(-40px); opacity: 0; filter: blur(10px); }
}

@keyframes fireShake {
    0% { transform: translateX(-2px) scaleX(0.98); }
    100% { transform: translateX(2px) scaleX(1.02); }
}

@keyframes pulseText {
    0%, 100% { color: #222; letter-spacing: 0.45em; }
    50% { color: #d43820; letter-spacing: 0.5em; text-shadow: 0 0 15px rgba(212, 56, 32, 0.4); }
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .fire-container-digital { width: 110px; height: 180px; }
}

/* =========================================================
   ESTILOS PARA LA PÁGINA INTERNA DEL ARTÍCULO (READING UI)
========================================================= */
.post-layout {
    width: 100%;
    max-width: 800px; /* Ancho óptimo de lectura psicológica */
    margin: 60px auto 120px;
    padding: 0 24px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-top: 12px;
    margin-bottom: 16px;
}

.post-header-meta {
    font-size: 0.9rem;
    color: #666;
}

.post-featured-image {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cuerpo del Texto */
.post-content-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.post-content-body p {
    margin-bottom: 28px;
}

.post-content-body h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.post-content-body strong {
    color: #ff604b;
}

/* Caja de Conversión de Cierre */
.post-conversion-box {
    margin-top: 80px;
    background: linear-gradient(180deg, #0b0b0b 0%, #110908 100%);
    border: 1px dashed rgba(212, 56, 32, 0.4);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.post-conversion-box h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.post-conversion-box p {
    color: #999;
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.blog-cta-btn {
    display: inline-block;
    background: #d43820;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 16px 32px;
    border-radius: 12px;
    transition: transform 0.2s, background 0.2s;
}

.blog-cta-btn:hover {
    background: #f1432a;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .post-header h1 { font-size: 2rem; }
    .post-featured-image { height: 260px; }
    .post-content-body { font-size: 1.05rem; }
}

/* =========================================================
   ESTILOS UNIFICADOS PARA EL FOOTER GLOBAL
========================================================= */
#global-footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 24px 30px;
    margin-top: 100px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-column h2 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 12px;
}

.footer-column h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ff604b;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-column p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1100px;
    margin: 50px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #333;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
}