/* ==================== FUENTES WEB ==================== */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ==================== RESET Y BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Screen Reader Only - Accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== TOP BAR ==================== */
.top-bar {
  background-color: #1a1a1a;
  padding: 10px 20px;
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.top-bar span {
  color: #ccc;
  font-size: 13px;
}

.top-bar i {
  color: #e63232;
  margin-right: 8px;
}

/* ==================== HEADER PRINCIPAL ==================== */
.main-header {
  background-color: #000000;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.logo-section {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  font-size: 42px;
  font-weight: 700;
  font-style: italic;
  color: #e63232;
  text-shadow:
    -2px -2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px 2px 0 #ffffff,
    2px 2px 0 #ffffff,
    -3px 0 0 #ffffff,
    3px 0 0 #ffffff,
    0 -3px 0 #ffffff,
    0 3px 0 #ffffff;
  line-height: 1;
}

.slogan {
  color: #999;
  font-size: 12px;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

/* Barra de Búsqueda */
.search-bar {
  display: flex;
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 25px 0 0 25px;
  font-size: 14px;
  outline: none;
}

.search-bar button {
  padding: 12px 25px;
  background-color: #e63232;
  color: white;
  border: none;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-bar button:hover {
  background-color: #c92a2a;
}

/* Dropdown de Sugerencias de Búsqueda */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1001;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f5f5f5;
}

.search-result-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-image i {
  font-size: 24px;
  color: #999;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-category {
  font-size: 12px;
  color: #666;
}

.search-result-price {
  font-size: 14px;
  font-weight: 700;
  color: #e63232;
  flex-shrink: 0;
}

/* Resultados de Búsqueda */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
  z-index: 1000;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f8f8f8;
}

.search-result-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-image i {
  font-size: 20px;
  color: #999;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-info h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-info h4 mark {
  background: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-category {
  font-size: 12px;
  color: #888;
  display: block;
  margin-bottom: 2px;
}

.search-result-price {
  font-size: 14px;
  font-weight: 600;
  color: #e63232;
}

.search-view-all {
  display: block;
  text-align: center;
  padding: 12px;
  background: #f8f8f8;
  color: #e63232;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 15px 15px;
  transition: background 0.2s;
}

.search-view-all:hover {
  background: #eee;
}

.search-no-results {
  padding: 30px;
  text-align: center;
  color: #888;
}

.search-no-results i {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.search-results-count {
  color: #666;
  font-size: 14px;
  margin-top: 5px;
}

/* Acciones del Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.social-links-header {
  display: flex;
  gap: 12px;
}

.social-links-header a {
  color: white;
  font-size: 20px;
  transition: color 0.3s;
}

.social-links-header a:hover {
  color: #e63232;
}

.phone-header {
  color: #e63232;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-header .area-code {
  font-size: 14px;
  color: #999;
}

.header-icons {
  display: flex;
  gap: 15px;
}

.icon-btn {
  color: white;
  font-size: 20px;
  position: relative;
  padding: 8px;
  transition: color 0.3s;
}

.icon-btn:hover {
  color: #e63232;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e63232;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ==================== NAVEGACIÓN ==================== */
.main-nav {
  background-color: #222;
  padding: 0 40px;
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  padding: 15px 0;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: block;
  padding: 15px 20px;
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #e63232;
  background-color: rgba(230, 50, 50, 0.1);
  border-bottom-color: #e63232;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
  position: relative;
  height: 500px;
  background: url('../img/fondos-de-montanas-kfpok0pdo9yd6ha7.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 800px;
  padding: 20px;
  text-align: center;
}

.hero-logo {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 72px;
  font-weight: bold;
  font-style: italic;
  color: #e63232;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 15px;
}

.hero-slogan {
  font-size: 24px;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  font-weight: 500;
  margin: 0;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background-color: #e63232;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background-color: #c92a2a;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(230, 50, 50, 0.4);
}

/* ==================== CONTENEDOR PRINCIPAL (para reordenar en móvil) ==================== */
.main-content-wrapper {
  display: flex;
  flex-direction: column;
}

/* ==================== BENEFICIOS ==================== */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: white;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.benefit-item {
  text-align: center;
  padding: 20px;
}

.benefit-item i {
  font-size: 40px;
  color: #e63232;
  margin-bottom: 15px;
}

.benefit-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #222;
}

.benefit-item p {
  font-size: 13px;
  color: #666;
}

/* ==================== SECCIONES ==================== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 36px;
  color: #222;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: #666;
}

/* ==================== CATEGORÍAS ==================== */
.categories {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.category-card {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-card.featured {
  background: linear-gradient(135deg, #e63232, #ff6b6b);
  color: white;
}

.category-card.featured .category-count {
  color: rgba(255,255,255,0.8);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #e63232, #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.category-card.featured .category-icon {
  background: rgba(255,255,255,0.2);
}

.category-icon i {
  font-size: 28px;
  color: white;
}

.category-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.category-count {
  font-size: 13px;
  color: #888;
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: #ffd700;
  color: #333;
  padding: 5px 35px;
  font-size: 11px;
  font-weight: bold;
  transform: rotate(45deg);
}

/* ==================== PRODUCTOS DESTACADOS ==================== */
.featured-products {
  padding: 80px 40px;
  background-color: #f8f9fa;
}

.featured-products .section-header,
.featured-products .products-grid,
.featured-products .view-all {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  align-items: stretch;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-link {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-image {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-placeholder {
  font-size: 80px;
  color: #ccc;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.product-badge.sale {
  background-color: #e63232;
}

.product-badge.new {
  background-color: #28a745;
}

.product-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.action-btn {
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.action-btn:hover {
  background: #e63232;
  color: white;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 12px;
  color: #e63232;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #222;
  min-height: 54px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.product-rating {
  margin-bottom: 15px;
}

.product-rating i {
  color: #ffc107;
  font-size: 14px;
}

.product-rating span {
  color: #888;
  font-size: 13px;
  margin-left: 5px;
}

.product-price {
  margin-bottom: 15px;
  margin-top: auto;
}

.price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-right: 10px;
}

.price-current {
  font-size: 24px;
  font-weight: bold;
  color: #e63232;
}

.btn-add-cart {
  width: calc(100% - 40px);
  margin: 0 20px 20px 20px;
  padding: 12px;
  background: #222;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.btn-add-cart:hover {
  background: #e63232;
}

.view-all {
  text-align: center;
}

.btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: transparent;
  color: #222;
  border: 2px solid #222;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #222;
  color: white;
}

/* ==================== BANNER PROMOCIONAL ==================== */
.promo-banner {
  background: linear-gradient(135deg, #e63232 0%, #ff6b6b 100%);
  padding: 80px 40px;
  text-align: center;
}

.promo-content h2 {
  font-size: 42px;
  color: white;
  margin-bottom: 15px;
}

.promo-content p {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}

.promo-banner .btn-primary {
  background: white;
  color: #e63232;
}

.promo-banner .btn-primary:hover {
  background: #222;
  color: white;
}

/* ==================== NEWSLETTER ==================== */
.newsletter {
  background: #222;
  padding: 60px 40px;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  color: white;
  font-size: 28px;
  margin-bottom: 10px;
}

.newsletter p {
  color: #999;
  margin-bottom: 25px;
}

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

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
}

.newsletter-form button {
  padding: 15px 30px;
  background: #e63232;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* ==================== FOOTER ==================== */
.main-footer {
  background: #111;
  padding: 60px 40px 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.footer-section .footer-logo {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 32px;
  font-weight: bold;
  font-style: italic;
  color: #e63232;
  text-shadow:
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff;
  display: inline-block;
}

.footer-section .footer-logo-img {
  max-height: 80px;
  width: auto;
  transition: opacity 0.3s;
}

.footer-section .footer-logo:hover .footer-logo-img {
  opacity: 0.8;
}

.footer-line {
  height: 3px;
  background: #e63232;
  width: 100px;
  margin: 10px 0 20px;
}

.footer-description {
  color: #888;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #e63232;
}

.footer-section h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #e63232;
}

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

.footer-section ul li a {
  color: #888;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #e63232;
}

.contact-info p {
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: #e63232;
  width: 20px;
}

.payment-methods {
  margin-top: 25px;
}

.payment-methods h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 15px;
}

.payment-icons {
  display: flex;
  gap: 15px;
}

.payment-icons i {
  font-size: 30px;
  color: #666;
}

.footer-bottom {
  text-align: center;
  padding: 25px;
}

.footer-bottom p {
  color: #666;
  font-size: 13px;
}

.footer-bottom .visit-counter {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

.footer-bottom .visit-counter i {
  margin-right: 5px;
  color: #e63232;
}

/* ==================== WHATSAPP FLOTANTE ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s;
}

.whatsapp-float i {
  font-size: 32px;
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ==================== CARRITO SIDEBAR ==================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
}

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

.cart-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #1a1a1a;
  color: #fff;
}

.cart-sidebar-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.close-cart-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
}

.close-cart-btn:hover {
  color: #e63232;
}

.cart-sidebar-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  min-height: 100px;
  max-height: calc(100vh - 450px); /* Dejar espacio para header, envío y footer */
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  text-align: center;
}

.cart-empty i {
  font-size: 60px;
  margin-bottom: 20px;
  color: #ddd;
}

.cart-empty p {
  font-size: 18px;
  margin-bottom: 10px;
  color: #666;
}

.cart-empty span {
  font-size: 14px;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-image i {
  font-size: 24px;
  color: #e63232;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-details h4 {
  font-size: 14px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.cart-item-price {
  color: #e63232;
  font-weight: 600;
  font-size: 14px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #e63232;
  color: #fff;
  border-color: #e63232;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
  align-self: flex-start;
}

.cart-item-remove:hover {
  color: #e63232;
}

/* ==================== SECCIÓN DE ENVÍOS EN CARRITO ==================== */
.cart-shipping-section {
  padding: 12px 15px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
  max-height: 220px;
  overflow-y: auto;
  flex-shrink: 0;
}

.cart-shipping-section h4 {
  font-size: 13px;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-shipping-section h4 i {
  color: #e63232;
}

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shipping-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s;
  background: #fff;
}

.shipping-option:hover {
  border-color: #00b1ea;
}

.shipping-option input[type="radio"] {
  margin-right: 8px;
  accent-color: #00b1ea;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.shipping-option input[type="radio"]:checked + .shipping-label {
  color: #00b1ea;
}

.shipping-option:has(input:checked) {
  border-color: #00b1ea;
  background: #f0faff;
}

.shipping-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.shipping-name {
  font-size: 12px;
  font-weight: 500;
}

.shipping-cost {
  font-size: 12px;
  font-weight: 600;
  color: #28a745;
}

.shipping-free-msg {
  margin-top: 8px;
  font-size: 11px;
  text-align: center;
  padding: 6px;
  background: #fff;
  border-radius: 6px;
  border: 1px dashed #ddd;
}

.cart-sidebar-footer {
  padding: 15px;
  border-top: 1px solid #eee;
  background: #fff;
  flex-shrink: 0;
}

.cart-subtotal,
.cart-shipping-cost {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.cart-total-amount {
  color: #e63232;
  font-size: 24px;
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #00b1ea, #009ee3);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  margin-bottom: 10px;
}

.btn-checkout:hover {
  background: linear-gradient(135deg, #009ee3, #0087cc);
  transform: translateY(-2px);
}

.btn-checkout:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-empty-cart {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #999;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-empty-cart:hover {
  background: #fee;
  border-color: #e63232;
  color: #e63232;
}

/* ==================== NOTIFICACIONES ==================== */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: 15px 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateX(150%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #4caf50;
}

.notification.success i {
  color: #4caf50;
}

.notification.error {
  border-left: 4px solid #e63232;
}

.notification.error i {
  color: #e63232;
}

.notification.warning {
  border-left: 4px solid #ff9800;
}

.notification.warning i {
  color: #ff9800;
}

.notification i {
  font-size: 20px;
}

.notification span {
  font-size: 14px;
  color: #333;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    gap: 15px;
  }

  .top-bar span {
    font-size: 11px;
  }

  .main-header {
    padding: 15px 20px;
  }

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

  .logo {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
  }

  .search-bar {
    width: 100%;
    max-width: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav {
    padding: 0 20px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li a {
    text-align: center;
    border-bottom: 1px solid #333;
  }

  .hero-banner {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  /* Ocultar barra de beneficios en móvil */
  .benefits {
    display: none;
  }

  .categories,
  .featured-products {
    padding: 50px 20px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .promo-content h2 {
    font-size: 28px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-line {
    margin: 10px auto 20px;
  }

  .social-links {
    justify-content: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info p {
    justify-content: center;
  }

  .payment-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .top-bar span:not(:first-child) {
    display: none;
  }

  .phone-header {
    font-size: 14px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .category-card {
    padding: 20px 15px;
  }

  .category-icon {
    width: 50px;
    height: 50px;
  }

  .category-icon i {
    font-size: 20px;
  }

  .category-card h3 {
    font-size: 14px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .cart-sidebar-items {
    max-height: calc(100vh - 480px);
    padding: 10px;
  }

  .cart-shipping-section {
    padding: 10px;
    max-height: 200px;
  }

  .shipping-option {
    padding: 6px 8px;
  }

  .shipping-name {
    font-size: 11px;
  }

  .cart-sidebar-footer {
    padding: 12px;
  }

  .notification {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 100px;
  }
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  background: #fff;
  padding: 15px 40px;
  border-bottom: 1px solid #eee;
}

.breadcrumb-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb a {
  color: #666;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #e63232;
}

.breadcrumb .separator {
  color: #ccc;
  font-size: 10px;
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* ==================== PÁGINA DE CATEGORÍA ==================== */
.category-page {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* Sidebar de Filtros */
.filters-sidebar {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.filter-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}

.filter-section h3 i {
  color: #e63232;
}

.category-list li {
  margin-bottom: 8px;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 5px;
  color: #666;
  transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
  background: #fee;
  color: #e63232;
}

.category-list a span {
  color: #999;
  font-size: 13px;
}

.price-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.price-inputs input {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
}

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

.price-inputs input[type=number] {
  -moz-appearance: textfield;
}

.price-inputs span {
  color: #999;
  flex-shrink: 0;
}

.btn-filter {
  padding: 10px 20px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-filter:hover {
  background: #e63232;
}

#sort-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

/* Contenido de Categoría */
.category-products {
  min-height: 400px;
}

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

.category-header h1 {
  font-size: 28px;
  color: #222;
}

.category-header p {
  color: #666;
  font-size: 14px;
}

.no-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
}

.no-products i {
  font-size: 60px;
  color: #ddd;
  margin-bottom: 20px;
}

.no-products p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

/* ==================== PÁGINA DE PRODUCTO ==================== */
.product-page {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  margin-bottom: 60px;
}

/* Galería de Producto */
.product-gallery {
  position: relative;
}

.main-image {
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  border-radius: 15px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.main-image img.product-main-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 15px;
}

.product-placeholder-large {
  font-size: 150px;
  color: #ccc;
}

.main-image .product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.thumbnail-list {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.thumbnail-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnail-list img:hover,
.thumbnail-list img.active {
  border-color: #e63232;
}

/* Galería de producto con múltiples imágenes */
.product-thumbnails {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
  padding: 0;
  background: transparent;
}

.product-thumbnails .thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #ddd;
  transition: all 0.3s ease;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-thumbnails .thumbnail:hover {
  border-color: #999;
  transform: scale(1.08);
}

.product-thumbnails .thumbnail.active {
  border-color: #e63232;
  box-shadow: 0 0 8px rgba(230, 50, 50, 0.4);
}

.product-thumbnails .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detalles del Producto */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-category-tag {
  display: inline-block;
  background: #fee;
  color: #e63232;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
}

.product-details h1 {
  font-size: 32px;
  color: #222;
  line-height: 1.3;
}

.product-rating-large {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-rating-large i {
  color: #ffc107;
  font-size: 18px;
}

.product-rating-large .rating-text {
  color: #666;
  font-size: 14px;
}

.product-price-large {
  display: flex;
  align-items: center;
  gap: 15px;
}

.price-old-large {
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
}

.price-current-large {
  font-size: 36px;
  font-weight: bold;
  color: #e63232;
}

.product-description {
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.product-description h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #222;
}

.product-description p {
  color: #666;
  line-height: 1.8;
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.product-stock.in-stock {
  color: #28a745;
}

.product-stock.in-stock i {
  color: #28a745;
}

.product-stock.out-of-stock {
  color: #dc3545;
}

.product-stock.out-of-stock i {
  color: #dc3545;
}

/* Selectores de Variantes (Talle y Color) */
.product-variant {
  margin: 15px 0;
}

.product-variant label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-btn {
  padding: 10px 18px;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 50px;
  text-align: center;
}

.variant-btn:hover {
  border-color: #e63232;
  background: #fff5f5;
}

.variant-btn.active {
  border-color: #e63232;
  background: #e63232;
  color: #fff;
}

.color-btn {
  min-width: 80px;
}

/* Acciones del Producto */
.product-actions-large {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-selector label {
  font-weight: 500;
  color: #333;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn-large {
  width: 45px;
  height: 45px;
  background: #f5f5f5;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.qty-btn-large:hover {
  background: #e63232;
  color: #fff;
}

.quantity-controls input {
  width: 60px;
  height: 45px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 500;
}

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

.btn-add-cart-large {
  padding: 18px 30px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-add-cart-large:hover {
  background: #e63232;
}

.btn-add-cart-large:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-buy-now {
  padding: 18px 30px;
  background: linear-gradient(135deg, #e63232, #ff6b6b);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(230, 50, 50, 0.4);
}

/* Compartir */
.product-share {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.product-share span {
  color: #666;
  font-size: 14px;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s;
}

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

.share-btn.facebook {
  background: #3b5998;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.whatsapp {
  background: #25d366;
}

/* Productos Relacionados */
.related-products {
  margin-top: 40px;
}

.related-products .section-header {
  margin-bottom: 30px;
}

/* Producto no encontrado */
.product-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px;
}

.product-not-found i {
  font-size: 80px;
  color: #ffc107;
  margin-bottom: 20px;
}

.product-not-found h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.product-not-found p {
  color: #666;
  margin-bottom: 30px;
}

/* Link de producto en card */
.product-link {
  display: block;
  color: inherit;
}

.product-link:hover .product-info h3 {
  color: #e63232;
}

/* ==================== RESPONSIVE SUBPÁGINAS ==================== */
@media (max-width: 1024px) {
  .category-container {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .filter-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

.product-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .main-image {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 10px 20px;
  }

  .category-page,
  .product-page {
    padding: 20px;
  }

  .filters-sidebar {
    grid-template-columns: 1fr;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .category-header h1 {
    font-size: 22px;
  }

.product-container {
    padding: 20px;
  }

  .main-image {
    min-height: 280px;
  }

  .main-image img.product-main-img {
    max-height: 300px;
  }

  .product-thumbnails {
    padding: 8px;
    gap: 8px;
  }

  .product-thumbnails .thumbnail {
    width: 50px;
    height: 50px;
  }

  .product-placeholder-large {
    font-size: 100px;
  }

  .product-details h1 {
    font-size: 24px;
  }

  .price-current-large {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .quantity-selector {
    flex-direction: column;
    align-items: flex-start;
  }

  .quantity-controls {
    width: 100%;
    justify-content: center;
  }

  .btn-add-cart-large,
  .btn-buy-now {
    padding: 15px 20px;
    font-size: 14px;
  }
}
