/* ============================================
   SINGLE - Página de entrada (post)
   ============================================ */

.page-blog-detalle {
    padding-top: 0;
    font-family: 'Roboto', sans-serif;
}

.page-blog-detalle h1,
.page-blog-detalle h2,
.page-blog-detalle h3,
.page-blog-detalle h4,
.page-blog-detalle h5,
.page-blog-detalle h6 {
    font-family: 'Roboto', sans-serif;
}

/* Hero detalle: mismo H1 que blog listado (Conoce nuestro BLOG) */
/* El título de la nota va abajo del hero como h2 */

/* Título de la nota (h2 debajo del hero) */
.blog-detalle-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    color: var(--soul-white);
    margin-bottom: 1rem;
}

/* Meta: categoría y fecha */
.blog-detalle-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.blog-detalle-category {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--soul-text-light);
}

.blog-detalle-sep {
    width: 40px;
    height: 1px;
    background: var(--soul-text-light);
    opacity: 0.6;
}

.blog-detalle-date {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: var(--soul-white);
}

/* Imagen destacada del artículo */
.blog-detalle-article {
    position: relative;
    z-index: 2;
    background-color: var(--soul-dark-blue);
    padding-top: 100px;
    padding-bottom: 3rem;
}

.blog-detalle-figure {
    margin: 0 0 2rem 0;
    overflow: hidden;
    height: 520px;
}

.blog-detalle-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

/* Cuerpo del artículo */
.blog-detalle-body {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.10);
    padding: 7%;
}

.blog-detalle-body .lead {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--soul-text-light);
    margin-bottom: 1.5rem;
}

.blog-detalle-body p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--soul-white);
    margin-bottom: 1.25rem;
}

.blog-detalle-body h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--soul-white);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-detalle-body h2:first-child {
    margin-top: 0;
}

/* Botón Ver más entradas (reutiliza .blog-btn-more) */
.blog-detalle-cta .blog-btn-more {
    padding: 10px 24px;
}

/* ----- Contenido relacionado ----- */
.blog-detalle-related {
    position: relative;
    z-index: 2;
    background-color: var(--soul-dark-blue);
}

.blog-detalle-related-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--soul-white);
    margin-bottom: 1.5rem;
}

.blog-related-carousel {
    position: relative;
}

.blog-related-carousel .carousel-inner {
    overflow: hidden;
    height: 420px;
}

.blog-related-carousel .carousel-item {
    height: 420px;
    min-height: 420px;
}

.blog-related-carousel .carousel-item .row {
    margin: 0 -0.75rem;
}

.blog-related-carousel .carousel-item .row > [class*="col-"] {
    padding: 0 0.75rem;
}

/* Cards del carrusel (reutilizan .blog-card de archive.css) */
.blog-detalle-related .blog-card-img-wrap {
    border-radius: 0;
}

.blog-related-control-prev,
.blog-related-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background-clip: padding-box;
}

.blog-related-control-prev {
    left: -24px;
}

.blog-related-control-next {
    right: -24px;
}

.blog-related-control-prev .carousel-control-prev-icon,
.blog-related-control-next .carousel-control-next-icon {
    filter: none;
    width: 1.25rem;
    height: 1.25rem;
}

.blog-related-carousel.carousel .carousel-control-prev,
.blog-related-carousel.carousel .carousel-control-next {
    z-index: 2;
}

.blog-related-carousel.hide-controls .carousel-control-prev,
.blog-related-carousel.hide-controls .carousel-control-next {
    display: none;
}

/* Bullets (indicators) con colores del sitio */
.blog-related-indicators {
    position: static !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

.blog-related-indicators button {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--soul-white) !important;
    background-color: transparent !important;
    opacity: 0.6;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    margin: 0 4px !important;
    padding: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden;
}

.blog-related-indicators button::before {
    display: none !important;
}

.blog-related-indicators button:hover {
    opacity: 1;
}

.blog-related-indicators button.active {
    background-color: var(--soul-purple) !important;
    border-color: var(--soul-purple) !important;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .blog-related-control-prev { left: 0; }
    .blog-related-control-next { right: 0; }
}

@media (max-width: 767.98px) {
    .blog-detalle-title {
        font-size: 1.5rem;
    }
    .blog-detalle-body .lead {
        font-size: 1.1rem;
    }

    .blog-detalle-article {
        padding-top: 50px;
    }

    /* Imagen principal: tamaño original, sin alto fijo */
    .blog-detalle-figure {
        height: auto;
    }
    .blog-detalle-img {
        height: auto;
        object-fit: contain;
    }

    /* Cuerpo del artículo al 100% de ancho */
    .blog-detalle-body {
        width: 100%;
    }

    /* Carrusel: una sola entrada visible por vez */
    .blog-related-carousel .carousel-inner {
        height: 400px;
    }
    .blog-related-carousel .carousel-item {
        height: 400px;
        min-height: 400px;
    }
    .blog-related-carousel .carousel-item .row > [class*="col-"]:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .blog-related-carousel .carousel-item .row > [class*="col-"]:not(:first-child) {
        display: none !important;
    }
}
