* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  transition: height 0.3s ease;
}

.header.scrolled .logo {
  height: 50px;
}

main {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 0;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 3;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 4;
  width: 90%;
  max-width: 900px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slide-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
  line-height: 1em;
}

.slide-title.md {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.slide-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  margin: 0.5rem 0;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 2rem;
}

.slider-btn.next {
  right: 2rem;
}

.slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  width: 40px;
  border-radius: 6px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1f6f9c;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1f6f9c, #2989c0);
  border-radius: 2px;
}

.content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #555;
}

.partnerships-list,
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.partnerships-list li,
.benefits-list li {
  padding: 1rem 0 1rem 2.5rem;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  border-bottom: 1px solid #e0e0e0;
}

.partnerships-list li:last-child,
.benefits-list li:last-child {
  border-bottom: none;
}

.partnerships-list li::before,
.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #1f6f9c, #2989c0);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.document-download {
  text-align: center;
  padding: 3rem 2rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #1f6f9c, #2989c0);
  color: white;
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(31, 111, 156, 0.3);
  white-space: nowrap;
  width: fit-content;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(31, 111, 156, 0.4);
  background: linear-gradient(135deg, #2989c0, #1f6f9c);
}

.btn-secondary span {
  flex: 1;
}

#areas {
  background-color: #e9e9e9;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.area-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(31, 111, 156, 0.15);
  border-color: #1f6f9c;
}

.area-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: grayscale(0.2);
}

.area-card h3 {
  color: #1f6f9c;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.area-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 4 / 3;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 70%,
    transparent 100%
  );
  color: white;
  transition: all 0.3s ease;
}

.project-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.project-details {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.separator {
  border-radius: 50%;
  width: 0.3rem;
  height: 0.3rem;
  background: #ccc;
}

.project-description {
  font-size: 1rem;
  margin: 0;
  padding: 0;
  color: white !important;
  opacity: 0.9;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 5rem;
}

.team-member {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(31, 111, 156, 0.15);
}

.team-member img {
  width: 100%;
  height: fit-content;
  object-fit: cover;
  object-position: top center;
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-member h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: #333;
  font-weight: 600;
  line-height: 1em;
}

.team-role {
  color: #1f6f9c !important;
  font-weight: 500;
  font-size: 1rem !important;
  line-height: 1em !important;
  margin: 0;
}

footer {
  background: linear-gradient(135deg, #1a5a7a, #1f6f9c);
  padding: 3rem 2rem;
  color: white;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: 60px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

footer h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-info p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white !important;
}

.contact-email img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.contact-email .contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-details h2,
.contact-email a {
  color: white !important;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .footer-content {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .logo {
    height: 50px;
  }

  .header.scrolled .logo {
    height: 40px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .slider-btn.prev {
    left: 1rem;
  }

  .slider-btn.next {
    right: 1rem;
  }

  .slider-indicators {
    bottom: 1rem;
  }

  .content {
    padding: 3rem 1.5rem;
  }

  .projects-grid,
  .team,
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 2rem;
  }

  .slide-subtitle {
    font-size: 1rem;
  }

  .content h2 {
    font-size: 1.8rem;
  }

  .area-card,
  .team-member {
    padding: 1.5rem;
  }
}

.nav ul {
  display: flex;
  gap: 1.5rem;
}

.nav ul li {
  list-style: none;
}

.nav ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
  font-size: 0.8rem;
}

.nav ul li a:hover {
  color: #1f6f9c;
  font-weight: 600;
}

.internal-page {
  margin-top: 140px;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.project {
  border-radius: 16px;
  padding: 28px;
  background: white;
  box-shadow: 0 8px 30px rgba(31, 111, 156, 0.15);
}

.project h3 {
  font-size: 1.5rem;
}

.project .project-details-icon {
  display: flex;
  justify-items: center;
  align-items: center;
  gap: 0.5rem;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 24px;
  flex-wrap: wrap;
}

.project-type {
  background-color: paleturquoise;
  padding: 4px 8px;
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.section-transparencia {
  margin-top: 4rem;
  margin-inline: calc(50% - 50vw);
  padding: 3.75rem max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  background: #f1f3f5;
}

.section-transparencia > div {
  display: grid;
  grid-template-columns: minmax(0, 680px) auto;
  grid-template-areas:
    "eyebrow button"
    "title button"
    "text button";
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 3rem;
}

.section-transparencia h4 {
  grid-area: eyebrow;
  margin: 0;
  color: #1f6f9c;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-transparencia h2 {
  grid-area: title;
  max-width: 620px;
  margin: 0;
  padding: 0;
  color: #092b52;
  font-size: clamp(2.35rem, 4.2vw, 3.35rem);
  font-weight: 700;
  line-height: 0.98;
}

.section-transparencia h2::after {
  content: none;
}

.section-transparencia p {
  grid-area: text;
  max-width: 670px;
  margin: 0;
  color: #55799d;
  font-size: 1.06rem;
  line-height: 1.7;
}

.btn-primary {
  grid-area: button;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  background: #092b52;
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary:hover {
  background: #1f6f9c;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(9, 43, 82, 0.18);
}

@media (max-width: 850px) {
  .project-links {
    flex-direction: column;
  }

  .header-content {
    flex-direction: column;
    justify-content: center;
  }

  .btn-secondary {
    white-space: wrap;
    word-break: break-word;
    width: 100%;
  }

    .section-transparencia {
    padding-block: 3rem;
  }

  .section-transparecia > div,
  .section-transparencia > div {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "text"
      "button";
    justify-content: stretch;
    gap: 1rem;
  }

  .section-transparecia h2,
  .section-transparencia h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.05;
  }

  .btn-primary {
    width: fit-content;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
    .section-transparencia {
    padding-inline: 1.5rem;
  }

  .btn-primary {
    width: 100%;
    white-space: normal;
  }
}
