
:root {
  --morado: #7022d9;
  --azul: #087bee;
  --texto: #252238;
  --fondo: #f7f8fc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--texto);
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

.contenedor {
  width: min(1180px, 92%);
  margin: auto;
}

.barra-superior {
  padding: 10px;
  background: #f1e8ff;
  color: #6330ad;
  text-align: center;
  font-size: 13px;
}

.encabezado {
  background: white;
  border-bottom: 1px solid #eee;
}

.encabezado-interior {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 18px 0;
}

.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.marca img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 12px;
}

.marca strong {
  display: block;
  font-size: 23px;
}

.marca span {
  color: var(--morado);
  font-size: 13px;
  letter-spacing: 3px;
}

.buscador {
  display: flex;
  flex: 1;
  background: var(--fondo);
  border-radius: 10px;
  overflow: hidden;
}

.buscador input {
  width: 100%;
  border: none;
  outline: none;
  padding: 17px;
  background: transparent;
  font-size: 14px;
}

.buscador button,
.boton-principal {
  background: var(--morado);
  color: white;
  border: none;
  padding: 15px 25px;
  font-weight: bold;
  cursor: pointer;
}

.enlace-productos {
  color: var(--morado);
  font-weight: bold;
}

.navegacion {
  border-bottom: 1px solid #eee;
}

.enlaces {
  display: flex;
  gap: 35px;
  padding: 16px 0;
  font-size: 14px;
}

.enlaces a:hover {
  color: var(--morado);
}

.portada {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
  background: linear-gradient(110deg, #f1e7ff, #e6f2ff);
  border-radius: 20px;
  margin-top: 30px;
  padding: 60px;
}

.etiqueta {
  color: var(--morado);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

.portada h1 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  margin: 18px 0;
}

.portada p {
  line-height: 1.8;
  color: #666;
  margin-bottom: 30px;
}

.boton-principal {
  display: inline-block;
  border-radius: 9px;
}

.portada-imagen {
  text-align: center;
}

.portada-imagen img {
  width: min(100%, 280px);
  border-radius: 22px;
  box-shadow: 0 15px 40px #7022d922;
}

.seccion {
  padding: 65px 0 10px;
}

.titulo-seccion h2 {
  font-size: 29px;
  margin: 10px 0 25px;
}

.categorias {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.categoria {
  background: var(--fondo);
  padding: 30px 12px;
  border-radius: 15px;
  text-align: center;
  font-size: 27px;
  transition: 0.2s;
}

.categoria span {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: bold;
}

.categoria:hover {
  transform: translateY(-5px);
  background: #efe4ff;
}

.aviso-catalogo {
  background: var(--fondo);
  padding: 55px 25px;
  text-align: center;
  border-radius: 15px;
  color: #666;
}

.nosotros {
  background: #f3edff;
  border-radius: 16px;
  padding: 35px;
  text-align: center;
}

.nosotros p {
  color: #666;
  line-height: 1.7;
}

footer {
  background: #242038;
  color: white;
  padding: 45px 0;
  margin-top: 65px;
}

footer p,
footer small {
  color: #c7c3d3;
}

@media (max-width: 800px) {
  .encabezado-interior {
    flex-wrap: wrap;
    gap: 15px;
  }

  .marca {
    min-width: 0;
  }

  .buscador {
    flex-basis: 100%;
    order: 3;
  }

  .enlaces {
    gap: 20px;
    overflow-x: auto;
  }

  .portada {
    grid-template-columns: 1fr;
    padding: 35px 25px;
  }

  .portada-imagen img {
    max-width: 180px;
  }

  .categorias {
    grid-template-columns: repeat(2, 1fr);
  }
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill, minmax(250px, 1fr)
  );
  gap: 24px;
}

.producto {
  background: white;
  border: 1px solid #eeeeF5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 22px #0000000a;
}

.producto img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f8f6fc;
}

.producto-info {
  padding: 22px;
}

.producto-categoria {
  color: #7022d9;
  font-size: 12px;
  font-weight: bold;
}

.producto h3 {
  font-size: 19px;
  line-height: 1.4;
}

.producto p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.precio {
  display: block;
  font-size: 26px;
  margin: 18px 0;
}

.boton-whatsapp {
  display: block;
  padding: 14px;
  border-radius: 9px;
  background: #7022d9;
  color: white;
  text-align: center;
  font-weight: bold;
}

.boton-whatsapp:hover {
  background: #5515ae;
}

/* TARJETAS DE PRODUCTOS HOGARMANIA STORE */

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 25px;
}

.producto {
  background: #ffffff;
  border: 1px solid #eae5f2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(60, 30, 100, 0.09);
  max-width: 350px;
  transition: transform 0.2s ease;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #f8f6fc;
}

.producto-info {
  padding: 22px;
}

.producto-categoria {
  color: #7022d9;
  font-size: 13px;
  font-weight: bold;
}

.producto h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 12px 0;
}

.producto p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.precio {
  display: block;
  font-size: 27px;
  font-weight: bold;
  color: #242038;
  margin: 20px 0;
}

.boton-whatsapp {
  display: block;
  padding: 15px;
  background: #7022d9;
  color: white;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s;
}

.boton-whatsapp:hover {
  background: #5416ae;
}

/* DISEÑO FINAL DE TARJETA */

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 25px;
}

.producto {
  width: 100%;
  max-width: 340px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e9e5f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.producto img {
  width: 100%;
  height: 290px;
  object-fit: contain;
  display: block;
  background: #f8f6fc;
}

.producto-info {
  padding: 20px;
}

.producto h3 {
  font-size: 19px;
  line-height: 1.4;
}

.producto p {
  font-size: 14px;
  line-height: 1.6;
}

.boton-whatsapp {
  display: block;
  background: #7022d9;
  color: white;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
}
