* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", serif;
  background-color: rgb(0, 0, 0);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #000;
}

nav ul li a:hover {
  color: #000000; /* o el color que uses en tu diseño */
}
.contenedor-principal {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}
.contenedor-principal img {
  width: 50%;
  margin-top: 10px;
}
p {
  font-size: 25px;
  color: aliceblue;
}
h2 {
  font-size: 40px;
  color: aliceblue;
}
h3 {
  font-size: 1em;
  font-weight: 400;
  color: aliceblue;
  margin: 0 0 0 0;
}
button {
  background-color: #007bff;
  padding: 10px;
  border-radius: 10px;
  border: solid 1px rgb(218, 218, 218);
  box-shadow: 4px 4px 9px 0px #0000004d;
  color: aliceblue;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
}

.seccion-paginas h2 {
  font-weight: 200;
  text-align: center;
}

/*carrusel*/
.carrusel-container {
  display: block;
  margin: 0 auto;
  width: 80%;
  max-width: 1000px;
  aspect-ratio: 16/9;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  margin: 0 auto;
  display: block;
}

.slide {
  position: absolute;
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: scale(1.1);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 3;
}

.button {
  position: relative;
  display: inline-block;
  margin: 20px;
}

.button a {
  color: aliceblue;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: #007bff;
  display: block;
  position: relative;
  padding: 20px 40px;

  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-shadow: 0px 1px 0px #000;
  filter: dropshadow(color=#000, offx=0px, offy=1px);

  -webkit-box-shadow: inset 0 1px 0 #007bff, 0 10px 0 #97b2cf;
  -moz-box-shadow: inset 0 1px 0 #007bff, 0 10px 0 #6391c4;
  box-shadow: inset 0 1px 0 #007bff, 0 10px 0 #014792;

  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

.button a:active {
  top: 10px;
  background-color: #0546a7;
  -webkit-box-shadow: inset 0 1px 0 #dddddd, inset 0 -3px 0 #474747;
  -moz-box-shadow: inset 0 1px 0 #cacaca, inset 0 -3pxpx 0 #2c2c2c;
  box-shadow: inset 0 1px 0 #cacaca, inset 0 -3px 0 #4e4e4e;
}

.button:after {
  content: "";
  height: 100%;
  width: 100%;
  padding: 4px;
  position: absolute;
  bottom: -15px;
  left: -4px;
  z-index: -1;
  background-color: #e2e2e2;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

/* SERVICIOS */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

.servicios {
  background-color: #000;
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.servicios h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: 600;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.servicio-card {
  background-color: #111;
  border: 1px solid #333;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeSlide 0.8s ease forwards;
  opacity: 0;
}

.servicio-card i {
  font-size: 2.5em;
  color: #00aaff;
  margin-bottom: 15px;
}

.servicio-card p {
  font-size: 1.1em;
  font-weight: 300;
}

/* Animación fade + slide */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Retardo para animación escalonada */
.servicio-card:nth-child(1) {
  animation-delay: 0.1s;
}
.servicio-card:nth-child(2) {
  animation-delay: 0.3s;
}
.servicio-card:nth-child(3) {
  animation-delay: 0.5s;
}
.servicio-card:nth-child(4) {
  animation-delay: 0.7s;
}
.servicio-card:nth-child(5) {
  animation-delay: 0.9s;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 170, 255, 0.2);
}
.servicio-card-img3 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.servicio-card img {
  width: 60px;
}

main {
  margin: 0 auto;
}

/*planes */
.titulo-descripcion-planes {
  margin: 60px 20px;
 
}
.planes {
  padding: 1rem 2rem;
  text-align: center;
 
}

.planes h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.cards-planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 0rem;
  justify-content: space-evenly;
  justify-items: center;
  align-content: space-around;
  align-items: start;
  row-gap: 23px;
  justify-content: center;

}

.card-plan {
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  width: 380px;
  height: auto;
}

.card-plan:hover {
  transform: translateY(-5px);
}

.card-plan h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #4e71aa;
}

.card-plan ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}

.card-plan ul li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.card-plan .btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #4e71aa;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}

.card-plan .btn:hover {
  background-color: #3a5d8f;
}

/* preguntas frecuentes */
.faq-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.faq {
  padding: 3rem 1rem;
  margin: 0 auto;
  padding: 20px 50px;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.faq-item {
  flex: 1 1 45%;
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  overflow: hidden;
  transition: height 0.3s ease; /* Transicionamos la altura */
  min-height: 3em;
}
.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
  color: #f3f3f3;
  padding-bottom: 0.5em;
}

.faq-answer {
  max-height: 0;
  font-size: 0.95rem;
  color: #f1f1f1;
  margin-top: 0.5rem;
  background-color: #1e1e1e; /* Aseguramos que la respuesta tenga el mismo fondo */
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  top: auto;
  position: relative;
}

.faq-toggle {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/*menu habmburguesa*/
/* Estilo general */
/* Estilos para el nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #007bff;
  position: relative;
  width: 90%;
  margin: 10px auto;
  border-radius: 12px;
}

/* Estilo del botón hamburguesa */
.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

/* Lista del menú */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  text-decoration: none;
  color: #dfdfdf;
  font-weight: 500;
}

/* Responsive: ocultar menú y mostrar botón */
@media (max-width: 768px) {

  .titulo-descripcion-planes {
    width: 100%;
    margin: 0 auto;
  }
  .titulo-descripcion-planes h2, p{
  font-size: 16px;
    
  }
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #000000;
    position: absolute;
    top: 100%;
    right: 0;
    left: 110px;
    height: 30vh;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border: solid white 1px;
    border-radius: 28px 0px 0px 0px;
  }
  nav ul li a {
    color: #f3f3f3 !important;
    text-decoration: none;
    color: #f3f3f3;
    font-weight: 500;
    padding: 5px 0px;
    margin: 10px auto;
  }
  nav ul li {
    margin: 10px auto;
  }
  nav ul.active {
    display: flex;
    padding: 6dvb 10px;
  }
  .card-plan {
    width: 90%;
    padding: 1.5rem 1rem;
  }

  .card-plan h3 {
    font-size: 1.2rem;
  }

  .card-plan ul li {
    font-size: 0.9rem;
  }

}

footer {
  background-color: #1e2d40;
  color: #dfebf2;
  padding: 5px 0;
  text-align: center;
  font-size: 14px;
  display: flex;
  align-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

footer span {
  font-size: 13px;
}
