* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fcf6fa;
  color: #333;
}

/* --- Encabezado --- */
header {
  background: #B00091;
  color: white;
  text-align: center;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  letter-spacing: 1px;
}

/* --- Navegación --- */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px; 
  background-color: #DE85CD; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

nav a {
  color: white;
  text-decoration: none; 
  font-weight: bold;
  display: inline-block;
  padding: 15px 20px; 
}

nav a:hover {
  color: #B00091; 
}

/* --- Banner --- */
#banner img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* --- Catálogo general --- */
#catalogo {
  text-align: center;
  padding: 40px 20px;
}

#catalogo h2 {
  color: #B00091;
  margin-bottom: 30px;
  font-size: 2rem;
}

.buscador-contenedor {
  margin-bottom: 30px;
}

.buscador-contenedor input {
  padding: 10px 15px;
  width: 300px;
  border-radius: 20px;
  border: 1px solid #DE85CD;
  outline: none;
}

/* --- Tarjetas de Productos --- */
.producto {
  background-color: white;
  border: 1px solid #f0d8e9;
  padding: 20px;
  margin: 15px;
  width: 220px;
  display: inline-block;
  vertical-align: top;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(176, 0, 145, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(176, 0, 145, 0.15);
}

.producto img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.producto h3 {
  color: #444;
  font-size: 1.1em;
  margin-bottom: 10px;
  margin-top: 0;
  height: 40px;
}

.producto p {
  color: #B00091;
  font-weight: bold;
  font-size: 1.3em;
  margin: 0;
}

/* --- Acordeón --- */
#acordeon {
  text-align: center;
  padding: 20px;
  margin-bottom: 40px;
}

#acordeon h2 {
  color: #B00091;
  margin-bottom: 20px;
}

#acordeon button {
  background-color: #DE85CD;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#acordeon button:hover {
  background-color: #B00091;
}

.contenido {
  display: none;
  background-color: white;
  border: 1px solid #f0d8e9;
  border-radius: 8px;
  padding: 15px;
  max-width: 500px;
  margin: 15px auto 0 auto;
}

/* --- Footer --- */
footer {
  background-color: #B00091;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}


/* =========================================
   ESTILOS DEL CARRITO PREMIUM
   ========================================= */

.btn-agregar {
    background: linear-gradient(45deg, #B00091, #DE85CD); 
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 25px; 
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    width: 90%;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(176, 0, 145, 0.3);
}

.btn-agregar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(176, 0, 145, 0.5);
}

.contenedor-carrito {
    max-width: 650px;
    margin: 50px auto;
    padding: 30px;
    background: white; 
    border-radius: 20px; 
    box-shadow: 0px 10px 30px rgba(176, 0, 145, 0.12); 
}

.titulo-carrito {
    color: #B00091;
    text-align: center;
    border-bottom: 2px dashed #DE85CD; 
    padding-bottom: 20px;
    margin-top: 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

#lista-carrito {
    list-style: none; 
    padding: 0;
    margin-top: 20px;
}

#lista-carrito li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdf5fa;
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 5px solid #B00091; 
    box-shadow: 0 3px 8px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

#lista-carrito li:hover {
    transform: translateX(5px); 
}

.carrito-vacio {
    justify-content: center !important;
    color: #B00091 !important;
    font-size: 1.1rem;
    background: transparent !important;
    border: 2px dashed #f2c7e2 !important;
    box-shadow: none !important;
}

.btn-eliminar {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 15px;
    transition: background 0.3s, transform 0.2s;
}

.btn-eliminar:hover {
    background-color: #cc0000;
    transform: scale(1.1); 
}

.total-compra {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #fcf4f9;
    border-radius: 15px;
    border: 1px solid #f2c7e2;
}

.total-compra h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
}

#total-carrito {
    color: #B00091;
    font-weight: 900;
    font-size: 26px;
}

.btn-comprar {
    background: linear-gradient(45deg, #B00091, #DE85CD);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(176, 0, 145, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-comprar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(176, 0, 145, 0.6);
}

#contacto {
  text-align: center;
  padding: 50px 20px;
  background-color: #fcf6fa;
}

#contacto h2 {
  color: #B00091;
  margin-bottom: 30px;
  font-size: 2.2rem;
}

.formulario-contacto {
  max-width: 500px;
  margin: 0 auto; 
  background-color: white;
  padding: 40px;
  border-radius: 20px; /* Borde redondeado premium */
  box-shadow: 0px 10px 30px rgba(176, 0, 145, 0.12); /* Sombra elegante */
  border: none;
  text-align: left; 
}

.campo {
  margin-bottom: 20px;
}

.campo label {
  display: block;
  margin-bottom: 8px;
  color: #B00091;
  font-weight: bold;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #f2c7e2;
  border-radius: 8px;
  font-family: inherit;
  box-sizing: border-box;
  background-color: #fdf5fa;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-color: #B00091;
  background-color: white;
  box-shadow: 0 0 10px rgba(176, 0, 145, 0.2);
}

/* Botón de Enviar con el mismo estilo del carrito */
.formulario-contacto button {
  background: linear-gradient(45deg, #B00091, #DE85CD);
  color: white;
  border: none;
  padding: 15px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(176, 0, 145, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.formulario-contacto button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(176, 0, 145, 0.5);
}

@media screen and (max-width:768px){
    nav ul{
        flex-direction:column;
    }
    #catalogo{
        flex-direction:column;
        align-items:center;
    }
    .producto{
        width:90%;
    }

}

/* Estilos especiales para pantallas de celulares */
@media screen and (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: column; /* Cambia el menú de fila horizontal a lista vertical */
        padding: 0;
        margin: 0;
        list-style: none;
         background: linear-gradient(45deg, #B00091, #DE85CD); /* Mantiene el color rosa fucsia de tu marca */
        text-align: center;
    }

    nav ul li {
        width: 100%; /* Hace que cada botón abarque todo el ancho de la pantalla */
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Añade una sutil línea divisoria */
    }

    nav ul li a {
        display: block;
        padding: 12px 0; /* Espaciado táctil cómodo para presionar con los dedos */
        color: white;
        text-decoration: none;
        font-weight: bold;
    }
}
