@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito Sans", sans-serif;
  display: flex;
  flex-direction: column;
}

#general {
  display: grid;
  grid-template-rows: auto 1fr auto; /* Header - Main - Footer */
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0px 20px;
  transition: 0.7s;
  border-bottom: 1px solid #eee;
  color: #C7D5BC;
  z-index: 200;
  background: #fff;
}

.logo {
  font-size: 12px;
  font-weight: 700;
  color: #C7D5BC;
  white-space: nowrap;
  letter-spacing: 1px;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.1rem;
  margin-left: 0.1rem;
}

.brand .logo {
  border-radius: 50%;
  width: 4.5rem;
  margin: 0.3rem;
  
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  margin: 0 25px;
  letter-spacing: 2px;
  font-weight: 600;
  transition: 0.7s;
}

nav a:hover {
  color: #C7D5BC;
  transform: scale(1.1);
}

.iconos {
  display: flex;
  gap: 20px;
  padding: 10px;
}

.iconos a {
  width: 30px;
  height: 30px;
  cursor: pointer;
  text-decoration: none;
}

.iconos a:hover {
  transform: scale(1.2);
}

.iconos img{
    width: 1.5rem;
    margin: 0.5rem;
}

/* ===== MAIN ===== */
main {
  width: 100%;
  margin-top: 0.2rem; /* deja espacio por el header fijo */
  padding: 1rem 0;
  flex: 1;
  
}

.productos {
  width: 97%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  margin: 0;
  justify-content: center;
  gap: 1px;
  padding: 5px;
}

.producto {
  display: flex;
  flex-direction: column;
  
  
  padding: 20px;
  text-align: center;
  
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: max-content;
}

.producto p{
    margin: 0.1rem;
    text-align: left;
    
}

.producto h3{
    margin: 0.2rem;
    text-align: left;
}



.precio_original {
  font-size: 18px;
  color: #888;
  margin: 0.2rem 0;
  text-decoration: line-through;
}

.moneda {
  font-size: 18px;
  color: #555;
}

.categoria {
  text-align: center;
  margin: 1rem 10px;
  font-size: 30px;
  color: #333;
  letter-spacing: 2px;
  font-weight: 600;
  font-family: "Nunito Sans", sans-serif;
  padding: 10px;
  border-right: #25D366;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.producto img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* ⭐ CAMBIO: contain en vez de cover */
    border-radius: 8px;
    margin-bottom: 10px;
     /* Fondo suave para áreas vacías */
    padding: 10px; /* Espacio interno para que no toque los bordes */
}



.btn {
  background-color: #C7D5BC;
  color: #333;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  
}

.btn:hover {
    
  background-color: #a3b18a;
}

/* ===== FOOTER ===== */
footer {
  background-color: #C7D5BC;
  color: #333;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
}

#pie {
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

.redes a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
}

.redes a:hover {
  color: #fff;
}

#info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  background: #C7D5BC;
  gap: 40px;
  padding: 20px 0;
}

#info div {
  max-width: 300px;
}

#info h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

#info p {
  font-size: 15px;
  color: #555;
}

#info a {
  display: block;
  color: #333;
  text-decoration: none;
  margin-bottom: 10px;
}

#info a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .productos {
    grid-template-columns: repeat(2, 1fr);
  }

  #info {
    flex-direction: column;
    text-align: center;
  }

  header {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- Animación de aparición al hacer scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 2s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- ESTILO SLIDER MODERNO (actualizado) --- */
.slider {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  
  margin-bottom: 15px; /* más espacio para los botones debajo */
  
}

.snow-container {
    font-family: "Nunito Sans", sans-serif;
    position: fixed;
    top: 81px;
    left: 50%;
    width: 100%;
    justify-content: left;
    transform: translateX(-50%);
    z-index: 200;
    pointer-events: none;
    color: #333;
    background: #C7D5BC;
    padding: 15px 0; /* 20px arriba y abajo */
    /* La altura se ajusta automáticamente */
    font-weight: bold;
    border-radius: 10px;
    align-items: center;
    display: flex;
    overflow: hidden;
    
}
.text-slider {
    display: flex;
    gap: 100px; /* Espacio entre textos */
    animation: scroll 16s linear infinite;
    white-space: nowrap;
}

.text-slider h3 {
    color: #333;
    font-family: "Nunito Sans", sans-serif;
    letter-spacing: 2px;
    flex-shrink: 0; /* Evita que los textos se compriman */
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Mueve exactamente la mitad */
    }
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  
}

/* Asegura que el slider sea el contenedor base */
.slider {
  position: relative;
}

/* Flechas centradas verticalmente */
.prev, .next {
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  font-size: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  color: #C7D5BC;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: opacity 0.3s ease, background-color 0.3s;
  z-index: 10;

  /* 🔥 Ocultamos las flechas inicialmente */
  opacity: 0;
  pointer-events: none;
}

/* Flecha izquierda */
.prev { left: 20px; }

/* Flecha derecha */
.next { right: 20px; }

/* Hover del slider → mostrar flechas */
.slider:hover .prev,
.slider:hover .next {
  opacity: 1;
  pointer-events: auto;
}

/* Hover de la flecha */
.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}


/* Indicadores debajo del slider */
.slider-controls {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Adaptable a móviles */
@media (max-width: 768px) {
  .slider { height: 250px; }
  .prev, .next {
      font-size: 20px;
      padding: 5px 10px; 
      gap: 8px;
  }
}


.carrito-container {
    position: relative;
    display: inline-block;
}

.carrito-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #9cb99c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 4px 7px;
    display: none; /* oculto si está en 0 */
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.carrito-badge.animar {
    transform: scale(1.3);
    opacity: 0.8;
}

/* --- Contador del carrito --- */
.carrito-icono {
  position: relative;
  display: inline-block;
}

.contador {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #9BAF96;
  color: white;
  border-radius: 50%;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: bold;
}

/* --- Notificación flotante --- */
.notificacion {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #9BAF96;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  font-size: 15px;
  animation: aparecer 0.3s ease;
  z-index: 9999;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ✨ Animación para el contador del carrito */
#carritoContador.animar {
    animation: reboteContador 0.5s ease;
}

@keyframes reboteContador {
    0% { transform: scale(1); background-color: #C7D5BC; }
    25% { transform: scale(1.3); background-color: #a0b08a; }
    50% { transform: scale(1.1); background-color: #b9c7a7; }
    100% { transform: scale(1); background-color: #C7D5BC; }
}

.snowflake {
  position: fixed;
  top: -10px;
  color: white;
  user-select: none;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  animation-name: fall, sway, fade;
  animation-timing-function: linear, ease-in-out, ease-in;
  animation-iteration-count: infinite, infinite, 1;
}

@keyframes fall {
  0% { transform: translateY(-10px); }
  100% { transform: translateY(100vh); }
}

@keyframes sway {
  0% { margin-left: 0px; }
  50% { margin-left: 40px; }
  100% { margin-left: 0px; }
}

@keyframes fade {
  0% { opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { opacity: 0; }
}


/* Gorros de navidad al FINAL de cada enlace del menú */
nav a {
  position: relative;
  padding-right: 10px; /* espacio para el gorro a la derecha */
}

nav a::after {  /* Cambiamos ::before por ::after */
  content: "";
  position: absolute;
  right: 0;  /* Posicionamos a la derecha */
  top: 20%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  /*background-image: url('../img/logo/gorro.png');*/
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: translateY(-50%) rotate(-15deg) scale(1.2);
}


/* ========================================
   MENÚ HAMBURGUESA
======================================== */

.menu-hamburguesa {
    display: none; /* Oculto por defecto en escritorio */
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 300;
}

.menu-hamburguesa span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 1px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Animación cuando el menú está abierto */
.menu-hamburguesa.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: #333;
}

.menu-hamburguesa.active span:nth-child(2) {
    opacity: 0;
}

.menu-hamburguesa.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: #333;
}

.redes_footer {
    width: 2rem;
    margin: 0.5rem;
    transition: transform 0.3s ease;
}

#pie_2 {
    font-size: 14px;
    color: #333;
    margin-top: 0px;
}

.metodo_de_pago {
    width: 100%;
    margin: 0.5rem;
    transition: transform 0.3s ease;
    height: auto;
    display: inline-block;
    align-content: center;
}
.metodo_pago{
    width: 2rem;
    margin: 0.5rem;
    transition: transform 0.3s ease;
}
.metodo_pago1{
    width: 3rem;
    margin: 0.7rem;
    transition: transform 0.3s ease;
}

.metodo_pago2{
    width: 3rem;
    margin: 0.1rem;
    transition: transform 0.3s ease;
}

.metodo_pago3{
    width: 4rem;
    margin: 1rem;
    transition: transform 0.3s ease;
}


.metodo_pago5{
    width: 5rem;
    margin: 0.6rem;
    transition: transform 0.3s ease;
}
/* RESPONSIVE - MÓVIL */
@media (max-width: 768px) {
    /* Mostrar botón hamburguesa en móvil */
    .menu-hamburguesa {
        display: flex;
        order: 1.5; /* Posiciona el botón entre el logo y los iconos */
        align-self: center; /* Centra verticalmente */
    }
    
    body{
        overflow-x: hidden; /* Evita el scroll horizontal */
        width: 100%;
    }

    /* Header en fila en móvil */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
        min-height: 70px; /* Altura mínima */
    }

    .brand {
        order: 1;
        display: flex;
        align-items: center;
    }

    .brand .logo {
        width: 3rem;
        margin: 0.2rem;
    }

    .iconos {
        
        order: 1;
        margin-right: 20px;
        gap: 15px;
        display: flex;
        align-items: center; /* Centra los iconos verticalmente */
    }

    .iconos a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .iconos img {
        width: 1.5rem;
        height: 1.5rem;
        margin: 0; /* Quita el margen que puede causar problemas */
    }

    /* Asegurar que el contador del carrito no se salga */
    .carrito-icono {
        position: relative;
        display: flex;
        align-items: center;
    }

    #carritoContador {
        position: absolute;
        top: -8px;
        right: -8px;
        min-width: 18px;
        height: 18px;
        font-size: 11px;
        padding: 2px;
    }
    
    #info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        font-family: "Nunito Sans", sans-serif;
        padding: 10px;
        justify-content: justify-content;
        display: flex;
        align-items: center;
    }

    #info > div {
        max-width: 100%;
    }

    #info h2 {
        font-size: 18px;
    }

    #info p {
        font-size: 14px;
    }

    #info .pagina {
        font-size: 14px;
    }

    

    /* Menú oculto por defecto en móvil */
    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Empieza fuera de la pantalla */
        width: 50%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.7s ease;
        z-index: 300;
    }
    
    .nav :hover {
        background-color: transparent;
        transition: all 0.3s ease;
    }

    /* Menú visible cuando está activo */
    nav.active {
        right: 0;
    }

    nav a {
        width: 80%;
        padding: 15px 20px;
        padding-right: 10px;
        margin: 0;
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    nav a::after {
        content: "";
        position: absolute;
        right: 150px; /* Más alejado del borde */
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        /*background-image: url('../img/logo/gorro.png');*/
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
    }

    nav a:hover::after {
        transform: translateY(-50%) rotate(-15deg) scale(1.2);
    }

    /* Overlay oscuro cuando el menú está abierto */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 20%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 200;
        display: none;
        pointer-events: auto; /* Permite hacer clic en él */
    }

    .overlay.active {
        transition: transition 0.3s;
        display: block;
    }

    /* Ajustar slider para el header más compacto */
    .slider {
        margin-top: 5rem;
    }
    
    .snow-container{
        top: 80px;
    }

    /* Productos en una sola columna en móvil */
    .productos {
        grid-template-rows: 2fr;
        width: 100%;
        padding: 1px;
        gap: 1px;
    }

    .producto {
        padding: 5px;
        margin: 0;
    }

    .producto img {
        height: 220px;
        object-fit: contain;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    nav {
        width: 80%;
    }
    
    .producto img {
        height: 200px;
        object-fit: contain;
        padding: 5px;
    }
}


.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}


/* ========================================
   MODAL DE LOGIN
======================================== */

.modal-login {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-login.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-login-contenido {
    background: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-cerrar {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-cerrar:hover {
    color: #333;
    background: #f0f0f0;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.modal-header p {
    color: #666;
    font-size: 15px;
}

.form-login-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.input-group input {
    width: 95%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #C7D5BC;
    box-shadow: 0 0 0 3px rgba(199, 213, 188, 0.1);
}

.btn-ingresar {
    width: 100%;
    padding: 14px;
    background: #C7D5BC;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-ingresar:hover {
    background: #a0b08a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 213, 188, 0.3);
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.link-registro {
    color: #C7D5BC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.link-registro:hover {
    color: #a0b08a;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .modal-login-contenido {
        padding: 30px 25px;
        max-width: 90%;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .input-group input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-ingresar {
        padding: 12px;
        font-size: 15px;
    }
}



/* ========================================
   NOTIFICACIONES PERSONALIZADAS
======================================== */

.notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    animation: slideIn 0.4s ease, fadeOut 0.4s ease 2.6s forwards;
    max-width: 400px;
    font-family: 'Segoe UI', sans-serif;
}

.notificacion.success {
    background: linear-gradient(135deg, #C7D5BC 0%, #a0b08a 100%);
    color: white;
}

.notificacion.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
    color: white;
}

.notificacion-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.notificacion-content {
    flex: 1;
}

.notificacion-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.notificacion-text {
    font-size: 14px;
    opacity: 0.95;
}

.notificacion-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notificacion-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .notificacion {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}


/* ========================================
   MENÚ DE USUARIO - MEJORADO
======================================== */

.user-menu-container {
    position: relative;
}

.user-icon-link {
    position: relative;
    display: block;
}

.user-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.user-dropdown {
    justify-content: center;
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: white;
    border-radius: 12px;
    
    min-width: 350px; /* ✅ MÁS ANCHO */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-radius: 2px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 25px; /* ✅ MÁS PADDING */
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 55px; /* ✅ AVATAR MÁS GRANDE */
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C7D5BC 0%, #a0b08a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 17px; /* ✅ TEXTO MÁS GRANDE */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 10px 0; /* ✅ MÁS ESPACIO */
}

.user-dropdown-item {
    white-space: nowrap;
    display: flex;
    
    gap: 15px; /* ✅ MÁS ESPACIO ENTRE ICONO Y TEXTO */
    padding: 15px 25px; /* ✅ MÁS PADDING */
    color: #555;
    text-decoration: none;
    font-size: 20px; /* ✅ TEXTO MÁS GRANDE */
    transition: all 0.2s;
    
}



.user-dropdown-item svg {
    flex-shrink: 0;
    width: 15px; /* ✅ ICONOS MÁS GRANDES */
    height: 20px;
}

.user-dropdown-item.logout {
    color: #e74c3c;
}



/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .user-dropdown {
        min-width: 480px;
        right: -10px;
    }
    
    .user-dropdown::before {
        right: 25px;
    }
    
    .user-dropdown-header {
        padding: 20px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .user-dropdown-item {
        
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .user-dropdown-item:hover {
        padding-left: 25px;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        min-width: auto;
    }
    
    .user-dropdown::before {
        display: none;
    }
    
    .user-dropdown.show {
        transform: translateY(0);
    }
    
    .user-dropdown-header {
        padding: 25px 20px;
    }
    
    .user-dropdown-item {
        padding: 16px 20px;
    }
    
    .user-dropdown-item:hover {
        padding-left: 25px;
    }
}


/* ========================================
   MODAL DE CATÁLOGO
======================================== */

.modal-catalogo {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-catalogo.show {
    display: flex;
}

.modal-catalogo-contenido {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-catalogo-header {
    padding: 20px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-catalogo-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.modal-cerrar {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-cerrar:hover {
    color: #333;
    background: #f0f0f0;
}

.modal-catalogo-body {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

#pdfViewer {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.modal-catalogo-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-descargar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #C7D5BC;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-descargar:hover {
    background: #a0b08a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 213, 188, 0.3);
}

.btn-cerrar-modal {
    padding: 12px 25px;
    background: #f0f0f0;
    color: #555;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cerrar-modal:hover {
    background: #e0e0e0;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .modal-catalogo-contenido {
        width: 95%;
        height: 95vh;
    }
    
    .modal-catalogo-header {
        padding: 15px 20px;
    }
    
    .modal-catalogo-header h2 {
        font-size: 20px;
    }
    
    .modal-catalogo-body {
        padding: 10px;
    }
    
    .modal-catalogo-footer {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .btn-descargar,
    .btn-cerrar-modal {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-catalogo-contenido {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-catalogo-header h2 {
        font-size: 18px;
    }
}


/* ========================================
   BOTÓN DE FAVORITOS
======================================== */
.producto {
    position: relative;
}

.producto-imagen-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.favorite-btn.active {
    background: #C7D5BC;
}

.heart-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #C7D5BC;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.favorite-btn.active .heart-icon {
    fill: white;
    stroke: white;
    animation: heartbeat 0.3s ease;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Notificación de favoritos */
.notificacion-favorito {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notificacion-favorito.success {
    border-left: 4px solid #C7D5BC;
}

.notificacion-favorito.error {
    border-left: 4px solid #ff4757;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .favorite-btn {
        width: 35px;
        height: 35px;
        top: 8px;
        right: 8px;
    }
    
    .heart-icon {
        width: 18px;
        height: 18px;
    }
}




/* ========================================
   ICONOS EN BANNER DE TEXTO DESLIZANTE
======================================== */

.text-slider h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.slider-icon {
    flex-shrink: 0;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

/* Animación sutil de pulso para la estrella */
.star-icon {
    animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Efecto hover en los iconos (cuando se puede hacer hover) */
@media (hover: hover) {
    .text-slider h3:hover .slider-icon {
        transform: scale(1.1) rotate(5deg);
    }
    
    .text-slider h3:hover .star-icon {
        transform: scale(1.2) rotate(15deg);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .slider-icon {
        width: 20px;
        height: 20px;
    }
    
    .text-slider h3 {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .slider-icon {
        width: 18px;
        height: 18px;
    }
    
    .text-slider h3 {
        gap: 6px;
        font-size: 14px;
    }
}