/* ============================================
   InmoPanama — Blog nativo (ES + EN)
   Servido desde /assets-new/css/blog.css
   ============================================ */

/* ── Hero subtitle ───────────────────────────────────────────── */
.ib-blog-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    margin-top: 8px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Índice: sección contenedora ────────────────────────────── */
.ib-blog-index-section {
    padding: 56px 0 72px;
}

/* ── Grid de cards ──────────────────────────────────────────── */
.ib-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* ── Card individual ────────────────────────────────────────── */
.ib-blog-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s, transform .18s;
}
.ib-blog-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    transform: translateY(-3px);
}

/* Imagen de la card */
.ib-blog-card__img-wrap {
    display: block;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}
.ib-blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.ib-blog-card:hover .ib-blog-card__img {
    transform: scale(1.04);
}

/* Placeholder cuando no hay imagen */
.ib-blog-card__img--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #b0b8c4;
}

/* Cuerpo de la card */
.ib-blog-card__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Categoría · Fecha */
.ib-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: #7a8290;
}
.ib-blog-card__cat {
    font-weight: 600;
    color: var(--ib-amarillo, #F5B91C);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .72rem;
}
.ib-blog-card__sep { opacity: .5; }

/* Título de la card */
.ib-blog-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--ib-texto-oscuro, #1a1a1a);
}
.ib-blog-card__title a {
    color: inherit;
    text-decoration: none;
}
.ib-blog-card__title a:hover { color: var(--ib-amarillo, #F5B91C); }

/* Excerpt */
.ib-blog-card__excerpt {
    font-size: .875rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enlace "Leer más" */
.ib-blog-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ib-amarillo, #F5B91C);
    text-decoration: none;
    transition: gap .15s;
}
.ib-blog-card__link:hover { gap: 8px; }

/* ── Artículo individual ─────────────────────────────────────── */
.ib-blog-post-section {
    padding: 48px 0 80px;
}

/* Imagen hero */
.ib-blog-post__hero-img-wrap {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 420px;
}
.ib-blog-post__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Meta línea */
.ib-blog-post__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .82rem;
    color: #7a8290;
    margin-bottom: 24px;
}
.ib-blog-post__cat {
    font-weight: 700;
    color: var(--ib-amarillo, #F5B91C);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .74rem;
}
.ib-blog-post__sep { opacity: .45; }
.ib-blog-post__lang-switch {
    color: #555;
    font-weight: 600;
    text-decoration: none;
}
.ib-blog-post__lang-switch:hover { color: var(--ib-amarillo, #F5B91C); }

/* Cuerpo del artículo: tipografía editorial */
.ib-blog-post__body {
    font-size: 1rem;
    line-height: 1.8;
    color: #2c2c2c;
}
.ib-blog-post__body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ib-texto-oscuro, #1a1a1a);
    margin: 36px 0 14px;
    line-height: 1.3;
}
.ib-blog-post__body p {
    margin: 0 0 18px;
}
.ib-blog-post__body ul,
.ib-blog-post__body ol {
    margin: 0 0 20px 1.5rem;
    padding: 0;
}
.ib-blog-post__body li {
    margin-bottom: 8px;
}
.ib-blog-post__body strong { color: #111; }

/* Blockquote editorial */
.ib-blog-quote {
    border-left: 4px solid var(--ib-amarillo, #F5B91C);
    background: #fafaf8;
    margin: 28px 0;
    padding: 16px 22px;
    border-radius: 0 8px 8px 0;
}
.ib-blog-quote p {
    margin: 0;
    font-style: italic;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

/* Enlace "Volver al blog" */
.ib-blog-post__back {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}
.ib-blog-post__back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: color .15s;
}
.ib-blog-post__back a:hover { color: var(--ib-amarillo, #F5B91C); }

/* ── Sección de contacto del blog ───────────────────────────── */
.ib-blog-contact-section {
    padding: 0 0 72px;
    background: #fafaf8;
}

/* Mensajes de éxito / error del form */
.ib-blog-lead-msg {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: .92rem;
    line-height: 1.5;
    margin-bottom: 20px;
}
.ib-blog-lead-msg--ok {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.ib-blog-lead-msg--err {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ib-blog-grid { grid-template-columns: 1fr; }
    .ib-blog-card__img-wrap { height: 200px; }
    .ib-blog-post__hero-img-wrap { max-height: 240px; }
    .ib-blog-post__body h2 { font-size: 1.2rem; }
}
