@font-face {
  font-family: "Black Mango";
  src: url("fonts/Black Mango Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Avenir";
  src: url("fonts/avenir_roman_12.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --forest-green: #62706b;
  --sand: #c8c1b5;
  --creamy: #eee9e4;
  --elegant-grey: #9d9d9c;
  --black: #000000;
  --white: #ffffff;
  --font-title: "Black Mango", serif;
  --font-body: "Avenir", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background-color: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid var(--creamy);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 80px;
  z-index: 1001;
}

.logo > img {
  height: 100%;
  width: auto;
}

.nav {
  position: fixed;
  top: 0;
  right: -450px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background-color: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-shadow: -5px 0px 20px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav.active {
  right: 0;
  z-index: 1001;
}

.nav a {
  margin: 20px 0;
  font-size: 32px;
  font-weight: normal;
  color: var(--white);
  text-decoration: none;
  transform: translateX(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav.active a {
  transform: translateX(0);
  opacity: 1;
}

.nav.active a:nth-of-type(1) {
  transition-delay: 0.2s;
}
.nav.active a:nth-of-type(2) {
  transition-delay: 0.3s;
}
.nav.active a:nth-of-type(3) {
  transition-delay: 0.4s;
}
.nav.active a:nth-of-type(4) {
  transition-delay: 0.5s;
}
.hamburger-btn {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--black);
  margin: 5px 0;
  transition: all 0.4s ease-in-out;
}

.close-nav-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 45px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}

.close-nav-btn:hover {
  transform: scale(1.1);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding: 100px 0;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-family: var(--font-title);
  font-weight: normal;
  font-size: 62px;
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}
.hero p {
  font-size: 18px;
  color: var(--elegant-grey);
  margin-bottom: 30px;
  color: var(--creamy);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.cta-button {
  display: inline-block;
  background-color: var(--forest-green);
  color: var(--white);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: normal;
  border-radius: 5px;
  transition: background-color 0.3s;
  margin-top: 30px;
}
.cta-button:hover {
  background-color: #4a5a54;
}
section {
  padding: 80px 0;
}
section h2 {
  font-family: var(--font-title);
  font-weight: normal;
  font-size: 42px;
  text-align: center;
  margin-bottom: 40px;
}
.about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
}

#quienes-somos {
  background-color: var(--forest-green);
  color: var(--creamy);
}

#quienes-somos h2 {
  color: var(--white);
}

.feature-section {
  display: flex;
  background-color: var(--creamy);
  min-height: 450px;
  padding: 0;
}

.feature-image,
.feature-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-image {
  background-size: cover;
  background-position: center;
}

.feature-content {
  padding: 40px;
}

.feature-content .card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 5px;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-content .card h3 {
  font-family: var(--font-title);
  font-weight: normal;
  font-size: 28px;
  margin-bottom: 15px;
}

.feature-section.reversed {
  flex-direction: row-reverse;
}

#valores.values {
  position: relative;
  padding: 100px 20px;
  color: var(--white);
  background-image: url("img/fondo.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#valores.values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

#valores.values .container {
  position: relative;
  z-index: 2;
}

#valores.values h2 {
  color: var(--white);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.values-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.fila {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.fila-1 .value-item {
  flex-basis: 300px;
  flex-grow: 0;
  flex-shrink: 0;
}

.fila-2 .value-item {
  flex-basis: 300px;
  flex-grow: 0;
  flex-shrink: 0;
}

.value-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.value-item h4 {
  font-family: var(--font-title);
  font-weight: normal;
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--white);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.value-item p {
  color: var(--creamy);
  text-align: center;
}

.contact {
  background-color: var(--sand);
  padding: 80px 0 100px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
}

.contact-details svg {
  color: var(--forest-green);
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-details a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details a:hover {
  color: var(--forest-green);
}

.map-container {
  width: 100%;
  padding-top: 75%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.google-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  color: var(--white);
  padding: 20px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
}

.whatsapp-button svg {
  margin-right: 12px;
}

.contact-whatsapp p {
  margin-top: 20px;
  max-width: 350px;
  color: #333;
  line-height: 1.5;
}

.footer {
  background-color: var(--black);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}
.footer .logo {
  height: 90px;
  margin: 0 auto 15px auto;
}
.footer p {
  color: var(--elegant-grey);
}

.services-section {
  padding: 80px 0;
  background-color: var(--white);
}

.services-section h2 {
  font-family: var(--font-title);
  font-weight: normal;
  font-size: 42px;
  text-align: center;
  margin-bottom: 50px;
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  flex-basis: 400px;
  max-width: 450px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.service-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-content {
  padding: 30px;
  text-align: center;
}

.service-content h3 {
  font-family: var(--font-title);
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: normal;
  color: var(--black);
}

.service-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--forest-green);
}

@media (max-width: 768px) {
  .logo {
    height: 65px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .mission-vision .container {
    flex-direction: column;
  }
  section {
    padding: 60px 0;
  }
  section h2 {
    font-size: 34px;
  }
  .feature-section,
  .feature-section.reversed {
    flex-direction: column;
    position: relative;
    padding: 80px 20px;
    min-height: auto;
  }

  .feature-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(0.5);
  }

  .feature-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
  }

  .feature-content .card {
    background-color: transparent;
    box-shadow: none;
    color: var(--white);
    padding: 0;
    text-align: center;
  }

  .feature-content .card h3 {
    color: var(--white);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-whatsapp {
    padding-top: 0;
  }

  .fila .value-item {
    flex-basis: 100%;
  }
}
