:root {
  --primary-color: #ffc200;
  --secondary-color: #ffd752;
  --light-gray-color: #f4f4f4;
  --dark-gray-color: #333;
  --white-color: #fff;
  --font-family: "Poppins", sans-serif;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--dark-gray-color);
  background-color: var(--white-color);
}

header {
  background-color: var(--white-color);
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark-gray-color);
  font-weight: 400;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #02594a; /* Un tono más oscuro del secundario */
}

section {
  padding: 5rem 2rem;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--dark-gray-color);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.light-bg {
  background-color: var(--light-gray-color);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 6rem 4rem;
  gap: 2rem;
  background-color: #f9f9f9;
}

.hero-content {
  max-width: 50%;
}

.hero-slogan {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}

.hero-button {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.hero-image img {
  max-width: 100%;
  border-radius: 15px;
}

/* About Us Section */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-text h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 2rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

/* How it Works Section */
.how-it-works-container {
  display: flex;
  justify-content: space-around;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.column {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  flex-basis: 45%;
  text-align: left;
}

.column h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.step-icon {
  background-color: var(--secondary-color);
  color: var(--white-color);
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.step h4 {
  width: 30%;
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--dark-gray-color);
}

.step p {
  width: 70%;
  margin: 0;
  color: #555;
}

/* Services Section */
.services-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: var(--white-color);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  flex-basis: calc(50% - 4rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-card img {
  max-width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 50%;
}

.service-card h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: #555;
  line-height: 1.6;
}

/* Categories Section */
.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.category-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  border: 1px solid #eee;
}

.category-card:hover {
  transform: translateY(-10px);
  background-color: var(--secondary-color);
}

.category-card .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.category-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--dark-gray-color);
  transition: color 0.3s ease;
}

.category-card:hover .icon,
.category-card:hover h4 {
  color: var(--white-color);
}

/* Coverage Section */
.coverage-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.coverage-map img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.coverage-list h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.coverage-list ul {
  list-style: none;
  padding: 0;
}

.coverage-list li {
  background: url("https://via.placeholder.com/20x20.png?text=✓") no-repeat left
    center;
  padding-left: 30px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: var(--white-color);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
}

.toggle-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  line-height: 1.7;
  color: #555;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust as needed */
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

/* Download Section */
.download-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.download-text h2 {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.app-buttons {
  margin-top: 2rem;
}

.app-mockup img {
  max-width: 300px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* Contact Section */
.contact-container form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
}

form button {
  align-self: center;
  width: auto;
  border: none;
  cursor: pointer;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  text-align: center;
  padding: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon-box i {
  font-size: 20px;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

/* Hover styles para cada red */

.icon-box.facebook:hover {
  background-color: #1877f2;
}

.icon-box.facebook:hover i {
  color: white;
}

.icon-box.instagram:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.icon-box.instagram:hover i {
  color: white;
}

footer a {
  color: var(--white-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero,
  .coverage-container,
  .download-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding: 4rem 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .how-it-works-container {
    flex-direction: column;
  }

  .download-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none; /* Simple responsive menu, can be improved with JS */
  }

  .hero-slogan {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .services-container {
    flex-direction: column;
  }
}
