body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  max-width: 250px;
  height: auto;
  margin-right: 15px;
  opacity: 0;
  animation: fadeIn 1s forwards;
  animation-delay: 0.5s;
}

.header-title {
  margin: 0;
  font-size: 24px;
  color: #707070;
  opacity: 0;
  animation: fadeIn 1s forwards;
  animation-delay: 0.8s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#search-container {
  display: flex;
  align-items: center;
  margin: 20px auto;
  width: 90%;
  max-width: 600px;
}

#search {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  transition: background-color 0.3s, box-shadow 0.3s;
  background-color: white;
  font-size: 16px;
}

#search:focus {
  outline: none;
  background-color: #fff7e6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.search-icon {
  margin-left: 10px;
  color: gray;
  cursor: pointer;
}

.main-section {
  text-align: center;
  margin: 20px 0;
}

.main-section h1 {
  margin: 0;
  font-size: 24px;
  color: #e7a131;
}

.qa-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  width: 90%;
  max-width: 1200px;
  overflow-x: auto; /* Habilita el desplazamiento horizontal en móviles */
}

.qa-content {
  width: 100%;
}

.qa-item {
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #e7a131;
}

.question {
  padding: 10px;
  cursor: pointer;
  background-color: transparent;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
}

.answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  border-top: 1px solid #ccc;
  background-color: #f0f0f0;
  border-radius: 0 0 12px 12px;
  color: #707070;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.answer.show {
  max-height: none; /* Dejar que el contenido se expanda naturalmente (tabla socios estrategicos) */
  padding: 10px;
  opacity: 1;
  transform: translateY(0);
}

.qa-item.open .question i {
  transform: rotate(180deg);
}

.extra-image {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  width: 90%;
  max-width: 1200px;
}

.extra-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
}

.carousel {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin: 20px 0;
}

.carousel img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
}

button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  font-size: 45px;
  color: white;
  padding: 10px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  margin: 0 5px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.indicator.active {
  opacity: 1;
}

/* Estilos del Pop-Up */
.install-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 50px; /* Aumentamos el padding para más espacio interno */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  text-align: center;
  width: 90%;
  max-width: 400px;
  display: none;
  box-sizing: border-box;
  overflow: hidden; /* Esto asegura que el contenido no se desborde */
  min-height: 210px; /* Asegura que haya suficiente altura para el contenido y el botón */
}

/* Aseguramos que el mensaje esté separado del botón */
.install-popup p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* Botón de acción dentro del popup */
.install-popup button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #c01212;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  margin-top: 75px;  /* Espacio entre el texto y el botón */
  align-self: center;  /* Esto asegura que el botón se centre horizontalmente */
}


.install-popup button:hover {
  background-color: #a00c0c;
}

/* Icono Circular para el popup */
.install-popup .circular-icon {
  position: absolute;
  top: 10px;  /* Posiciona el icono en la parte superior */
  right: 10px; /* Y en la esquina derecha */
  width: 20px;
  height: 20px;
  border: 2px solid #c01212;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
  animation: pulse 1.5s infinite;
  z-index: 2; /* Asegura que esté encima de todo */
}

/* Asegura que el icono no se solape con el contenido */
.install-popup .circular-icon {
  z-index: 2;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 480px) {
  .install-popup {
    padding: 20px;  /* Reducimos un poco el padding en pantallas pequeñas */
    font-size: 14px; /* Ajustamos el tamaño de la fuente */
    max-width: 320px; /* Reducimos el ancho máximo para adaptarse mejor a móviles */
  }

  .install-popup .close-button {
    font-size: 18px;  /* Hacemos el botón de cerrar un poco más pequeño en pantallas pequeñas */
  }

  .install-popup button {
    font-size: 14px; /* Reducimos el tamaño del botón */
    padding: 8px 16px; /* Ajustamos el tamaño del botón */
  }

  .main-section h1,
  .header-title {
    font-size: 20px;
  }

  .question {
    font-size: 14px;
  }

  .answer {
    font-size: 16px;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .logo {
    max-width: 120px;
  }

  #search {
    width: 95%;
  }

  .carousel {
    margin: 10px 0;
  }

  .install-popup {
    padding: 10px;
  }

  .install-popup button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (min-width: 769px) {
  .carousel {
    max-height: 600px; 
  }

  .install-popup {
    max-width: 600px; 
  }

  .install-popup p {
    font-size: 16px; 
  }

  button {
    font-size: 48px; 
  }
}

@media (max-width: 480px) {
  .main-section h1,
  .header-title {
    font-size: 20px;
  }

  .question {
    font-size: 14px;
  }

  .answer {
    font-size: 12px;
  }
}

footer {
  position: relative;
  display: flex;
  align-items: center;
  padding: 70px 0;
  color: white;
  width: 100%;
  font-size: 18px;
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(233, 66, 90, 0.6);
  z-index: 2;
}

.footer-image {
  max-width: 150px;
  height: auto;
  margin-right: 10px;
  flex-shrink: 0;
  z-index: 3;
}

p {
  margin: 0;
  text-align: center;
  flex-grow: 1;
  z-index: 3;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  white-space: nowrap; /* Evita que el contenido se desborde en las celdas */
}

th {
  background-color: #e9425a;
  color: white;
}

.qa-item .answer {
  overflow-x: auto; /* Permite desplazarse horizontalmente en las respuestas */
  padding: 10px 0;
}

