/* ============================================
   BLOG - ESTILOS
   ============================================ */

/* --- Etiqueta compartida --- */
.blog-etiqueta {
    display: inline-block;
    background: var(--color-primario);
    color: white;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ==============================
   BLOG HOME
   ============================== */
.blog-home-section {
    background: linear-gradient(to bottom,
      #f7f7f7 0%,
      #f7f7f7 50%,
      white 50%,
      white 100%)
}

.blog-home-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    align-items: stretch;
}

/* Destacado */
.blog-destacado-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.blog-destacado {
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(236, 104, 32, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-destacado:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(236, 104, 32, 0.25);
}

.blog-destacado-img {
    height: 100%;
    min-height: 480px;
    background-size: cover;
    background-position: top;
    position: relative;
}

.blog-destacado-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 35px 35px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 20%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 60%;
}

.blog-badge {
    display: inline-block;
    background: var(--color-primario);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
}

.blog-destacado-overlay h2 {
    color: white;
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.blog-destacado-overlay p {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 4px 4px 7px rgba(0,0,0,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-fecha {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Cards laterales */
.blog-home-laterales {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-card-mini {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(236, 104, 32, 0.2);
}

.blog-card-mini-link {
    text-decoration: none;
    display: flex;
    height: 100%;
}

.blog-card-mini-img {
    width: 160px;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.blog-card-mini-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-mini-body .blog-fecha {
    color: #7B7B7B;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.blog-card-mini-body h4 {
    color: #1E1E1E;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-mini-body p {
    color: #7B7B7B;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-leer-mas {
    color: var(--color-primario);
    font-size: 0.82rem;
    transition: letter-spacing 0.3s ease;
}

.blog-card-mini:hover .blog-leer-mas,
.blog-card:hover .blog-leer-mas {
    letter-spacing: 1px;
}

/* Botón ver todos */
.btn-ver-blog {
    display: inline-block;
    padding: 5px 15px;
    background: var(--color-primario);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-ver-blog:hover {
    background: #878786 !important;
    transform: translateY(-2px);
    color: white;
}


/* ==============================
   BLOG SECCIÓN (listado)
   ============================== */
.blog-seccion-hero {
    padding: 10px 0 50px;
    background: linear-gradient(135deg, #fff8f3 0%, #fde8d8 40%, #fce0cc 100%);
}

.blog-seccion-listado {
    padding: 0px 0 80px;
    background: white;
}

/* Card compartida */
.blog-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(236, 104, 32, 0.15);
}

.blog-card-imagen {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-card-fecha {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: #7B7B7B;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
}

.blog-card-contenido {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-contenido h3 {
    color: #1E1E1E;
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-contenido p {
    color: #7B7B7B;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==============================
   BLOG EDITORIAL - AMPLIADO
   ============================== */

/* --- Nav volver --- */
.blog-editorial-nav {
    padding: 30px 0 20px;
}

.blog-volver {
    color: #7B7B7B;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.blog-volver:hover {
    color: #EC6820;
}

/* --- Grid header: imagen + info --- */
.blog-editorial-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    padding-bottom: 60px;
}

.blog-editorial-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(236, 104, 32, 0.12);
}

.blog-editorial-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-editorial-img-wrap:hover .blog-editorial-img {
    transform: scale(1.03);
}

/* --- Info lado derecho --- */
.blog-editorial-fecha {
    color: #EC6820;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.blog-editorial-titulo {
    font-size: 2.4rem;
    line-height: 1.2;
    color: #2D2D2D;
    margin-bottom: 20px;
}

.blog-editorial-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #EC6820, #f4943e);
    border-radius: 2px;
    margin-bottom: 30px;
}

/* --- Share en header --- */
.blog-editorial-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-editorial-share-label {
    font-size: 0.85rem;
    color: #7B7B7B;
}

.blog-editorial-share-icons {
    display: flex;
    gap: 10px;
}

.blog-share-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7B7B7B;
    transition: all 0.3s;
    text-decoration: none;
}

.blog-share-circle:hover {
    background: #EC6820;
    border-color: #EC6820;
    color: #fff;
}

/* --- Body del artículo --- */
.blog-editorial-body {
    padding: 0 0 60px;
    background: white;
}

.blog-editorial-texto {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #4a4a4a;
}

.blog-editorial-texto p {
    margin-bottom: 1.5rem;
}

.blog-editorial-texto h2 {
    font-family: "Poppins Bold", sans-serif;
    color: #2D2D2D;
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-editorial-texto h3 {
    font-family: "Poppins Bold", sans-serif;
    color: #2D2D2D;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.blog-editorial-texto img {
    max-width: 100%;
    border-radius: 16px;
    margin: 25px 0;
}

.blog-editorial-texto blockquote {
    border-left: 4px solid #EC6820;
    padding: 15px 25px;
    margin: 30px 0;
    background: #fff8f3;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.blog-editorial-texto ul,
.blog-editorial-texto ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.blog-editorial-texto li {
    margin-bottom: 8px;
}

/* --- Share al final --- */
.blog-editorial-footer-share {
    margin-top: 50px;
}

.blog-editorial-footer-line {
    height: 1px;
    background: #e8e8e8;
    margin-bottom: 25px;
}

.blog-editorial-footer-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-editorial-footer-share-row span {
    color: #2D2D2D;
    font-size: 0.95rem;
}

/* Compartir viejo (por si queda en uso) */
.blog-compartir {
    margin-top: 50px;
    padding: 25px 30px;
    border-radius: 16px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-compartir > span {
    color: #1E1E1E;
    font-size: 0.9rem;
}

.blog-compartir-redes {
    display: flex;
    gap: 10px;
}

.blog-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primario);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.blog-share-btn:hover {
    background: var(--color-primario);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(236, 104, 32, 0.25);
}

/* Más artículos */
.blog-mas-articulos {
    background: #fafafa;
}

.blog-mas-articulos h2 {
    color: #1E1E1E;
    font-size: 2rem;
}

/* ==============================
   RESPONSIVE BLOG
   ============================== */
@media (max-width: 992px) {
    .blog-home-grid {
        grid-template-columns: 1fr;
    }

    .blog-destacado-img {
        min-height: 350px;
    }

    .blog-destacado-overlay h2 {
        font-size: 1.4rem;
    }

    .blog-card-mini-link {
        flex-direction: column;
    }

    .blog-card-mini-img {
        width: 100%;
        height: 200px;
    }

    .blog-ampliado-titulo {
        font-size: 2rem;
    }

    .blog-ampliado-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-seccion-hero {
        padding: 0px 0 40px;
    }

    .blog-compartir {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog-home-laterales {
        display: none;
    }

    .blog-seccion-listado {
        padding: 60px 0 10px;
    }

    /* Editorial responsive */
    .blog-editorial-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-editorial-img {
        height: 300px;
    }

    .blog-editorial-titulo {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .blog-destacado-img {
        min-height: 300px;
    }

    .blog-destacado-overlay {
        padding: 25px 20px 20px;
    }

    .blog-destacado-overlay h2 {
        font-size: 1.2rem;
    }

    .blog-ampliado-titulo {
        font-size: 1.6rem;
    }

    .blog-ampliado-imagen-wrap {
        border-radius: 16px;
        margin-bottom: 30px;
    }

    .blog-ampliado-texto {
        font-size: 0.95rem;
    }

    /* Editorial responsive mobile */
    .blog-editorial-img {
        height: 220px;
    }

    .blog-editorial-titulo {
        font-size: 1.5rem;
    }

    .blog-editorial-footer-share-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}