/* =====================
   CONTENEDOR GENERAL
===================== */

.detalle-blog {
    width: min(1100px, 95%);
    margin: 2rem auto 4rem;
}

/* =====================
   HEADER
===================== */

.detalle-header {
    position: relative;

    width: 100%;
    height: 500px;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.15);
}

/* =====================
   IMAGEN
===================== */

.detalle-imagen {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.detalle-imagen-default {
    background:
        linear-gradient(135deg, rgba(176, 43, 52, 0.18), rgba(26, 28, 28, 0.78)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 8px, transparent 8px 16px),
        #1b1c1c;
    position: relative;
}

.detalle-imagen-default::after {
    content: "MILENA AUTO PARTS";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
}

/* =====================
   OVERLAY
===================== */

.detalle-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 2rem;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.15),
            transparent
        );

    color: white;
}

/* =====================
   FECHA
===================== */

.detalle-fecha {
    margin-bottom: 1rem;

    font-size: .95rem;

    opacity: .9;
}

/* =====================
   TITULO
===================== */

.detalle-blog .detalle-overlay h1,
.detalle-blog .detalle-overlay .detalle-titulo {
    max-width: 800px;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);

    font-size: clamp(2rem, 5vw, 3.5rem);

    line-height: 1.1;

    margin: 0;
}

/* =====================
   CONTENIDO
===================== */

.detalle-contenido {
    margin-top: 3rem;

    background: white;

    border-radius: 18px;

    padding: 2.5rem;

    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.08);
}

/* =====================
   DESCRIPCIÓN
===================== */

.detalle-descripcion {
    font-size: 1.2rem;

    line-height: 1.8;

    margin-bottom: 2rem;

    color: rgba(0, 0, 0, 0.75);

    font-weight: 500;
}

/* =====================
   TEXTO
===================== */

.detalle-texto {
    font-size: 1.05rem;

    line-height: 2;

    color: rgba(0, 0, 0, 0.85);
}

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

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

@media (max-width: 768px) {

    .detalle-header {
        height: 350px;
    }

    .detalle-overlay {
        padding: 1.5rem;
    }

    .detalle-contenido {
        padding: 1.5rem;
    }

    .detalle-descripcion {
        font-size: 1.05rem;
    }

    .detalle-texto {
        font-size: 1rem;
        line-height: 1.8;
    }
}

@media (max-width: 500px) {

    .detalle-header {
        height: 280px;
        border-radius: 12px;
    }

    .detalle-contenido {
        border-radius: 12px;
    }

    .detalle-overlay h1 {
        font-size: 1.8rem;
    }
}
