body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #111;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.proyecto img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}


.hero {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.hero-container {
  position: relative;
  height: 100%;
}

.hero-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(122, 122, 122, 0.26);
  z-index: 1;
}

.hero-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: white;
  flex-direction: row;
  gap: 10px;
}

.hero-text .titulo {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  flex: 1;
}

.hero-text .info {
  text-align: left;
  padding-left: 40px;
  flex: 2;
}

.hero-text .info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-text .info p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.grid-2-columns {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: center;
}

.grid-2-columns .text {
  grid-column: span 6;
}

.grid-2-columns .image {
  grid-column: span 6;
}

.grid-2-columns.reverse .text {
  order: 2;
}

.grid-2-columns.reverse .image {
  order: 1;
}


.proyecto.gris {
  background-color: #111;
  color: white;
}

.proyecto.blanco {
  background-color: #fff;
  color: #111;
}

.proyecto.conafor {
  background-color: #1c1c1c;
  color: white;
  padding: 60px 20px;
  text-align: left;
}


.conafor-custom {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.conafor-custom .text {
  width: 100%;
}

.conafor-custom .text h4 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}
.conafor-custom h3 {
  font-size: 32px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.conafor-custom .text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.conafor-custom .image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  padding: 0px;
  max-width: 700px;
  width: 100%;
}

.image-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (min-width: 769px) {
  .hero-overlay::before {
    clip-path: polygon(100% 100%, 100% 30%, 0 100%);
  }
}
/*100% 100%, 100% 0, 0 100%*/
@media (max-width: 768px) {
  .grid-2-columns {
    grid-template-columns: 1fr;
  }

  .grid-2-columns .text,
  .grid-2-columns .image {
    grid-column: span 12;
    order: unset !important;
  }

  .hero {
    position: relative;
    height: 100vh;
    max-height: 600px;
    overflow: hidden;
  }

  .hero-container {
    height: 100%;
  }

  .hero-container img {
    height: 100%;
    object-fit: cover;
  }

  .hero-overlay {
    height: 100%;
  }

  .hero-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    padding: 0;
    color: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: none;
  }

  .hero-text .titulo {
    font-size: 32px;
    margin: 0;
    padding: 0;
  }

  .hero-text .info {
    padding-left: 0;
    text-align: left;
  }

  .hero-text .info h4 {
    font-size: 16px;
    color: white;
  }

  .hero-text .info p {
    font-size: 14px;
    color: white;
  }

  .hero-overlay::before {
    display: none;
  }
}

.seccion-uno .grid-2-columns {
  align-items: center;
  padding: 60px 0;
}

.seccion-uno .text {
  text-align: justify;
  padding: 0 20px;
}

.seccion-uno h3 {
  font-size: 32px;
  margin-bottom: 25px;
  line-height: 1.3;
}

.seccion-uno p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.seccion-uno .image img {
  width: 100%;
  max-width: 550px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .seccion-uno .text {
    text-align: left;
  }

  .seccion-uno h3 {
    font-size: 26px;
  }

  .seccion-uno p {
    font-size: 16px;
  }

  .seccion-uno .image img {
    max-width: calc(100% - 40px); 
    margin: 0 20px; 
  }
}