body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #1f2d35;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0px;
  gap: 30px;

  background-color: #f9f9f9;
  transition: all 0.3s ease;
  box-shadow: none;
}

header.scrolled {
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 75px;
}

.logo-container img {
  height: 110px;
  margin-right: 15px;
}

.logo-container h1 {
  font-size: 1.8rem;
  margin: 0;
}

.nav-container {
  display: flex;
  justify-content: center;
}

.nav-container a {
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #3f7ca2;
  text-decoration: none;
  transition: background 0.3s;
}

.nav-container a:hover {
  background-color: #a7c6d8;
  color: #1f2d35;
  text-decoration: underline;
}

main {
  padding-top: 115px;
  padding-bottom: 30px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
  background-color: #f1f6f9;
}

section {
  margin-bottom: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

#caracteristicas {
  /* background: linear-gradient(135deg, #E3F2FD, #BBDEFB); */
  background-image: url(images/bg_image.webp);
  background-size: cover;
  padding: 40px 20px;
}

h2 {
  color: #3f7ca2;
  border-bottom: 2px solid #a7c6d8;
  padding-bottom: 5px;
  text-align: left;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #3f7ca2;
  color: white;
}

.download-button {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #3f7ca2;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  text-transform: uppercase;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: #3f7ca2;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.download-button:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.download-button:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #3f7ca2;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.download-button:hover {
  color: #ffffff;
  border: 1px solid #3f7ca2;
}

.download-button:hover:before {
  top: -35%;
  background-color: #3f7ca2;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.download-button:hover:after {
  top: -45%;
  background-color: #3f7ca2;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

/* ----------------- Caracteristicas */

.features-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  row-gap: 3rem;
  margin-top: 3rem;
}

.feature-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  padding: 1.5rem 1rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* contenedor con perspectiva */
.feature-box-wrapper {
  perspective: 800px;
}


.feature-box h3 {
  transform: translateZ(10px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) translateZ(20px);
  background-color: white;
  padding: 4px;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.15s ease;
  will-change: box-shadow;
}

.feature-box h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.feature-box p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  padding: 0;
}

.box-button-container {
  display: flex;
  justify-content: start;
  align-items: center;
  margin: 1rem 0;
  padding: 0;
}

.box-button-container button {
  background-color: transparent;
  border: none;
  border: 1px solid #f1f6f9;
  padding: 0.25rem;
  transition: transform 0.2s ease;
}

.box-button-container button:hover {
  border: 1px solid #336281;
  cursor: pointer;
  padding: 0.25rem;
  transform: scale(1.05);
}

/* ------------- contacto */

.ul-contact {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.ul-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #222;

}

.li-image {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.li-image:hover {
  cursor: pointer;
  transform: scale(1.3);
}

/* ------------------------------------------------------- Modales */
/* Detalles */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
}

.modal-content {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease;
}


.close {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  background-color: red;
  color: white;
  cursor: pointer;
  border-radius: 50%;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 23px;
  margin-bottom: 5px;
}

#modalTitle {
  font-size: 1.5rem;
  margin-bottom: 10px;
  margin-top: 0;
}

.modal-description {
  font-size: 1rem;
  color: #222;
  padding: 0px 16px;
  border-radius: 8px;
}

.modal-description p {
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}

/* BOTÓN */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

/* FLECHA */
.arrow {
  transition: transform 0.3s ease;
}

/* RESPUESTA CERRADA */
.faq-answer {
  max-width: 95%;
  max-height: 0;
  margin-left: 16px;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
}

/* RESPUESTA ABIERTA */
.faq-answer.open {
  max-height: 300px;
  opacity: 1;
}

/* ROTACIÓN FLECHA */
.faq-question.active .arrow {
  transform: rotate(180deg);
}

.faq-answer p {
  margin: 10px 0 0;
  color: #555;
  line-height: 1.5;
}

#caracteristicas {
  scroll-margin-top: 60px;
}

#precios {
  scroll-margin-top: 120px;
}

#faq {
  scroll-margin-top: 120px;
}

/* Palabras claves */

#word {
  display: inline-block;
  transition: opacity 0.4s, transform 0.4s;
}

.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}


/* media queries */

@media (max-width: 768px) {

  /* ---------- HEADER ---------- */
  /* HEADER */
  header {
    justify-content: center;
  }

  /* OCULTA MENÚ */
  .nav-container {
    display: none;
  }

  /* CENTRA LOGO */
  .logo-container {
    justify-content: center;
  }

  .logo-container img {
    height: 65px;
  }

  .logo-container h1 {
    font-size: 1.2rem;
    text-align: center;
  }

  /* AJUSTE DEL MAIN POR HEADER MÁS CHICO */
  main {
    padding-top: 120px;
  }


  /* ---------- MAIN ---------- */
  main {
    padding-top: 100px;    
    padding-left: 12px;
    padding-right: 12px;
  }

  h2 {
    text-align: left;
    font-size: 1.4rem;
  }

  /* ---------- FEATURES ---------- */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-box {
    padding: 2rem 1rem 1rem;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
    top: -25px;
  }

  /* ---------- MODAL ---------- */
  .modal-content {
    margin: 10% auto;
    width: 90%;
    padding: 16px;
  }

  #modalTitle {
    font-size: 1.3rem;
  }

  .modal-description {
    font-size: 0.95rem;
    padding: 0 8px;
  }

  /* ---------- CONTACTO ---------- */
  .ul-contact li {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-link {
    font-size: 0.95rem;
  }

  /* ---------- FAQ ---------- */
  .faq-question {
    font-size: 0.95rem;
  }

  .faq-answer {
    margin-left: 8px;
  }

  /* ---------- BOTÓN ---------- */
  .download-button {
    font-size: 0.8rem;
    padding: 10px 18px;
  }
}