/* Importar fuentes */
@import url('fuentes.css');
@import url('footer.css');
/*@import url('productos.css');


/* Colores principales */
:root {
    --rosa-suave: #E6D5C5;
    --celeste-suave:  #CCC3BA;
    --amarillo-suave: #EE7D13;
    --fondo-suave: #F1D3C8;
    --texto-principal: #333;
    --texto-secundario: #666;
    --negro-: #000
}

/* Estilos generales */


body {
    font-family: var(--fuente-cuerpo);
    background-color: var(--fondo-suave);
    color: var(--texto-principal);
    margin: 0;
    padding: 0;
    padding-top: 80px;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    flex-direction: column;
}


html {
  overflow-x: hidden;
}

.login {
    position: end;
    text-align: right; /* Alinea el botón a la derecha */
    margin-top: 20px; /* Espacio superior */
    margin-right: 20px; /* Espacio derecho (opcional) */
    background-color: orange;
    border-radius: 10px;
}

.tienda-direccion {
    position: absolute; /* Lo posicionamos absolutamente */
    top: 100%; /* Lo coloca justo debajo del header */
    left: 0;
    width: 100%;
    background-color: rgba(248, 248, 248, 0.8); /* Ejemplo de fondo semitransparente */
    color: #555;
    font-size: 0.8em;
    text-align: center;
    padding: 5px 0;
    z-index: 4; /* Un poco menor que el header para que no lo tape (si es necesario) */
}


/* Titulares */
h1 {
    font-family: var(--fuente-cursiva);
    font-size: 2.5em;
    color: var(--negro-);
    text-align: center;
}

h2, h3 {
    font-family: var(--fuente-titulos);
    color: var(--texto-secundario);
    text-align: center;
}

/* Header */
/* Header general */
header {
    left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--rosa-suave);
  z-index: 1000;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 15px 15px;
}

/* Contenedor interno del header */
.header-container {
  display: flex;
  justify-content: space-between; /* botón izq - logo centro - carrito der */
  align-items: center;
  padding: 10px 20px;
  max-width: 100%;
  box-sizing: border-box;
}


/* Botón menú y carrito ajustados */
#menu-btn,
.carrito {
  flex-basis: 50px;
}


.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

#titlee{
    font-weight: 800;
    margin-top: -10px;
    margin-bottom: -20px;
     font-size: 1.5em;
     padding: 0px;
    
}

.logo-image {
    margin: -8px;
    width: 100px;
    height: 100px;
    border-radius: 10%;
    z-index: 2;
    position: relative;
}

/*

.header-container{
    justify-content: space-between;
    display: flex;
    align-items: center;
    margin: 5px;
    padding: 2px;
}


/* Enfoque */
#enfoque {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
    margin: auto;
}

#enfoque p {
    font-size: 1.2em;
    color: var(--texto-secundario);
}

/* Contacto */
#contacto {
    background-color: var(--rosa-suave);
    padding: 40px 20px;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: auto;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px 20px;
    background-color: var(--amarillo-suave);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-size: 1.1em;
}

form button:hover {
    background-color: var(--rosa-suave);
}

.formulario-contacto{
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.botones-sociales {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-social {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  color: white;
  transition: background-color 0.3s;
}

.btn-social.whatsapp {
  background-color: #25D366;
}

.btn-social.whatsapp:hover {
  background-color: #1ebe57;
}

.btn-social.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.btn-social.instagram:hover {
  filter: brightness(1.1);
}


/* Footer */
/* Estilos generales para el contenedor del footer

#footer-dinamico {
    background-color: #ccc; /* Fondo claro para el footer 
    padding: 20px 0;
    font-family: 'Arial', sans-serif;
    width: 100%;
    margin-top: 10vh;
}

/* Estilos del footer 

.footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Contenedor principal del footer 

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
    width: 100%;
}

/* Estilo para cada sección del footer 
.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.footer-section p, .footer-section ul {
    font-size: 18px;
    color: #666;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #007bff;
    text-decoration: none;
    font-size: 10px;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Estilos del pie de página
.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #333;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 20px;
}

/* Responsive: tablets y móviles 

@media (max-width: 768px) {
  .footer-container {
    align-items: center;
    gap: 15px;
    width: 80%;
  }

  .footer-section {
    min-width: auto;
    width: 100%;
    text-align: center;
  }

  .footer-section h4 {
    font-size: 16px;
  }

  .footer-section p,
  .footer-section ul {
    font-size: 12px;
  }

  .footer-copy {
    font-size: 13px;
  }
}


/* */
@media (max-width: 480px) {
    
    div:where(.swal2-container) .swal2-input {
        width: 90%;
        max-width: 220px;
    }

  #footer-dinamico {
    padding: 15px 10px;
    margin-top: 100px;
  }
  

  .footer-section h4 {
    font-size: 18px;
  }

  .footer-section p,
  .footer-section ul {
    font-size: 15px;
  }

  .footer-copy {
    font-size: 12px;
  }
  
      #enfoque {
        padding: 40px 20px;
        background-color: #fff;
        text-align: center;
        margin: auto;
        width: 80%;
    }
}

/* whatsapp*/
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  background-color: #20b954;
}

.whatsapp-button svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}



/* Contenedor de productos */


/* Botones */

/*BOTON DE LOGOUT*/
.btn-logout {
    background-color: #f87171; /* rojo suave */
    color: white;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-logout:hover {
    background-color: #ef4444; /* rojo un poco más fuerte */
}



button {
    background-color: var(--fondo-suave);
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: var(--rosa-suave);
    color: #fff;
}

/* Carrito */
.carrito {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
}

#cart-button svg {
  width: 30px;
  height: auto;
  display: block;
}


#cart-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    width: 100%;
    border-radius: 10px;
}

#lista-carrito {
    margin: 0;
    padding: 0;
    list-style: none;
}

#lista-carrito li {
    margin: 5px 0;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 10px;
}

.hidden {
    display: none;
}


 /* Estilos del menú desplegable */
#menu-btn {
    font-size: 1.8em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

#sidebar {
    z-index: 5;
    position: fixed;
    top: 0;
    left: -250px; /* Oculto por defecto */
    width: 250px;
    height: 100vh;
    background-color: var(--fondo-suave);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar ul li {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2); /* Línea separadora */
}

#sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    display: block;
}

#sidebar ul li a:hover {
    background-color: var(--rosa-suave);
    color: white;
}

/* Clase para mostrar el menú */
.menu-visible {
    left: 0 !important;
}

#sidebar.activo {
    left: 0; /* Visible cuando tiene la clase 'activo' */
}

.menu-desplegable ul {
    list-style: none;
    padding: 20px;
}

.menu-desplegable li {
    margin: 10px 0;
}

.menu-desplegable .login button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
}

.menu-desplegable .login button:hover {
    background-color: #6f6c6c;
}

#login-btn {
    background-color: transparent;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

#login-btn:hover {
    background-color: #6f6c6c;
}


/* ESTILO DE EL CARRITO.HTML */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
}

/* whatsapp estilos*/
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* Asegurar que quede por encima de todo */
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
}

.btn-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Ajustes para móviles */
@media screen and (max-width: 768px) {
    .btn-whatsapp {
        bottom: 15px; /* Ajusta la distancia del borde inferior */
        right: 15px; /* Ajusta la distancia del borde derecho */
        width: 50px;
        height: 50px;
    }

    .btn-whatsapp svg {
        width: 30px;
        height: 30px;
    }
}

/* CSSS DE  LOS PRODUCTOS Y CARRUSELES*/


/* Estilos generales */
#titleee{
    margin-top: 50px;
    margin-bottom: 10px;
    
}

#carrusel {
    padding: 20px;
    text-align: center;

}

#carrusel h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

#carousel-container {
  display: flex;
  justify-content: center;
}

#productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  max-width: 1200px;
  width: 100%;
}

/* CSS DE TODOS LOS PRODUCTOS*/

#todos-productos{
    padding: 20px;
    text-align: center;

}

#todos-productos-container{
    margin: auto;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Estilo de cada producto */
.carousel-item {
  background-color: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
  padding-bottom: 8px;
}

.carousel-item:hover {
  transform: scale(1.02);
}

.carousel-item img.item {
  max-width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 30px;
}

.carousel-item h3 {
  font-size: 1rem;
  margin: 10px 0 5px;
  color: #444;
}

.clickable-title {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.clickable-title:hover {
    color: #e91e63;
}

.descripcion {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 6px;
}

.stock {
    font-weight: bold;
    color: #388e3c; /* verde si hay stock */
    margin-bottom: 6px;
}

.precio {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff5722;
    margin-bottom: 10px;
}

.carousel-item button {
  margin-top: 8px;
  background-color: #ffb6c1;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.carousel-item button:hover {
  background-color: #ff80ab;
  color: white;
}


/* Responsive: móviles 360px a 440px */
@media (max-width: 460px) {
  #productos-container, .productos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }
  
  #todos-productos{
      overflow: hidden;
  }


  .carousel-item img.item {
    height: 240px;
  }
  
  /* achica los botones del modal*/

    #modal-talla {
        gap: 2px;
        
    }

}

/* Responsive: móviles muy pequeños */
@media (max-width: 330px) {
    
#carrusel h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    width: 40vh;
}
    
  #productos-container, .productos-grid {
    grid-template-columns: 1fr;
    width: 80%;
  }
}

/* Responsive: pantallas grandes */
@media (min-width: 460px) {
  #productos-container, .productos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  #productos-container, .productos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/*MODALL DE CARRITO*/
/* Modal base */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Oculto por defecto */
.modal.hidden {
  display: none;
}

/* Contenido del modal */
.modal-content {
  background-color: var(--rosa-suave);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}

/* Botón de cerrar (X) */
.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* Imagen del producto */
.modal-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 0.5rem;
}

.modal,h3,p,a,h2{
    margin: 0px;
}

/* Selects y labels */
.modal-content select,
.modal-content label {
  display: block;
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  background-color: white;
}

.modal-content select {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
}

/* Contenedor de opciones (colores y talles) */
.opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem 0;
  justify-content: center;
}

/* Botones de opción */
.opciones button {
  padding: 0.5rem 1rem;
  background-color: #f0f0f0;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

/* Hover general */
.opciones button:hover {
  background-color: #ffebe6;
  border-color: #ff6f61;
}

/* Botón seleccionado */
.opciones button.selected {
  background-color: #ff6f61;
  color: white;
  border-color: #ff6f61;
}


.modal-content button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #ff6f61;
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #ff4a3c;
}

.modal-lateral{
    display: flex;
    justify-content: center;
}
.modal-part2{
    display: inline;
    margin: 20px;
}

/*BOTONES TALLA COLOR*/
/* Estilo base */
.btn-variant {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background-color: #f0f0f0;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.btn-variant:hover {
  background-color: #ffe0db;
  border-color: #ff6f61;
}
.btn-variant.selected {
  background-color: #ff6f61;
  border-color: #ff6f61;
  color: white;
}
.btn-variant-content {
  display: inline-block;
}

.btn-color {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ccc;
  margin: 0.25rem;
  cursor: pointer;
  display: inline-block;
}
.btn-color.selected {
  border: 3px solid #ff6f61;
}


/* Contenedor responsive */
.row-fluid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}


@media (max-width: 460px) {
    
     .modal-lateral{
        display: flex;
        justify-content: center;
    }
    
    .modal-part2{
        display: inline;
        margin: 20px;
        margin-bottom: 0px;
    }
    
    .modal-img {
        
      margin-top: -30px;
      margin-bottom: -50px;
      width: 100%;
      height: 450px;
      object-fit: contain;
      border-radius: 0.5rem;
    }
    
    .modal-content button {
        
        margin-top: 5px;
        padding: 5px 10px;
        background-color: #ff6f61;
        color: white;
        border: none;
        border-radius: 0.75rem;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

}

/* Responsive: pantallas grandes */
@media (min-width: 768px) {
    
    .modal-lateral{
        display: flex;
        justify-content: center;
    }
    .modal-part2{
        display: inline;
        margin: 20px;
    }
    
    .modal-img {
      width: 100%;
      height: 600px;
      object-fit: contain;
      border-radius: 0.5rem;
    }

}


/*STILES DEL DETALLE-PRODUCTOS

        .contenedor-producto {
            display: flex;
            flex-direction: column;
            padding: 1rem;
            max-width: 900px;
            margin: auto;
            margin-top: 120px;
        }
        
        .detalle-producto {
            display: flex;
            flex-direction: column;
            background-color: white;
        }
        .imagenes-carousel{
            max-width: 400px;
        }
        
        .imagenes-carousel img {
            max-width: 100%;
            border-radius: 12px;
        }
        
        
        .miniaturas img {
            width: 60px;
            border-radius: 8px;
            cursor: pointer;
        }
        
        .miniaturas {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            background-color: #ccc;
        }
        .miniatura {
            width: 60px;
            height: auto;
            cursor: pointer;
            border: 2px solid transparent;
            border-radius: 4px;
        }
        .miniatura:hover {
            border-color: #aaa;
        }
        
        
        .info-producto {
            margin-top: 1.5rem;
        }
        
        #btn-agregar {
            padding: 10px 20px;
            background-color: #f69;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 1rem;
        }
        
        .sugerencias {
            padding: 2rem 1rem;
            background-color: #fafafa;
            text-align: center;
        }
        
        .grid-productos {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

/* BOTONES CANTIDAD MODAL */
.modal-cantidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-cantidad {
    background-color: #eee;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-cantidad:hover {
    background-color: #ddd;
}

#cantidad-producto {
    width: 48px;
    height: 32px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    pointer-events: none; /* evita el input manual */
}

/* CSSS DE DETALLES DE PRODUCTO*/

/* Contenedor general */

#detalle-producto{
    width: 100%;
}

.detalle-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    margin: 40px auto;
    max-width: 1000px;
    padding: 20px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Columna lateral izquierda */
.detalle-lateral {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Imagen principal del producto */
.detalle-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Miniaturas de colores */
.miniaturas-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.miniatura-color {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.miniatura-color:hover {
    border: 2px solid #555;
}

/* Columna de información del producto */
.detalle-info {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botones de color */
.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-color {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
}

.btn-color.selected {
    border: 3px solid #000;
    transform: scale(1.1);
}

/* Talles */
.talle-options {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-variant {
    border: 1px solid #999;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.3s, border 0.3s;
}

.btn-variant.selected {
    background-color: #eee;
    border: 2px solid #000;
}

/* Stock y cantidad */
#stock-disponible {
    font-weight: bold;
}

/* Selector de cantidad */
input[type="number"] {
    width: 60px;
    text-align: center;
    padding: 5px;
    margin: 0 10px;
}



#agregar-carrito {
    margin-top: 20px;
    background-color: #007bff;
}

#agregar-carrito:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .detalle-container {
        flex-direction: column;
        align-items: center;
    }

    .detalle-lateral,
    .detalle-info {
        width: 100%;
        max-width: 500px;
    }
    
}

@media (max-width: 460px) {

    #detalle-producto{
    width: 100%;
}
}


/* Sección de envío */
.seccion-envio {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.seccion-envio h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

#form-envio {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

#form-envio label {
    font-weight: bold;
    color: #444;
}

#codigo-postal {
    width: 100%;
    max-width: 250px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

#form-envio button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#form-envio button:hover {
    background-color: #0056b3;
}

/* Resultado del cálculo */
#resultado-envio {
    margin-top: 20px;
    font-size: 1.1em;
    color: #333;
    text-align: center;
}


/* TARJETA DE PRODUCTOS*/
/* Estilos para las tarjetas de productos */
.producto-oferta-card {
  position: relative;
  background-color: #fff8f5;
  border: 1px solid #f5d0c5;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-oferta-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.producto-oferta-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.producto-oferta-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: #333;
  font-weight: 600;
}

.producto-oferta-card p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #555;
}

.precio-anterior {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.precio-oferta {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e63946;
}

.etiqueta-oferta {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e63946;
  color: white;
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  font-weight: bold;
}

/* Estilos para los botones de navegación de Swiper */
.swiper-button-prev,
.swiper-button-next {
  color: #fff;
}

/* STYLES DE ENVIOS.HTML*/
.envios-contenido section {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.envios-contenido section:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.envios-contenido section h2 {
  font-size: 1.3rem;
  color: #b3589c;
  margin-bottom: 1rem;
}

.envios-contenido section p,
.envios-contenido section ul {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.envios-contenido section ul {
  padding-left: 1.2rem;
  list-style: none;
}

.envios-contenido section ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.envios-contenido section ul li::before {
  content: "🌷";
  position: absolute;
  left: 0;
  top: 0;
}

/* CSS DEL CARRUSEL DE DETALLES*/

.glider-contain {
  margin: 20px auto;
  max-width: 95%;
}

.slide {
    background: var(--rosa-suave);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-left: 50px;
    margin-right: 50px;
}

.glider-track {
    max-width: 1200px; /* o un valor más racional */
    transition: transform 0.3s ease;
}

.slide button {
    background-color: #eb9acf;

}


#productos-carrusel {
    margin: 2em 0;
    padding: 1em;
    background-color: #d753d436;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .slide img {
        width: 140px;
        height: 140px;
    }

    .slide h4 {
        font-size: 0.9rem;
    }

    .slide p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .slide img {
        width: 120px;
        height: 120px;
    }

    .slide h4, .slide p {
        font-size: 0.8rem;
    }

    .slide button {
        background-color: #eb9acf;
        font-size: 0.8rem;
        padding: 0.3em 0.6em;
    }
}

/* BREAD NOSE CUANTO*/
.breadcrumbs {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px; /* Espacio debajo de los breadcrumbs */
}

.breadcrumbs a.crumb {
    color: #007bff; /* Color de los enlaces */
    text-decoration: none; /* Quitar el subrayado por defecto */
    transition: color 0.3s ease; /* Transición suave al pasar el ratón */
}

.breadcrumbs a.crumb:hover {
    color: #0056b3; /* Color al pasar el ratón */
    text-decoration: underline; /* Añadir subrayado al pasar el ratón */
}

.breadcrumbs .divider {
    margin: 0 8px; /* Espacio alrededor del separador */
    color: #000; /* Color del separador */
}

.breadcrumbs .crumb.active {
    color: #333; /* Color del elemento activo (página actual) */
    font-weight: bold; /* Resaltar el elemento activo */
    text-decoration: none; /* Asegurar que no esté subrayado */
}

/*NOVEDADES CSS*/

/* --- Sección Novedades (Renombrada) --- */
#novedades-section { /* ID de la sección principal de novedades */
    padding: 40px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.novedades-container { /* Contenedor para la sección de novedades */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#novedades-section h2 { /* Título de la sección de novedades */
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

#novedades-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

/* Contenedor del Carrusel (Viewport visible) de Novedades */
.novedades-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

/* Contenedor interno que se moverá (flexbox) de Novedades */
.novedades-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    white-space: nowrap;
}

/* Estilo individual de cada item del carrusel de Novedades */
.novedades-carousel-item { /* Clase específica para el item del carrusel */
    flex: 0 0 auto;
    width: calc(100% / 3);
    box-sizing: border-box;
    padding: 15px;
    text-align: left;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.novedades-carousel-item:hover {
    transform: translateY(-5px);
}

.novedades-carousel-item a {
    text-decoration: none;
    color: inherit;
}

.novedades-carousel-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
}

.novedades-carousel-item h3 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 3em;
}

.novedades-carousel-item .novedades-precio { /* Clase específica para el precio */
    font-size: 1.4em;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 15px;
}

.novedades-carousel-item .novedades-precio-original { /* Clase específica para precio original */
    text-decoration: line-through;
    color: #999;
    font-size: 0.8em;
    margin-right: 5px;
}

.novedades-carousel-item .novedades-precio-oferta { /* Clase específica para precio oferta */
    color: #dc3545;
}

.novedades-carousel-item .novedades-btn-ver-mas { /* Clase específica para el botón */
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.novedades-carousel-item .novedades-btn-ver-mas:hover {
    background-color: #0056b3;
}

/* Controles de navegación del carrusel de Novedades */
.novedades-navigation {
    position: relative;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.novedades-navigation button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.novedades-navigation button:hover {
    background-color: #0056b3;
}

.novedades-navigation button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Media Queries para Responsividad de Novedades (ejemplos) --- */
/* ... tu CSS existente ... */

/* Media Queries para Responsividad de Novedades */

@media (max-width: 1024px) {
    #novedades-section h2 {
        font-size: 2em;
    }
    .novedades-carousel-item {
        width: calc(100% / 2);
    }
}

/* Ajustes específicos para móviles */
@media (max-width: 768px) {
    #novedades-section {
        padding: 30px 0;
    }
    #novedades-section h2 {
        font-size: 1.8em;
    }
    .novedades-carousel-item {
        width: 100%;
        margin: 0;
        /* --- ESTAS SON LAS LÍNEAS CLAVE --- */
        max-height: 400px; /* Limita la altura máxima de la tarjeta */
        overflow: hidden; /* Oculta el contenido que se desborda */
        /* --- FIN LÍNEAS CLAVE --- */
    }
    .novedades-carousel-item img {
        height: 200px; /* Puedes darle una altura fija a la imagen para consistencia */
        object-fit: cover; /* Recorta la imagen para que cubra el espacio sin distorsionarse */
        margin-bottom: 10px; /* Ajusta el margen si cambias la altura de la imagen */
    }
    .novedades-carousel-wrapper {
        padding: 0;
    }
    /* Puedes ajustar el tamaño de fuente y padding del texto dentro del item */
    .novedades-carousel-item h3 {
        font-size: 1.1em;
        -webkit-line-clamp: 2; /* Mantener límite de líneas, o ajustarlo si es necesario */
        height: auto; /* Dejar que el texto ocupe el espacio necesario */
        margin-bottom: 5px;
    }
    .novedades-carousel-item .novedades-precio {
        font-size: 1.2em;
        margin-bottom: 5px;
    }
    .novedades-carousel-item .novedades-btn-ver-mas {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    #novedades-section h2 {
        font-size: 1.5em;
    }
    .novedades-navigation button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

/* ... tu CSS existente para #novedades-section, .novedades-container, h2 ... */

/* Contenedor principal de Swiper */
.swiper.novedadesSwiper {
    width: 100%;
    height: auto; /* O una altura fija si lo prefieres */
    /* Puedes añadir overflow: hidden; aquí si quieres */
    /* position: relative; ya viene con Swiper */
}

/* El envoltorio de los slides (donde están tus items) */
.swiper-wrapper.novedades-carousel {
    /* Estas propiedades son manejadas por Swiper, no las forces aquí: */
    /* display: flex; */
    /* transition: transform 0.5s ease-in-out; */
    /* white-space: nowrap; */
    /* justify-content: center; */ /* Swiper lo gestiona con centeredSlides */
}

/* Estilo individual de cada item del carrusel de Novedades */
.novedades-carousel-item { /* Esta clase sí la sigues usando para tus estilos */
    /* flex: 0 0 auto; */ /* Esto ya lo maneja Swiper */
    /* width: calc(100% / 3); */ /* Esto ya lo maneja Swiper con slidesPerView */
    box-sizing: border-box;
    padding: 15px;
    text-align: left;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 10px; /* Margen horizontal entre slides, complementará spaceBetween de Swiper */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    /* Para el centrado de contenido interno, si los ítems son más pequeños que 100% en móviles */
    align-items: center; /* Centra el contenido verticalmente en el item */
}

/* ... el resto de tus estilos para novedades-carousel-item, img, h3, p, etc. ... */

/* Estilos para los botones de navegación de Swiper (opcional, puedes personalizarlos) */
.novedades-button-next,
.novedades-button-prev {
    color: #007bff; /* Color de las flechas */
    /* Si quieres cambiar el tamaño o la posición, puedes hacerlo aquí */
}

/* Estilos para la paginación (los puntos) de Swiper (opcional) */
.novedades-pagination .swiper-pagination-bullet {
    background: #007bff; /* Color de los puntos inactivos */
    opacity: 0.5;
}
.novedades-pagination .swiper-pagination-bullet-active {
    background: #0056b3; /* Color del punto activo */
    opacity: 1;
}

/* Media Queries: Swiper gestiona slidesPerView, pero puedes mantener tus otros ajustes */
@media (max-width: 768px) {
    .novedades-carousel-item {
        max-height: 400px;
        overflow: hidden;
    }
    .novedades-carousel-item img {
        height: 200px;
        object-fit: cover;
    }
    /* ... otros ajustes específicos para móviles que no sean de slidesPerView ... */
}