/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fdfdfd;
}

/* Encabezado */
header {
  background-color: #638475ff; /* verde elegante */
  color: #fff;
  padding: 20px;
  text-align: center;
}

header h1 {
  font-size: 2rem;
}

header p {
  font-size: 1rem;
}

/* Navegación */
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #444;
  padding: 10px;
}

nav a {
  color: #f8f9f5f0; /* rojo joya */
  text-decoration: none;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero (presentación) */
.hero {
  background-size: coveR;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(4, 88, 31);
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}



/* Secciones */
section {
  padding: 20px;
}

/* Categorías */
.categorias {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.categoria {
  width: 30%;
  margin: 10px;
  padding: 15px;
  border: 1px solid #ccc;
  text-align: center;
  background-color: #fafafa;
  border-radius: 8px;
}

.categoria h3 {
  color: #444;
}


/* Pie de página */
footer {
  background-color: #1d4e89ff; /* azul profundo */
  color: #f9dec9ff; /* beige elegante */
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* 📱 Responsividad */

/* Tablets (pantallas medianas) */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .hero {
    font-size: 1.2rem;
    padding: 30px 15px;
    height: 200px;
  }

  .categoria {
    width: 45%;
  }
}

/*Parte de los productos*/

.anillos {
  padding: 20px;
}

/* Parte superior */
.detalle-producto {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.descripcion {
  width: 50%;
  background-color: #fafafa;
  padding: 20px;
  border-radius: 8px;
}

.imagen {
  width: 50%;
  text-align: center;
}

.imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Parte inferior: galería */
.galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.recuadro {
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  background-color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.recuadro:hover {
  transform: scale(1.05);
}

.recuadro img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
  .detalle-producto {
    flex-direction: column;
  }
  .descripcion, .imagen {
    width: 100%;
  }
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .galeria {
    grid-template-columns: 1fr;
  }
}

.detalle-card {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

.titulo-producto {
  font-size: 1.8rem;
  color: #444;
  margin-bottom: 15px;
  text-align: center;
}

.caracteristicas {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.caracteristicas li {
  font-size: 1rem;
  margin: 8px 0;
  color: #555;
}

.precio {
  font-size: 1.4rem;
  color: #e11616;
  font-weight: bold;
}

.btn-comprar {
  display: block;
  width: 100%;
  padding: 12px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-comprar:hover {
  background: #222;
}



/* Móviles (pantallas pequeñas) */
@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 5px;
  }

  header h1 {
    font-size: 1.2rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .hero {
    font-size: 1rem;
    padding: 20px 10px;
    height: 150px;
  }

  .categoria {
    width: 100%;
  }

  footer {
    font-size: 0.8rem;
  }
}

