/* ================================
   VARIABLES DE COLOR
   ================================ */
:root {
  --color-primario: #0a4d8c;
  --color-secundario: #0f6fb8;
  --color-fondo: #f5f5f5;
  --color-texto: #ffffff;
  --color-negro: #000000;
}

/* ================================
   ESTILO GENERAL
   ================================ */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--color-fondo);
}

/* ================================
   TITULOS GENERALES
   ================================ */
.titulo {
  margin-top: 8px;
  font-size: 1.2rem;
  text-align: center;
}

.titulo-grid {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  text-align: center;
}

/* ================================
   HEADER
   ================================ */
header {
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  padding: 25px 20px 30px;
  color: var(--color-texto);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* LOGO */
.logo-contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.logo-img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.logo-texto {
  display: none;
}

/* ================================
   MENÚ SUPERIOR
   ================================ */
nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu a {
  color: var(--color-texto);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 10px 5px;
  transition: background 0.25s, padding 0.25s;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.menu a:hover,
.menu a:focus {
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 10px;
}

/* ================================
   SUBMENÚ
   ================================ */
.submenu-parent {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  background: white;
  color: black;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20);
  z-index: 10;
}

.submenu li a {
  display: block;
  padding: 12px 18px;
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.submenu li a:hover {
  background: #f0f0f0;
}

.submenu-parent:hover .submenu {
  display: block;
}

/* ================================
   HERO
   ================================ */
.hero {
  padding: 40px 20px;
  text-align: center;
  background: #cfe3f5;
}

.hero h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.3;
}
.hero h2 {
  margin: 0;
  line-height: 1.3;
}
.centrar-texto {
  text-align: center;
}

/* ================================
   GRID CENTRAL DE PRODUCTOS
   ================================ */
.menu-central {
  width: 90%;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 20px;
}

.grid-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.grid-item a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-bottom: 1px solid #eee;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ================================
   SECCIÓN SEO
   ================================ */
.descripcion-seo {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 25px 30px;
  background-color: #ffffff;
  color: #333333;
  font-size: 1rem;
  line-height: 1.7;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: justify;
}

/* ================================
   PIE DE PÁGINA
   ================================ */
footer {
  text-align: center;
  padding: 20px;
  background: var(--color-primario);
  color: white;
  margin-top: 40px;
}

footer p a {
  color: #ffffff;
  text-decoration: underline;
}

footer p a:hover {
  color: #ffdd00;
}

/* ================================
   RESPONSIVE (MÓVIL)
   ================================ */
@media (max-width: 768px) {

  header {
    padding: 20px 15px;
  }

  .logo-img {
    height: 60px;
  }

  .menu {
    flex-direction: column;
    gap: 10px;
  }

  .menu a {
    font-size: 1.2rem;
    padding: 12px 10px;
    text-align: center;
  }

  .submenu {
    position: static;
    transform: none;
    border-radius: 5px;
    width: 100%;
    box-shadow: none;
  }

  .submenu li a {
    padding-left: 20px;
  }

  .menu-central {
    grid-template-columns: 1fr;
    grid-gap: 15px;
  }

  .grid-item img {
    height: 180px;
  }

  .titulo-grid {
    font-size: 1.1rem;
  }

  .descripcion-seo {
    padding: 15px 15px;
    font-size: 0.95rem;
  }
}

/* ================================
   RESTO DE TUS ESTILOS EXISTENTES
   ================================ */

/* Tabla Color Egis, tarjetas, botones, info box, detalle egi, etc. */
/* Mantengo todo tal cual estaba para no romper nada */
table { border-collapse: collapse; width: 100%; max-width: 1000px; margin: 20px auto; }
th, td { border: 1px solid #ccc; padding: 10px; text-align: center; vertical-align: middle; }
th { background-color: #e6e6e6; }

.egi-img-container { display: inline-block; margin: 5px; text-align: center; }
.egi-img { width: 100px; height: auto; border-radius: 5px; transition: transform 0.3s ease, box-shadow 0.3s ease; border: none; }
.egi-img:hover { transform: scale(1.25); box-shadow: 0 0 15px rgba(0,0,0,0.4); cursor: pointer; }

.color-label { font-size: 10px; text-align: center; display: block; margin-top: 2px; }

/* Acerca de */
.contenido-acerca { display: flex; justify-content: center; padding: 40px 20px; }
.acerca-card { max-width: 800px; background: #ffffffcc; backdrop-filter: blur(4px); padding: 30px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); line-height: 1.6; font-size: 1.1rem; text-align: center; }
.acerca-card h3 { margin-bottom: 15px; font-size: 1.8rem; color: #1e4c8f; }

/* Categorías Señuelos */
.grid-contenedor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px; max-width: 1200px; margin: auto; }
.tarjeta { background: #ffffff; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden; text-align: center; transition: transform .3s; }
.tarjeta:hover { transform: scale(1.05); }
.tarjeta img { width: 100%; height: 150px; object-fit: cover; }
.tarjeta h3 { padding: 15px; font-size: 1.2rem; }
.tarjeta a { color: inherit; text-decoration:none; display:block; }
.comprar-contenedor { display: flex; justify-content: center; gap: 20px; margin: 25px 0 50px; }
.btn-comprar { padding: 12px 25px; font-size: 1rem; font-weight: 600; border-radius: 10px; text-decoration: none; color: white; background: linear-gradient(90deg, #ff2e63, #ff1744); box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: transform .15s, box-shadow .15s; }
.btn-comprar:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

.ocultar-titulo { display: none; }

.post-contenido { max-width: 900px; margin: 40px auto; padding: 0 20px; font-size: 18px; line-height: 1.6; }
.post-contenido h3 { margin-top: 20px; color: #0077cc; }
.post-imagen { text-align: center; margin: 25px 0; }
.post-imagen img { max-width: 100%; height: auto; border-radius: 12px; }
.lista-links li { margin: 10px 0; }
.lista-links a { color: #0066cc; font-weight: bold; text-decoration: none; }
.lista-links a:hover { text-decoration: underline; }

.producto-destacado { background: #ffffff; border: 2px solid #e0e0e0; padding: 25px; border-radius: 15px; margin-top: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.producto-info h2 { margin-bottom: 10px; color: #e67e22; font-size: 24px; }
.producto-info ul { margin: 15px 0; padding-left: 20px; }
.producto-info ul li { margin: 5px 0; }

.boton-aliexpress { display: inline-flex; align-items: center; gap: 8px; background: #ff4747; color: white; padding: 14px 22px; border-radius: 10px; text-decoration: none; font-size: 20px; font-weight: bold; transition: 0.25s ease; box-shadow: 0 4px 12px rgba(255, 60, 60, 0.25); }
.boton-aliexpress:hover { background: #ff2b2b; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(255, 40, 40, 0.35); }
.boton-aliexpress:active { transform: scale(0.97); }
.boton-aliexpress .icono { font-size: 22px; }

.info-box { max-width: 1150px; margin: 40px auto; background: #ffffff; padding: 25px 30px; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); font-size: 1.1rem; line-height: 1.6; }
.info-box strong { color: #0077b6; }
.info-box img { display: block; width: 100%; max-width: 550px; margin: 25px auto 0; border-radius: 10px; }

.section-title { font-size: 2rem; text-align: center; margin: 60px 0 20px; position: relative; font-weight: 700; color: #333; }
.section-title::after { content: ""; width: 80px; height: 4px; background: #0099cc; display: block; margin: 10px auto 0; border-radius: 10px; }

.detalle-egi { max-width: 900px; margin: 40px auto; display: flex; flex-direction: column; gap: 35px; padding: 0 20px; }
.detalle-egi .imagen-principal { text-align: center; }
.detalle-egi .imagen-principal img { width: 260px; max-width: 100%; border-radius: 18px; box-shadow: 0 6px 20px rgba(0,0,0,0.15); transition: transform .3s ease; }
.detalle-egi .imagen-principal img:hover { transform: scale(1.05); }
.detalle-egi .bloque { background: #fff; padding: 25px 28px; border-radius: 18px; box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-left: 6px solid #ff2e63; transition: .15s; }
.detalle-egi .bloque:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0,0,0,0.12); }
.detalle-egi h2 { margin-top: 0; margin-bottom: 15px; font-size: 1.45rem; color: #292929; }
.detalle-egi ul { list-style: none; padding: 0; margin: 0; }
.detalle-egi ul li { margin-bottom: 10px; font-size: 1.05rem; }
.detalle-egi ul li::before { content: "✔ "; color: #ff2e63; font-weight: bold; }
.detalle-egi table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 1.05rem; }
.detalle-egi table th { background: #ffe3ea; padding: 10px; font-size: 1.1rem; border-bottom: 2px solid #ffb6c6; }
.detalle-egi table td { padding: 10px; border-bottom: 1px solid #eee; }
@media (max-width: 600px) { .detalle-egi .bloque { padding: 20px; } .detalle-egi h2 { font-size: 1.3rem; } }

.descripcion-rapida-egi { margin-top: 8px; font-size: 0.95rem; color: #444; font-style: italic; text-align: center; }
