/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Fondo general ===== */
body {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url("../../public/img/R.jpeg") no-repeat center center/cover;
  filter: brightness(0.85);
}

/* ===== Layout centrado para login/registro ===== */
body.login-page,
body.register-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-header h1 {
  font-size: 28px;
  color: #3E2723;
}



.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== Menú de Usuario (Header) ===== */
.user-menu-container {
  position: relative;
  z-index: 1200;
}

.user-avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #46342E; /* Dark brown background from screenshot */
  color: #dddddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.user-avatar-btn:hover {
  background: #5D4037;
}

.user-avatar-btn.guest {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

/* Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 260px;
  background: #2a2a2a; /* Dark background matching the screenshot */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 15px 0;
  display: none;
  animation: slideDownFade 0.2s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown.show {
  display: block;
}

.dropdown-header {
  padding: 10px 20px 15px;
  margin-bottom: 5px;
}

.dropdown-header span {
  display: block;
  font-size: 0.85rem;
  color: #999;
}

.dropdown-header strong {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 25px;
  color: #dddddd;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.dropdown-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: #bbbbbb;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08); /* Highlight row */
  color: #ffffff;
}

.dropdown-item:hover i {
  color: #ffffff;
}

.dropdown-divider {
  display: none; /* No divider in the screenshot design */
}

.dropdown-item.logout {
  color: #dddddd;
}

.dropdown-item.logout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Dark Mode para el Dropdown */
[data-theme="dark"] .user-dropdown {
  background: rgba(40, 40, 40, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-header strong,
[data-theme="dark"] .dropdown-item {
  color: #eee;
}

[data-theme="dark"] .dropdown-header span {
  color: #aaa;
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .user-avatar-btn.guest {
  border-color: #eee;
  color: #eee;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Modal de Confirmación Personalizado ===== */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.confirm-modal.show {
  opacity: 1;
  visibility: visible;
}

.confirm-box {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal.show .confirm-box {
  transform: scale(1);
}

.confirm-icon {
  font-size: 3rem;
  color: #5D4037;
  margin-bottom: 20px;
}

.confirm-box h3 {
  color: #3E2723;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.confirm-box p {
  color: #6D4C41;
  margin-bottom: 25px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-confirm,
.btn-cancel {
  padding: 12px 25px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  min-width: 120px;
}

.btn-confirm {
  background: #5D4037;
  color: white;
}

.btn-confirm:hover {
  background: #3E2723;
  transform: translateY(-2px);
}

.btn-cancel {
  background: #f1f1f1;
  color: #666;
}

.btn-cancel:hover {
  background: #e5e5e5;
}

/* Dark Mode para el Modal de Confirmación */
[data-theme="dark"] .confirm-box {
  background: #2c2c2c;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .confirm-box h3 {
  color: white;
}

[data-theme="dark"] .confirm-box p {
  color: #ccc;
}

[data-theme="dark"] .confirm-icon {
  color: #FFCC80;
}

[data-theme="dark"] .btn-cancel {
  background: #444;
  color: #eee;
}

[data-theme="dark"] .btn-cancel:hover {
  background: #555;
}

[data-theme="dark"] .btn-confirm {
  background: #8D6E63;
}


/* ===== Sección de Productos ===== */
.products-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.products-section h2 {
  font-size: 36px;
  color: #3E2723;
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.product-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 450px;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.product-image {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  position: relative;
  /* Para posicionar el botón de favoritos */
  /* Fixed height for image container alignment */
}

/* Botón de Favoritos */
.btn-favorite {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.btn-favorite:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: #ff6b6b;
}

.btn-favorite.active {
  background: rgba(255, 107, 107, 0.1);
  border-color: #ff6b6b;
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Dark mode para botón de favoritos */
[data-theme="dark"] .btn-favorite {
  background: rgba(60, 60, 60, 0.95);
  border-color: #555;
}

[data-theme="dark"] .btn-favorite:hover {
  background: rgba(80, 80, 80, 0.95);
  border-color: #ff6b6b;
}

[data-theme="dark"] .btn-favorite.active {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
}

.product-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  /* Changed to contain to avoid cropping */
  border-radius: 15px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 22px;
  color: #3E2723;
  margin-bottom: 8px;
  min-height: 54px;
  /* Ensure 2 lines title height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card p.price-tag {
  font-size: 18px;
  color: #5D4037;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-description {
  font-size: 14px !important;
  color: #6D4C41 !important;
  font-style: normal !important;
  line-height: 1.4;
  margin-top: 5px;
  opacity: 0.9;

  /* Collapsible logic styling */
  max-height: 60px;
  /* Limits visible lines initially */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.product-description.expanded {
  max-height: 500px;
  /* Arbitrary large height to show all */
}

.btn-details {
  background: none;
  border: none;
  color: #8D6E63;
  cursor: pointer;
  font-size: 13px;
  margin-top: 5px;
  text-decoration: underline;
  padding: 2px;
}

.btn-details:hover {
  color: #5D4037;
}

.product-actions {
  margin-top: 15px;
}

/* ===== Footer ===== */
.footer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
  font-size: 18px;
  color: #5D4037;
  font-weight: 500;
}

.contact-info {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-info p {
  font-size: 15px;
  color: #5D4037;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}


/* ===== Theme Toggle ===== */
.theme-toggle {
  position: relative;
}

/* Para páginas de login/registro, el toggle va fijo arriba a la derecha */
body.login-page .theme-toggle,
body.register-page .theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #5D4037;
  border-radius: 25px;
  width: 60px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-icon {
  position: absolute;
  left: 2px;
  width: 22px;
  height: 22px;
  background: #5D4037;
  border-radius: 50%;
  transition: all 0.3s ease;
}

[data-theme="dark"] .theme-icon {
  left: calc(100% - 24px);
  background: #ffffff;
}

/* ===== Caja de login/registro ===== */
.login-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 20px;
  width: 350px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.login-box h2 {
  margin-bottom: 20px;
  color: #3E2723;
}

/* Campos de texto */
.input-box {
  margin-bottom: 15px;
}

.input-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.input-box input:focus {
  border-color: #5D4037;
  box-shadow: 0 0 5px rgba(93, 64, 55, 0.5);
}

/* Botón login/registro */
.btn-login {
  width: 100%;
  padding: 12px;
  background: #5D4037;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s, transform 0.2s;
}

.btn-login:hover {
  background: #3E2723;
  transform: scale(1.02);
}

/* Botón Google */
.btn-google {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  gap: 10px;
  transition: transform 0.2s;
}

.btn-google img {
  width: 18px;
  height: 18px;
}

.btn-google:hover {
  transform: scale(1.02);
  background: #f5f5f5;
}

/* Divider (o) */
.divider {
  margin: 20px 0;
  font-size: 14px;
  color: #777;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ccc;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* Enlace alternativo */
.alt-link {
  margin-top: 15px;
  font-size: 14px;
  color: #5D4037;
}

.alt-link a {
  color: #0066cc;
  text-decoration: none;
}

.alt-link a:hover {
  text-decoration: underline;
}

/* Botón iniciar/volver al menu principal */
.btn-start {
  background: #ffffff;
  color: #5D4037;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid #5D4037;
  cursor: pointer;
  display: inline-block;
  margin-left: 20px;
}

.btn-start:hover {
  background: #5D4037;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Botón volver */
.btn-back {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(93, 64, 55, 0.8);
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-back:hover {
  background: rgba(62, 39, 35, 0.9);
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --box-bg: rgba(40, 40, 40, 0.9);
}

[data-theme="dark"] .header,
[data-theme="dark"] .footer {
  background: var(--box-bg);
  color: var(--text-color);
}

[data-theme="dark"] .logo-header h1 {
  color: var(--text-color);
}

[data-theme="dark"] .products-section h2 {
  color: var(--text-color);
}

[data-theme="dark"] .product-card {
  background: var(--box-bg);
  color: var(--text-color);
}

[data-theme="dark"] .product-card h3 {
  color: var(--text-color);
}

[data-theme="dark"] .product-card p {
  color: #cccccc;
}

[data-theme="dark"] .product-description {
  color: #aaaaaa !important;
}

[data-theme="dark"] .footer p {
  color: var(--text-color);
}

[data-theme="dark"] .login-box {
  background: var(--box-bg);
  color: var(--text-color);
}

[data-theme="dark"] .login-box h2 {
  color: var(--text-color);
}

[data-theme="dark"] .input-box input {
  background: rgba(60, 60, 60, 0.9);
  border-color: #555;
  color: var(--text-color);
}

[data-theme="dark"] .input-box input::placeholder {
  color: #aaa;
}

[data-theme="dark"] .btn-google {
  background: rgba(60, 60, 60, 0.9);
  border-color: #555;
  color: var(--text-color);
}

[data-theme="dark"] .btn-google:hover {
  background: rgba(80, 80, 80, 0.9);
}

[data-theme="dark"] .theme-btn {
  background: rgba(40, 40, 40, 0.9);
  border-color: #ffffff;
  color: var(--text-color);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .header-controls {
    flex-direction: column;
    gap: 15px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .product-card {
    padding: 20px;
  }

  .product-img {
    width: 140px;
    height: 140px;
  }
}

/* Estilos para Filtros y Búsqueda (RF15, RF16) */
.filters-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 40px 12px 20px;
  border-radius: 25px;
  border: 1px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.3s;
}

.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.2);
  border-color: #5D4037;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
}

.filter-btn:hover {
  background: #f5f5f5;
  border-color: #5D4037;
}

.filter-btn.active {
  background: #5D4037;
  color: white;
  border-color: #5D4037;
}

.no-results {
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
  padding: 40px;
  color: #666;
  font-size: 18px;
}

.category-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  text-transform: capitalize;
}

/* Ajustes Dark Mode */
[data-theme="dark"] .search-box input {
  background: #333;
  color: white;
  border-color: #555;
}

[data-theme="dark"] .filter-btn {
  background: #333;
  color: #ccc;
  border-color: #555;
}

[data-theme="dark"] .filter-btn:hover {
  background: #444;
}

[data-theme="dark"] .filter-btn.active {
  background: #FF7043;
  color: white;
  border-color: #FF7043;
}

/* =========================================
   Estilos del Carrito (Mini Menú Lateral)
   ========================================= */
.cart-control {
  position: relative;
  cursor: pointer;
  padding: 8px;
  margin-right: 15px;
  font-size: 24px;
  display: flex;
  align-items: center;
}

.cart-control:hover {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: -5px;
  background: #ff5722;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  display: none;
  /* Se activa con JS */
}

/* Modal del Carrito (Side Drawer) */
.cart-modal {
  display: none;
  /* Oculto por defecto */
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Use vh for full viewport */
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: flex-end;
  /* Aparece desde la derecha */
}

.cart-content {
  background-color: #fefefe;
  width: 100%;
  max-width: 400px;
  /* Ancho del "mini menú" */
  height: 100%;
  padding: 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.cart-header h3 {
  color: #3E2723;
  margin: 0;
}

.close-btn {
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #666;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.item-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #5D4037;
}

.item-info p {
  margin: 0;
  color: #888;
  font-size: 14px;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-controls button {
  width: 25px;
  height: 25px;
  background: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn {
  color: red !important;
  background: none !important;
  font-size: 20px !important;
  margin-left: 5px;
}

.cart-footer {
  border-top: 2px solid #eee;
  padding-top: 20px;
  text-align: center;
}

.cart-total {
  font-size: 20px;
  font-weight: bold;
  color: #3E2723;
  margin-bottom: 15px;
  display: block;
}

.btn-checkout {
  width: 100%;
  padding: 12px;
  background: #5D4037;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-checkout:hover {
  opacity: 0.9;
}

.empty-cart {
  text-align: center;
  color: #999;
  margin-top: 40px;
}

/* Botón Agregar en Tarjeta */
.btn-add {
  display: block;
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  background: #5D4037;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add:hover {
  background: #3E2723;
}

/* Animación Bump */
.bump {
  animation: bump 0.3s;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Animación de volar al carrito */
.flying-item {
  position: fixed;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Dark Mode Adjustments para el Carrito */
[data-theme="dark"] .cart-content {
  background-color: #2c2c2c;
  color: white;
}

[data-theme="dark"] .cart-header,
[data-theme="dark"] .cart-footer {
  border-color: #444;
}

[data-theme="dark"] .cart-header h3,
[data-theme="dark"] .item-info h4,
[data-theme="dark"] .cart-total {
  color: white;
}

[data-theme="dark"] .item-controls button {
  background: #444;
  color: white;
}

[data-theme="dark"] .close-btn {
  color: #aaa;
}

/* ===== Hero Section (Banner) ===== */
.hero-section {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  /* Degradado café elegante + imagen de fondo suave */
  background: linear-gradient(rgba(62, 39, 35, 0.7), rgba(62, 39, 35, 0.4)), url("../../public/img/R.jpeg") no-repeat center center/cover;
  background-attachment: fixed;
  /* Efecto Parallax */
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  max-width: 700px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.btn-hero {
  padding: 15px 40px;
  font-size: 1.2rem;
  background: #FF7043;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(255, 112, 67, 0.4);
}

.btn-hero:hover {
  transform: translateY(-3px) scale(1.05);
  background: #F4511E;
  box-shadow: 0 8px 20px rgba(244, 81, 30, 0.6);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  margin-bottom: 40px;
  text-align: center;
}

.testimonials-section h2 {
  font-size: 2.5rem;
  color: #3E2723;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.quote-icon {
  font-size: 40px;
  color: #FF7043;
  position: absolute;
  top: -20px;
  left: 20px;
}

.testimonial-text {
  font-style: italic;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ddd;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  color: #3E2723;
  font-size: 1.1rem;
}

.author-info span {
  font-size: 0.9rem;
  color: #FF7043;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-section {
    height: 50vh;
  }
}

/* Dark Mode fixes for new sections */
[data-theme="dark"] .testimonials-section {
  background: rgba(30, 30, 30, 0.85);
}

[data-theme="dark"] .testimonials-section h2 {
  color: white;
}

/* ===== Sobre Nosotros ===== */
.about-section {
  padding: 80px 20px;
  background: #fdfbf7;
  /* Cream color */
  overflow: hidden;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 400px;
  position: relative;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 20px 20px 0 #5D4037;
  /* Offset shadow effect */
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

.about-content {
  flex: 1 1 400px;
  text-align: left;
}

.about-content h2 {
  font-size: 2.8rem;
  color: #3E2723;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #FF7043;
  border-radius: 2px;
}

.about-content p {
  font-size: 1.1rem;
  color: #6D4C41;
  line-height: 1.8;
  margin-bottom: 30px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #FF7043;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #8D6E63;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Boletín ===== */
.newsletter-section {
  padding: 60px 20px;
  background: #5D4037;
  color: white;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.newsletter-section p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  outline: none;
  min-width: 200px;
}

.newsletter-form button {
  padding: 12px 30px;
  background: #FF7043;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #F4511E;
}

/* Dark Mode fixes for new sections part 2 */
[data-theme="dark"] .about-section {
  background: #222;
}

[data-theme="dark"] .about-content h2 {
  color: white;
}

[data-theme="dark"] .about-content p {
  color: #ccc;
}

[data-theme="dark"] .stat-label {
  color: #aaa;
}

[data-theme="dark"] .about-image img {
  box-shadow: 20px 20px 0 #444;
}

[data-theme="dark"] .testimonial-card {
  background: #2c2c2c;
  color: white;
}

[data-theme="dark"] .testimonial-text {
  color: #ccc;
}

[data-theme="dark"] .author-info h4 {
  color: white;
}