.featured-projects {
    background: #ffffff;
    padding: 90px 0;
}

.project-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    height: 100%;
    transition: 0.2s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #cfcfcf;
}

.project-card-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.project-card-body {
    padding: 26px;
}

.project-category {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.project-card p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.8;
}

.projects-hero {
    padding: 150px 0 70px 0;
    background:
        linear-gradient(rgba(255,255,255,0.84), rgba(255,255,255,0.88)),
        url('../images/proyectos/hero-herreria.jpg') center center / cover no-repeat;
    border-bottom: 1px solid #ececec;
}

.projects-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.projects-subtitle {
    max-width: 760px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 0;
    font-size: 1.08rem;
}

.projects-highlight {
    padding: 90px 0 70px 0;
    background: #ffffff;
}

.highlight-box {
    border: 1px solid #dddddd;
    background: #fff;
    height: 100%;
}

.highlight-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.highlight-content {
    padding: 28px;
}

.highlight-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 14px;
}

.highlight-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

.project-carousel,
.project-carousel .carousel-inner,
.project-carousel .carousel-item,
.project-carousel img {
    height: 100%;
    min-height: 100%;
}

.project-carousel {
    border: 1px solid #dddddd;
    height: 100%;
}

.project-carousel img {
    object-fit: cover;
    min-height: 465px;
}

.projects-grid-section {
    background: #f7f7f7;
    padding: 20px 0 90px 0;
}

@media (max-width: 991.98px) {
    .highlight-image {
        height: 280px;
    }

    .project-carousel img {
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .project-card-image {
        height: 220px;
    }

    .highlight-image {
        height: 220px;
    }

    .project-carousel img {
        min-height: 240px;
    }
}
