/*
 * Local Content System
 * Base visual para entradas y proyectos JSON + HTML.
 * Pensado para webs con Bootstrap 4 o 5 ya cargado.
 */

.local-content-grid,
.proyectos-servicio,
.blog-listado {
    --lcs-accent: #e9732f;
    --lcs-ink: #1f2933;
    --lcs-muted: #64748b;
    --lcs-border: #e5e7eb;
    --lcs-soft: #f8fafc;
}

.proyecto-servicio-card,
.blog-card {
    border: 1px solid var(--lcs-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.proyecto-servicio-card:hover,
.proyecto-servicio-card:focus-visible,
.blog-card:hover,
.blog-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(233, 115, 47, .45);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .13);
}

.proyecto-servicio-card__imagen,
.blog-card__imagen {
    aspect-ratio: 4 / 3;
    background: var(--lcs-soft, #f8fafc);
    overflow: hidden;
}

.proyecto-servicio-card__imagen img,
.blog-card__imagen img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.proyecto-servicio-card .card-title,
.blog-card .card-title {
    color: var(--lcs-ink, #1f2933);
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: .65rem;
}

.proyecto-servicio-card .card-text,
.blog-card .card-text {
    color: var(--lcs-muted, #64748b);
    line-height: 1.6;
}

.proyecto-servicio-card__enlace,
.blog-card__enlace {
    color: var(--lcs-accent, #e9732f);
    font-weight: 700;
}

.filtro-proyectos,
.filtro-blog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
}

.filtro-proyectos button,
.filtro-blog button {
    border: 1px solid var(--lcs-border, #e5e7eb);
    border-radius: 999px;
    background: #fff;
    color: var(--lcs-ink, #1f2933);
    padding: .5rem .9rem;
    font: inherit;
    font-weight: 600;
}

.filtro-proyectos button.is-active,
.filtro-blog button.is-active,
.filtro-proyectos button:hover,
.filtro-blog button:hover {
    border-color: var(--lcs-accent, #e9732f);
    background: var(--lcs-accent, #e9732f);
    color: #fff;
}

.blog-details .post-img,
.local-content-detail .post-img {
    border-radius: 8px;
    overflow: hidden;
    background: var(--lcs-soft, #f8fafc);
}

.blog-details .post-img img,
.local-content-detail .post-img img {
    width: 100%;
    display: block;
}

.blog-details .content,
.local-content-detail .content {
    color: var(--lcs-ink, #1f2933);
    line-height: 1.75;
}

.blog-details .content h2,
.local-content-detail .content h2 {
    margin-top: 2.1rem;
    margin-bottom: .85rem;
    font-size: 1.55rem;
    line-height: 1.3;
}

.blog-details .content h3,
.local-content-detail .content h3 {
    margin-top: 1.6rem;
    margin-bottom: .7rem;
    font-size: 1.25rem;
}

.entrada-imagen,
.proyecto-imagen {
    margin: 1.6rem 0;
}

.entrada-imagen img,
.proyecto-imagen img {
    border-radius: 8px;
}

.entrada-imagen figcaption,
.proyecto-imagen figcaption {
    margin-top: .55rem;
    color: var(--lcs-muted, #64748b);
    font-size: .92rem;
}

.entrada-cta,
.local-content-cta {
    border: 1px solid rgba(233, 115, 47, .28);
    border-radius: 8px;
    background: #fff7ed;
    padding: 1.5rem;
}

.proyecto-acciones,
.local-content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.25rem 0;
}

.proyecto-acciones__boton,
.local-content-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: 6px;
    padding: .7rem 1rem;
    text-decoration: none;
    font-weight: 700;
}

.proyecto-acciones__boton--galeria {
    background: var(--lcs-ink, #1f2933);
    color: #fff;
}

.proyecto-acciones__boton--contacto,
.btn-simple-naranja {
    background: var(--lcs-accent, #e9732f);
    color: #fff;
}

.geo-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.geo-elemento-galeria {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--lcs-soft, #f8fafc);
    aspect-ratio: 4 / 3;
}

.geo-elemento-galeria img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

/* Taxi Salvia: tarjetas de noticias */
.taxi-news-grid .blog-item {
    display: flex;
}

.taxi-news-grid .blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-color: #e7e1dc;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, .08);
}

.taxi-news-grid .blog-card > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    -o-object-fit: cover;
       object-fit: cover;
    background: #f8fafc;
}

.taxi-news-grid .blog-content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem 1.4rem 1.4rem;
}

.taxi-news-grid .blog-title {
    margin: 0 0 .7rem;
    color: #1f2933;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
}

.taxi-news-grid .blog-summary {
    margin: 0;
    color: #64748b;
    font-size: .96rem;
    line-height: 1.65;
}

.taxi-news-grid .blog-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: .62rem .95rem;
    color: #fff;
    background: #e9732f;
    border: 1px solid #e9732f;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.taxi-news-grid .blog-btn:hover,
.taxi-news-grid .blog-btn:focus-visible {
    color: #fff;
    background: #cf5e20;
    border-color: #cf5e20;
    text-decoration: none;
    transform: translateY(-1px);
}

.taxi-news-grid .blog-card:hover > img {
    -webkit-filter: saturate(1.05);
            filter: saturate(1.05);
}

@media (max-width: 767.98px) {
    .taxi-news-grid .blog-content {
        padding: 1.15rem 1.1rem 1.2rem;
    }

    .taxi-news-grid .blog-title {
        font-size: 1.08rem;
    }
}
@media (max-width: 575.98px) {
    .proyecto-acciones,
    .local-content-actions {
        flex-direction: column;
    }

    .proyecto-acciones__boton,
    .local-content-actions a {
        width: 100%;
    }
}

.blog-entry-sidebar {
    margin-top: 3.6rem;
}

.blog-contact-card {
    position: -webkit-sticky;
    position: sticky;
    top: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(233, 115, 47, .25);
    border-radius: 10px;    
}

.blog-contact-card .img-telefono {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
}

.blog-contact-card .img-telefono a {
    display: block;
    width: 100%;
}

.blog-contact-card .img-telefono img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
}

.blog-contact-card h2 {
    margin: 0 0 .7rem;
    color: #1f2933;
    font-size: 1.25rem;
    line-height: 1.3;
}

.blog-contact-card p {
    margin: 0 0 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

.blog-contact-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1rem;
    color: #fff;
    background: #e9732f;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.blog-contact-card__link:hover,
.blog-contact-card__link:focus-visible {
    color: #fff;
    background: #cf5e20;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .blog-entry-sidebar {
        margin-top: 1.5rem;
    }

    .blog-contact-card {
        position: static;
    }
}