/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300;400;700&family=Montserrat:wght@400;600&display=swap');

/* Variables CSS */
:root {
  --primary-color: #8B4513; /* Marrón */
  --primary-dark: #5A2D0C; /* Marrón oscuro */
  --text-dark: #4B2E2A; /* Gris oscuro */
  --text-light: #666; /* Gris claro */
  --white: #fff; /* Blanco corregido */
  --background-light: #fefae0; /* Fondo claro */
  --border-radius: 8px; /* Reducido de 10px */
  --transition: 0.24s ease; /* Reducido de 0.3s */
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Reducido de 0 4px 12px */
}

/* Estilos Generales */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--background-light);
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

img {
  max-width: 100%;
  height: auto;
}

/* Navegación - ESCRITORIO */
nav {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.98) 0%, rgba(139, 69, 19, 0.96) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  height: 52px;
  margin-right: 40px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.logo:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  text-decoration: none;
  text-align: center;
  position: relative;
  font-size: 0.92em;
  font-weight: 400;
  letter-spacing: 0.3px;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a i {
  font-size: 0.9em;
  opacity: 0.9;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Barrita animada como en el footer */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  transition: width 0.3s ease;
  border-radius: 1px;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Sección activa - barrita de color diferente */
.nav-links a.active::after {
  width: 100%;
  background: linear-gradient(90deg, #D4A373, #E8D5B7);
  box-shadow: 0 1px 4px rgba(212, 163, 115, 0.5);
  height: 2.5px;
}

.nav-links a.active {
  color: rgba(255, 255, 255, 1);
}

.nav-links a.active i {
  opacity: 1;
  color: #D4A373;
}

/* Efectos hover delicados */
.nav-links a:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.nav-links a:hover i {
  opacity: 1;
  transform: scale(1.08);
}

/* Hover en sección activa */
.nav-links a.active:hover::after {
  background: linear-gradient(90deg, #E8D5B7, #D4A373);
  box-shadow: 0 1px 5px rgba(212, 163, 115, 0.6);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2em;
  cursor: pointer;
}

/* Estilos Responsivos para la Navegación - MÓVIL */
@media (max-width: 768px) {
  /* Barra de navegación móvil - más delgada y moderna */
  nav {
    padding: 10px 0;
    background: rgba(139, 69, 19, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1001;
  }

  .nav-container {
    padding: 0 16px;
    position: relative;
  }

  .logo {
    height: 40px;
  }

  /* Menú desplegable móvil - diseño completamente nuevo */
  .nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(
      180deg,
      rgba(139, 69, 19, 0.92) 0%,
      rgba(139, 69, 19, 0.88) 50%,
      rgba(139, 69, 19, 0.85) 100%
    );
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 8px 0 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    gap: 2px;
    overflow: hidden;
    z-index: 1002;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  /* Enlaces móviles - estilo minimalista y delicado */
  .nav-links a {
    padding: 12px 24px;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    background: transparent;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    /* Eliminar todos los estilos de escritorio */
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }

  .nav-links a i {
    font-size: 1em;
    width: 22px;
    text-align: center;
    opacity: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  }

  /* Hover móvil - muy sutil */
  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(255, 255, 255, 0.12);
    border-left-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 1);
    transform: translateX(4px);
    padding-left: 28px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }

  .nav-links a:hover i,
  .nav-links a:active i {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  }

  /* Eliminar efectos de escritorio */
  .nav-links a::before {
    display: none;
  }

  /* Indicador decorativo sutil a la derecha */
  .nav-links a::after {
    content: '';
    position: absolute;
    right: 24px;
    width: 0;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.25);
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after {
    width: 24px;
  }

  /* Sección activa en móvil - barrita de color */
  .nav-links a.active {
    background: rgba(212, 163, 115, 0.12);
    border-left-color: #D4A373;
  }

  .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #D4A373, #E8D5B7);
    box-shadow: 0 1px 4px rgba(212, 163, 115, 0.5);
  }

  .nav-links a.active:hover::after {
    width: 100%;
  }

  .nav-links a.active {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }

  .nav-links a.active i {
    color: #E8D5B7;
    opacity: 1;
    filter: drop-shadow(0 1px 3px rgba(212, 163, 115, 0.5));
  }

  /* Animación de apertura moderna */
  .nav-links.active {
    display: flex !important;
    animation: menuSlideDown 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    visibility: visible !important;
    opacity: 1 !important;
  }

  @keyframes menuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Botón hamburguesa más moderno */
  .menu-toggle {
    display: block;
    font-size: 1.2em;
    padding: 8px;
    opacity: 0.92;
    transition: all 0.2s ease;
    border-radius: 6px;
    z-index: 1003;
    cursor: pointer;
    border: none;
    background: transparent;
  }

  .menu-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
  }

  .menu-toggle:active {
    transform: scale(0.95);
  }
  
  .menu-toggle i {
    transition: transform 0.3s ease;
  }
}

/* Slider de Imágenes - Mejorado con marco delicado café y detalles */
header {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 100vw;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 20px 50px rgba(139, 69, 19, 0.2),
    0 10px 25px rgba(139, 69, 19, 0.1),
    0 0 0 1px rgba(139, 69, 19, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(145deg, #fefae0 0%, #f8f4e9 50%, #fefae0 100%);
  padding: 8px;
  border: 1px solid rgba(139, 69, 19, 0.25);
  position: relative;
  box-sizing: border-box;
}

.slider-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    rgba(212, 163, 115, 0.3) 0%, 
    rgba(139, 69, 19, 0.2) 50%, 
    rgba(212, 163, 115, 0.3) 100%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.6;
}

header .slider {
  position: relative;
  width: 100%;
  height: clamp(230px, 40vw, 560px);
  overflow: hidden;
  background-color: #fefae0;
  border-radius: 14px;
  box-shadow: 
    inset 0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 -2px 10px rgba(0, 0, 0, 0.05);
}

header .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
}

header .slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.03) 100%
  );
  z-index: 1;
  pointer-events: none;
}

header .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

header .slide.active {
  opacity: 1;
  z-index: 2;
  animation: slideFadeIn 0.8s ease-out;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

header .slide.active img {
  transform: scale(1.03);
  filter: brightness(1.12) contrast(1.15) saturate(1.15);
  animation: imageZoom 8s ease-in-out infinite alternate;
}

@keyframes imageZoom {
  0% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Efecto shimmer sutil en las imágenes */
header .slide.active img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Botones de Navegación del Slider - Mejorados */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.85), rgba(90, 45, 12, 0.85));
  border: 2px solid rgba(212, 163, 115, 0.4);
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  z-index: 15;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 15px rgba(139, 69, 19, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slider-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.slider-btn:hover::before {
  width: 100%;
  height: 100%;
}

.slider-btn:hover {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.95), rgba(90, 45, 12, 0.95));
  border-color: rgba(212, 163, 115, 0.7);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 
    0 6px 25px rgba(139, 69, 19, 0.5),
    0 3px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.slider-btn:active {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 
    0 2px 10px rgba(139, 69, 19, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-btn-prev {
  left: 20px;
  right: auto;
}

.slider-btn-next {
  right: 20px;
  left: auto;
}

.slider-btn i {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.slider-btn:hover i {
  transform: scale(1.1);
}

.slider-btn-prev:hover i {
  transform: translateX(-2px) scale(1.1);
}

.slider-btn-next:hover i {
  transform: translateX(2px) scale(1.1);
}

/* Indicadores de Slide - Mejorados */
.slider-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  padding: 8px 16px;
  background: rgba(254, 250, 224, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  box-shadow: 
    0 4px 15px rgba(139, 69, 19, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(139, 69, 19, 0.1);
}

.slider-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(139, 69, 19, 0.35);
  border: 2px solid rgba(139, 69, 19, 0.5);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(139, 69, 19, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.slider-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.slider-indicator:hover::before {
  width: 100%;
  height: 100%;
}

.slider-indicator:hover {
  background: rgba(139, 69, 19, 0.6);
  border-color: rgba(139, 69, 19, 0.7);
  transform: scale(1.3);
  box-shadow: 
    0 3px 12px rgba(139, 69, 19, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.slider-indicator.active {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.95), rgba(90, 45, 12, 0.95));
  border-color: rgba(212, 163, 115, 0.8);
  width: 35px;
  height: 14px;
  border-radius: 7px;
  box-shadow: 
    0 0 20px rgba(139, 69, 19, 0.5),
    0 4px 12px rgba(139, 69, 19, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(139, 69, 19, 0.5),
      0 4px 12px rgba(139, 69, 19, 0.3),
      inset 0 1px 2px rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 
      0 0 25px rgba(139, 69, 19, 0.7),
      0 6px 18px rgba(139, 69, 19, 0.4),
      inset 0 1px 2px rgba(255, 255, 255, 0.5);
  }
}

/* Estilos Responsivos para el Slider */
@media (max-width: 768px) {
  header {
    margin: 0;
    padding: 0;
  }

  .slider-container {
    padding: 6px;
    border-radius: 18px;
  }

  .slider-container::before {
    border-radius: 20px;
  }

  header .slider {
    height: clamp(220px, 58vw, 430px);
    border-radius: 12px;
  }

  header .slide {
    border-radius: 12px;
  }

  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1em;
  }

  .slider-btn-prev {
    left: 15px;
    right: auto;
  }

  .slider-btn-next {
    right: 15px;
    left: auto;
  }

  .slider-indicators {
    bottom: 18px;
    gap: 10px;
    padding: 6px 12px;
  }

  .slider-indicator {
    width: 12px;
    height: 12px;
  }

  .slider-indicator.active {
    width: 30px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  header {
    margin: 0;
    padding: 0;
  }

  .slider-container {
    padding: 5px;
    border-radius: 15px;
  }

  .slider-container::before {
    border-radius: 17px;
  }

  header .slider {
    height: clamp(210px, 65vw, 360px);
    border-radius: 10px;
  }

  header .slide {
    border-radius: 10px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }

  .slider-btn-prev {
    left: 10px;
    right: auto;
  }

  .slider-btn-next {
    right: 10px;
    left: auto;
  }

  .slider-indicators {
    bottom: 15px;
    gap: 8px;
    padding: 5px 10px;
  }

  .slider-indicator {
    width: 10px;
    height: 10px;
  }

  .slider-indicator.active {
    width: 25px;
    height: 10px;
  }
}

/* Overlay removido - las imágenes ahora resaltan directamente */

/* Sección "Inicio" */
section#inicio {
  padding: 80px 48px; /* Reducido de 100px 60px */
  max-width: 1120px; /* Reducido de 1400px */
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #ffffff;
  border-radius: 20px; /* Reducido de 25px */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2); /* Reducido de 0 15px 25px */
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.24s ease, box-shadow 0.64s ease;
  margin-bottom: 32px; /* Reducido de 40px */
}

.intro-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px; /* Reducido de 50px */
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px; /* Reducido de 25px */
  padding: 32px; /* Reducido de 40px */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Reducido */
}

.intro-text {
  flex: 1;
  max-width: 480px; /* Reducido de 600px */
  color: #444444;
  text-align: left;
  line-height: 1.8;
}

.intro-text h2 {
  font-family: 'Cooper Black', sans-serif;
  font-size: 2.8em; /* Reducido de 3.5em */
  margin-bottom: 16px; /* Reducido de 20px */
  color: #8B4513;
  text-shadow: 1.6px 1.6px 3.2px rgba(0, 0, 0, 0.2);
}

.intro-text p {
  font-size: 1.04em; /* Reducido de 1.3em */
  margin-bottom: 16px; /* Reducido de 20px */
  line-height: 1.9;
  text-align: justify;
}

.intro-media {
  flex: 1;
  max-width: 480px; /* Reducido de 600px */
}

.intro-image {
  width: 100%;
  border-radius: 16px; /* Reducido de 25px */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2); /* Reducido de 0 15px 25px */
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  object-fit: cover;
  border: 4px solid #ffffff; /* Reducido de 5px */
}

.intro-image:hover {
  transform: scale(1.04); /* Reducido de 1.07 */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3); /* Ligera reducción */
}

/* Estilos Responsivos para la Sección de Inicio */
@media (max-width: 768px) {
  section#inicio {
      padding: 48px 16px; /* Reducido de 60px 20px */
  }

  .intro-content {
      flex-direction: column;
      gap: 16px; /* Reducido de 20px */
  }

  .intro-text h2 {
      font-size: 2em; /* Reducido de 2.5em */
  }

  .intro-text p {
      font-size: 0.88em; /* Reducido de 1.1em */
  }
}

/* Sección de Productos - Diseño Moderno y Delicado */
#productos {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 50px auto;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fafafa 100%);
  border-radius: 30px;
  box-shadow: 
    0 20px 60px rgba(139, 69, 19, 0.08),
    0 0 0 1px rgba(139, 69, 19, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

#productos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(212, 163, 115, 0.6) 50%,
    transparent 100%);
  opacity: 0.5;
}

/* Header de productos */
.productos-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.productos-header h2 {
  color: var(--primary-dark);
  margin-bottom: 0;
  font-size: 2.5em;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.productos-header h2 i {
  color: #D4A373;
  font-size: 0.9em;
  animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.productos-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(212, 163, 115, 0.8) 50%,
    transparent 100%);
  border-radius: 2px;
}

/* Estilos para la barra de búsqueda mejorada */
.search-container {
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 20px;
  color: #D4A373;
  font-size: 1.1em;
  z-index: 2;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 50px 14px 50px;
  border: 2px solid rgba(139, 69, 19, 0.15);
  border-radius: 50px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  outline: none;
  border-color: rgba(212, 163, 115, 0.6);
  box-shadow: 
    0 6px 20px rgba(139, 69, 19, 0.15),
    0 0 0 4px rgba(212, 163, 115, 0.1);
  transform: translateY(-2px);
}

.search-clear {
  position: absolute;
  right: 15px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 1.1em;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 2;
}

.search-clear:hover {
  background: rgba(139, 69, 19, 0.1);
  color: var(--primary-dark);
  transform: scale(1.1);
}

/* Lista de productos */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 15px;
}

/* Mejora para cuando hay pocos productos en desktop */
@media (min-width: 1200px) {
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
  }
  
  /* Cuando solo hay 1 producto, hacerlo más destacado */
  .product-list.single-product {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .product-list.single-product .product-item.highlighted-product {
    padding: 40px 35px;
    transform: scale(1.03);
    border-width: 3px;
    box-shadow: 
      0 20px 60px rgba(139, 69, 19, 0.12),
      0 8px 25px rgba(0, 0, 0, 0.08),
      inset 0 2px 0 rgba(255, 255, 255, 0.95),
      inset 0 -2px 0 rgba(139, 69, 19, 0.05);
  }
  
  .product-list.single-product .product-item.highlighted-product .product-image-wrapper {
    height: 240px;
  }
  
  .product-list.single-product .product-item.highlighted-product .product-image {
    height: 100%;
  }
  
  .product-list.single-product .product-item.highlighted-product .product-info h3 {
    font-size: 1.5em;
  }
  
  .product-list.single-product .product-item.highlighted-product .price-value {
    font-size: 1.7em;
  }
  
  /* Fallback con :has() para navegadores modernos */
  .product-list:has(.product-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .product-list:has(.product-item:only-child) .product-item {
    padding: 40px 35px;
    transform: scale(1.03);
    border-width: 3px;
  }
  
  .product-list:has(.product-item:only-child) .product-image-wrapper {
    height: 240px;
  }
  
  .product-list:has(.product-item:only-child) .product-image {
    height: 100%;
  }
}

/* Tarjeta de producto mejorada */
.product-item {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fafafa 100%);
  border: 2px solid rgba(139, 69, 19, 0.1);
  border-radius: 28px;
  box-shadow: 
    0 15px 40px rgba(139, 69, 19, 0.08),
    0 5px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(139, 69, 19, 0.03);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px;
  position: relative;
  backdrop-filter: blur(10px);
}

.product-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(212, 163, 115, 0.4) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(139, 69, 19, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(212, 163, 115, 0.2);
  border-color: rgba(212, 163, 115, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fef9e7 100%);
}

.product-item:hover::before {
  opacity: 1;
}

/* Wrapper de imagen mejorado */
.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 15px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.4s ease;
}

.product-item:hover .product-image-wrapper {
  box-shadow: 
    0 12px 30px rgba(139, 69, 19, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  filter: brightness(1) saturate(1);
  min-width: 100%;
  min-height: 100%;
  z-index: 1;
}

.product-item:hover .product-image {
  filter: brightness(1.05) saturate(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(139, 69, 19, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
  z-index: 2;
}

.product-item:hover .product-overlay {
  opacity: 1;
}

.product-item:hover .product-image {
  transform: scale(1.08);
}

/* Información del producto */
.product-info {
  text-align: center;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-info h3 {
  color: var(--primary-dark);
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: color 0.3s ease;
}

.product-item:hover .product-info h3 {
  color: #A0522D;
}

/* Contenedor de precio mejorado */
.price-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fef9e7 0%, #fef5e7 50%, #fef3e0 100%);
  border-radius: 12px;
  border: 2px solid rgba(212, 163, 115, 0.25);
  box-shadow: 
    0 4px 12px rgba(139, 69, 19, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  transition: left 0.5s ease;
}

.product-item:hover .price-container::before {
  left: 100%;
}

.product-item:hover .price-container {
  border-color: rgba(212, 163, 115, 0.4);
  box-shadow: 
    0 6px 18px rgba(139, 69, 19, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.price-label {
  color: #666;
  font-size: 0.95em;
  font-weight: 500;
}

.price-value {
  color: var(--primary-dark);
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-shadow: 0 1px 3px rgba(139, 69, 19, 0.1);
  transition: transform 0.3s ease;
}

.product-item:hover .price-value {
  transform: scale(1.05);
}

/* Wrapper de controles */
.product-controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 5px;
}

/* Estilo para el mensaje de "No hay productos" */
.no-products-message {
  text-align: center;
  font-size: 1.1em;
  color: #999;
  margin: 40px 0;
  padding: 40px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 20px;
  border: 2px dashed rgba(139, 69, 19, 0.15);
}

.no-products-message i {
  font-size: 2.5em;
  color: #D4A373;
  margin-bottom: 15px;
  display: block;
  opacity: 0.6;
}

.no-products-message p {
  margin: 0;
  color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
  #productos {
    padding: 32px 16px; /* Reducido de 40px 20px */
    margin: 24px auto; /* Reducido de 30px auto */
  }

  .product-list {
    gap: 16px; /* Reducido de 20px */
  }
}

@media (max-width: 768px) {
  #productos {
    padding: 32px 16px; /* Reducido de 40px 20px */
  }

  #productos h2 {
    font-size: 1.6em; /* Reducido de 2em */
  }

  .product-item {
    padding: 12px; /* Reducido de 15px */
  }

  .product-item img {
    width: 144px;
    height: 144px;
  }

  .product-info h3 {
    font-size: 1.04em; /* Reducido de 1.3em */
  }

  .product-info p {
    font-size: 0.72em; /* Reducido de 0.9em */
  }
}

@media (max-width: 480px) {
  #productos {
    padding: 24px 12px; /* Reducido de 30px 15px */
    margin: 16px auto; /* Reducido de 20px auto */
  }

  .product-list {
    grid-template-columns: 1fr;
    gap: 12px; /* Reducido de 15px */
  }

  .product-item {
    padding: 12px; /* Sin cambio */
  }

  .product-item img {
    width: 144px;
    height: 144px;
  }

  .product-info h3 {
    font-size: 1.04em; /* Reducido de 1.2em */
  }

  .product-info p {
    font-size: 0.72em; /* Reducido de 0.9em */
  }
}

/* Control de Cantidad en Productos */
.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 6.4px; /* Reducido de 8px */
  background: #f8f9fa;
  padding: 4px; /* Reducido de 5px */
  border-radius: 9.6px; /* Reducido de 12px */
  flex-wrap: nowrap;
}

.quantity-control input {
  width: 36px; /* Reducido de 45px */
  text-align: center;
  padding: 4.8px; /* Reducido de 6px */
  border: 1px solid var(--primary-color);
  border-radius: 6.4px; /* Reducido de 8px */
  font-size: 0.72em; /* Reducido de 0.9em */
  transition: all 0.16s ease;
}

.quantity-control input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 3px rgba(139, 0, 0, 0.1);
}

.quantity-control button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  width: 24px; /* Reducido de 30px */
  height: 24px; /* Reducido de 30px */
  border-radius: 6.4px; /* Reducido de 8px */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}

.quantity-control button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-0.8px); /* Reducido de -1px */
}

/* Responsive */
@media (max-width: 768px) {
  .quantity-control {
    padding: 3.2px; /* Reducido de 4px */
    gap: 3.2px; /* Reducido de 4px */
  }

  .quantity-control input {
    width: 28px; /* Reducido de 35px */
    padding: 3.2px; /* Reducido de 4px */
    font-size: 0.72em; /* Reducido de 0.8em */
  }

  .quantity-control button {
    width: 22.4px; /* Reducido de 28px */
    height: 22.4px; /* Reducido de 28px */
    font-size: 0.72em; /* Reducido de 0.8em */
  }
}

@media (max-width: 480px) {
  .quantity-control {
    padding: 2.4px; /* Reducido de 3px */
  }

  .quantity-control input {
    width: 24px; /* Reducido de 30px */
    padding: 2.4px; /* Reducido de 3px */
    font-size: 0.63em; /* Reducido de 0.7em */
  }

  .quantity-control button {
    width: 19.2px; /* Reducido de 24px */
    height: 19.2px; /* Reducido de 24px */
  }
}

/* Botón para Ver el Carrito */
#viewCart {
  display: block;
  margin: 32px auto 0; /* Reducido de 40px */
  background-color: #8B4513;
  color: var(--white);
  border: none;
  padding: 12px 24px; /* Reducido de 15px 30px */
  font-size: 1.04em; /* Reducido de 1.3em */
  cursor: pointer;
  border-radius: 24px; /* Reducido de 30px */
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
  width: auto;
}

#viewCart:hover {
  background-color: #5A2D0C;
  transform: scale(1.04); /* Reducido de 1.05 */
  box-shadow: var(--shadow);
}

/* Contador del Carrito */
#cartCount {
  background: var(--white);
  color: var(--primary-color);
  padding: 0.16rem 0.64rem; /* Reducido de 0.2rem 0.8rem */
  border-radius: 12px; /* Reducido de 15px */
  font-size: 0.72rem; /* Reducido de 0.9rem */
  font-weight: bold;
  margin-left: 8px; /* Reducido de 10px */
}

/* Estilos Responsivos para Productos */
@media (max-width: 768px) {
  #productos {
    padding: 48px 16px; /* Reducido de 60px 20px */
  }

  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Reducido de 200px */
    gap: 16px; /* Reducido de 20px */
  }

  #viewCart {
    width: 100%;
    padding: 9.6px; /* Reducido de 12px */
    font-size: 0.88em; /* Reducido de 1.1em */
  }
}

@media (max-width: 480px) {
  #viewCart {
    padding: 8px; /* Reducido de 10px */
    font-size: 0.8em; /* Reducido de 1em */
  }
}

/* Carrito Lateral */
.cart-sidebar {
  position: fixed;
  right: -100%;
  top: 0;
  width: 100%;
  max-width: 320px; /* Reducido para mostrar más fondo */
  height: 100vh;
  background: #fff;
  transition: all 0.32s ease;
  z-index: 10010; /* Mayor que el menú móvil (1001) para que aparezca encima */
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15); /* Reducido */
}

.cart-sidebar.open {
  right: 0;
}

/* Encabezado del Carrito */
.cart-sidebar-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 20px 24px; /* Reducido de 25px 30px */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2.4px solid #5A2D0C; /* Reducido de 3px */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.cart-sidebar-header h3 {
  color: #fff;
  font-size: 19.2px; /* Reducido de 24px */
  font-weight: 600;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 22.4px; /* Reducido de 28px */
  cursor: pointer;
  transition: all 0.24s ease;
  width: 32px; /* Reducido de 40px */
  height: 32px; /* Reducido de 40px */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-cart:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(162deg); /* Reducido de 90deg */
}

/* Contenido del Carrito */
.cart-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px; /* Reducido para que las cards no se vean tan anchas */
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  min-height: 0; /* Permite que el scroll funcione correctamente */
}

.cart-sidebar-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Estilo para cada Item del Carrito */
.cart-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px; /* Reducido de 15px */
  padding: 12px; /* Reducido para que no se vean tan anchas */
  margin-bottom: 12px; /* Reducido de 15px */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.24s ease;
  border: 1px solid rgba(139, 69, 19, 0.1);
  position: relative;
  animation: slideIn 0.24s ease forwards;
  max-width: 100%;
  box-sizing: border-box;
}

.cart-item:hover {
  transform: translateY(-2.4px); /* Reducido de -3px */
  box-shadow: var(--shadow);
}

.cart-item-details {
  flex: 1;
  margin-right: 12px; /* Reducido de 15px */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-item-details .item-name {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 14px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 120px;
}

.cart-item-details .item-measure {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin: 0;
}

.cart-item-details .item-price {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.cart-item-name {
  font-size: 14.4px; /* Reducido de 18px */
  font-weight: 600;
  color: #333;
  margin-bottom: 6.4px; /* Reducido de 8px */
}

.cart-item-measure {
  font-size: 11.2px; /* Reducido de 14px */
  color: #666;
  margin-bottom: 12px; /* Reducido de 15px */
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px; /* Reducido de 10px */
  margin-top: 10px; /* Reducido de 12px */
  padding-top: 10px;
  border-top: 1px solid rgba(139, 69, 19, 0.1);
}

.cart-item-controls .item-total {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 15px;
  min-width: 65px;
  text-align: right;
  flex-shrink: 0;
}

/* Contenedor de controles de cantidad */
.quantity-control-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2px;
  border: 1px solid rgba(139, 69, 19, 0.2);
}

/* Botones de cantidad */
.quantity-btn-increase,
.quantity-btn-decrease {
  background: var(--primary-color);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.24s ease;
  font-size: 12px;
  padding: 0;
  flex-shrink: 0;
}

.quantity-btn-increase:hover,
.quantity-btn-decrease:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.quantity-btn-increase:active,
.quantity-btn-decrease:active {
  transform: scale(0.95);
}

.quantity-btn-increase i,
.quantity-btn-decrease i {
  font-size: 10px;
}

/* Control de Cantidad en el Carrito */
.cart-quantity {
  width: 50px;
  padding: 4px 6px;
  border: none;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.24s ease;
  background: transparent;
  color: var(--primary-dark);
}

.cart-quantity:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.cart-item-price {
  font-size: 14.4px; /* Reducido de 18px */
  font-weight: 600;
  color: var(--primary-color);
}

/* Botón Eliminar del Carrito */
.remove-item {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.24s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.remove-item:hover {
  background: #ff4444;
  color: #fff;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

/* Footer del Carrito */
.cart-sidebar-footer {
  background: linear-gradient(to top, #ffffff, #f8f9fa);
  padding: 24px; /* Reducido de 30px */
  border-top: 2px solid rgba(139, 69, 19, 0.15);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px; /* Reducido de 25px */
  padding: 16px; /* Reducido de 15px */
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 12px;
  border: 2px solid rgba(139, 69, 19, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-total span:first-child {
  font-size: 14.4px; /* Reducido de 18px */
  color: #333;
}

.cart-total span:last-child {
  font-size: 19.2px; /* Reducido de 24px */
  font-weight: 700;
  color: var(--primary-color);
}

/* Campos de Entrada Mejorados */
.input-field {
  width: 100%;
  padding: 12px; /* Reducido de 15px */
  margin-bottom: 12px; /* Reducido de 15px */
  border: 1.6px solid #ddd; /* Reducido de 2px */
  border-radius: 12px; /* Reducido de 15px */
  font-size: 12.8px; /* Reducido de 16px */
  transition: all 0.24s ease-in-out;
  background: linear-gradient(145deg, #f8f9fa, #e6e9ef);
  box-shadow: 3.2px 3.2px 6.4px rgba(0, 0, 0, 0.1), -3.2px -3.2px 6.4px rgba(255, 255, 255, 0.8);
}

.input-field:focus {
  border-color: var(--primary-color);
  background: #fff;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 128, 255, 0.3), 0 0 4px rgba(0, 128, 255, 0.2);
}

/* Botón de Enviar Pedido Mejorado */
.cart-sidebar-footer button {
  width: 100%;
  padding: 14px; /* Reducido de 18px */
  background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 12px; /* Reducido de 15px */
  font-size: 14.4px; /* Reducido de 18px */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.24s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 1.2px; /* Reducido de 1.5px */
  box-shadow: 3.2px 3.2px 6.4px rgba(0, 0, 0, 0.2), -3.2px -3.2px 6.4px rgba(255, 255, 255, 0.1);
}

.cart-sidebar-footer button:hover {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2.4px); /* Reducido de -3px */
  box-shadow: 4.8px 4.8px 9.6px rgba(0, 0, 0, 0.3), -4.8px -4.8px 9.6px rgba(255, 255, 255, 0.2);
}

.cart-sidebar-footer button:active {
  transform: translateY(1px);
  box-shadow: 1.6px 1.6px 3.2px rgba(0, 0, 0, 0.2), -1.6px -1.6px 3.2px rgba(255, 255, 255, 0.1);
}

/* Overlay del Carrito */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.32s ease;
  z-index: 10009; /* Justo debajo del carrito pero encima del menú */
  cursor: pointer;
  pointer-events: none; /* No bloquea el scroll pero permite clic */
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Permite clic cuando está activo */
}

/* Scrollbar Personalizado */
.cart-sidebar-content::-webkit-scrollbar {
  width: 6.4px; /* Reducido de 8px */
}

.cart-sidebar-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3.2px; /* Reducido de 4px */
}

.cart-sidebar-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3.2px; /* Reducido de 4px */
}

.cart-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Botón de carrito flotante */
.cart-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.4);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 24px;
}

.cart-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6);
}

.cart-float-btn:active {
  transform: scale(0.95);
}

.cart-float-btn i {
  position: relative;
  z-index: 1;
}

.cart-float-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-float-count:empty {
  display: none;
}

/* Responsive para botón flotante */
@media (max-width: 768px) {
  .cart-float-btn {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
  
  .cart-float-count {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

/* Animación para Items del Carrito */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(24px); /* Reducido de 30px */
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer Moderno */

/* Footer */
.footer {
  background: linear-gradient(135deg, #5A2D0C 0%, #4A2510 50%, #5A2D0C 100%);
  color: var(--white);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #D4A373 20%, #D4A373 80%, transparent);
  box-shadow: 0 2px 8px rgba(212, 163, 115, 0.4);
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 163, 115, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 163, 115, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 25px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(212, 163, 115, 0.15);
  position: relative;
}

.footer-content::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4A373, transparent);
}

.footer-section {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #D4A373, transparent);
  border-radius: 2px;
}

.footer-section h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #D4A373;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 12px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #D4A373, transparent);
  border-radius: 1px;
}

.footer-section p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-section p:hover {
  color: var(--white);
}

.footer-section p i {
  margin-right: 10px;
  color: #D4A373;
  width: 20px;
  text-align: center;
  font-size: 1.1em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-section p:hover i {
  transform: scale(1.1);
  color: #E8D5B7;
}

.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 25px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(212, 163, 115, 0.1);
  border: 2px solid rgba(212, 163, 115, 0.3);
  border-radius: 50%;
  color: #D4A373;
  font-size: 1.15em;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible;
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Efecto de resplandor animado */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      0 0 0 0 rgba(212, 163, 115, 0.4),
      0 3px 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 0 0 8px rgba(212, 163, 115, 0),
      0 3px 8px rgba(0, 0, 0, 0.2);
  }
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.4), transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
              height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
  opacity: 0;
  z-index: 0;
}

.footer-social a::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(212, 163, 115, 0.3),
    transparent 30%,
    transparent,
    rgba(212, 163, 115, 0.3),
    transparent 60%,
    transparent,
    rgba(212, 163, 115, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s linear;
  transform: rotate(0deg);
  z-index: -1;
}

.footer-social a:hover::before {
  width: 150px;
  height: 150px;
  opacity: 1;
}

.footer-social a:hover::after {
  opacity: 1;
  transform: rotate(360deg);
  animation: pulse-glow 2s ease-in-out infinite;
}

.footer-social a:hover {
  background: linear-gradient(135deg, 
    #D4A373 0%, 
    #E8D5B7 50%,
    #D4A373 100%);
  color: #5A2D0C;
  transform: translateY(-5px) scale(1.15);
  border-color: #E8D5B7;
  border-width: 2.5px;
  box-shadow: 
    0 0 20px rgba(212, 163, 115, 0.6),
    0 10px 30px rgba(212, 163, 115, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
  animation: pulse-glow 2s ease-in-out infinite;
}

.footer-social a:active {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 
    0 0 15px rgba(212, 163, 115, 0.5),
    0 5px 20px rgba(212, 163, 115, 0.3),
    0 3px 10px rgba(0, 0, 0, 0.2);
}

.footer-social a i {
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.footer-social a:hover i {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 4px 8px rgba(212, 163, 115, 0.6));
  color: #5A2D0C;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.footer-section ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #D4A373;
  font-size: 0.7em;
  transition: transform 0.3s ease, left 0.3s ease;
}

.footer-section ul li:hover::before {
  transform: scale(1.3);
  left: 3px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95em;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 2px 0;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D4A373, #E8D5B7);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.footer-link:hover {
  color: #D4A373;
  padding-left: 8px;
  text-shadow: 0 1px 3px rgba(212, 163, 115, 0.5);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 163, 115, 0.2);
  padding-top: 25px;
  text-align: center;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 163, 115, 0.5), transparent);
}

.footer-bottom p {
  margin: 8px 0;
  font-size: 0.9em;
  color: #E8D5B7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.footer-bottom p:hover {
  color: #D4A373;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    margin-top: 40px;
  }

  .footer-container {
    padding: 30px 15px 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 25px;
    padding-bottom: 20px;
    margin-bottom: 25px;
  }

  .footer-section {
    text-align: center;
    min-width: 100%;
    padding: 0 10px;
  }

  .footer-section::before {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
  }

  .footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
  }

  .footer-section p {
    font-size: 0.85em;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .footer-section p i {
    margin-right: 8px;
    font-size: 1em;
    width: 18px;
  }

  .footer-social {
    justify-content: center;
    gap: 15px;
    margin-top: 18px;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1.1em;
    border-width: 2px;
  }

  .footer-social a:hover {
    transform: translateY(-4px) scale(1.12);
    border-width: 2.5px;
  }

  .footer-social a:hover i {
    transform: scale(1.15) rotate(8deg);
    color: #5A2D0C;
  }

  .footer-section ul {
    padding: 0;
  }

  .footer-section ul li {
    padding-left: 0;
    margin-bottom: 8px;
  }

  .footer-section ul li::before {
    display: none;
  }

  .footer-link {
    font-size: 0.85em;
    padding: 3px 0;
  }

  .footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(212, 163, 115, 0.15);
  }

  .footer-bottom p {
    font-size: 0.8em;
    margin: 5px 0;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 25px 12px 12px;
  }

  .footer-content {
    gap: 20px;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }

  .footer-section {
    padding: 0 5px;
  }

  .footer-section h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .footer-section h3::after {
    width: 50px;
  }

  .footer-section p {
    font-size: 0.8em;
    margin-bottom: 8px;
  }

  .footer-section p i {
    margin-right: 6px;
    font-size: 0.95em;
    width: 16px;
  }

  .footer-social {
    gap: 12px;
    margin-top: 15px;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 1.05em;
    border-width: 2px;
  }

  .footer-social a:hover {
    transform: translateY(-3px) scale(1.1);
    border-width: 2.5px;
  }

  .footer-social a:hover i {
    transform: scale(1.12) rotate(6deg);
    color: #5A2D0C;
  }

  .footer-section ul li {
    margin-bottom: 6px;
  }

  .footer-link {
    font-size: 0.8em;
  }

  .footer-bottom {
    padding-top: 15px;
  }

  .footer-bottom p {
    font-size: 0.75em;
    margin: 4px 0;
  }
}

/* Estilos para los Divisores */
.divider {
  position: relative;
  height: 6px;
  margin: 20px 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 85%;
  height: 8px;
  background: rgba(212, 163, 115, 0.8);
  z-index: 0;
  clip-path: polygon(
    0% 50%,
    1% 45%,
    2% 50%,
    3% 55%,
    4% 50%,
    5% 45%,
    6% 50%,
    7% 55%,
    8% 50%,
    9% 45%,
    10% 50%,
    12% 48%,
    14% 50%,
    16% 52%,
    18% 50%,
    20% 48%,
    22% 50%,
    24% 52%,
    26% 50%,
    28% 48%,
    30% 50%,
    32% 52%,
    34% 50%,
    36% 48%,
    38% 50%,
    40% 52%,
    42% 50%,
    44% 48%,
    46% 50%,
    48% 52%,
    50% 50%,
    52% 52%,
    54% 50%,
    56% 48%,
    58% 50%,
    60% 52%,
    62% 50%,
    64% 48%,
    66% 50%,
    68% 52%,
    70% 50%,
    72% 48%,
    74% 50%,
    76% 52%,
    78% 50%,
    80% 48%,
    82% 50%,
    84% 52%,
    86% 50%,
    88% 48%,
    90% 50%,
    91% 52%,
    92% 50%,
    93% 48%,
    94% 50%,
    95% 52%,
    96% 50%,
    97% 48%,
    98% 50%,
    99% 52%,
    100% 50%,
    100% 100%,
    0% 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 10%,
    rgba(0, 0, 0, 0.6) 20%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.8) 70%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(0, 0, 0, 0.3) 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 10%,
    rgba(0, 0, 0, 0.6) 20%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.8) 70%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(0, 0, 0, 0.3) 90%,
    transparent 100%
  );
  animation: wave-motion 3s ease-in-out infinite;
}

@keyframes wave-motion {
  0%, 100% {
    clip-path: polygon(
      0% 50%,
      1% 45%,
      2% 50%,
      3% 55%,
      4% 50%,
      5% 45%,
      6% 50%,
      7% 55%,
      8% 50%,
      9% 45%,
      10% 50%,
      12% 48%,
      14% 50%,
      16% 52%,
      18% 50%,
      20% 48%,
      22% 50%,
      24% 52%,
      26% 50%,
      28% 48%,
      30% 50%,
      32% 52%,
      34% 50%,
      36% 48%,
      38% 50%,
      40% 52%,
      42% 50%,
      44% 48%,
      46% 50%,
      48% 52%,
      50% 50%,
      52% 52%,
      54% 50%,
      56% 48%,
      58% 50%,
      60% 52%,
      62% 50%,
      64% 48%,
      66% 50%,
      68% 52%,
      70% 50%,
      72% 48%,
      74% 50%,
      76% 52%,
      78% 50%,
      80% 48%,
      82% 50%,
      84% 52%,
      86% 50%,
      88% 48%,
      90% 50%,
      91% 52%,
      92% 50%,
      93% 48%,
      94% 50%,
      95% 52%,
      96% 50%,
      97% 48%,
      98% 50%,
      99% 52%,
      100% 50%,
      100% 100%,
      0% 100%
    );
  }
  50% {
    clip-path: polygon(
      0% 50%,
      1% 55%,
      2% 50%,
      3% 45%,
      4% 50%,
      5% 55%,
      6% 50%,
      7% 45%,
      8% 50%,
      9% 55%,
      10% 50%,
      12% 52%,
      14% 50%,
      16% 48%,
      18% 50%,
      20% 52%,
      22% 50%,
      24% 48%,
      26% 50%,
      28% 52%,
      30% 50%,
      32% 48%,
      34% 50%,
      36% 52%,
      38% 50%,
      40% 48%,
      42% 50%,
      44% 52%,
      46% 50%,
      48% 48%,
      50% 50%,
      52% 48%,
      54% 50%,
      56% 52%,
      58% 50%,
      60% 48%,
      62% 50%,
      64% 52%,
      66% 50%,
      68% 48%,
      70% 50%,
      72% 52%,
      74% 50%,
      76% 48%,
      78% 50%,
      80% 52%,
      82% 50%,
      84% 48%,
      86% 50%,
      88% 52%,
      90% 50%,
      91% 48%,
      92% 50%,
      93% 52%,
      94% 50%,
      95% 48%,
      96% 50%,
      97% 52%,
      98% 50%,
      99% 48%,
      100% 50%,
      100% 100%,
      0% 100%
    );
  }
}

.divider::before {
  content: '🐮';
  position: relative;
  font-size: 32px;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.divider:hover::before {
  transform: translateY(-3px) scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Redes Sociales */
.redes-sociales {
  padding: 64px 48px; /* Reducido de 100px 60px */
  max-width: 1120px; /* Reducido de 1400px */
  margin: 32px auto; /* Reducido de 40px */
  text-align: center;
  background-color: #ffffff;
  border-radius: 20px; /* Reducido de 25px */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.24s ease, box-shadow 0.64s ease;
}

.redes-sociales h2 {
  font-size: 2em; /* Reducido de 2.5em */
  margin-bottom: 16px; /* Reducido de 20px */
  color: #8B4513;
  text-shadow: 1.6px 1.6px 3.2px rgba(0, 0, 0, 0.2);
}

.redes-sociales p {
  font-size: 0.88em; /* Reducido de 1.1em */
  margin: 12px 0; /* Reducido de 15px 0 */
  line-height: 1.6;
  max-width: 640px; /* Reducido de 800px */
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px; /* Reducido de 30px */
}

.social-link {
  margin: 10px;
  font-size: 1.15em;
  color: #8B4513;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, 
    rgba(212, 163, 115, 0.12) 0%, 
    rgba(212, 163, 115, 0.08) 100%);
  border: 2px solid rgba(212, 163, 115, 0.25);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* Efecto de resplandor animado para botones sociales */
@keyframes social-pulse {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(212, 163, 115, 0.7),
      0 12px 35px rgba(212, 163, 115, 0.5),
      0 6px 20px rgba(0, 0, 0, 0.2),
      inset 0 3px 6px rgba(255, 255, 255, 0.5),
      0 0 0 0 rgba(212, 163, 115, 0.6);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(212, 163, 115, 0.7),
      0 12px 35px rgba(212, 163, 115, 0.5),
      0 6px 20px rgba(0, 0, 0, 0.2),
      inset 0 3px 6px rgba(255, 255, 255, 0.5),
      0 0 0 15px rgba(212, 163, 115, 0);
  }
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.5), rgba(212, 163, 115, 0.2) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
              height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.5s ease;
  opacity: 0;
  z-index: 0;
  box-shadow: 0 0 40px rgba(212, 163, 115, 0.4);
}

.social-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.6), 
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.6),
    transparent);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  border-radius: 30px;
}

.social-link:hover::before {
  width: 300px;
  height: 300px;
  opacity: 1;
  box-shadow: 0 0 60px rgba(212, 163, 115, 0.6);
}

.social-link:hover::after {
  left: 100%;
}

.social-link:hover {
  color: #5A2D0C !important;
  transform: translateY(-6px) scale(1.15) !important;
  background: linear-gradient(135deg, 
    #D4A373 0%, 
    #E8D5B7 50%,
    #D4A373 100%) !important;
  border-color: #E8D5B7 !important;
  border-width: 3px !important;
  box-shadow: 
    0 0 30px rgba(212, 163, 115, 0.7) !important,
    0 12px 35px rgba(212, 163, 115, 0.5) !important,
    0 6px 20px rgba(0, 0, 0, 0.2) !important,
    inset 0 3px 6px rgba(255, 255, 255, 0.5) !important;
  animation: social-pulse 1.5s ease-in-out infinite !important;
}

.social-link:active {
  transform: translateY(-3px) scale(1.1) !important;
  box-shadow: 
    0 0 20px rgba(212, 163, 115, 0.5) !important,
    0 6px 20px rgba(212, 163, 115, 0.3) !important,
    0 3px 10px rgba(0, 0, 0, 0.15) !important;
}

.social-link i {
  margin-right: 8px;
  font-size: 1.5em;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.social-link:hover i {
  transform: scale(1.4) !important;
  filter: drop-shadow(0 4px 8px rgba(212, 163, 115, 0.7)) !important;
  color: #5A2D0C !important;
}

.social-link span,
.social-link {
  position: relative;
  z-index: 2;
}

/* Estilos Responsivos para Redes Sociales */
@media (max-width: 768px) {
  .redes-sociales {
    padding: 40px 32px; /* Reducido de 40px 20px */
  }

  .redes-sociales h2 {
    font-size: 1.6em; /* Reducido de 2em */
  }

  .redes-sociales p {
    font-size: 0.8em; /* Reducido de 1em */
  }

  .social-links {
    flex-direction: column;
  }

  .social-link {
    margin: 10px 0;
    padding: 12px 18px;
    font-size: 1em;
  }

  .social-link:hover {
    transform: translateY(-3px) scale(1.08);
  }

  .social-link:hover i {
    transform: scale(1.3);
  }
}

/* Partículas (Fondo Animado) */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

:root {
  --primary-color: #8B4513; /* Marrón */
  --primary-dark: #5A2D0C; /* Marrón oscuro */
  --text-dark: #4B2E2A; /* Gris oscuro */
  --text-light: #666; /* Gris claro */
  --white: #fff; /* Blanco */
  --background-light: #fefae0; /* Fondo claro */
  --border-radius: 9.6px; /* Reducido de 12px */
  --transition: 0.24s ease; /* Reducido de 0.3s */
  --shadow: 0 4.8px 12px rgba(0, 0, 0, 0.12); /* Sombra mejorada */
}

/* Acordeón Moderno y Delicado */
.accordion {
  width: 100%;
  max-width: 1150px;
  margin: 3.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.accordion-item {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 
    0 4px 16px rgba(139, 69, 19, 0.06),
    0 0 0 1px rgba(139, 69, 19, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  overflow: visible;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  border: 1px solid rgba(139, 69, 19, 0.08);
}

.accordion-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(212, 163, 115, 0.5) 30%,
    rgba(139, 69, 19, 0.6) 50%,
    rgba(212, 163, 115, 0.5) 70%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 24px 24px 0 0;
  z-index: 1;
}

.accordion-item:hover {
  box-shadow: 
    0 8px 28px rgba(139, 69, 19, 0.1),
    0 0 0 1px rgba(139, 69, 19, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  border-color: rgba(139, 69, 19, 0.12);
}

.accordion-item:hover::before {
  opacity: 1;
}

.accordion-item.active {
  box-shadow: 
    0 12px 36px rgba(139, 69, 19, 0.14),
    0 0 0 1px rgba(139, 69, 19, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(139, 69, 19, 0.15);
}

.accordion-item.active::before {
  opacity: 1;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(212, 163, 115, 0.7) 30%,
    rgba(139, 69, 19, 0.8) 50%,
    rgba(212, 163, 115, 0.7) 70%,
    transparent 100%);
  height: 5px;
}

.accordion-header {
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #fefefe 100%);
  color: var(--primary-color);
  cursor: pointer;
  padding: 24px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.2s ease;
  position: relative;
  border: none;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.4px;
  z-index: 2;
}

.accordion-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(139, 69, 19, 0.1) 20%,
    rgba(139, 69, 19, 0.15) 50%,
    rgba(139, 69, 19, 0.1) 80%,
    transparent 100%);
  transition: opacity 0.2s ease;
}

.accordion-header:hover {
  background: linear-gradient(135deg, 
    #fefefe 0%, 
    #fafafa 100%);
}

.accordion-header.active {
  background: linear-gradient(135deg, 
    #fefefe 0%, 
    #fafafa 100%);
}

.accordion-item.active .accordion-header::after {
  opacity: 0;
}

.accordion-header > i.fa-map-marker-alt {
  margin-right: 14px;
  font-size: 1.15em;
  color: rgba(139, 69, 19, 0.75);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(139, 69, 19, 0.1));
}

.accordion-header:hover > i.fa-map-marker-alt {
  color: rgba(139, 69, 19, 0.9);
  transform: scale(1.05);
}

.accordion-header.active > i.fa-map-marker-alt {
  color: var(--primary-color);
}

.accordion-header span {
  flex: 1;
  text-align: left;
  position: relative;
}

.accordion-header .accordion-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(139, 69, 19, 0.08) 0%, 
    rgba(139, 69, 19, 0.12) 100%);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 
    0 2px 6px rgba(139, 69, 19, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(139, 69, 19, 0.05);
  position: relative;
}

.accordion-header .accordion-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(212, 163, 115, 0.1) 0%, 
    transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.accordion-header .accordion-icon i {
  font-size: 1em;
  color: rgba(139, 69, 19, 0.7);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.accordion-header:hover .accordion-icon {
  background: linear-gradient(135deg, 
    rgba(139, 69, 19, 0.12) 0%, 
    rgba(139, 69, 19, 0.18) 100%);
  transform: scale(1.1);
  box-shadow: 
    0 4px 8px rgba(139, 69, 19, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(139, 69, 19, 0.08);
}

.accordion-header:hover .accordion-icon::before {
  opacity: 1;
}

.accordion-header:hover .accordion-icon i {
  color: rgba(139, 69, 19, 0.9);
  transform: translateY(1px);
}

.accordion-header.active .accordion-icon {
  background: linear-gradient(135deg, 
    rgba(139, 69, 19, 0.2) 0%, 
    rgba(139, 69, 19, 0.28) 100%);
  transform: rotate(180deg) scale(1.08);
  box-shadow: 
    0 5px 12px rgba(139, 69, 19, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(139, 69, 19, 0.1);
}

.accordion-header.active .accordion-icon::before {
  opacity: 1;
  background: radial-gradient(circle, 
    rgba(212, 163, 115, 0.15) 0%, 
    transparent 70%);
}

.accordion-header.active .accordion-icon i {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.accordion-content {
  display: none;
  padding: 28px 36px 32px 36px;
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.9;
  position: relative;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  will-change: auto !important;
}

.accordion-content.active {
  display: block !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.accordion-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(212, 163, 115, 0.6) 0%, 
    rgba(139, 69, 19, 0.5) 35%,
    rgba(139, 69, 19, 0.4) 65%,
    transparent 100%);
  border-radius: 2px;
  z-index: 0;
}

.accordion-content .ubicacion-item {
  margin-bottom: 28px;
  padding-left: 28px;
  position: relative;
  padding-top: 8px;
  z-index: 1;
}

.accordion-content .ubicacion-item:last-child {
  margin-bottom: 0;
}

.accordion-content .ubicacion-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(212, 163, 115, 0.8) 0%, 
    rgba(139, 69, 19, 0.7) 100%);
  box-shadow: 
    0 0 0 5px rgba(139, 69, 19, 0.08),
    0 2px 6px rgba(139, 69, 19, 0.2);
  z-index: 1;
}

.accordion-content p {
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  text-align: left;
  font-size: 0.98rem;
}

.accordion-content .ubicacion-direccion {
  margin-bottom: 12px;
  font-size: 1rem;
}

.accordion-content .ubicacion-direccion i {
  color: rgba(139, 69, 19, 0.65);
  margin-right: 10px;
  font-size: 0.95em;
}

.accordion-content .ubicacion-direccion a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
}

.accordion-content .ubicacion-direccion a::after {
  content: '↗';
  font-size: 0.9em;
  opacity: 0.5;
  margin-left: 2px;
}

.accordion-content .ubicacion-direccion a:hover {
  color: var(--primary-dark);
}

.accordion-content .ubicacion-direccion a:hover::after {
  opacity: 0.8;
}

.accordion-content .horario {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-top: 12px;
  padding: 14px 18px 14px 16px;
  border-left: 5px solid rgba(139, 69, 19, 0.3);
  border-radius: 10px;
  background: linear-gradient(90deg, 
    rgba(139, 69, 19, 0.06) 0%, 
    rgba(139, 69, 19, 0.03) 100%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  box-shadow: 
    0 2px 4px rgba(139, 69, 19, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.accordion-content .horario i {
  color: rgba(139, 69, 19, 0.7);
  font-size: 1em;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(139, 69, 19, 0.1));
}

.accordion-content .horario strong {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 4px;
}

/* Animaciones eliminadas para mejor rendimiento */

/* Responsive */
@media (max-width: 768px) {
  .accordion {
    margin: 2.5rem 1rem;
    gap: 16px;
  }

  .accordion-item {
    border-radius: 20px;
  }

  .accordion-header {
    padding: 20px 24px;
    font-size: 1.05rem;
  }

  .accordion-header::after {
    left: 24px;
    right: 24px;
  }

  .accordion-content {
    padding: 24px 24px 28px 24px;
  }

  .accordion-content::before {
    left: 24px;
    width: 3px;
  }

  .accordion-content .ubicacion-item {
    padding-left: 24px;
    margin-bottom: 24px;
  }

  .accordion-content .ubicacion-item::before {
    width: 10px;
    height: 10px;
    top: 12px;
  }

  .accordion-header .accordion-icon {
    width: 34px;
    height: 34px;
  }

  .accordion-header .accordion-icon i {
    font-size: 0.95em;
  }

  .accordion-header > i.fa-map-marker-alt {
    margin-right: 12px;
    font-size: 1.1em;
  }

  .accordion-content .horario {
    padding: 12px 16px;
    font-size: 0.93rem;
  }
}

/* Botones de acción */
.productos-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.btn-modern {
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1.05em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-modern:hover::before {
  width: 400px;
  height: 400px;
}

#verMas {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  color: var(--primary-dark);
  border: 2px solid rgba(139, 69, 19, 0.2);
}

#verMas:hover {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  transform: translateY(-4px);
  box-shadow: 
    0 8px 25px rgba(139, 69, 19, 0.2),
    0 0 0 3px rgba(212, 163, 115, 0.2);
  border-color: rgba(212, 163, 115, 0.4);
}

.btn-cart {
  background: linear-gradient(135deg, var(--primary-color) 0%, #A0522D 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.btn-cart:hover {
  background: linear-gradient(135deg, #A0522D 0%, var(--primary-color) 100%);
  transform: translateY(-4px);
  box-shadow: 
    0 8px 25px rgba(139, 69, 19, 0.3),
    0 0 0 3px rgba(212, 163, 115, 0.3);
}

.btn-modern:active {
  transform: translateY(-2px);
}

.btn-modern i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-modern:hover i {
  transform: scale(1.1);
}

/* Contenedor de filtros */
.filtros-container {
  margin-bottom: 40px;
  padding: 25px;
  background: linear-gradient(135deg, #fefefe 0%, #fafafa 100%);
  border-radius: 20px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(139, 69, 19, 0.08);
}

.filtros-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #666;
  font-size: 1em;
  font-weight: 500;
}

.filtros-label i {
  color: #D4A373;
  font-size: 1.1em;
}

/* Botones de Filtrado */
#filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid rgba(139, 69, 19, 0.2);
  border-radius: 50px;
  background: #ffffff;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(212, 163, 115, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.filter-btn:hover {
  border-color: rgba(212, 163, 115, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.15);
  color: var(--primary-dark);
}

.filter-btn i {
  position: relative;
  z-index: 1;
}

.filter-btn.selected-category {
  background: linear-gradient(135deg, var(--primary-color) 0%, #A0522D 100%);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 
    0 8px 25px rgba(139, 69, 19, 0.25),
    0 0 0 3px rgba(212, 163, 115, 0.2);
}

.filter-btn.selected-category::before {
  background: rgba(255, 255, 255, 0.1);
}

/* Estilos Responsivos */
@media (max-width: 1024px) {
  #productos {
    padding: 60px 30px;
  }

  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  #productos {
    padding: 50px 20px;
    margin: 30px auto;
  }

  .productos-header h2 {
    font-size: 2em;
  }

  .filtros-container {
    padding: 15px 0;
    margin-bottom: 25px;
    border-radius: 16px;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
  }


  .filtros-label {
    margin-bottom: 12px;
    font-size: 0.9em;
    justify-content: flex-start;
    padding: 0 20px;
    position: relative;
    z-index: 1;
  }

  #filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 8px 20px 12px 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  
  .filter-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: fit-content;
    padding: 10px 18px;
    font-size: 0.88em;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
  }

  .filter-btn:hover {
    transform: none;
  }

  .filter-btn:active {
    transform: scale(0.95);
  }

  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    padding: 12px;
  }

  .product-item {
    padding: 18px 14px;
  }

  .product-image-wrapper {
    margin-bottom: 12px;
    height: 180px;
  }

  .product-image {
    height: 100%;
  }

  .productos-actions {
    flex-direction: column;
    gap: 15px;
  }

  .btn-modern {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #productos {
    padding: 30px 8px;
    margin: 15px auto;
  }

  .productos-header h2 {
    font-size: 1.8em;
    flex-direction: column;
    gap: 10px;
  }

  .filtros-container {
    padding: 12px 0;
    margin-bottom: 20px;
    border-radius: 14px;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
  }

  #filtros {
    padding: 6px 16px 10px 16px;
  }

  .filtros-label {
    margin-bottom: 10px;
    font-size: 0.85em;
    padding: 0 8px;
    position: relative;
    z-index: 1;
  }

  #filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 6px 16px 10px 16px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  
  .filter-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: fit-content;
    padding: 8px 16px;
    font-size: 0.85em;
    border-radius: 20px;
    justify-content: center;
    position: relative;
    z-index: 3;
  }

  .filter-btn:hover {
    transform: none;
  }

  .filter-btn:active {
    transform: scale(0.95);
  }

  .product-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 5px;
  }

  .product-item {
    padding: 15px 12px;
  }

  .product-image-wrapper {
    margin-bottom: 15px;
    border-radius: 18px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: 320px;
  }

  .product-image {
    height: 100%;
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
  }
  
  /* Para pantallas muy pequeñas, ajustar un poco */
  @media (max-width: 360px) {
    .product-image-wrapper {
      height: 280px;
    }
  }
  
  /* Para pantallas medianas móviles, hacer aún más grande */
  @media (min-width: 400px) and (max-width: 480px) {
    .product-image-wrapper {
      height: 340px;
    }
  }

  .product-info {
    width: 100%;
  }

  .product-info h3 {
    font-size: 1.25em;
    margin-bottom: 12px;
  }

  .price-container {
    margin: 10px 0;
    padding: 12px 16px;
  }

  .price-value {
    font-size: 1.35em;
  }
}

/* Sección "Sobre Nosotros" - Delicada */
.sobre-nosotros {
  padding: 30px 24px 50px 24px;
  background: linear-gradient(135deg, #fefae0 0%, #faf9f5 100%);
  position: relative;
  overflow: hidden;
}

.sobre-nosotros::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="0.5" fill="rgba(139,69,19,0.02)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.sobre-nosotros-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(139, 69, 19, 0.08), 0 0 0 1px rgba(139, 69, 19, 0.06);
  padding: 50px 45px;
  position: relative;
  overflow: hidden;
}

.sobre-nosotros-container::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

/* Header de la sección */
.sobre-nosotros-header {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
  z-index: 1;
}

.sobre-nosotros-header h2 {
  font-size: 2.6em;
  margin-bottom: 18px;
  color: #8B4513;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sobre-nosotros-header h2 i {
  color: #D4A373;
  font-size: 0.85em;
  animation: pulse-delicado 4s ease-in-out infinite;
}

@keyframes pulse-delicado {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.9; }
}

.decorative-line {
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 163, 115, 0.6), transparent);
  margin: 0 auto;
  border-radius: 1px;
  position: relative;
}

.decorative-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(212, 163, 115, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(212, 163, 115, 0.3);
}

/* Contenido principal */
.sobre-nosotros-content {
  position: relative;
  z-index: 1;
}

.sobre-nosotros-text {
  margin-bottom: 45px;
}

.descripcion-destacada {
  font-size: 1.15em;
  line-height: 1.85;
  color: #5A2D0C;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border-left: 3px solid rgba(212, 163, 115, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
}

.descripcion-destacada::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 18px;
  font-size: 3.5em;
  color: rgba(212, 163, 115, 0.25);
  font-family: 'Playfair Display', serif;
}

/* Contenedor de imágenes mejorado */
.sobre-imagenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 45px 0;
  position: relative;
  z-index: 1;
}

.imagen-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
  transition: all 0.5s ease;
  background: #fff;
  cursor: pointer;
}

.imagen-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
}

.imagen-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(212, 163, 115, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.imagen-wrapper:hover::before {
  opacity: 1;
}

.img-principal, .img-secundaria {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.imagen-wrapper:hover .img-principal,
.imagen-wrapper:hover .img-secundaria {
  transform: scale(1.05);
}


/* Footer de la sección */
.sobre-nosotros-footer {
  text-align: center;
  margin-top: 45px;
  position: relative;
  z-index: 1;
}

/* Botón llamativo mejorado */
.btn-llamativo {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(160, 82, 45, 0.95) 100%);
  color: #ffffff;
  padding: 16px 36px;
  font-size: 1.05em;
  font-weight: 500;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
}

.btn-llamativo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.8s ease, height 0.8s ease;
}

.btn-llamativo:hover::before {
  width: 250px;
  height: 250px;
}

.btn-llamativo:hover {
  background: linear-gradient(135deg, rgba(160, 82, 45, 0.95) 0%, rgba(139, 69, 19, 0.95) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
}

.btn-llamativo:active {
  transform: translateY(0);
}

.btn-llamativo i {
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.btn-llamativo:hover i {
  transform: scale(1.1) rotate(3deg);
}

/* Responsive */
@media (max-width: 768px) {
  .sobre-nosotros {
    padding: 50px 16px;
  }

  .sobre-nosotros-container {
    padding: 40px 25px;
    border-radius: 20px;
  }

  .sobre-nosotros-header h2 {
    font-size: 2.2em;
    flex-direction: column;
    gap: 10px;
  }

  .descripcion-destacada {
    font-size: 1.05em;
    padding: 20px;
  }

  .sobre-imagenes {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 40px 0;
  }

  .img-principal, .img-secundaria {
    height: 280px;
  }

  .btn-llamativo {
    padding: 16px 32px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .sobre-nosotros-header h2 {
    font-size: 1.8em;
  }

  .descripcion-destacada {
    font-size: 0.95em;
    padding: 15px;
  }

  .img-principal, .img-secundaria {
    height: 220px;
  }
}

/* Sección "Contacto" */
.contacto {
  background: linear-gradient(135deg, #ffffff 0%, #fefae0 40%, #ffffff 100%);
  padding: 50px 30px;
  text-align: center;
  color: #5A2D0C;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
  max-width: 1100px;
  margin: 40px auto;
  border: 2px solid rgba(139, 69, 19, 0.15);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contacto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, #8B4513 20%, #d4a373 50%, #8B4513 80%, transparent);
  z-index: 1;
  box-shadow: 0 2px 10px rgba(139, 69, 19, 0.3);
}

.contacto::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(212, 163, 115, 0.06) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.contacto .container {
  position: relative;
  z-index: 2;
}

.contacto h2 {
  font-size: 2.4em;
  margin-bottom: 18px;
  color: #8B4513;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15), 0 0 15px rgba(139, 69, 19, 0.08);
  letter-spacing: 1.5px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.contacto h2::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #d4a373, transparent);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(212, 163, 115, 0.4);
}

.contacto h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #8B4513, #d4a373, #8B4513, transparent);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(139, 69, 19, 0.4);
}

.contacto p {
  font-size: 1.05em;
  margin: 18px 0;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(90, 45, 12, 0.9);
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.contacto-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 35px;
  padding: 25px 0;
  position: relative;
}

.contacto-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.4), rgba(212, 163, 115, 0.4), rgba(139, 69, 19, 0.4), transparent);
  box-shadow: 0 1px 3px rgba(139, 69, 19, 0.2);
}

.contacto-item {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  background: linear-gradient(135deg, #ffffff 0%, #fefae0 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(139, 69, 19, 0.15);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out both;
}

.contacto-item:nth-child(1) {
  animation-delay: 0.6s;
}

.contacto-item:nth-child(2) {
  animation-delay: 0.7s;
}

.contacto-item:nth-child(3) {
  animation-delay: 0.8s;
}

.contacto-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.contacto-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B4513, #d4a373, #8B4513);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.contacto-item:hover::before {
  opacity: 1;
}

.contacto-item:hover::after {
  opacity: 1;
}

.contacto-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18), 0 8px 18px rgba(0, 0, 0, 0.12);
  border-color: rgba(139, 69, 19, 0.35);
}

.contacto-item h3 {
  font-size: 1.35em;
  color: #8B4513;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.contacto-item h3 i {
  font-size: 1.4em;
  color: #8B4513;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.contacto-item:hover h3 i {
  transform: scale(1.3) rotate(10deg);
  color: #5A2D0C;
  filter: drop-shadow(0 5px 10px rgba(139, 69, 19, 0.4));
}

.contacto-item p {
  font-size: 1em;
  color: rgba(90, 45, 12, 0.95);
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 500;
}

.contacto-item a {
  color: #8B4513;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  font-size: 1.05em;
}

.contacto-item a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #d4a373, #8B4513);
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(139, 69, 19, 0.3);
}

.contacto-item a:hover {
  color: #5A2D0C;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transform: translateX(3px);
}

.contacto-item a:hover::after {
  width: 100%;
}

/* Estilos para el formulario */
.contacto-formulario {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, #ffffff 0%, #fefae0 100%);
  padding: 35px 40px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(139, 69, 19, 0.15);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 1s both;
}

.contacto-formulario::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B4513, #d4a373, #8B4513);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.contacto-formulario::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.contacto-formulario h3 {
  font-size: 1.65em;
  color: #8B4513;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.12);
  position: relative;
  display: inline-block;
  width: 100%;
  font-weight: 700;
}

.contacto-formulario h3::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4a373, transparent);
  border-radius: 2px;
}

.contacto-formulario h3::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8B4513, #d4a373, #8B4513, transparent);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(139, 69, 19, 0.3);
}

.contacto-formulario .form-group {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.contacto-formulario label {
  font-size: 0.98em;
  color: #5A2D0C;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  padding-left: 5px;
}

.contacto-formulario label i {
  margin-right: 8px;
  color: #8B4513;
  font-size: 1em;
  transition: all 0.3s ease;
}

.contacto-formulario .form-group:focus-within label i {
  color: #5A2D0C;
  transform: scale(1.15);
}

.contacto-formulario label::before {
  content: '▸';
  position: absolute;
  left: -15px;
  color: #8B4513;
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-5px);
}

.contacto-formulario .form-group:focus-within label::before {
  opacity: 1;
  transform: translateX(0);
}

.contacto-formulario input,
.contacto-formulario textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.98em;
  border: 2px solid rgba(139, 69, 19, 0.25);
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: #ffffff;
  font-family: inherit;
  color: #5A2D0C;
  position: relative;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
  border-color: #8B4513;
  box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.2), inset 0 3px 8px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(139, 69, 19, 0.15);
  outline: none;
  transform: translateY(-3px);
  background-color: #fefae0;
}

.contacto-formulario textarea {
  resize: vertical;
  min-height: 85px;
  padding: 10px 16px;
}

.contacto-formulario button {
  background: linear-gradient(135deg, #8B4513 0%, #5A2D0C 50%, #8B4513 100%);
  background-size: 200% 100%;
  color: #fff;
  font-size: 1.05em;
  padding: 14px 35px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 6px 15px rgba(139, 69, 19, 0.28), 0 3px 8px rgba(0, 0, 0, 0.15);
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contacto-formulario button i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.contacto-formulario button:hover i {
  transform: translateX(5px) translateY(-2px);
}

.contacto-formulario button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  transition: transform 0.6s ease;
  border-radius: 50%;
  z-index: -1;
}

.contacto-formulario button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.contacto-formulario button:hover {
  background-position: 100% 0;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(139, 69, 19, 0.45), 0 6px 15px rgba(0, 0, 0, 0.25);
}

.contacto-formulario button:hover::before {
  transform: translate(-50%, -50%) scale(2.5);
}

.contacto-formulario button:hover::after {
  left: 100%;
}

.contacto-formulario button:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(139, 69, 19, 0.35);
}

/* Estilos para la notificación */
#mensaje-resultado {
  margin-top: 16px; /* Reducido de 20px */
  padding: 12px; /* Reducido de 15px */
  font-size: 0.96em; /* Reducido de 1.2em */
  border-radius: 6.4px; /* Reducido de 8px */
  text-align: center;
  display: none;
}
/* Notificaciones reutilizables */
.notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification-card {
    width: 360px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 18px 20px 18px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    box-shadow: 0 16px 32px rgba(90, 45, 12, 0.2);
    border: 1px solid rgba(139, 69, 19, 0.12);
    backdrop-filter: blur(12px);
    transform: translateX(120%);
    opacity: 0;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    animation: notificationEnter 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.notification-card.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.notification-card.is-removing {
    animation: notificationLeave 0.45s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.notification-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notification-card__title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #5a2d0c;
}

.notification-card__message {
    margin: 0;
    font-size: 14px;
    color: #3f2f24;
    line-height: 1.4;
}

.notification-card__close {
    border: none;
    background: rgba(139, 69, 19, 0.12);
    color: #5a2d0c;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.notification-card__close:hover {
    background: rgba(139, 69, 19, 0.2);
    transform: rotate(90deg);
}

.notification-card__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(139, 69, 19, 0.35);
    width: 100%;
    transform-origin: left;
    animation: notificationProgress linear forwards;
}

.notification-card.is-paused .notification-card__progress {
    animation-play-state: paused;
}

.cart-toast-container {
    position: fixed;
    top: 88px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 11005;
    pointer-events: none;
    align-items: flex-end;
}

.cart-toast {
    min-width: 280px;
    max-width: min(360px, 90vw);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(90, 45, 12, 0.18);
    padding: 16px 18px 16px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    transform: translateY(6px) scale(0.96);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cart-toast.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cart-toast.is-hiding {
    animation: cartToastExit 0.3s ease forwards;
}

.cart-toast__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(139, 69, 19, 0.12);
    color: #8b4513;
}

.cart-toast__message {
    color: #3f2f24;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
}

.cart-toast__close {
    border: none;
    background: transparent;
    color: rgba(90, 45, 12, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cart-toast__close:hover {
    background: rgba(139, 69, 19, 0.12);
    color: #5a2d0c;
    transform: rotate(90deg);
}

.cart-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(139, 69, 19, 0.18);
    transform-origin: left;
    animation: cartToastProgress linear forwards;
}

.cart-toast.is-paused .cart-toast__progress {
    animation-play-state: paused;
}

.cart-toast--success {
    border-left: 4px solid #8b4513;
}

.cart-toast--info {
    border-left: 4px solid #0c5460;
}

.cart-toast--warning {
    border-left: 4px solid #c87f02;
}

.cart-toast--error {
    border-left: 4px solid #c0392b;
}

.cart-toast--error .cart-toast__icon {
    background: rgba(220, 53, 69, 0.15);
    color: #c0392b;
}

.cart-toast--warning .cart-toast__icon {
    background: rgba(255, 193, 7, 0.2);
    color: #c87f02;
}

.cart-toast--info .cart-toast__icon {
    background: rgba(23, 162, 184, 0.18);
    color: #0c5460;
}

@keyframes cartToastExit {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(6px) scale(0.94);
        opacity: 0;
    }
}

@keyframes cartToastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 768px) {
    .cart-toast-container {
        top: 76px;
        right: 16px;
        left: 16px;
        align-items: stretch;
    }

    .cart-toast {
        min-width: auto;
    }
}

.notification-success {
    background: linear-gradient(135deg, rgba(248, 242, 227, 0.95), rgba(235, 220, 196, 0.92));
}

.notification-success .notification-card__icon {
    background: rgba(139, 69, 19, 0.15);
    color: #8b4513;
}

.notification-error {
    background: linear-gradient(135deg, rgba(255, 237, 237, 0.95), rgba(255, 214, 214, 0.92));
}

.notification-error .notification-card__icon {
    background: rgba(220, 53, 69, 0.18);
    color: #c0392b;
}

.notification-warning {
    background: linear-gradient(135deg, rgba(255, 245, 225, 0.96), rgba(255, 235, 205, 0.92));
}

.notification-warning .notification-card__icon {
    background: rgba(255, 193, 7, 0.2);
    color: #c87f02;
}

.notification-info {
    background: linear-gradient(135deg, rgba(232, 244, 248, 0.96), rgba(209, 231, 240, 0.92));
}

.notification-info .notification-card__icon {
    background: rgba(23, 162, 184, 0.18);
    color: #0c5460;
}

@keyframes notificationEnter {
    0% {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
    60% {
        transform: translateX(-8%) scale(1.03);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes notificationLeave {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
}

@keyframes notificationProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}
#mensaje-resultado.success {
  background-color: #d4edda;
  color: #155724;
  border: 0.8px solid #c3e6cb; /* Reducido de 1px */
}

#mensaje-resultado.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 0.8px solid #f5c6cb; /* Reducido de 1px */
}

/* Estilos Responsivos para "Contacto" */
@media (max-width: 768px) {
  .contacto {
    padding: 40px 20px;
    margin: 30px auto;
    border-radius: 18px;
  }

  .contacto h2 {
    font-size: 2em;
    letter-spacing: 1px;
    margin-bottom: 15px;
  }

  .contacto h2::before {
    width: 60px;
    top: -10px;
  }

  .contacto h2::after {
    width: 75px;
    bottom: -10px;
  }

  .contacto p {
    font-size: 0.98em;
    margin: 15px 0;
    line-height: 1.5;
  }

  .contacto-info {
    gap: 20px;
    margin-top: 28px;
    padding: 20px 0;
  }

  .contacto-info::before {
    width: 85%;
  }

  .contacto-item {
    min-width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .contacto-item:hover {
    transform: translateY(-6px) scale(1.01);
  }

  .contacto-item h3 {
    font-size: 1.25em;
    margin-bottom: 12px;
  }

  .contacto-item h3 i {
    font-size: 1.3em;
  }

  .contacto-formulario {
    padding: 28px 20px;
    margin-top: 35px;
    border-radius: 18px;
    max-width: 95%;
  }

  .contacto-formulario h3 {
    font-size: 1.45em;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
  }

  .contacto-formulario h3::before {
    width: 55px;
    top: -8px;
  }

  .contacto-formulario h3::after {
    width: 70px;
    bottom: -10px;
  }

  .contacto-formulario .form-group {
    margin-bottom: 18px;
  }

  .contacto-formulario label {
    font-size: 0.95em;
    margin-bottom: 7px;
  }

  .contacto-formulario input,
  .contacto-formulario textarea {
    padding: 11px 14px;
    font-size: 0.95em;
    border-radius: 9px;
  }

  .contacto-formulario textarea {
    min-height: 80px;
    padding: 9px 14px;
  }

  .contacto-formulario button {
    padding: 12px 30px;
    font-size: 0.98em;
    border-radius: 22px;
  }
}

/* Campos de Domicilio */
#deliveryFields {
  margin-top: 8px; /* Reducido de 10px */
}

/* Botones de Cantidad en el Carrito */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 4px; /* Reducido de 5px */
}

.quantity-btn {
  background-color: #8B4513;
  color: white;
  border: none;
  padding: 4px 8px; /* Reducido de 5px 10px */
  border-radius: 4px; /* Reducido de 5px */
  cursor: pointer;
  font-size: 0.8em; /* Reducido de 1em */
}

.quantity-btn:hover {
  background-color: #5D4037; /* Cambiado a marrón más oscuro */
}

.delivery-info {
  font-size: 0.72rem; /* Reducido de 0.9rem */
  color: #555;
  margin-top: 4px; /* Reducido de 5px */
  margin-bottom: 8px; /* Reducido de 10px */
}

/* Contenedor principal de los controles */
.product-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Estilos para el select de medidas */
.medida-select {
  width: 100%;
  padding: 14px 45px 14px 18px;
  border: 2px solid rgba(139, 69, 19, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fafafa 100%);
  color: var(--text-dark);
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238B4513" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 6.854a.5.5 0 0 1 .708 0L8 12.5l5.646-5.646a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  box-shadow: 
    0 3px 10px rgba(139, 69, 19, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(139, 69, 19, 0.05);
  position: relative;
  overflow: hidden;
}

.medida-select::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 163, 115, 0.1), transparent);
  transition: left 0.5s ease;
}

.medida-select:hover::before {
  left: 100%;
}

.medida-select:hover {
  border-color: rgba(212, 163, 115, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #f9f9f9 100%);
  box-shadow: 
    0 5px 15px rgba(139, 69, 19, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(139, 69, 19, 0.08);
  transform: translateY(-2px);
}

.medida-select:focus {
  outline: none;
  border-color: rgba(212, 163, 115, 0.7);
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #f9f9f9 100%);
  box-shadow: 
    0 0 0 4px rgba(212, 163, 115, 0.2),
    0 5px 15px rgba(139, 69, 19, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(139, 69, 19, 0.08);
  transform: translateY(-1px);
}

.medida-select:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(139, 69, 19, 0.1),
    inset 0 1px 2px rgba(139, 69, 19, 0.1);
}

/* Estilos para las opciones del select */
.medida-select option {
  padding: 12px 15px;
  background-color: #ffffff;
  color: var(--text-dark);
  font-weight: 500;
  border: none;
}

.medida-select option:hover {
  background-color: #fef9e7;
}

.medida-select option:checked {
  background: linear-gradient(135deg, #fef9e7 0%, #fef5e7 100%);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Controles de cantidad mejorados */
.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.quantity-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #666;
  font-size: 0.9em;
  font-weight: 500;
}

.quantity-label-text {
  font-size: 0.95em;
  color: #666;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.quantity-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border: 2px solid rgba(139, 69, 19, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.quantity-input-wrapper:hover {
  border-color: rgba(212, 163, 115, 0.4);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.quantity-btn {
  background: linear-gradient(135deg, #D4A373 0%, #C19A6B 100%);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9em;
  position: relative;
  overflow: hidden;
}

.quantity-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.quantity-btn:hover::before {
  width: 100px;
  height: 100px;
}

.quantity-btn:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, #A0522D 100%);
  transform: scale(1.05);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-btn i {
  position: relative;
  z-index: 1;
  font-size: 0.85em;
}

.quantity-btn-minus {
  border-radius: 12px 0 0 12px;
}

.quantity-btn-plus {
  border-radius: 0 12px 12px 0;
}

.quantity-input {
  width: 60px;
  padding: 10px 5px;
  border: none;
  border-left: 1px solid rgba(139, 69, 19, 0.1);
  border-right: 1px solid rgba(139, 69, 19, 0.1);
  text-align: center;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--primary-dark);
  background: #ffffff;
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input:focus {
  outline: none;
  background: #fefefe;
}

/* Botón Añadir al Carrito */
.add-to-cart-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #A0522D 100%);
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 15px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 15px rgba(139, 69, 19, 0.2),
    0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.add-to-cart-btn:hover::before {
  width: 400px;
  height: 400px;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #A0522D 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(139, 69, 19, 0.3),
    0 0 0 3px rgba(212, 163, 115, 0.2);
}

.add-to-cart-btn:active {
  transform: translateY(-1px);
}

.add-to-cart-btn i {
  position: relative;
  z-index: 1;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.add-to-cart-btn:hover i {
  transform: scale(1.2) rotate(5deg);
}

.add-to-cart-btn span {
  position: relative;
  z-index: 1;
}

/* Responsive para controles de cantidad */
@media (max-width: 768px) {
  .product-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    justify-content: flex-start;
  }

  .medida-select {
    flex: none;
    min-width: 64px;
  }

  .quantity-input-wrapper {
    border-radius: 10px;
  }

  .quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8em;
  }

  .quantity-input {
    width: 50px;
    padding: 8px 3px;
    font-size: 0.95em;
  }

  .quantity-label-text {
    font-size: 0.85em;
  }

  .add-to-cart-btn {
    padding: 12px 16px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .quantity-btn {
    width: 32px;
    height: 32px;
  }

  .quantity-input {
    width: 45px;
    padding: 7px 2px;
    font-size: 0.9em;
  }

  .quantity-label-text {
    font-size: 0.8em;
  }
}

/* ********** Sección de Últimas Noticias - Diseño Elegante Mejorado ********** */

/* Contenedor Principal de la Sección */
.ultimas-noticias {
  padding: 70px 24px;
  max-width: 1200px;
  margin: 50px auto;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(254, 250, 224, 0.85) 50%,
    rgba(255, 255, 255, 0.98) 100%);
  border-radius: 28px;
  box-shadow: 
    0 10px 40px rgba(139, 69, 19, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.ultimas-noticias::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, 
    rgba(139, 69, 19, 0.9) 0%, 
    rgba(212, 163, 115, 0.7) 25%,
    rgba(139, 69, 19, 0.9) 50%,
    rgba(212, 163, 115, 0.7) 75%,
    rgba(139, 69, 19, 0.9) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.ultimas-noticias::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.03) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* Header de Noticias */
.noticias-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.noticias-header h2 {
  font-size: 2.8em;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  animation: slideInDown 0.8s ease 0.2s both;
}

.noticias-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
}

.noticias-header h2 i {
  color: var(--primary-color);
  font-size: 0.85em;
  animation: rotateIn 1s ease 0.4s both;
  filter: drop-shadow(0 2px 4px rgba(139, 69, 19, 0.2));
}

.noticias-subtitle {
  color: var(--text-light);
  font-size: 1.15em;
  font-weight: 300;
  margin: 0;
  font-style: italic;
  letter-spacing: 0.5px;
  animation: fadeIn 1s ease 0.5s both;
  position: relative;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contenedor de Noticias */
.noticias-container {
  position: relative;
  min-height: 400px;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Tarjeta de Noticia */
.noticia-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(139, 69, 19, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(139, 69, 19, 0.12);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardFadeIn 0.6s ease forwards;
}

.noticia-card:nth-child(1) { animation-delay: 0.1s; }
.noticia-card:nth-child(2) { animation-delay: 0.2s; }
.noticia-card:nth-child(3) { animation-delay: 0.3s; }
.noticia-card:nth-child(4) { animation-delay: 0.4s; }
.noticia-card:nth-child(5) { animation-delay: 0.5s; }
.noticia-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.noticia-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(139, 69, 19, 0.05) 0%, 
    transparent 50%,
    rgba(212, 163, 115, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.noticia-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(139, 69, 19, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(139, 69, 19, 0.4);
}

.noticia-card:hover::before {
  opacity: 1;
}

/* Wrapper de Imagen */
.noticia-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  z-index: 0;
}

.noticia-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    transparent 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.noticia-card:hover .noticia-image-wrapper::after {
  opacity: 1;
}

.noticia-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  filter: brightness(1) saturate(1);
}

.noticia-card:hover .noticia-image {
  transform: scale(1.15) rotate(1deg);
  filter: brightness(1.1) saturate(1.2);
}

/* Overlay de Imagen */
.noticia-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, 
    rgba(139, 69, 19, 0.85) 0%, 
    rgba(139, 69, 19, 0.4) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.noticia-card:hover .noticia-overlay {
  opacity: 1;
}

.noticia-link {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.3em;
  transform: translateY(30px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.noticia-card:hover .noticia-link {
  transform: translateY(0) scale(1);
}

.noticia-link:hover {
  background: #ffffff;
  transform: translateY(0) scale(1.15) rotate(5deg);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Contenido de Noticia */
.noticia-content {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
}

.noticia-meta {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.noticia-date {
  color: var(--text-light);
  font-size: 0.88em;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(139, 69, 19, 0.08);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.noticia-card:hover .noticia-date {
  background: rgba(139, 69, 19, 0.15);
  color: var(--primary-dark);
  transform: translateX(4px);
}

.noticia-date i {
  color: var(--primary-color);
  font-size: 0.95em;
}

.noticia-title {
  font-size: 1.5em;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 16px 0;
  font-weight: 700;
  line-height: 1.35;
  transition: all 0.4s ease;
  position: relative;
}

.noticia-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.noticia-card:hover .noticia-title::after {
  width: 60px;
}

.noticia-excerpt {
  color: var(--text-light);
  font-size: 0.98em;
  line-height: 1.7;
  margin: 0 0 24px 0;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.noticia-card:hover .noticia-excerpt {
  color: #555;
}

.noticia-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  align-self: flex-start;
  padding: 10px 20px;
  position: relative;
  background: rgba(139, 69, 19, 0.08);
  border-radius: 25px;
  overflow: hidden;
}

.noticia-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.noticia-btn:hover::before {
  left: 100%;
}

.noticia-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.noticia-btn:hover {
  background: rgba(139, 69, 19, 0.15);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.noticia-btn:hover::after {
  width: 100%;
}

.noticia-btn i {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.noticia-btn:hover i {
  transform: translateX(6px) scale(1.1);
}

/* Loading Spinner Mejorado */
.noticias-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 24px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
}

.loading-spinner::before {
  width: 60px;
  height: 60px;
  border-top-color: var(--primary-color);
  border-right-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

.loading-spinner::after {
  width: 40px;
  height: 40px;
  top: 10px;
  left: 10px;
  border-bottom-color: var(--primary-dark);
  border-left-color: var(--primary-dark);
  animation: spinReverse 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

.noticias-loading p {
  color: var(--text-light);
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: 1px;
  animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Error Message */
.noticias-error {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.noticias-error i {
  font-size: 3em;
  color: #dc3545;
  margin-bottom: 20px;
}

/* Paginador Elegante Mejorado */
.pagination-wrapper {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: transparent;
}

.pagination-elegant {
  display: inline-block;
  position: relative;
  background: transparent;
}

.pagination-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  border: none;
  position: relative;
  overflow: hidden;
}

.pagination-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(139, 69, 19, 0.03), 
    transparent);
  transition: left 0.5s ease;
}

.pagination-list:hover::before {
  left: 100%;
}

.pagination-item {
  margin: 0;
  position: relative;
}

.pagination-btn {
  min-width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.98em;
  font-weight: 600;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  position: relative;
  z-index: 1;
}

.pagination-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(139, 69, 19, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

.pagination-btn:hover:not(:disabled)::before {
  width: 100%;
  height: 100%;
}

.pagination-btn:hover:not(:disabled) {
  color: var(--primary-color);
  transform: scale(1.15) rotate(5deg);
}

.pagination-item.active .pagination-btn {
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: 
    0 6px 20px rgba(139, 69, 19, 0.4),
    0 2px 8px rgba(139, 69, 19, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 700;
  transform: scale(1.1);
  position: relative;
}

.pagination-item.active .pagination-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    var(--primary-color), 
    var(--primary-dark),
    var(--primary-color));
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
}

.pagination-item.disabled .pagination-btn {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-dots {
  color: var(--text-light);
  padding: 0 6px;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* ********** Responsividad ********** */

@media (max-width: 1024px) {
  .ultimas-noticias {
    padding: 50px 20px;
    max-width: 100%;
  }
  
  .noticias-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .noticias-header h2 {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .ultimas-noticias {
    padding: 40px 16px;
    margin: 30px auto;
  }
  
  .noticias-header {
    margin-bottom: 35px;
  }
  
  .noticias-header h2 {
    font-size: 1.8em;
    flex-direction: column;
    gap: 10px;
  }
  
  .noticias-subtitle {
    font-size: 0.95em;
  }
  
  .noticias-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .noticia-image-wrapper {
    height: 200px;
  }
  
  .noticia-content {
    padding: 20px;
  }
  
  .noticia-title {
    font-size: 1.2em;
  }
  
  .pagination-list {
    gap: 4px;
    padding: 6px 12px;
  }
  
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85em;
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .ultimas-noticias {
    padding: 30px 12px;
    border-radius: 16px;
    margin: 30px auto;
  }
  
  .ultimas-noticias::before {
    height: 3px;
  }
  
  .noticias-header {
    margin-bottom: 30px;
  }
  
  .noticias-header h2 {
    font-size: 1.6em;
    gap: 10px;
  }
  
  .noticias-header h2::after {
    width: 60px;
    height: 3px;
  }
  
  .noticias-subtitle {
    font-size: 0.9em;
  }
  
  .noticias-grid {
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .noticia-image-wrapper {
    height: 200px;
  }
  
  .noticia-content {
    padding: 20px;
  }
  
  .noticia-date {
    font-size: 0.8em;
    padding: 5px 10px;
  }
  
  .noticia-title {
    font-size: 1.2em;
    margin-bottom: 12px;
  }
  
  .noticia-excerpt {
    font-size: 0.9em;
    margin-bottom: 20px;
  }
  
  .noticia-btn {
    padding: 8px 16px;
    font-size: 0.88em;
  }
  
  .pagination-wrapper {
    margin-top: 40px;
  }
  
  .pagination-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
  }
  
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85em;
    padding: 0 10px;
  }
  
  .pagination-dots {
    display: none;
  }
  
  .loading-spinner {
    width: 50px;
    height: 50px;
  }
  
  .loading-spinner::before {
    width: 50px;
    height: 50px;
  }
  
  .loading-spinner::after {
    width: 32px;
    height: 32px;
    top: 9px;
    left: 9px;
  }
}

/* Variables CSS */
:root {
  --primary-color: #8B4513; /* Marrón */
  --primary-dark: #5A2D0C; /* Marrón oscuro */
  --text-dark: #4B2E2A; /* Gris oscuro */
  --text-light: #666; /* Gris claro */
  --white: #fff; /* Blanco */
  --background-light: #fefae0; /* Fondo claro */
  --border-radius: 8px; /* Bordes redondeados */
  --transition: 0.24s ease; /* Transición suave */
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Sombra */
}

/* Estilos para la Sección de Saludo Dinámica Ajustada */
.saludo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-light);
    padding: 20px 10px; /* Reducido padding para menor espacio */
    /* border-bottom: 3px solid var(--primary-dark); */ /* Eliminado el separador anterior */
    margin-bottom: 15px; /* Reducido espaciado inferior */
    animation: zoomIn 0.5s ease-out;
}

.saludo-card {
    background: linear-gradient(145deg, var(--white), #f0f0f0);
    padding: 30px 40px; /* Ajustado para balancear la amplitud */
    border-radius: var(--border-radius);
    box-shadow: 
        10px 10px 30px rgba(0, 0, 0, 0.3),
        -10px -10px 30px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1);
    max-width: 700px; /* Ajustado para una mejor proporción */
    width: 100%;
    text-align: center;
    /* Si deseas agregar un borde inferior atractivo, puedes hacerlo aquí */
    /* border-bottom: 2px solid var(--primary-dark); */
}

.saludo-card:hover {
    transform: scale(1.02);
    box-shadow: 
        12px 12px 35px rgba(0, 0, 0, 0.35),
        -12px -12px 35px rgba(255, 255, 255, 0.9);
}

.saludo {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    color: var(--primary-dark);
    display: block;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.mensaje-festivo {
    font-size: 1.6em;
    margin-top: 10px;
    color: var(--primary-color);
    display: block;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animación de Zoom */
@keyframes zoomIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Responsividad para Dispositivos Móviles */
@media (max-width: 768px) {
    .saludo-container {
        padding: 15px 10px; /* Ajuste de padding para pantallas más pequeñas */
        margin-bottom: 10px; /* Reducido espaciado inferior */
    }
    
    .saludo-card {
        padding: 20px 30px; /* Ajuste de padding */
        max-width: 90%; /* Mayor adaptabilidad */
    }
    
    .saludo {
        font-size: 1.8em;
    }
    
    .mensaje-festivo {
        font-size: 1.4em;
    }
    
    /* Asegurar que el carrito esté por encima del menú en móvil */
    .cart-sidebar {
        z-index: 10010; /* Mayor que el nav móvil (1001) */
        max-width: 70%; /* Menor ancho para mostrar más fondo */
    }
    
    .cart-sidebar-content {
        padding: 12px; /* Menos padding en móvil */
    }
    
    .cart-item {
        padding: 10px; /* Cards más compactas en móvil */
    }
    
    .cart-overlay {
        z-index: 10009;
    }
    
    .cart-sidebar-header {
        padding: 16px 20px;
    }
    
    .cart-sidebar-content {
        padding: 16px;
    }
    
    .cart-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .cart-sidebar-footer {
        padding: 16px;
    }
}
}