* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9; /* Fondo claro con estilo */
  color: #222; /* Texto principal más suave que el negro */
}

.contenedor-principal {
  max-width: 1200px;  /* o el ancho que prefieras */
  margin: 20px auto;
  padding: 0 20px;    /* espacio interno lateral */
}

.menu {
  list-style: none;
  background-color: #fff; /* Menú claro */
  display: flex;
  justify-content: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #d4af37;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  color: #222;
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.menu > li:hover {
  background-color: #f0e6d2; /* Tono elegante tipo beige claro */
}

.submenu {
  display: none;
  position: absolute;
  background-color: #ffffff;
  list-style: none;
  min-width: 160px;
  z-index: 10;
  border: 1px solid #e0e0e0;
}

.submenu > li a {
  color: #444;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  transition: background 0.3s ease;
}

.menu > li:hover .submenu {
  display: block;
}

.submenu > li a:hover {
  background-color: #f0e6d2;
  color: #000;
}

.submenu li {
  border-bottom: 1px solid #eee;
}

/* Posicionar el botón a la derecha del nav */
.usuario-header {
	position: absolute;
	top: 20px;
	right: 40px;
}

.btn-login {
	background-color: #333; /* color yeso */
	color: #f5f5f0;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: background-color 0.3s;
}

.btn-login:hover {
	background-color: #d4af37; /* tono más oscuro del yeso */
}

.btn-logout {
	background-color: #e74c3c; /* color yeso */
	color: #f5f5f0;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: background-color 0.3s;
}

.btn-logout:hover {
	background-color: #c0392b; /* tono más oscuro del yeso */
}

.iframe-contenedor {
  width: 90%;
  margin: 30px auto;
  border: 2px solid #d4af37; /* dorado */
  border-radius: 10px;
  height: 80vh;
  overflow: hidden;
  background-color: #fff;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.boton {
  background-color: #d4af37;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.boton:hover {
  background-color: #b9972e;
}

footer {
  background-color: #fff;
  color: #666;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  border-top: 1px solid #eee;
}

.galeria-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* tarjetas fluidas */
  gap: 30px;
  justify-items: center;
  padding: 30px 0;
  background-color: #fff;
  border-radius: 12px;
  width: 100%;
  margin: 30px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* sombra elegante */
}

.item-galeria {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 260px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); /* sombra moderna */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-galeria:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.item-galeria img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.item-galeria .info {
  padding: 15px;
  text-align: center;
}

.item-galeria .info h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #111;
  font-weight: 600;
}

.item-galeria .info p {
  font-size: 16px;
  color: #555;
  font-weight: 500;
}

.carrito-icono {
	float: right;
}


/* Diseño por categorias */

.categoria {
  margin: 50px 0;
}

.categoria h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #222;
  padding-left: 10px;
  border-left: 4px solid #d4af37;
}

.fila-productos {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}


/* link */
a{
  text-decoration: none;
}

/* Página producto */
.producto-detalle {
  background-color: #fff;
  border: 2px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  text-align: left;
}

#form-agregar-carrito {
  margin-top: 30px;
}

#form-agregar-carrito button {
  background-color: #d4af37;
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#form-agregar-carrito button:hover {
  background-color: #b9972e;
}


/* Página producto.php */

.producto-contenido {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.producto-info {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.producto-imagen {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.producto-imagen img {
  width: 100%;
  max-width: 600px; /* Aumentamos el tamaño para mejor visualización */
  height: auto;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* LOGIN */

.login-contenedor {
  max-width: 420px;
  margin: 60px auto;
  background-color: #fff;
  border: 2px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
}

.formulario-login {
  display: flex;
  flex-direction: column;
}

.titulo-login {
  text-align: center;
  font-size: 26px;
  margin-bottom: 30px;
  color: #222;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 10px;
}

.formulario-login label {
  margin: 10px 0 5px;
  font-weight: 600;
  color: #333;
}

.formulario-login input[type="text"],
.formulario-login input[type="password"],
.formulario-login input[type="date"],
.formulario-login select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  margin-bottom: 10px;
  transition: border-color 0.3s ease;
  font-family: 'Segoe UI', sans-serif;
}

.formulario-login input:focus,
.formulario-login select:focus {
  border-color: #d4af37;
  outline: none;
}

.boton-login {
  background-color: #d4af37;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.boton-login:hover {
  background-color: #b9972e;
}

/* Mensaje de error */
.mensaje-error {
    color: red;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.cantidad-container {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin: 5px 0;
}

.btn-cantidad {
    padding: 8px 12px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.btn-cantidad:hover {
    background-color: #ddd;
}

#cantidadProducto {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    background-color: #fff;
}

/* Carrito */

.tabla-carrito {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

.tabla-carrito th, .tabla-carrito td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.tabla-carrito th {
  background-color: #f0e6d2;
  color: #222;
  font-weight: bold;
  font-size: 16px;
}

.tabla-carrito tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tabla-carrito button {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tabla-carrito button:hover {
  background-color: #c0392b;
}

.total-carrito {
  font-size: 20px;
  font-weight: bold;
  text-align: right;
  margin-bottom: 20px;
  color: #333;
}

/* Estilos correspondientes al modal de contacto */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-contenido {
  background: #fff;
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  border: 2px solid #d4af37;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cerrar:hover {
  color: #d4af37;
}

.modal-contenido input,
.modal-contenido textarea,
.modal-contenido button {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: 'Segoe UI', sans-serif;
  transition: border-color 0.3s ease;
}

.modal-contenido input:focus,
.modal-contenido textarea:focus {
  border-color: #d4af37;
  outline: none;
}

.modal-contenido button {
  background-color: #d4af37;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-contenido button:hover {
  background-color: #b9972e;
}

/* Subir_Productos estilos */
.agregar-prenda {
  max-width: 600px;
  margin: 40px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid #d4af37;
}

.titulo {
  text-align: center;
  font-size: 26px;
  margin-bottom: 30px;
  color: #222;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 10px;
}

.formulario-prenda .form-grupo {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.formulario-prenda label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.formulario-prenda input[type="text"],
.formulario-prenda input[type="number"],
.formulario-prenda input[type="file"],
.formulario-prenda select,
.formulario-prenda textarea {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  font-family: inherit;
  background-color: #fafafa;
  transition: border-color 0.3s;
}

.formulario-prenda input:focus,
.formulario-prenda select:focus,
.formulario-prenda textarea:focus {
  outline: none;
  border-color: #d4af37;
  background-color: #fff;
}

.botones {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
  border: none;
}

.btn-primario {
  background-color: #d4af37;
  color: #fff;
}

.btn-primario:hover {
  background-color: #b9972e;
}

.btn-secundario {
  background-color: #ccc;
  color: #333;
}

.btn-secundario:hover {
  background-color: #aaa;
}

.menu .btn-primario {
  background-color: #d4af37;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.menu .btn-primario:hover {
  background-color: #b9972e;
}
