body {
      margin: 0;
      padding: 0;
      font-family: 'Quicksand', sans-serif;
      background: url('5160549.jpg') no-repeat center center fixed;
      background-size: cover;
      color: #333;
    }

    /*body {
      font-family: 'Quicksand', sans-serif;
      background: url('images/background.jpg') no-repeat center center fixed;
      background-size: cover;
      margin: 0;
      padding: 0;
      color: #333;
    }*/

    header {
      background-color: rgba(255, 255, 255, 0.85);
      text-align: center;
      padding: 3rem 1rem;
    }

    header h1 {
      font-family: 'Playfair Display', serif;
      font-size: 3rem;
      margin: 0;
      color: #6b4c3b;
    }

    .hero {
      text-align: center;
      padding: 4rem 1rem 2rem;
      background-color: rgba(255, 255, 255, 0.7);
    }

    .hero h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #4e3e2a;
    }

    .hero p {
      font-size: 1.2rem;
      margin-bottom: 2rem;
    }

    .hero a {
      text-decoration: none;
      background-color: #b48b6b;
      color: white;
      padding: 0.8rem 2rem;
      border-radius: 8px;
      transition: background-color 0.3s ease;
    }

    .hero a:hover {
      background-color: #a17557;
    }

    /* Nuevos estilos para botones del hero */
    .hero-cta {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 2rem;
    }

    .btn-primary {
      text-decoration: none;
      background: linear-gradient(135deg, #b48b6b 0%, #d4af94 100%);
      color: white;
      padding: 1.2rem 2.5rem;
      border-radius: 50px;
      font-weight: bold;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      border: 2px solid transparent;
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      background: linear-gradient(135deg, #a07a5a 0%, #c49e7b 100%);
    }

    .btn-secondary {
      text-decoration: none;
      background: transparent;
      color: #6b4c3b;
      padding: 1.2rem 2.5rem;
      border-radius: 50px;
      font-weight: bold;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      border: 2px solid #b48b6b;
    }

    .btn-secondary:hover {
      background: #b48b6b;
      color: white;
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .carousel {
      display: block;
      overflow: hidden;
      position: relative;
      height: 300px;
      margin-top: 2rem;
    }

    .carousel-inner {
      display: flex;
      transition: transform 0.5s ease-in-out;
      height: 300px;
    }

    .carousel-inner img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      flex-shrink: 0;
    }

    .explorar {
      background-color: rgba(255, 255, 255, 0.8);
      padding: 3rem 1rem;
      text-align: center;
    }

    .explorar h3 {
      font-size: 1.8rem;
      color: #6b4c3b;
      margin-bottom: 2rem;
    }

    .galeria {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center;
      padding: 0 1rem;
      transition: transform 0.3s ease;
    }

    /* Carrusel para categorías */
    .categorias-carrusel-container {
      position: relative;
      width: 100%;
      padding: 60px 0 0 0; /* Restaurado padding para tarjetas más altas */
      overflow: hidden;
      border-radius: 15px;
    }

    .galeria-wrapper {
      width: 100%;
      overflow: hidden;
      position: relative;
      padding: 0 10px; /* Padding lateral para contenido */
    }

    .galeria-wrapper .galeria {
      flex-wrap: nowrap;
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE/Edge */
      justify-content: flex-start;
      padding: 10px 5px;
      scroll-snap-type: x mandatory;
      gap: 20px;
    }

    .galeria-wrapper .galeria::-webkit-scrollbar {
      display: none; /* Chrome/Safari */
    }

    .galeria .galeria-item {
      scroll-snap-align: start;
      transition: all 0.3s ease;
    }

    .galeria .galeria-item:hover {
      transform: translateY(-5px);
    }

    .carrusel-btn {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border: none;
      padding: 12px 16px;
      border-radius: 50px;
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 600;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
      transition: all 0.3s ease;
      white-space: nowrap;
      min-width: 140px;
      position: absolute;
      top: 10px;
      overflow: hidden;
      backdrop-filter: blur(5px);
      z-index: 10;
    }

    .carrusel-btn.carrusel-prev {
      left: 10px;
    }

    .carrusel-btn.carrusel-next {
      right: 10px;
    }

    .carrusel-btn:hover {
      background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
      transform: translateY(-2px) scale(1.05);
    }

    .carrusel-btn:active {
      transform: translateY(0) scale(0.98);
    }

    .carrusel-btn.disabled {
      opacity: 0.3;
      cursor: not-allowed;
      transform: none;
      pointer-events: none;
    }

    .carrusel-btn.disabled:hover {
      transform: none;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    /* Efectos de fade en los bordes del carrusel */
    .galeria-wrapper::before,
    .galeria-wrapper::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 30px;
      pointer-events: none;
      z-index: 5;
      transition: opacity 0.3s ease;
    }

    .galeria-wrapper::before {
      left: 0;
      background: linear-gradient(to right, rgba(248,249,250,1) 0%, rgba(248,249,250,0) 100%);
    }

    .galeria-wrapper::after {
      right: 0;
      background: linear-gradient(to left, rgba(248,249,250,1) 0%, rgba(248,249,250,0) 100%);
    }

    /* Responsive design para carrusel */
    @media (max-width: 768px) {
      .categorias-carrusel-container {
        padding: 50px 0 0 0; /* Menos padding en tablets */
      }
      
      .galeria-wrapper {
        padding: 0 5px;
      }
      
      .galeria-wrapper .galeria {
        gap: 15px;
        padding: 8px 3px;
      }
      
      .carrusel-btn {
        min-width: 120px;
        padding: 10px 14px;
        font-size: 0.8rem;
        top: 5px; /* Más cerca del top en tablets */
      }
      
      .carrusel-btn.carrusel-prev {
        left: 5px;
      }

      .carrusel-btn.carrusel-next {
        right: 5px;
      }
      
      .galeria-wrapper::before,
      .galeria-wrapper::after {
        width: 20px;
      }
    }

    @media (max-width: 480px) {
      .categorias-carrusel-container {
        padding: 45px 0 0 0; /* Aún menos padding en móviles */
      }
      
      .galeria-wrapper {
        padding: 0 3px;
      }
      
      .galeria-wrapper .galeria {
        gap: 10px;
      }
      
      .carrusel-btn {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 0.75rem;
        top: 3px; /* Muy cerca del top en móviles */
      }
      
      .carrusel-btn.carrusel-prev {
        left: 3px;
      }

      .carrusel-btn.carrusel-next {
        right: 3px;
      }
      
      .galeria-wrapper::before,
      .galeria-wrapper::after {
        width: 15px;
      }
    }

    .galeria .producto {
      cursor: pointer;
      transition: box-shadow 0.2s;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      width: 220px;
      min-width: 180px;
      max-width: 240px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .galeria .producto:hover {
      box-shadow: 0 4px 16px rgba(180, 139, 107, 0.15);
      background: #f8f5f2;
    }

    /* Estilos específicos para tarjetas de categorías - COMPACTAS */
    .categoria-card {
      position: relative;
      border: 2px solid transparent;
      background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
      transition: all 0.3s ease;
      height: 560px; /* Doble de altura: 280px x 2 */
      cursor: pointer;
    }

    .categoria-card:hover {
      border-color: #b48b6b;
      box-shadow: 0 8px 25px rgba(180, 139, 107, 0.2);
      transform: translateY(-3px);
      background: linear-gradient(135deg, #fff 0%, #f8f5f2 100%);
    }

    .categoria-header {
      position: absolute;
      top: 8px;
      right: 8px;
      z-index: 2;
    }

    .categoria-badge {
      background: linear-gradient(135deg, #b48b6b 0%, #8b6f47 100%);
      color: white;
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 600;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .categoria-imagen {
      width: 100%;
      height: 280px; /* Doble de altura: 140px x 2 */
      object-fit: cover;
      border-radius: 8px 8px 0 0;
    }

    .categoria-content {
      padding: 16px 20px;
      text-align: center;
      height: 280px; /* Doble de altura: 140px x 2 */
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
    }

    .categoria-nombre {
      font-size: 1.1rem;
      font-weight: 700;
      color: #6b4c3b;
      margin: 0 0 8px 0;
      font-family: 'Playfair Display', serif;
    }

    .categoria-descripcion {
      font-size: 0.95rem;
      color: #666;
      margin: 0 0 16px 0;
      line-height: 1.4;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 4; /* Permite más líneas con la altura aumentada */
      line-clamp: 4; /* Estándar para compatibilidad */
      -webkit-box-orient: vertical;
      position: relative;
    }

    .categoria-descripcion::after {
      content: "...";
      position: absolute;
      bottom: 0;
      right: 0;
      background: linear-gradient(to right, transparent, #fafafa 70%);
      padding-left: 20px;
      font-weight: bold;
      color: #b48b6b;
    }

    .categoria-footer {
      border-top: 1px solid #e8e8e8;
      padding-top: 8px;
      margin-top: auto;
    }

    .categoria-action {
      font-size: 0.9rem;
      color: #b48b6b;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 8px 12px;
      border: 2px dashed #b48b6b;
      border-radius: 20px;
      background: rgba(180, 139, 107, 0.05);
      transition: all 0.3s ease;
    }

    .categoria-action::after {
      content: "↗️";
      font-size: 0.9rem;
    }

    .categoria-card:hover .categoria-action {
      color: #8b6f47;
      border-color: #8b6f47;
      background: rgba(139, 111, 71, 0.1);
      transform: scale(1.05);
    }

    /* === MODAL EXPANDIDO DE CATEGORÍA === */
    .modal-categoria-expandida {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(5px);
    }

    .modal-categoria-expandida.show {
      display: flex;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-categoria-expandida-content {
      background: white;
      border-radius: 20px;
      max-width: 800px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
      from { 
        transform: translateY(50px);
        opacity: 0;
      }
      to { 
        transform: translateY(0);
        opacity: 1;
      }
    }

    .modal-categoria-header {
      position: relative;
      height: 300px;
      border-radius: 20px 20px 0 0;
      overflow: hidden;
    }

    .modal-categoria-imagen {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .modal-categoria-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
      padding: 40px 30px 30px;
    }

    .modal-categoria-titulo {
      color: white;
      font-size: 2.5rem;
      font-weight: 700;
      margin: 0;
      font-family: 'Playfair Display', serif;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .modal-categoria-badge-grande {
      background: linear-gradient(135deg, #b48b6b 0%, #8b6f47 100%);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      display: inline-block;
      margin-top: 10px;
    }

    .modal-categoria-body {
      padding: 30px;
    }

    .modal-categoria-descripcion-completa {
      font-size: 1.1rem;
      line-height: 1.6;
      color: #555;
      margin-bottom: 30px;
    }

    .modal-categoria-acciones {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      margin-top: 30px;
    }

    .modal-categoria-btn {
      padding: 15px 25px;
      border-radius: 15px;
      border: none;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .modal-categoria-btn-explorar {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .modal-categoria-btn-explorar:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .modal-categoria-btn-volver {
      background: #f8f9fa;
      color: #6c757d;
      border: 2px solid #e9ecef;
    }

    .modal-categoria-btn-volver:hover {
      background: #e9ecef;
      border-color: #dee2e6;
    }

    .modal-categoria-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      cursor: pointer;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .modal-categoria-close:hover {
      background: rgba(0, 0, 0, 0.7);
      transform: scale(1.1);
    }

    /* Responsive para modal */
    @media (max-width: 768px) {
      .modal-categoria-expandida-content {
        width: 95%;
        margin: 20px;
      }

      .modal-categoria-header {
        height: 250px;
      }

      .modal-categoria-titulo {
        font-size: 2rem;
      }

      .modal-categoria-body {
        padding: 20px;
      }

      .modal-categoria-acciones {
        grid-template-columns: 1fr;
      }
    }

    .categoria-card:hover .categoria-action {
      color: #8b6f47;
    }

    /* Diferenciación visual adicional para productos */
    .galeria .producto:not(.categoria-card) {
      border-left: 3px solid #e8e8e8;
    }

    .galeria .producto:not(.categoria-card):hover {
      border-left-color: #b48b6b;
    }

    .galeria .producto img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 8px;
      display: block;
      background: #f8f8f8;
    }

    .producto {
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    .producto img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }

    .producto p {
      padding: 0.5rem;
      font-size: 1rem;
      color: #4e3e2a;
    }

    footer {
      background-color: rgba(255, 255, 255, 0.8);
      padding: 2rem;
      text-align: center;
      font-size: 0.9rem;
    }

    .speaker-btn {
      position: fixed;
      top: 24px;
      right: 24px;
      background: rgba(255, 255, 255, 0.85);
      border: none;
      border-radius: 50%;
      width: 56px;
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
      cursor: pointer;
      z-index: 1000;
      transition: background 0.2s;
    }

    .speaker-btn:hover {
      background: #f3e7db;
    }

    .speaker-btn svg {
      width: 28px;
      height: 28px;
      fill: #6b4c3b;
    }

    @font-face {
  font-family: 'Liana';
  src: url('../fonts/Liana.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

    @media (max-width: 600px) {
      header img {
        width: 80px !important;
        height: 80px !important;
      }
    }

    #frase-dia {
  text-align: left;
  margin: 1.5rem 0;
  font-size: 1.2rem;
  color: #6b4c3b;
}

#frase-dia strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

#frase-dia-header {
  text-align: left;
  max-width: 350px;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.header-flex img {
  display: block;
}

#frase-dia-fija {
  position: fixed;
  top: 24px;
  left: 24px;
  background: rgba(255,255,255,0.85);
  color: #6b4c3b;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  z-index: 1001;
  min-width: 220px;
  max-width: 350px;
  text-align: left;
}
#frase-dia-fija strong {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
}

.btn-vendedor {
  margin-top: 2rem;
  background: #b48b6b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.btn-vendedor:hover {
  background: #6b4c3b;
}

.btn-vendedor-fijo {
  position: fixed;
  right: 32px;
  bottom: 32px;
  background: #198754; /* Bootstrap success azul verdoso */
  color: #fff;
  border-radius: 24px;
  padding: 0.7rem 2rem;
  font-size: .7rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 2000;
  transition: background 0.2s;
}
.btn-vendedor-fijo:hover {
  background: #145c32;
}

.modal-vendedor {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #f8f5f2;
  padding: 2rem 2rem 1rem 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  min-width: 320px;
  max-width: 95vw;
  position: relative;
}
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #b48b6b;
  cursor: pointer;
}
#form-vendedor label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}
#form-vendedor input, #form-vendedor select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
#form-vendedor button[type="submit"] {
  margin-top: 1.5rem;
  background: #6b4c3b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}
#form-vendedor button[type="submit"]:hover {
  background: #b48b6b;
}

.img-zoom-container {
  display: inline-block;
  position: relative;
  margin-right: 1rem;
  text-align: center;
}
.img-zoom {
  transition: width 0.2s;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.zoom-controls {
  margin-top: 0.3rem;
}
.zoom-controls button {
  font-size: 1.1rem;
  margin: 0 0.1rem;
  cursor: pointer;
  background: #b48b6b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  transition: background 0.2s;
}
.zoom-controls button:hover {
  background: #6b4c3b;
}

.modal-producto {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-producto-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
}
.close-modal {
  cursor: pointer;
}

/* --- Responsive para homepage --- */
@media (max-width: 900px) {
  header .header-flex {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  header img {
    width: 90px !important;
    height: 90px !important;
  }
  .hero {
    padding: 1.5rem 0.5rem;
    text-align: center;
  }
  .carousel-inner {
    max-width: 98vw;
  }
}

@media (max-width: 700px) {
  .galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 0 0.5rem;
  }
  .galeria .producto {
    width: 98vw;
    min-width: 0;
    max-width: 100%;
    margin: 0.5rem 0;
  }
  .galeria .producto img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  #productos-categoria .galeria .producto {
    width: 98vw;
    min-width: 0;
    max-width: 100%;
  }
  .modal-producto-content, .modal-categoria-content {
    padding: 1rem;
    max-width: 98vw;
  }
}

@media (max-width: 500px) {
  header h1 {
    font-size: 1.5rem;
  }
  .hero h2 {
    font-size: 1.2rem;
  }
  .galeria .producto img {
    height: 120px;
  }
  .modal-producto-content img,
  .modal-categoria-content img {
    max-width: 98vw;
    height: auto;
  }
  footer {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

#audio-wave {
  display: inline-flex;
  align-items: flex-end;
  height: 22px;
}
#audio-wave .bar {
  display: inline-block;
  width: 3px;
  margin: 0 1px;
  background: #b48b6b;
  border-radius: 2px;
  animation: wave 1s infinite;
}
#audio-wave .bar:nth-child(1) { animation-delay: 0s; }
#audio-wave .bar:nth-child(2) { animation-delay: 0.2s; }
#audio-wave .bar:nth-child(3) { animation-delay: 0.4s; }
#audio-wave .bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

@media (max-width: 600px) {
  #playSound {
    padding: 0.5rem 0.7rem;
    font-size: 1.1rem;
    top: 8px;
    right: 8px;
  }
}

/* ==========================================
   NUEVAS SECCIONES PROFESIONALES
   ========================================== */

/* Contenedor general */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sección: Por qué elegirnos */
.why-choose-us {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
  padding: 4rem 0;
  margin: 2rem 0;
}

.why-choose-us h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #6b4c3b;
  margin-bottom: 3rem;
  position: relative;
}

.why-choose-us h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #b48b6b, #d4af94);
  border-radius: 2px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(180, 139, 107, 0.2);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: #b48b6b;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.benefit-card h3 {
  font-family: 'Playfair Display', serif;
  color: #6b4c3b;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.benefit-card p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

/* Sección: Servicios Profesionales */
.professional-services {
  background: linear-gradient(135deg, rgba(107, 76, 59, 0.05) 0%, rgba(180, 139, 107, 0.05) 100%);
  padding: 4rem 0;
  margin: 2rem 0;
}

.professional-services h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #6b4c3b;
  margin-bottom: 3rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.professional-services h2::after {
  content: '🌿';
  font-size: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 5px solid #b48b6b;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-left-color: #6b4c3b;
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  color: #6b4c3b;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.service-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  color: #555;
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #b48b6b;
  font-weight: bold;
  font-size: 1.1rem;
}

.cta-professional {
  background: linear-gradient(135deg, #6b4c3b 0%, #b48b6b 100%);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-professional h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-professional p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-cta {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: #6b4c3b;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Sección: Nuestro Compromiso */
.our-commitment {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  padding: 4rem 0;
  margin: 2rem 0;
}

.our-commitment h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #6b4c3b;
  margin-bottom: 3rem;
}

.commitment-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.commitment-points {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.commitment-point {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.commitment-point:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.point-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.point-content h3 {
  font-family: 'Playfair Display', serif;
  color: #6b4c3b;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.point-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.commitment-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, #b48b6b 0%, #d4af94 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsivo */
@media (max-width: 768px) {
  .benefits-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .commitment-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .commitment-stats {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .stat-card {
    flex: 1;
    min-width: 120px;
    margin: 0.5rem;
  }
  
  .why-choose-us h2,
  .professional-services h2,
  .our-commitment h2 {
    font-size: 2rem;
  }
  
  .benefit-card,
  .service-card {
    padding: 1.5rem;
  }
  
  .cta-professional {
    padding: 2rem;
  }
  
  .commitment-point {
    flex-direction: column;
    text-align: center;
  }
  
  .point-icon {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .why-choose-us,
  .professional-services,
  .our-commitment {
    padding: 2rem 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    min-width: auto;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* Footer mejorado */
footer {
  background: linear-gradient(135deg, #6b4c3b 0%, #4a3529 100%);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #d4af94;
  border-bottom: 2px solid #b48b6b;
  padding-bottom: 0.5rem;
}

.footer-section p {
  margin: 0.5rem 0;
  line-height: 1.6;
  opacity: 0.9;
}

.social-links {
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  footer {
    padding: 2rem 0 1rem;
  }
}

/* ==========================================
   OPTIMIZACIONES DE CARGA DE IMÁGENES
   ========================================== */

/* Placeholder para imágenes que están cargando */
.img-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

/* Animación de shimmer para placeholders */
@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animación suave para imágenes que aparecen */
.lazy-img {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lazy-img[style*="display: block"] {
  opacity: 1;
}

/* Mejorar la apariencia de productos durante la carga */
.producto {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Indicador de carga para productos */
.producto .img-placeholder span {
  opacity: 0.7;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.3;
  }
}

/* Optimización para dispositivos móviles */
@media (max-width: 768px) {
  .img-placeholder {
    height: 150px;
    font-size: 0.8rem;
  }
  
  .producto {
    margin-bottom: 1rem;
  }
}

/* Cursor pointer para productos clickeables */
.producto {
  cursor: pointer;
}

.producto:active {
  transform: translateY(0);
}

/* Estilos específicos para categorías en galería */
.galeria .image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #f0f0f0;
}

.galeria .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
}

/* Mejorar el hover de categorías */
.galeria .producto:hover .image-container img {
  transform: scale(1.05);
}

/* Estilos para badges de disponibilidad */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.25rem;
  border: 1px solid transparent;
}

.badge-disponible {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.badge-poco-stock {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.badge-bajo-pedido {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.badge-agotado {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.badge-consultar {
  background-color: #e2e3e5;
  color: #495057;
  border-color: #d6d8db;
}

/* Información de disponibilidad */
.disponibilidad-info {
  margin: 0.5rem 0;
  text-align: center;
}

.disponibilidad-mensaje {
  display: block;
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  line-height: 1.2;
}

/* Mejorar layout de productos */
.producto-info {
  padding: 0.5rem;
  text-align: center;
}

.producto-nombre {
  font-weight: 600;
  margin: 0.5rem 0 0.25rem 0;
  color: #333;
}

.producto-desc {
  color: #666;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.5rem;
}

/* Responsivo para badges */
@media (max-width: 768px) {
  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .disponibilidad-mensaje {
    font-size: 0.75rem;
  }
}

/* Estilos para buscador de gestión */
#buscador-gestion {
  border: 2px solid #b48b6b !important;
  border-radius: 8px !important;
  background: #f9f9f9 !important;
  margin-bottom: 2rem !important;
  padding: 1rem !important;
}

#buscador-gestion h4 {
  margin-top: 0 !important;
  color: #6b4c3b !important;
  font-size: 1.1rem;
}

#busquedaGestion {
  flex: 1 !important;
  padding: 0.5rem !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

#btnBuscarGestion, #btnLimpiarBuscador {
  padding: 0.5rem 1rem !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

#btnBuscarGestion {
  background: #b48b6b !important;
  color: white !important;
}

#btnBuscarGestion:hover {
  background: #a07a5a !important;
}

#btnLimpiarBuscador {
  background: #6c757d !important;
  color: white !important;
}

#btnLimpiarBuscador:hover {
  background: #5a6268 !important;
}

#resultados-gestion {
  max-height: 300px !important;
  overflow-y: auto !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  background: white !important;
  margin-top: 0.5rem;
}

.producto-gestion-item {
  padding: 0.75rem !important;
  border-bottom: 1px solid #eee !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.producto-gestion-item:hover {
  background-color: #f8f9fa !important;
}

.producto-gestion-item:last-child {
  border-bottom: none !important;
}

/* Campos readonly */
input[readonly] {
  background: #f5f5f5 !important;
  color: #666 !important;
  cursor: not-allowed !important;
}

/* Imágenes en resultados de búsqueda */
.producto-gestion-item img {
  transition: transform 0.2s ease;
}

.producto-gestion-item:hover img {
  transform: scale(1.05);
}

/* Vista previa de imagen mejorada */
#img-preview-prod {
  max-width: 120px !important;
  max-height: 120px !important;
  object-fit: cover !important;
  border: 2px solid #b48b6b !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

#img-preview-prod:hover {
  transform: scale(1.1);
}

/* Placeholder de imagen */
.imagen-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #999;
}

/* Estilos responsivos para categorías */
@media (max-width: 768px) {
  .categoria-card {
    margin-bottom: 1rem;
    min-width: 200px;
    flex-shrink: 0;
  }
  
  .categoria-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .categoria-nombre {
    font-size: 1.1rem;
  }
  
  .categoria-descripcion {
    font-size: 0.85rem;
  }
  
  .categoria-action {
    font-size: 0.8rem;
  }

  .categorias-carrusel-container {
    padding: 0 0.5rem;
  }

  .carrusel-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
    min-width: 120px;
  }

  .carrusel-btn span {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .categoria-header {
    top: 6px;
    right: 6px;
  }
  
  .categoria-content {
    padding: 10px 12px 12px;
  }
  
  .categoria-card:hover {
    transform: translateY(-2px);
  }

  .categoria-card {
    min-width: 180px;
  }

  .carrusel-btn {
    padding: 8px 10px;
    font-size: 0.75rem;
    min-width: 100px;
  }

  .carrusel-btn span {
    font-size: 0.75rem;
  }

  .categorias-carrusel-container {
    gap: 0.5rem;
  }
}
