/* ===========================
   ESTILOS GENERALES
=========================== */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f7f7f7;
  color: #333;
}

/* ===========================
   HEADER
=========================== */

header {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0)) top,
    url('img/izquierda.webp'),
    url('img/derecha.webp');
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: top, left 20px center, right 20px center;
  background-size: 100% 6px, 200px 240px, 200px 240px;

  background-color: #ACB2BF;
  padding: 8px 0;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo {
  width: 300px;
  margin: 0 auto;
  padding: 0;
  display: block;
}

header p {
  margin: 0;
  font-size: 12px;
  line-height: 1;
}

/* ===========================
   CONTENEDORES GENERALES
=========================== */

.intro, .productos, .guias {
  width: 95%;
  max-width: 1000px;   /* 🔥 evita 4 columnas */
  margin: 30px auto;
}

/* ===========================
   TITULOS
=========================== */

h2 {
  color: #1a73e8;
  text-align: center;
}

.titulo-principal {
  font-size: 24px;
  color: #1a73e8;
  margin: 0 0 10px 0;
  font-weight: bold;
  text-align: center;
}

/* ===========================
   GRID MODERNO
=========================== */

.grid-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
  width: 100%;
  margin: 30px auto;
}

/* ===========================
   TARJETAS
=========================== */

.producto {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 280px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.producto img {
  width: 100%;
  border-radius: 8px;
}

/* ===========================
   BOTONES
=========================== */

.boton {
  display: inline-block;
  padding: 10px 15px;
  background: #ff9900;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  font-weight: bold;
}

.boton:hover {
  background: #e68a00;
}

/* ===========================
   LISTAS DE GUIAS (compatibilidad)
=========================== */

.guias ul {
  list-style: none;
  padding: 0;
}

.guias li {
  margin: 10px 0;
}

.guias a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: bold;
}

/* ===========================
   FOOTER
=========================== */

footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1024px) {
  header {
    padding: 10px 0;
  }

  .logo {
    width: 140px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 110px;
  }

  header {
    padding: 4px 0;
  }
}

@media (max-width: 600px) {
  header {
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0)) top,
      url('img/izquierda.webp'),
      url('img/derecha.webp');
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: top, left 10px center, right 10px center;
    background-size: 100% 6px, 80px 96px, 80px 96px;
    padding: 12px 0;
  }

  .logo {
    width: 220px;
    height: auto;
  }
}

/* ===========================
   TOPBAR
=========================== */

.topbar {
  width: 100%;
  background: #ffffff;
  padding: 8px 16px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
  z-index: 9999;
  position: relative;
}

.topbar .idioma {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
}

.topbar .idioma:hover {
  color: #0077cc;
}

@media (max-width: 480px) {
  .topbar {
    padding: 8px 12px;
  }
  .topbar .idioma {
    font-size: 13px;
  }
}

/* ===========================
   CORRECCIÓN FINAL H1
=========================== */

h1 {
  color: #1a73e8 !important;   /* garantiza azul en cualquier dispositivo */
}
