/* ----------------------------- */
/*  BASE GENERAL (MOBILE FIRST)  */
/* ----------------------------- */

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

/* Contenedor del formulario Substack */
.substack-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    margin-bottom: 24px;
}

/* Tarjetas RSS */
.rss-card {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding: 20px;
    background: #ffffff;
    transition: all .2s ease;
    height: 100%;
}

.rss-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.rss-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.rss-date {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: .75rem;
}

.rss-excerpt {
    font-size: 1rem;
    line-height: 1.5;
}

/* ----------------------------- */
/*  LAYOUT RESPONSIVE            */
/* ----------------------------- */

/* MOBILE FIRST:
   Todo se apila verticalmente por defecto.
*/

.responsive-wrapper {
    display: flex;
    flex-direction: column;
}

/* ----------------------------- */
/*  TABLET (>= 768px)            */
/* ----------------------------- */

@media (min-width: 768px) {

    .responsive-wrapper {
        flex-direction: row;
        gap: 20px;
    }

    .substack-box {
        margin-bottom: 0;
    }

    /* Columna izquierda (suscripción) */
    .col-left {
        flex: 0 0 35%;
    }

    /* Columna derecha (feed) */
    .col-right {
        flex: 1;
    }
}

/* ----------------------------- */
/*  DESKTOP (>= 992px)           */
/* ----------------------------- */

@media (min-width: 992px) {

    .col-left {
        flex: 0 0 30%;
    }

    .col-right {
        flex: 0 0 70%;
    }

    .rss-title {
        font-size: 1.3rem;
    }
}

/* ----------------------------- */
/*  DESKTOP GRANDE (>= 1400px)   */
/* ----------------------------- */

@media (min-width: 1400px) {

    .rss-card {
        padding: 28px;
    }

    .substack-box {
        padding: 28px;
    }
}
/* Featured post (hero) */
.featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    display: flex;
    align-items: flex-end;
    color: white;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.featured-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    position: absolute;
    inset: 0;
}

.featured-content {
    position: relative;
    z-index: 2;
}

.featured-title {
    font-family: 'Montserrat';
    font-size: 2rem;
    font-weight: 700;
}

.featured-excerpt {
    font-size: 1rem;
    opacity: .9;
}

/* Category badge */
.badge-category {
    background: #1a4db8;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

/* Grid cards */
.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform .2s;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1rem;
}

.blog-card-title {
    font-family: 'Montserrat';
    font-size: 1.1rem;
    font-weight: 600;
}

.blog-card-date {
    font-size: .85rem;
    color: #777;
}

/* CONTENEDOR GENERAL */
.blog-post-card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e5e5;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover suave */
.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* IMAGEN IZQUIERDA */
.blog-post-card img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform .3s ease;
}

/* Zoom suave */
.blog-post-card:hover img {
    transform: scale(1.05);
}

/* CONTENIDO A LA DERECHA */
.post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TÍTULO */
.post-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

/* FECHA */
.post-date {
    font-size: .85rem;
    color: #777;
    margin-bottom: .6rem;
}

/* EXCERPT */
.post-excerpt {
    font-size: 1rem;
    color: #444;
    margin-bottom: .8rem;
}

/* BADGE DE CATEGORÍA */
.post-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 20px;
    background: #e8f0ff;
    color: #1a4db8;
    width: fit-content;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .blog-post-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .blog-post-card img {
        width: 100%;
        height: 200px;
    }

    .post-content {
        align-items: center;
    }
}