/*        HERO DEL BLOG        */
.blog-hero {
    width: 100%;
    background: #236a95;
    padding: 45px 0;
    color: white;
    margin-bottom: 45px;
}

.blog-hero-content {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.blog-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.92;
}

/*       BOTÓN VOLVER          */
.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #236a95;
    border: 2px solid #236a95;
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s ease;
    margin-bottom: 20px;
}

.blog-back-btn:hover {
    background: #236a95;
    color: white;
    text-decoration: none;
}

.blog-back-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/*        TARJETAS BLOG        */
body {
    font-family: "Google Sans", Roboto, Arial, sans-serif;
}

.blog-root {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 10px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d5d5d5;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.06),
        0 6px 12px rgba(0,0,0,0.06);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
}

.blog-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.65);
    pointer-events: none;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 6px rgba(0,0,0,0.08),
        0 10px 18px rgba(0,0,0,0.10);
}

.blog-card:hover::before {
    border-color: rgba(255,255,255,0.85);
}

.blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 16px 18px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d2f3f;
    margin-bottom: 6px;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
}

.blog-meta {
    font-size: 0.85rem;
    color: #9c9a9e;
    margin-bottom: 12px;
}

.blog-excerpt {
    color: #2d2f3f;
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 18px;
    flex: 1;
}

.blog-btn {
    background: #f28f32;
    color: white;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
}

.blog-btn:hover {
    background: #d97a2b;
}

/*           FOOTER - ESTILO PRO             */
.blog-footer {
    background: #236a95;
    color: white;
    padding: 45px 20px 30px;
    margin-top: 60px;
}

.blog-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.blog-footer-section {
    display: flex;
    flex-direction: column;
}

.blog-footer-section h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* --- Enlaces uno debajo de otro --- */
.blog-footer-section a {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
    color: white;
    text-decoration: none;
    margin-bottom: 6px;
    transition: 0.2s ease;
}

.blog-footer-section a:hover {
    color: #f28f32;
    opacity: 1;
}

.blog-footer-section p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/*        ICONOS SOCIALES MINIMAL            */
.blog-footer-section .d-flex a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;

    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 10px;

    padding: 6px;
    transition: all .25s ease;
}

.blog-footer-section .d-flex a svg {
    width: 22px;
    height: 22px;
    fill: white;
    opacity: 0.9;
}

.blog-footer-section .d-flex a:hover {
    border-color: #f28f32; 
    background: rgba(242, 143, 50, 0.18);
}

.blog-footer-section .d-flex a:hover svg {
    opacity: 1;
    fill: #f28f32;
}

/* ===========================
   MÓDULO DE SUSCRIPCIÓN (GLOBAL)
   =========================== */

.suscripcion-box {
    margin-top: 40px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fbfbfd;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.suscripcion-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e2a32;
    margin-bottom: 6px;
}

.suscripcion-box p {
    color: #6b7280;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

#suscribirForm {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

#emailInput {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    min-width: 260px;
    font-size: 1rem;
}

#suscribirForm button {
    background: #236a95;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

#suscribirForm button:hover {
    background: #1d577c;
}

#suscripcionMsg {
    margin-top: 10px;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    #suscribirForm {
        flex-direction: column;
        align-items: stretch;
    }
    #emailInput {
        width: 100%;
    }
}
/* COPYRIGHT */
.blog-footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 35px;
    font-size: 0.85rem;
    opacity: 0.8;
}


/*         RESPONSIVE          */
@media (max-width: 480px) {
    .blog-thumb { height: 160px; }
    .blog-card { min-height: auto; }
    .blog-root { padding: 8px 12px; }
}

