:root {
  --primary: #176f9d;
  --accent: #f7c325;
  --light: #fffbe9;
  --dark: #183b2e;
  --gray: #f2f2f2;
  --radius: 12px;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--gray);
  color: var(--dark);
  scroll-behavior: smooth;
}
.header-logo {
  height: 48px;
  margin: 8px 0;
}
nav {
  align-content: center;
  background: var(--primary);
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;
  /* padding: 0 32px; */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}
nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 64px;
}
nav ul li {
  margin-left: 24px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--accent);
  color: var(--dark);
}
.hero {
  background: url('assets/slide1.jpg') center/cover no-repeat;
  color: white;
  padding: 120px 20px 120px 20px;
  text-align: center;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: 2.7rem;
  margin: 0 0 18px 0;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hero p {
  font-size: 1.8rem;
  margin-bottom: 26px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.cta-button {
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: var(--radius);
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.09);
  margin-top: 12px;
  display: inline-block;
}
.cta-button:hover {
  background: #ffe082;
}
section {
  padding: 40px 16px 10px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
section h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 700;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.feature {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(23,111,61,0.10);
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  text-align: center;

  img {
    width: 100%;
    height: 180px; /* Ajusta según lo que necesites */
    object-fit: cover;   /* Recorta la imagen para cubrir el área */
    border-top-left-radius: var(--radius);  /* Opcional: esquinas redondeadas */
    border-top-right-radius: var(--radius);  /* Opcional: esquinas redondeadas */
    display: block;
    margin-bottom: 12px; /* Espacio debajo de la imagen */
  }
}
.feature-image {
  font-size: 2.3rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 32px 18px 0px;
}
.feature-desc {
  font-size: 1rem;
  color: #2e4835;
  opacity: 0.95;
  padding: 0px 18px 32px;
}
.about-img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(23,111,61,0.09);
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-form {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(23,111,61,0.06);
  max-width: 460px;
  margin: 0 auto;
  padding: 32px 24px;
}
.contact-form input, .contact-form textarea {
  width: calc(100% - 24px);
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.contact-form button {
  width: 100%;
  margin-top: 10px;
}
footer {
  background: var(--primary);
  color: #fff;
  padding: 32px 10px 20px 10px;
  text-align: center;
  font-size: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 48px;
}
.footer-links a {
  color: #ffe082;
  margin: 0 8px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.phone-button {
  background-color: #477FC7;
  border: 3px solid white;
  border-radius: 12px;
  color: white;
  margin: 0px 10px;
  padding: 10px 20px;

  a {
    color: white;
    text-decoration: none;
  }
}

.whatsapp-button {
  background-color: #4CC959;
  border: 3px solid white;
  border-radius: 12px;
  color: white;
  margin: 0px 10px;
  padding: 10px 20px;

  a {
    color: white;
    text-decoration: none;
  }

}

.location {
  align-items: center;
  display: flex;
  font-size: 1.2rem;
  justify-content: center;
  margin-top: 30px;
}

.maps-link {
  background-color: #DD7248;
  border: 3px solid white;
  border-radius: 12px;
  color: white;
  display: flex;
  margin: 0px 10px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  * {
    margin: 0px 5px
  }
}

@media (max-width: 900px) {
  .features {
    align-content: center;
    flex-direction: column;
    gap: 20px;
  }
  section {
    padding: 40px 6px 10px 6px;
  }
}
@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }
  .hero {
    padding: 90px 8px 90px 8px;
  }
  .about-img {
    max-width: 95vw;
  }
}
@media (max-width: 550px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  section h2 {
    font-size: 1.4rem;
  }
  .feature-title {
    font-size: 1rem;
  }
}