.presentacion-section {
  margin-bottom: 50px;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary-color);
}

.presentacion-texto {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: justify;
}

.presentacion-texto:last-child {
  margin-bottom: 0;
}

.consensos-section {
  margin-bottom: 50px;
}

.consensos-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 30px;
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.consensos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.consenso-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  background-color: white;
  position: relative;
  aspect-ratio: 3/4;
  padding: 6px;
}

.consenso-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(38, 179, 180, 0.15);
  text-decoration: none;
}

.consenso-image {
  width: 100%;
  height: calc(100% - 12px);
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  border-radius: 6px;
}

.consenso-link:hover .consenso-image {
  transform: scale(1.02);
}

.construccion-message {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  width: 100%;
}

.construccion-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid #e9ecef;
  max-width: 400px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.construccion-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.construccion-icon {
  color: #ffc107;
  margin-bottom: 20px;
  opacity: 0.8;
}

.construccion-card h3 {
  color: var(--text-color);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.consenso-link::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 6px;
  pointer-events: none;
}

.consenso-link:hover::after {
  opacity: 0.1;
}

@media screen and (max-width: 1200px) {
  .consensos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1000px;
    padding: 0 15px;
  }

  .consenso-link {
    aspect-ratio: 3/4;
    padding: 5px;
  }

  .consenso-image {
    height: calc(100% - 10px);
    border-radius: 5px;
  }

  .consenso-link::after {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 5px;
  }
}

@media screen and (max-width: 900px) {
  .consensos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 750px;
    padding: 0 20px;
  }
}

@media screen and (max-width: 768px) {
  .presentacion-section {
    padding: 25px 20px;
    margin-bottom: 40px;
  }

  .presentacion-texto {
    font-size: 15px;
  }

  .consensos-title {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .consensos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 25px;
  }

  .consenso-link {
    aspect-ratio: 3/4;
    padding: 5px;
  }

  .consenso-image {
    height: calc(100% - 10px);
    border-radius: 5px;
  }

  .consenso-link::after {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 5px;
  }

  .construccion-card {
    padding: 30px 20px;
    margin: 0 20px;
  }

  .construccion-card h3 {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .presentacion-section {
    padding: 20px 15px;
  }

  .presentacion-texto {
    font-size: 14px;
  }

  .consensos-title {
    font-size: 16px;
  }

  .consensos-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 30px;
  }

  .consenso-link {
    aspect-ratio: 4/5;
    padding: 6px;
    margin: 0 5px;
  }

  .consenso-image {
    height: calc(100% - 12px);
    border-radius: 6px;
  }

  .consenso-link::after {
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 6px;
  }

  .construccion-card {
    padding: 25px 15px;
    margin: 0 15px;
  }

  .construccion-card h3 {
    font-size: 15px;
  }

  .construccion-icon svg {
    width: 48px;
    height: 48px;
  }
}

.consenso-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@keyframes imageHover {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}

.consenso-link:hover .consenso-image {
  animation: imageHover 0.3s ease forwards;
}
