﻿/*======= Fondo ======================= */
.Contenedor {
    background-image: url("../../Images/Home/fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* 👈 CLAVE */
    padding-top: 100px;
}

/*======= Boton Volver Inicio y titulo de la pagina ======================= */
.titleBlog {
    max-width: 1200px; /* mismo que cards */
    width: 100%;
    margin: 20px auto 0 auto;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.btn-izq {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #FFFFFF;
    border-radius: 20px;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff !important;
    padding: 10px 22px;
    line-height: 1;
    transition: all .2s;
    cursor: pointer;
    outline: none;
    width: fit-content;
    margin-left: 60px;
}

    .btn-izq img {
        width: 14px;
        display: block;
    }

    .btn-izq:hover {
        transform: translateY(-3px)
    }


.titulo {
    text-align: center;
    font-family: 'Outfit';
    font-size: 40px;
    font-weight: 600;
    margin: 0;
    color: white;
    grid-column: 2;
    justify-self: center;
}

/*======= Blog (lado izquierdo) ======================= */
.blog-grid {
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}

.blog-wrapper {
    width: 80%;
    max-width: 1200px;
    margin: 10px auto;
}

.Card {
    background-size: cover;
    background-position: center;
    color: white;
    width: 100%;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: left;
    flex: 0 1 536px;
    min-height: 282px;
}

    .Card .texto {
        padding: 15px;
    }

.numBlog {
    font-family: 'Outfit';
    font-size: 20px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 20px;
}

.TitleBLogP {
    font-family: 'Outfit';
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0;
    color: #fff;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 1px;
}

.subtile {
    font-family: 'Outfit';
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0;
    color: #fff;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 25px;
}

.dateBlog {
    font-family: 'Outfit';
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0;
    color: #fff;
    text-align: left;
    margin-bottom: 5px;
}

.BtnLeerMas {
    border: 1px solid #FFFFFF;
    border-radius: 20px;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff !important;
    padding: 6px 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all .2s;
    cursor: pointer;
    outline: none;
    gap: 8px;
}

    .BtnLeerMas img {
        display: block;
        width: 14px;
    }

    .BtnLeerMas:hover {
        transform: translateY(-3px);
    }

.btn-navg {
    border: 1px solid #FFFFFF !important;
    border-radius: 20px !important;
    background: transparent !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    padding: 6px 22px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    transition: all .2s !important;
    cursor: pointer !important;
    outline: none !important;
    gap: 8px !important;
}
    .btn-navg img {
        display: block !important;
        width: 14px !important;
    }
    .btn-navg:hover {
        transform: translateY(-3px) !important;
    }
/*===Detalle del blog===================================== */
.ContenedorDetalle {
    max-width: 900px;
    margin: auto;
    color: white;
    margin-top: 20px;
}

.LblFecha {
    font: normal normal normal 18px/18px Outfit;
    letter-spacing: 0;
    color: #FFFFFF;
    text-align: left;
    opacity: 1;
}

.lblTitulo {
    font: normal normal bold 24px/28px Outfit;
    letter-spacing: 0;
    color: #FFFFFF;
    text-align: left;
    opacity: 1;
}


/*===Bontonde ver mas blogs===================================== */
.btnVolverContainer {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 120px; /* separación del footer */
}

.btnVolverBlogs {
    display: inline-flex; /* 👈 CAMBIA ESTO */
    align-items: center; /* 👈 centra vertical */
    gap: 8px; /* 👈 espacio entre texto y flecha */

    padding: 10px 35px;
    border-radius: 20px;
    border: 1px solid #fff;
    color: #ffffff !important;
    background: transparent;
    font-family: 'Outfit';
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    width: fit-content;
    position: relative;
    z-index: 9999;
}

    .btnVolverBlogs:hover {
        transform: translateY(-3px);
    }



@media (max-width: 768px) {

    .blog-grid {
        padding-top: 10px;
        grid-template-columns: 1fr;
    }

    .Card {
        height: 220px;
    }

    .titulo {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        text-align: center;
    }

    .titleBlog {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        margin-top: 5px;
        gap: 5px;
    }

    .btn-izq {
        grid-column: 1;
        margin-left: 30px;
        grid-row: 1;
        justify-self: start;
        padding: 4px 15px; /* 🔥 botón más pequeño */
        font-size: 14px;
    }

    .ContenedorDetalle {
        padding: 0 5px;
    }

    /* ===== FIX RESPONSIVE REAL SUMMERNOTE ===== */

    /* evita desbordes horizontales */
    .contenido-summernote {
        width: 100%;
        overflow-x: hidden;
        word-break: break-word;
    }

        /* 🔥 controla textos gigantes */
        .contenido-summernote * {
            max-width: 100% !important;
            box-sizing: border-box;
            word-break: break-word;
        }

        /* 🔥 fuerza tipografía adaptable */
        .contenido-summernote p,
        .contenido-summernote span,
        .contenido-summernote div {
            font-size: clamp(14px, 2.5vw, 18px) !important;
        }

        /* 🔥 títulos responsivos */
        .contenido-summernote h1 {
            font-size: clamp(22px, 5vw, 32px) !important;
        }

        .contenido-summernote h2 {
            font-size: clamp(20px, 4.5vw, 28px) !important;
        }

        .contenido-summernote h3 {
            font-size: clamp(18px, 4vw, 24px) !important;
        }

        /* 🔥 imágenes */
        .contenido-summernote img {
            max-width: 100% !important;
            height: auto !important;
            display: block;
        }

        /* 🔥 tablas (mejorado) */
        .contenido-summernote table {
            display: block;
            width: 100% !important;
            overflow-x: auto;
            white-space: nowrap;
        }

        /* 🔥 iframes (videos) */
        .contenido-summernote iframe {
            width: 100% !important;
            height: auto;
        }

        /* 🔥 elimina anchos fijos inline */
        .contenido-summernote [style*="width"] {
            width: 100% !important;
            max-width: 100% !important;
        }
}
