/* Estilo base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #0f0f0f; /* Fondo oscuro */
  color: #ffffff;
  overflow-x: hidden;
}

/* Sección Hero */
.hero {
  background: linear-gradient(45deg, #1e2a47, #4f5d73);
  height: 100vh;
  padding: 0.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 4rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 15px rgba(0, 255, 255, 0.7),
    0 0 30px rgba(0, 255, 255, 0.5), 0 0 60px rgba(0, 255, 255, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  text-shadow: 2px 2px 15px rgba(0, 255, 255, 0.7),
    0 0 30px rgba(0, 255, 255, 0.5), 0 0 60px rgba(0, 255, 255, 0.3);
}

/* Botón principal en Hero */
.cta-button {
  padding: 15px 40px;
  background-color: transparent; /* Fondo transparente para estilo neón */
  color: #00bcd4; /* Azul neón */
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #00bcd4;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.5);
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.cta-button:hover {
  background-color: #00bcd4;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 50px rgba(0, 255, 255, 0.7);
}

/* Sección de IA Importantes */
.ia-list {
  text-align: center;
  color: #fff;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  padding: 5em;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  background-color: #181818;
}

.ia-list h2 {
  font-size: 38px;
  grid-column: 1/-1;
}

/* Contenedor de tarjetas, le damos perspectiva */
.ia-card-container {
  perspective: 1000px;
}

/* Efecto hover para tarjetas impares (odd) en el contenedor */
.ia-list .ia-card-container:nth-of-type(even):hover .ia-card {
  transform: rotateY(180deg);
  box-shadow: 0 0 80px rgba(0, 255, 255, 0.3);
}

/* Efecto hover para tarjetas pares (even) en el contenedor */
.ia-list .ia-card-container:nth-of-type(odd):hover .ia-card {
  transform: rotateY(-180deg);
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

/* Tarjeta con estilo base */
.ia-card {
  width: 300px;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  border-radius: 15px;
  transition: transform 0.6s, box-shadow 0.3s;
}

/* Frente y reverso de las tarjetas */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Esconde la parte posterior cuando se gira */
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Estilo de la parte frontal de la tarjeta */
.card-front {
  background-color: #212121;
  color: white;
}

.card-front img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.card-front h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Estilo de la parte posterior de la tarjeta */
.card-back {
  background-color: #333;
  color: #aaa;
  padding: 2.5em;
  transform: rotateY(180deg); /* Inicialmente está rotada */
}

/* Estilo de texto en la parte posterior de la tarjeta */
.card-back p {
  font-size: 1rem;
}

/* Botón de Descubre más en la parte posterior de la tarjeta */
.neon-button {
  margin-top: 20px;
  padding: 15px 40px;
  background-color: transparent;
  color: #00bcd4; /* Azul neón */
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #00bcd4;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.5);
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.neon-button:hover {
  background-color: #00bcd4;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.7), 0 0 50px rgba(0, 255, 255, 0.7);
}

/* Footer */
footer {
  background-color: #181818;
  color: #bbb;
  padding: 20px 0;
  font-size: 1rem;
  letter-spacing: 1px;
  border-top: 1px solid #333;

  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-items: center;
}

/* Ajustes para la visualización en pantallas pequeñas */
@media (max-width: 430px) {

  .hero {
    height: 80vh;
  }

  .hero h1 {
    font-size: 2.5rem; /* Reducir el tamaño en dispositivos móviles */
    letter-spacing: 2px; /* Menos espacio entre las letras */
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1.2rem; /* Reducir el tamaño del texto para que se vea bien en móvil */
    margin-bottom: 20px;
    text-shadow: 1px 1px 10px rgba(0, 255, 255, 0.7), 0 0 15px rgba(0, 255, 255, 0.5);
  }

  /* Ajustar la caja del botón para móvil */
  .cta-button {
    padding: 12px 30px; /* Ajustar el padding para el botón en móvil */
    font-size: 1rem; /* Reducir el tamaño de la fuente */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.5);
    margin-top: 10px;
  }

  .ia-list {
    grid-template-columns: 1fr;
    margin: 0 auto;
    padding: 0;
  }

  .ia-card {
    min-width: 90%; /* Hace que la tarjeta ocupe todo el ancho disponible */
    margin: 0 auto; /* Centra la tarjeta */
  }

  .card-front img {
    width: 80px; /* Ajusta el tamaño de la imagen */
    height: 80px;
  }

  .card-front h2 {
    font-size: 1.2rem; /* Ajusta el tamaño del título */
  }

  .card-back p {
    font-size: 0.9rem; /* Ajusta el tamaño del texto */
  }

  .neon-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
}