.projects {
    padding: 40px 12%;
    background: #ffffff;
    border-bottom: 18px solid #ffc10d;
}

.projects h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-family: 'Bakbak One';
}

.btn-load-more{
    background: #fcc144;
    border: none;
    border-radius: 3px;
    padding: 11px;
    font-family: 'Sarala';
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.project-image {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    font-family: 'Sarala';
    font-size: 15px;
}
.filter-btn.active,
.filter-btn:hover {
  background: #333;
  color: #fff;
}

/* Grid cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 25px;
    padding: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-5px);background: #fcc144; }

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  
}
.card h3 {
    margin: 10px;
    font-size: 17px;
    font-family: 'Sarala';
    line-height: 20px;
    font-weight: 599;
    padding: 0px 8px;
}
.card p {
  margin: 0 10px 15px;
  color: #555;
  font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 80px 20px 20px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    background: #f1f1f1;
    margin: auto;
    max-width: 900px;
    border-radius: 8px;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.close {
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}
.close:hover { color: #000; }

/* Ficha proyecto dentro del modal */
.project-card {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}
.project-header h3 { margin: 0; }
.project-header .tag {
    background: #57565b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 1.25rem;
    font-family: 'Sarala';
    font-weight: bold;
    text-transform: uppercase;
}
.project-body p {
  margin: 6px 0;
  font-size: 16px;
  color: #444;
}
.project-img img {
  width: 100%;
  border-radius: 6px;
}

.imagen-obra {
    width: 410px;
}

.project-body {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 0px 21px;
    border-radius: 5px;
    background: white;padding-top: 10px;
}


@media only screen and (max-width: 600px) {
    .projects {
        padding: 50px 20px;
        background: #efefef;
        border-bottom: 18px solid #ffc10d;
    }
.card h3 {
    margin: 10px;
    font-size: 20px;
    font-family: 'Sarala';
    line-height: 27px;
    font-weight: 599;
    padding: 0px 8px;
}
.project-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.imagen-obra {
    width: 286px;
}
.filter-btn {
    padding: 10px 23px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    font-family: 'Sarala';
    font-size: 17px;
}
.modal {padding: 14px 13px 14px 13px;}
.project-image {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 260px;
}
}

@media only screen and (max-width: 1350px) {
    .projects{ padding: 40px 5%;
}

}


    









