/* ===== GLOBAL ===== */
body{
  margin:0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:#fff; /* Todo fondo blanco */
  color:#333;
  -webkit-user-select: none; 
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

h1,h2{
  margin:0 0 20px 0;
}

a{
  text-decoration:none;
  color:#333;
  transition: all 0.3s ease;
}

a:hover{
  color:#555;
}

/* ===== HEADER ===== */
.menu{
  width:100%;
  background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,0.05); /* más sutil */
  position:sticky;
  top:0;
  z-index:1000;
}

.menu-content{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  padding:15px 20px;
  position:relative;
}

.logo{
  height:120px;
  width:auto;
  max-width:120px;
}

.menu-nav{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:40px;
}

.menu-nav a{
  font-weight:600;
  font-size:1rem;
  color:#333;
  padding:10px 20px;
  border-radius:5px;
  transition: all 0.3s ease;
}

.menu-nav a:hover{
  background: rgba(0,123,255,0.08);
  color: #007bff;
}

@media (max-width: 768px){
  .menu-nav{
    position:static;
    transform:none;
    margin-left:auto;
    gap:20px;
  }
}

/* ===== SECCIONES ===== */
.hero, .seccion{
  padding:50px 20px;
  background:#fff; /* todo blanco */
  border-radius:0; /* sin bordes redondeados */
  box-shadow:none; /* sin sombra */
  transition: none;
}

.hero h1{
  font-size:2rem;
  font-weight:bold;
  text-align:center;
}

/* ===== GRID DE PRODUCTOS ===== */
.grid, .grid-admin{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
  margin-top:20px;
}

/* ===== PRODUCTO ===== */
.producto{
  background:#fff;
  padding:10px;
  text-align:center;
  display:flex;
  flex-direction:column;
  height:100%;
  border:none; /* sin bordes de contenedor */
  box-shadow:none; /* sin sombras */
}

.producto img{
  width:150px;
  height:150px;
  object-fit:cover;
  margin:0 auto 10px;
}

.producto p{
  margin:4px 0;
}

.producto p.nombre{
  font-size:1.4rem;
  font-weight:bold;
  color:#333;
  min-height:45px;
}

.producto p.id,
.producto p.dimensiones,
.producto p.material{
  font-size:0.85rem;
  color:#666;
}

.producto p.precio{
  font-size:1rem;
  font-weight:bold;
  color:green;
}

.producto p.precioAnterior{
  color:red;
  text-decoration:line-through;
  font-weight:bold;
}

/* ===== BOTONES ===== */
.producto button,
.agregar-carrito,
.btn-agregar{
  margin-top:auto;
  padding:10px 15px;
  border:none;
  border-radius:5px;
  cursor:pointer;
  font-weight:600;
  background:#007bff;
  color:#fff;
  transition: all 0.3s ease;
}

.producto button:hover,
.agregar-carrito:hover,
.btn-agregar:hover{
  background:#0056b3;
}

/* ===== ADMIN ===== */
.admin-section{
  max-width:1200px;
  margin:20px auto;
  padding:20px;
  background:#fff;
  border-radius:0;
  box-shadow:none;
}

.admin-section h1,h2{
  color:#007bff;
}

.admin-section .form-admin{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:30px;
}

.admin-section input[type=text],
.admin-section input[type=number],
.admin-section input[type=file],
.admin-section select{
  padding:10px 12px;
  border:1px solid #ccc;
  border-radius:4px;
  flex:1;
  min-width:160px;
}

/* ===== CARRITO ===== */
.carrito-icono{
  position:fixed;
  bottom:20px;
  right:20px;
  background:#fff;
  padding:12px 16px;
  border-radius:50px;
  box-shadow:0 2px 8px rgba(0,0,0,0.15);
  cursor:pointer;
  font-size:1.2rem;
  font-weight:bold;
  z-index:1000;
}

.modal{
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,0.4);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
}

.modal-content{
  background:#fff;
  padding:25px;
  border-radius:5px;
  width:90%;
  max-width:450px;
  box-shadow:0 2px 8px rgba(0,0,0,0.2);
  position:relative;
}

.modal-content h2{
  margin-top:0;
}

.close{
  position:absolute;
  top:10px;
  right:15px;
  font-size:28px;
  font-weight:bold;
  color:#333;
  cursor:pointer;
}
/* ===== PRODUCTO DELIMITADO Y ANIMADO ===== */
.producto {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid transparent; /* Borde inicial invisible */
}

.producto:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #007bff; /* Borde azul al pasar */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.producto img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
  margin: 0 auto 10px;
}

.producto:hover img {
  transform: scale(1.05);
}

/* Opcional: Animación ligera para el nombre */
.producto p.nombre {
  transition: color 0.3s ease;
}

.producto:hover p.nombre {
  color: #007bff;
}
/* ===== BOTONES SOCIALES FIJOS PEQUEÑOS ===== */
.social-fixed {
  position: fixed;
  top: 10px; /* más arriba */
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px; /* separación entre botones */
  z-index: 3000;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;   /* más pequeños */
  height: 35px;  /* más pequeños */
  border-radius: 50%;
  color: white;
  font-size: 18px; /* tamaño del icono */
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Colores oficiales de cada red */
.btn-social.instagram { background: #E4405F; }
.btn-social.facebook { background: #1877F2; }
.btn-social.tiktok { background: #000000; color: #FFFFFF; }

/* Efecto hover */
.btn-social:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
