/* ========================================
   BLOG SINGLE
======================================== */

.blog-single {
    width: 100%;
    background-color: var(--color-background);
}

/* Hero */
.blog-hero {
    display: flex;
    flex-direction: column;
    padding: 200px 0 0 0;
}

.hero-titulo-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 30px 80px 30px;
}

.hero-titulo {
    font-family: var(--font-serif);
    font-size: 56px;
    letter-spacing: -1px;
    font-weight: 100;
    line-height: 0.9;
    margin: 0;
    color: var(--color-dark);
    text-align: center;
    max-width: 800px;
}

.hero-imagen {
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

.hero-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
    /* ⭐ Zoom out inicial */
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.hero-imagen img.loaded {
    transform: scale(1);
}

/* Text 1 */
.blog-text1 {
    display: flex;
    flex-direction: row;
    padding: 80px 30px;
    gap: 80px;
}

.text1-left {
    flex: 1;
}

.text1-subtitulo {
    font-family: var(--font-serif);
    font-size: 32px;
    letter-spacing: -0.5px;
    font-weight: 100;
    line-height: 1.2;
    margin: 0;
    color: var(--color-dark);
}

.text1-right {
    flex: 1;
    flex-direction: column;
    gap: 50px;
}

.text1-contenido {
    font-family: var(--font-texts);
    font-size: 20px;
    line-height: 1.3;
    color: var(--color-dark);
    font-weight: 300;
    letter-spacing: -1px;
}

.text1-contenido p {
    margin-bottom: 20px;
}

/* Images */
.blog-images {
    display: flex;
    flex-direction: row;
    padding: 0 20px 80px 20px;
    gap: 20px;
    align-items: flex-start;
}

.images-vertical {
    flex: 1;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.images-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.images-horizontal {
    flex: 1;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

.images-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text 2 */
.blog-text2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 30px 80px 30px;
    gap: 30px;
}

.text2-subtitulo {
    font-family: var(--font-serif);
    font-size: 32px;
    letter-spacing: -0.5px;
    font-weight: 100;
    line-height: 1.2;
    margin: 0;
    color: var(--color-dark);
    text-align: center;
    max-width: 800px;
}

.text2-contenido {
    font-family: var(--font-texts);
    font-size: 20px;
    line-height: 1.3;
    color: var(--color-dark);
    font-weight: 300;
    letter-spacing: -1px;
    max-width: 800px;
    text-align: center;
}

.text2-contenido p {
    margin-bottom: 40px;
}

/* Imagen Final */
.blog-imagen-final {
    padding: 0 20px 80px 20px;
}

.imagen-final-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.imagen-final-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-hero {
        padding: 250px 0 0 0;
    }
    
    .hero-titulo-wrapper {
        padding: 0 20px 60px 20px;
    }
    
    .hero-titulo {
        font-size: 42px;
    }
    
    .blog-text1 {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
        width: 100%;
    }
    
    .text1-subtitulo {
        font-size: 28px;
    }
    
    .blog-images {
        flex-direction: column;
        padding: 0 20px 60px 20px;
        gap: 20px;
    }
    
    .blog-text2 {
        padding: 0 50px 60px 50px;
    }
    
    .text2-subtitulo {
        font-size: 28px;
    }
    
    .blog-imagen-final {
        padding: 0 0px 60px 0px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    /* Hero */
    .blog-hero {
        padding: 120px 0 0 0; /* ⭐ Menos padding-top */
    }
    
    .hero-titulo-wrapper {
        padding: 0 20px 80px 20px;
    }
    
    .hero-titulo {
        font-size: 46px;
        line-height: 1;
        max-width: 100%;
    }
    
    .hero-imagen {
        aspect-ratio: 4/5; /* ⭐ Cambiar a vertical en móvil */
    }
    
    /* Text 1 */
    .blog-text1 {
        flex-direction: column; /* ⭐ Layout vertical */
        padding: 60px 20px;
        gap: 30px;
    }
    
    .text1-subtitulo {
        font-size: 40px;
        line-height: 1.1;
    }
    
    .text1-contenido {
        font-size: 18px;
        line-height: 1.3;
        width: 100%;
    }
    
    .text1-contenido p {
        margin-bottom: 15px;
    }
    
    /* Images */
    .blog-images {
        flex-direction: column-reverse; /* ⭐ Layout vertical */
        padding: 0 0 80px 0;
        gap: 0px;
    }
    
    /* ⭐ Todas las imágenes 4/5 en móvil */
    .images-vertical {
        aspect-ratio: 4/5;
    }

    .images-horizontal {
        padding: 20px;
        aspect-ratio: 5/4;
    }
    
    /* Text 2 */
    .blog-text2 {
        padding: 0 20px 60px 20px;
        gap: 20px;
    }
    
    .text2-subtitulo {
        font-size: 32px;
        line-height: 1.1;
        max-width: 100%;
    }
    
    .text2-contenido {
        font-size: 18px;
        line-height: 1.3;
        max-width: 100%;
        width: 100%;
    }
    
    .text2-contenido p {
        margin-bottom: 20px;
    }
    
    /* Imagen Final */
    .blog-imagen-final {
        padding: 0 0px 0px 0px;
    }
    
    .imagen-final-wrapper {
        aspect-ratio: 5/4; /* ⭐ Cambiar a vertical en móvil */
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 160px 0 0 0;
    }
    
    .hero-titulo-wrapper {
        padding: 0 20px 60px 20px;
    }
    
    .hero-titulo {
        font-size: 46px;
    }
    
    .blog-text1 {
        padding: 40px 20px;
        gap: 25px;
    }
    
    .text1-subtitulo {
        font-size: 40px;
    }
    
    .text1-contenido {
        font-size: 16px;
    }
    
    .blog-images {
        padding: 0 0px 60px 0px;
    }
    
    .blog-text2 {
        padding: 0 20px 40px 20px;
    }
    
    .text2-subtitulo {
        font-size: 40px;
    }
    
    .text2-contenido {
        font-size: 16px;
    }
    
    .blog-imagen-final {
        padding: 0 0px 0px 0px;
    }
}



/* ========================================
   OTRAS ENTRADAS
======================================== */

.otras-entradas {
    width: 100%;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    padding: 100px 20px;
    gap: 60px;
}

/* Título */
.otras-entradas__titulo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.otras-entradas__titulo {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 100;
    letter-spacing: -1px;
    line-height: 0.9;
    margin: 0;
    color: var(--color-dark);
}

/* Grid de cards */
.otras-entradas__grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* Card */
.otras-entradas__card {
    flex: 1;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

/* Imagen */
.otras-entradas__image {
    width: 100%;
    aspect-ratio: 4 / 5;
}

.otras-entradas__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

/* Overlay negro */
.otras-entradas__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 25px;
    gap: 8px;
}

/* Fecha y título ocultos por defecto */
.otras-entradas__date,
.otras-entradas__title {
    font-family: var(--font-texts);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--color-light);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.4s ease;
    width: 50%;
}

/* Hover: overlay negro y texto visible */
.otras-entradas__card:hover .otras-entradas__overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.otras-entradas__card:hover .otras-entradas__date,
.otras-entradas__card:hover .otras-entradas__title {
    opacity: 1;
}

/* ========================================
   RESPONSIVE OTRAS ENTRADAS
======================================== */

@media (max-width: 1024px) {
    .otras-entradas {
        padding: 80px 0px 80px 30px;
        gap: 50px;
    }

    .otras-entradas__titulo-wrapper {
        padding-right: 30px;
    }

    .otras-entradas__titulo {
        font-size: 50px;
    }

    /* Scroll horizontal */
    .otras-entradas__grid {
        flex-direction: row;
        gap: 15px;
        overflow-x: auto;
        padding-right: 30px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .otras-entradas__grid::-webkit-scrollbar {
        display: none;
    }

    /* Cards ancho fijo */
    .otras-entradas__card {
        flex: 0 0 300px;
    }

    /* Overlay siempre visible */
    .otras-entradas__overlay {
        background-color: rgba(0, 0, 0, 0.45);
    }

    .otras-entradas__date,
    .otras-entradas__title {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .otras-entradas {
        padding: 70px 0px 70px 20px;
        gap: 40px;
    }

    .otras-entradas__titulo-wrapper {
        padding-right: 20px;
    }

    .otras-entradas__titulo {
        font-size: 46px;
    }

    .otras-entradas__grid {
        padding-right: 20px;
        gap: 12px;
    }

    .otras-entradas__card {
        flex: 0 0 260px;
    }

    .otras-entradas__overlay {
        padding: 20px;
    }

    .otras-entradas__date,
    .otras-entradas__title {
        font-size: 15px;
        width: 80%;

    }
}

@media (max-width: 480px) {
    .otras-entradas {
        padding: 80px 0px 60px 15px;
        gap: 60px;
    }

    .otras-entradas__titulo-wrapper {
        padding-right: 15px;
    }

    .otras-entradas__titulo {
        font-size: 42px;
    }

    .otras-entradas__grid {
        padding-right: 15px;
        gap: 10px;
    }

    .otras-entradas__card {
        flex: 0 0 240px;
    }

    .otras-entradas__overlay {
        padding: 15px;
        gap: 5px;
    }

    .otras-entradas__date,
    .otras-entradas__title {
        font-size: 13px;
        width: 80%;
    }
}









/* ========================================
   BLOQUES DENTRO DE SECCIONES (H3 + Texto)
======================================== */

/* --- Variante text1 (impares) --- */


.text1-bloque {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text1-bloque-subtitulo {
    font-family: var(--font-texts);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    color: var(--color-dark);
}

/* --- Variante text2 (pares) --- */
.text2-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 800px;
}

.text2-bloque-subtitulo {
    font-family: var(--font-texts);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    color: var(--color-dark);
    text-align: center;
}

/* ========================================
   RESPONSIVE BLOQUES
======================================== */

@media (max-width: 768px) {
    .text1-right {
        gap: 30px;
    }

    .text1-bloque-subtitulo,
    .text2-bloque-subtitulo {
        font-size: 14px;
    }
}