/* ===========================
   CABECERA PREMIUM HÍBRIDA
   =========================== */

.site-header {
    background: #000;
    padding: 50px 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* TÍTULO: mezcla Apple + futurista + neon sutil */
.site-header h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;

    /* Degradado elegante sin brillos exagerados */
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #dcdcdc 25%,
        #ff4bd8 55%,
        #4bd8ff 85%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Glow MUY suave, casi imperceptible */
    text-shadow: 0 0 6px rgba(255,0,200,0.15);
}

.site-header h1 a {
    text-decoration: none;
}

/* TAGLINE estilo revista premium */
.tagline {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
    color: #eaeaea;
    letter-spacing: 0.3px;
}

/* NAV: limpio, Apple-like, con toque futurista */
.site-nav {
    margin-top: 25px;
}

.site-nav a {
    margin-right: 16px;
    padding: 8px 14px;
    font-size: 0.95rem;
    text-decoration: none;
    color: #ddd;

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;

    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(4px);

    transition: 0.25s ease;
}

.site-nav a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

/* ===========================
   MEJORAS PARA LA CABECERA
   =========================== */

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4bd8 0%, #4bd8ff 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(255, 75, 216, 0.3);
    flex-shrink: 0;
}

.header-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #dcdcdc 25%,
        #ff4bd8 55%,
        #4bd8ff 85%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 6px rgba(255,0,200,0.15);
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.site-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #ff4bd8 0%, #4bd8ff 100%);
    border-radius: 2px;
}

.site-subtitle {
    margin: 12px 0 0 0;
    font-size: 1.1rem;
    font-weight: 300;
    color: #eaeaea;
    letter-spacing: 0.3px;
    line-height: 1.4;
    opacity: 0.9;
    max-width: 500px;
}

/* Navegación principal mejorada */
.main-navigation {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.nav-item {
    padding: 10px 18px;
    text-decoration: none;
    color: #ddd;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-item i {
    font-size: 1rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ===========================
   ESTILOS PARA POSTS
   =========================== */

.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.post-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    overflow: hidden;
}

.post-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-title-content {
    flex: 1;
}

.post-card h2 {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: #333;
}

.post-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h2 a:hover {
    color: #ff4bd8;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
    padding: 12px;
    background: rgba(245, 245, 245, 0.8);
    border-radius: 8px;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta a {
    color: #4bd8ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta a:hover {
    color: #ff4bd8;
}

.post-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.read-more-btn {
    background: linear-gradient(90deg, #ff4bd8 0%, #4bd8ff 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    justify-content: center;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75, 216, 255, 0.4);
}

/* Botón especial para volver */
.back-btn {
    background: linear-gradient(90deg, #666 0%, #888 100%) !important;
}

.back-btn:hover {
    background: linear-gradient(90deg, #555 0%, #777 100%) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.post-stats {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
    margin-left: auto;
}

.post-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ===========================
   PAGINACIÓN Y FILTROS
   =========================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    padding: 20px;
}

.pagination a {
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.pagination a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.pagination span {
    color: #fff;
    font-weight: 500;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.filters strong {
    color: #fff;
    margin-right: 10px;
    align-self: center;
}

.filters a {
    padding: 8px 16px;
    background: rgba(255,255,255,0.08);
    color: #ddd;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filters a:hover,
.filters a.active {
    background: linear-gradient(90deg, #ff4bd8 0%, #4bd8ff 100%);
    color: white;
    border-color: transparent;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 992px) {
    .header-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-logo {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .site-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
    }
    
    .site-subtitle {
        margin: 8px auto 0;
        text-align: center;
    }
    
    .main-navigation {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 30px 0;
    }
    
    .site-title {
        font-size: 2.2rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
    }
    
    .post-header {
        flex-direction: column;
    }
    
    .post-image-placeholder {
        width: 100%;
        height: 200px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .post-footer .read-more-btn {
        min-width: 100%;
    }
    
    .post-stats {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }
    
    .main-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .main-navigation {
        gap: 5px;
        padding: 6px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        padding: 12px;
    }
    
    .nav-item i {
        font-size: 1.2rem;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .post-card h2 {
        font-size: 1.5rem;
    }
    
    .read-more-btn {
        min-width: 100%;
    }
}

/* ===========================
   CONTENEDOR GENERAL
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main.container {
    padding: 0 20px 40px;
}

/* ===========================
   ESTILOS GENERALES
   =========================== */

body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff4bd8 0%, #4bd8ff 100%);
}

a {
    color: #4bd8ff;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff4bd8;
}

code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Estilos para mensaje de no posts */
.no-posts {
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin: 40px 0;
}

.no-posts i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}