@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* ============================
   RESET + BASE
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(-45deg, #f7f9fc, #eaf3ff, #f7f9fc, #eaf3ff);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  color: #333;
  line-height: 1.6;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================
   BANNER PRINCIPAL
============================ */
.banner {
  position: relative;
  background-image: url("../../imagenes/banner.png");
  background-size: cover;
  background-position: center;
  padding: 100px 20px 80px;
  text-align: center;
  color: white;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  opacity: 0.90;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  border-radius: 0 0 40px 40px;
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.banner p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ============================
   MENÚ PRINCIPAL
============================ */
.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 25px;
}

.menu-item {
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: color .3s ease;
}

.menu-item:hover {
  color: #cce5ff;
}

/* ===== MENÚ DESPLEGABLE (SUBMENÚ) ===== */
#submenu {
  position: absolute;
  display: none;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  padding: 10px 0;
  min-width: 240px;
  animation: fadeSubmenu 0.25s ease forwards;
  transform-origin: top center;
}

@keyframes fadeSubmenu {
  from { opacity: 0; transform: scaleY(0.8); }
  to { opacity: 1; transform: scaleY(1); }
}

#submenu a {
  display: block;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 22px;
  margin: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
}

#submenu a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

#submenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 30px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 255, 255, 0.98) transparent;
}

/* ============================
   BUSCADOR
============================ */
.buscador {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 20px;
  max-width: 500px;
}

.buscador input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  outline: none;
}

.buscador button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #0077ff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
}

.buscador button:hover {
  background: #005fd1;
  transform: translateY(-1px);
}

/* ============================
   INTRO + CTA FINAL
============================ */
.intro, .cta-final {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 40px 30px;
  margin: 60px auto;
  max-width: 900px;
}

.intro h2, .cta-final h2 {
  color: #0077ff;
  font-size: 2rem;
  margin-bottom: 15px;
}

/* ============================
   TARJETAS
============================ */
.tools {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  font-weight: 600;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.tool-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  color: #333;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0, 119, 255, 0.08);
  transition: .3s;
  text-decoration: none;
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
}

.tool-card h3 {
  margin-bottom: 12px;
  color: #0077ff;
  font-weight: 600;
  transition: .3s;
}

.tool-card:hover h3 {
  color: #fff;
}

.tool-card p {
  color: #333;
  transition: .3s;
}

.tool-card:hover p {
  color: #fff;
}

/* ============================
   PAGINACIÓN (NUEVO)
============================ */
.paginacion {
  text-align: center;
  margin: 40px 0;
}

.paginacion button {
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  margin: 0 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform .3s ease, box-shadow .3s ease;
}

.paginacion button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.paginacion button:disabled {
  background: #444;
  cursor: not-allowed;
  box-shadow: none;
}

.paginacion span {
  color: #0077ff;
  font-weight: 600;
}

/* ============================
   FOOTER
============================ */
.footer-seo {
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
  padding: 50px 20px;
  text-align: center;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}

.footer-info {
  max-width: 900px;
  margin: 0 auto 25px;
}

#list-links {
  list-style: none;
  margin: 25px 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

#list-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: .3s;
}

#list-links a:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.footer-copy {
  margin-top: 30px;
  opacity: 0.9;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .banner {
    padding: 80px 15px;
  }

  .banner h1 {
    font-size: 1.6rem;
  }

  .banner p {
    font-size: 1rem;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 20px;
  }

  #list-links {
    gap: 12px;
  }
}
