/* ==============================
   WRAPPER
============================== */
.bcc-wrapper {
    width: 100%;
}

/* ==============================
   GRID
============================== */
.bcc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==============================
   CARD
============================== */
.bcc-card {
    background: #f3f3f3;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.bcc-card:hover {
    transform: translateY(-5px);
}

.bcc-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* ==============================
   IMAGEN
============================== */
.bcc-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.bcc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==============================
   OVERLAY
============================== */
.bcc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bcc-overlay h3 {
    color: #fff;
    font-size: 18px;
    text-align: center;
    margin: 0;
}

/* ==============================
   CONTENIDO
============================== */
.bcc-content {
    padding: 15px;
}

.bcc-content p {
    font-size: 14px;
    color: #5b4b6b;
    margin-bottom: 10px;
}

.bcc-more {
    color: #2f7d6d;
    font-weight: bold;
    text-decoration: underline;
}

/* ==============================
   BOTÓN CARGAR MÁS
============================== */
.bcc-mas-leidos-container {
    width: 100%;
    text-align: center;
}

.bcc-load-more-wrap {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.bcc-load-more-btn {
    display: inline-block;
    background-color: #d8d0e8;
    color: #555;
    border: none;
    padding: 0.7rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.bcc-load-more-btn:hover {
    background-color: #c5bad8;
}

.bcc-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==============================
   DATOS POST
============================== */
.entry-content .bcc-datos-post {
    color: #ffffff !important;
}

/* ==============================
   BREADCRUMB
============================== */
.bcc-breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ffffff;
}

.bcc-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.bcc-breadcrumb a:hover {
    text-decoration: underline;
}

.bcc-breadcrumb span {
    color: #ffffff;
    font-weight: 600;
}

/* ==============================
   CARDS MÓVIL — CONTENEDOR
============================== */
.bcc-mobile-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==============================
   CARDS MÓVIL — CARD
============================== */
.bcc-card-mobile {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bcc-card-mobile:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ==============================
   CARDS MÓVIL — INNER (DIV — no hereda estilos de <a>)
============================== */
.bcc-card-mobile-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* ==============================
   CARDS MÓVIL — IMAGEN IZQUIERDA
============================== */
.bcc-card-mobile-img {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #333 !important;
}

.bcc-card-mobile-img a {
    display: block !important;
    width: 100% !important;
    height: 90px !important;
    flex-direction: unset !important;
}

.bcc-card-mobile-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.bcc-card-mobile-img-placeholder {
    width: 100%;
    height: 100%;
    background: #ccbbdd;
}

/* ==============================
   CARDS MÓVIL — CONTENIDO DERECHA
============================== */
.bcc-card-mobile-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
}

/* ==============================
   CARDS MÓVIL — TÍTULO
============================== */
.bcc-card-mobile-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.bcc-card-mobile-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    display: inline !important;
    flex-direction: unset !important;
}

/* ==============================
   CARDS MÓVIL — EXTRACTO
============================== */
.bcc-card-mobile-excerpt {
    font-size: 12px !important;
    color: #5b4b6b !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
}

/* ==============================
   CARDS MÓVIL — LEER MÁS
============================== */
.bcc-card-mobile-more {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #2f7d6d !important;
    text-decoration: underline !important;
    margin-top: 4px !important;
    display: inline-block !important;
    width: fit-content !important;
    flex-direction: unset !important;
}

/* ==============================
   RESPONSIVE — TABLET Y DESKTOP
============================== */
@media (min-width: 768px) {
    .bcc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bcc-only-mobile {
        display: none;
    }
}

@media (min-width: 1024px) {
    .bcc-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bcc-img {
        height: 220px;
    }
}