/* ================================
   🔹 ESTILOS GENERALES
================================== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: #001f3f;
  background-color: #f7f7f7;
}

/* ================================
   🔹 NAVBAR
================================== */
.navbar {
  background-color: #001f3f;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}
.nav-logo:hover {
  color: #00ffff;
}
.nav-logo img {
  width: 34px;
  margin-right: 10px;
  vertical-align: middle;
}
.nav-logo span {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}
.nav-links a {
  color: #ffffffcc;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #00ffff;
  font-weight: 600;
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #002a5a;
  padding: 10px;
  border-radius: 6px;
  top: 25px;
}
.dropdown-content a {
  display: block;
  color: white;
  margin: 5px 0;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* ================================
   🔹 HERO PRINCIPAL
================================== */
.hero {
  position: relative;
  text-align: left;
  color: white;
}
.hero-bg {
  width: 100%;
  height: 52vh;
  object-fit: cover;
}
.hero-content.left {
  position: absolute;
  top: 42%;
  left: 10%;
  transform: translate(0, -40%);
  max-width: 480px;
  text-align: left;
}
.hero-content h2 {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ================================
   🔹 REDES SOCIALES FIJAS
================================== */
.social-fixed {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 9999;
}
.social-fixed a {
  background: #00ffff;
  color: #001f3f;
  font-size: 22px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  transition: all 0.3s ease;
}
.social-fixed a:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px #00ffff, 0 0 35px #00ffff;
}

/* ================================
   🔹 CATEGORÍAS
================================== */
.categorias {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: white;
  padding: 20px 0 60px 0;
  gap: 60px;
}
.cat-card {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}
.cat-card p {
  margin-top: 15px;
  font-weight: 600;
  font-size: 1.05rem;
}
.cat-card:hover img {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}
.cat-card:hover {
  transform: translateY(-6px);
}

/* ================================
   🔹 SECCIONES GENERALES
================================== */
.contenido {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 60px 40px;
  background: white;
}
.contenido img {
  width: 320px;
  max-width: 40%;
}
.contenido .texto {
  width: 55%;
}
.contenido.light {
  background-color: #e8f2ff;
}
.contenido.dark {
  background-color: #001f3f;
  color: white;
}

/* ================================
   🔹 FOOTER
================================== */
.footer {
  background-color: #001f3f;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  padding: 45px 10% 25px;
  text-align: center;
}
.footer .redes-footer {
  margin-bottom: 20px;
}
.footer .redes-footer a {
  color: #00ffff;
  font-size: 1.5rem;
  margin: 0 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer .redes-footer a:hover {
  transform: scale(1.2);
  color: #ffffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}
.footer .footer-text {
  max-width: 800px;
  margin: 0 auto;
}
.footer .footer-text h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer .footer-text p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: #dfe8f0;
  text-align: justify;
  margin-bottom: 10px;
}
.footer .footer-text .copy {
  font-size: 0.7rem;
  color: #aebed2;
  margin-top: 15px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ================================
   🔹 CONTENIDOS ESPECÍFICOS (IMÁGENES REDUCIDAS Y AJUSTADAS)
================================== */
.contenido-datos,
.contenido-herramientas,
.contenido-futuro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 70px 10%;
  flex-wrap: wrap;
}

/* 1️⃣ Datos curiosos → texto izquierda, imagen derecha */
.contenido-datos {
  flex-direction: row;
  background-color: #e6f1ff;
}

/* 2️⃣ Herramientas digitales → texto izquierda, imagen derecha (corregido) */
.contenido-herramientas {
  flex-direction: row;
  background-color: #ffffff;
}

/* 3️⃣ Innovación y futuro → texto izquierda, imagen derecha */
.contenido-futuro {
  flex-direction: row;
  background-color: #002855;
}

.contenido-datos .texto,
.contenido-herramientas .texto,
.contenido-futuro .texto {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  text-align: justify;
}

/* 🔹 Imágenes 50% más pequeñas */
.contenido-datos img,
.contenido-herramientas img,
.contenido-futuro img {
  flex: 1;
  width: 200px;
  max-width: 30%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.contenido-futuro .texto h2 {
  color: #ffffff;
}
.contenido-futuro .texto p {
  color: #dfe8f0;
}

/* ================================
   🔹 MODO MÓVIL
================================== */
@media (max-width: 768px) {
  .hero-content.left {
    top: 5%;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    width: 100%;
    padding: 0 40px;
    z-index: 2;
  }

  .hero-content h2 {
    display: inline-block;
    font-size: 1rem;
    line-height: 1.3;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
  }

  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -24px;
    height: 48px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
      to bottom,
      rgba(0, 31, 63, 0) 0%,
      rgba(255, 255, 255, 1) 100%
    );
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 0;
    width: 100%;
    background-color: #001f3f;
    padding: 20px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .contenido-datos,
  .contenido-herramientas,
  .contenido-futuro {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
  }

  .contenido-datos img,
  .contenido-herramientas img,
  .contenido-futuro img {
    max-width: 80%;
    margin: 25px auto 0;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}

/* ================================
   🔹 OPTIMIZACIÓN FINAL PARA MÓVIL
   ================================ */
html, body {
  width: 100%;
  overflow-x: hidden; /* evita desplazamiento horizontal */
}

/* Ajuste de íconos fijos en pantallas pequeñas */
@media (max-width: 768px) {
  .social-fixed {
    bottom: 10px;
    right: 10px;
    flex-direction: row;
    gap: 8px;
  }

  .social-fixed a {
    font-size: 18px;
    width: 38px;
    height: 38px;
    box-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff;
  }

  .categorias {
    gap: 25px;
    padding: 20px;
  }

  .cat-card img {
    width: 120px;
    height: 120px;
  }
}
