/* ===== HERO HEADER EDITORIAL ===== */
.kb-editorial-header {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232d4f95' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    padding: 110px 0 60px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.kb-editorial-container {
    display: grid;
    grid-template-columns: 420px 1fr;
    grid-gap: 80px;
    align-items: center;
}

/* ===== COLUMNA IZQUIERDA: EFECTO PORTADA 3D ===== */
.kb-editorial-media {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    /* Habilita espacio 3D para la revista */
}

.kb-magazine-wrapper {
    position: relative;
    width: 300px;
    height: 400px;
    transform-style: preserve-3d;
}

/* El cuerpo físico de la revista */
.kb-magazine-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px 12px 12px 4px;
    box-shadow:
        0 15px 35px -10px rgba(10, 27, 54, 0.15),
        0 5px 15px -5px rgba(10, 27, 54, 0.1);
    transform: rotateY(-18deg) rotateX(10deg) rotateZ(-2deg);
    /* Ángulo editorial natural */
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.kb-magazine-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 12px 12px 4px;
    display: block;
    background: #0a1b36;
}

/* Lomo de la revista para dar sensación de grosor (3D) */
.kb-magazine-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(0, 0, 0, 0.15) 100%);
    border-radius: 4px 0 0 4px;
    z-index: 3;
}

/* Reflejo/Glint de luz dinámico */
.kb-magazine-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 4px 12px 12px 4px;
    z-index: 4;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Sombra dinámica proyectada detrás */
.kb-magazine-shadow {
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(10, 27, 54, 0.2) 0%, rgba(10, 27, 54, 0) 70%);
    z-index: 1;
    transform: rotateY(-18deg) scaleY(0.5);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    pointer-events: none;
}

/* Animación al pasar el mouse por encima (Trae la revista al frente) */
.kb-magazine-wrapper:hover .kb-magazine-card {
    transform: rotateY(-8deg) rotateX(4deg) rotateZ(-1deg) scale(1.05) translateY(-10px);
    box-shadow:
        0 30px 60px -15px rgba(10, 27, 54, 0.25),
        0 10px 25px -10px rgba(10, 27, 54, 0.15);
}

.kb-magazine-wrapper:hover .kb-magazine-shadow {
    transform: rotateY(-8deg) scaleY(0.6) scaleX(1.1) translateY(10px);
    opacity: 0.7;
}


/* ===== COLUMNA DERECHA: ESTÉTICA EDITORIAL ===== */
.kb-editorial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Detalles de metadata superior */
.kb-editorial-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.kb-meta-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background: #d01341;
    /* Tu rojo quirúrgico de acento */
    padding: 6px 14px;
    border-radius: 30px;
}

.kb-meta-divider {
    width: 6px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 50%;
}

.kb-meta-date {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Título */
.kb-editorial-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: #0a1b36;
    line-height: 1.15;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.kb-title-highlight {
    color: #2d4f95;
    /* Tu azul corporativo */
    position: relative;
    display: inline-block;
}

/* Texto introductorio */
.kb-editorial-lead {
    font-size: 16px;
    line-height: 1.75;
    color: #475569;
    margin: 0 0 28px 0;
}

.kb-brand-strong {
    color: #2d4f95;
}

/* Cita destacada */
.kb-editorial-quote {
    position: relative;
    margin: 0 0 36px 0;
    padding: 0 0 0 24px;
    border-left: 3px solid #b4935a;
    /* Tu dorado */
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-style: italic;
    color: #0a1b36;
    line-height: 1.5;
}

/* Especificaciones técnicas de la revista en el pie */
.kb-editorial-specs {
    display: flex;
    gap: 40px;
    border-top: 1px solid #b51010;
    padding-top: 28px;
}

.kb-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kb-spec-label {
    font-size: 9px;
    font-weight: 800;
    color: #d8b776;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.kb-spec-val {
    font-size: 13px;
    font-weight: 700;
    color: #0a1b36;
}


/* ===== RESPONSIVO ADAPTATIVO ===== */
@media (max-width: 992px) {
    .kb-editorial-container {
        grid-template-columns: 1fr;
        grid-gap: 56px;
    }

    .kb-editorial-media {
        order: 1;
        /* Pasa la revista arriba en móviles */
    }

    .kb-editorial-content {
        order: 2;
    }
}

@media (max-width: 576px) {
    .kb-editorial-header {
        padding: 80px 0 40px 0;
    }

    .kb-magazine-wrapper {
        width: 240px;
        height: 320px;
    }

    .kb-editorial-specs {
        flex-direction: column;
        gap: 18px;
    }
}