/* ============================================
   LA GRUTA - Ferreteria Hogar y Construccion
   Paleta Color Catalog:
   - Azul Oscuro (Primario): #1E6091
   - Azul Medio (Secundario): #45A5C4
   - Teal Verde (Acento): #7DC8A8
   - Amarillo Dorado (CTA): #F0C030
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Barlow:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #1E6091;
  --primary-light: #2878B0;
  --primary-dark: #154870;
  --secondary: #F0C030;
  --secondary-light: #F5D060;
  --secondary-dark: #D4A820;
  --accent: #45A5C4;
  --accent-light: #5DBDD8;
  --accent-teal: #7DC8A8;
  --success: #7DC8A8;
  --danger: #e74c3c;
  --warning: #F0C030;
  --info: #45A5C4;
  --white: #ffffff;
  --surface: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #eef1f3;
  --gray-200: #d5dce0;
  --gray-300: #a0adb5;
  --gray-400: #7a8b95;
  --gray-500: #5c6d77;
  --gray-600: #475860;
  --gray-700: #354550;
  --gray-800: #233440;
  --gray-900: #1a2630;
  --text: #233440;
  --text-light: #a0adb5;
  --text-title: #1E6091;
  --shadow: 0 2px 15px rgba(30,96,145,0.08);
  --shadow-lg: 0 10px 40px rgba(30,96,145,0.15);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Barlow', sans-serif; font-weight: 800; color: var(--text-title); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / TOPBAR ===== */
.topbar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.topbar a { color: var(--secondary-light); }
.topbar a:hover { color: var(--white); }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-right { display: flex; gap: 15px; align-items: center; }
.topbar i { margin-right: 5px; }

header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 110px; width: auto; border-radius: 0; background: none; object-fit: contain; mix-blend-mode: multiply; }

.search-bar {
  flex: 1;
  max-width: 550px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.95rem;
  background: var(--gray-50);
  color: var(--text);
  transition: var(--transition);
}
.search-bar input::placeholder { color: var(--gray-300); }
.search-bar input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(69,165,196,0.2); }
.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-light); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-action {
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.header-action:hover { color: var(--accent); }
.header-action i { font-size: 1.4rem; margin-bottom: 2px; }
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--secondary);
  color: var(--gray-800);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* NAV */
nav {
  background: var(--primary);
  border-top: none;
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
  color: var(--white);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); }
.nav-links a.active {
  background: rgba(255,255,255,0.1);
  border-bottom: 3px solid var(--secondary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--secondary);
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; }
.nav-contact { color: var(--secondary-light); font-weight: 600; font-size: 0.9rem; }
.nav-contact i { margin-right: 5px; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* ===== HERO BANNER (Tiles Style) ===== */
.hero {
  background: var(--primary);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: stretch;
}
/* Geometric tile decorations */
.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: var(--accent);
  opacity: 0.12;
  transform: rotate(25deg);
  border-radius: 30px;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 30%;
  width: 200px;
  height: 200px;
  background: var(--accent-teal);
  opacity: 0.1;
  transform: rotate(-15deg);
  border-radius: 25px;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: -40px;
  right: 10%;
  width: 180px;
  height: 180px;
  background: var(--secondary);
  opacity: 0.08;
  transform: rotate(40deg);
  border-radius: 20px;
  z-index: 1;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 0;
  min-height: 420px;
}
.hero-content {
  padding: 50px 0;
}
.hero-content .badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--gray-800);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero-content h2 {
  color: var(--white);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-content h2 span { color: var(--secondary); }
.hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 450px;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
/* Hero image - right side, prominent */
.hero-image {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.7;
  mix-blend-mode: luminosity;
}
.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(30,96,145,0.3) 50%, transparent 100%);
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-primary { background: var(--secondary); color: var(--gray-800); font-weight: 700; }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(240,192,48,0.4); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-light); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ===== FEATURES BAR (Tile blocks) ===== */
.features-bar {
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 2;
  border-bottom: 3px solid var(--gray-100);
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 20px;
  border-right: 1px solid var(--gray-100);
  transition: var(--transition);
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--gray-50); }
.feature-item i {
  font-size: 1.6rem;
  color: var(--white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.feature-item:nth-child(1) i { background: var(--primary); }
.feature-item:nth-child(2) i { background: var(--accent); }
.feature-item:nth-child(3) i { background: var(--accent-teal); }
.feature-item:nth-child(4) i { background: var(--secondary); color: var(--gray-800); }
.feature-item h4 { font-size: 0.88rem; color: var(--text-title); margin-bottom: 2px; }
.feature-item p { font-size: 0.78rem; color: var(--text-light); }

/* ===== CATEGORIES (Tiles/Mosaic) ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; color: var(--text-title); margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; }
.section-header .line {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-teal), var(--secondary));
  margin: 15px auto 0;
  border-radius: 2px;
}

.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.category-card {
  background: var(--white);
  border-radius: 10px;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transition: var(--transition);
}
.category-card:nth-child(2)::before { background: var(--accent); }
.category-card:nth-child(3)::before { background: var(--accent-teal); }
.category-card:nth-child(4)::before { background: var(--secondary); }
.category-card:nth-child(5)::before { background: var(--primary-light); }
.category-card:nth-child(6)::before { background: var(--accent); }
.category-card:nth-child(7)::before { background: var(--accent-teal); }
.category-card:nth-child(8)::before { background: var(--primary); }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-card:hover::before { height: 6px; }
.category-card img { width: 75px; height: 75px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.category-card h4 { font-size: 0.88rem; color: var(--text-title); margin-bottom: 5px; }
.category-card span { font-size: 0.78rem; color: var(--text-light); }

/* ===== PRODUCTS GRID (Tiles) ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--gray-100);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(30,96,145,0.12); border-color: var(--accent); }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--secondary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}
.product-badge.new { background: var(--success); }
.product-badge.sale { background: var(--danger); }
.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-100);
  transition: var(--transition);
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-img-wrap { overflow: hidden; position: relative; }
.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  transition: var(--transition);
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.product-card:hover .product-actions { bottom: 0; }
.product-actions button {
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.product-actions button:hover { background: var(--secondary); color: var(--white); }
.product-info { padding: 18px; }
.product-category { font-size: 0.8rem; color: var(--secondary); font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
.product-name {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); font-family: 'Barlow', sans-serif; }
.product-price .old { font-size: 0.85rem; color: var(--gray-500); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.product-stock { font-size: 0.8rem; margin-top: 5px; }
.product-stock.in-stock { color: var(--success); }
.product-stock.low-stock { color: var(--warning); }
.product-stock.no-stock { color: var(--danger); }
.product-add-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-add-btn:hover { background: var(--secondary); }

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 50px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,184,28,0.15) 0%, transparent 70%);
}
.promo-banner h2 { font-size: 2.2rem; margin-bottom: 10px; position: relative; }
.promo-banner h2 span { color: var(--secondary-light); }
.promo-banner p { font-size: 1.1rem; margin-bottom: 25px; opacity: 0.9; position: relative; }

/* ===== ABOUT / INFO SECTION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-content h2 { font-size: 2rem; color: var(--text-title); margin-bottom: 15px; }
.about-content p { margin-bottom: 15px; color: var(--gray-700); }
.about-features { margin-top: 25px; }
.about-feature { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.about-feature i { font-size: 1.5rem; color: var(--secondary); width: 40px; text-align: center; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--secondary);
  font-family: serif;
  position: absolute;
  top: 10px;
  left: 20px;
  opacity: 0.3;
}
.testimonial-card p { font-style: italic; margin-bottom: 15px; color: var(--gray-700); }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.testimonial-author h4 { font-size: 0.9rem; color: var(--text-title); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-light); }
.stars { color: var(--secondary); margin-bottom: 10px; }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--secondary-light); }
.footer-col p { color: var(--gray-400); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a { color: var(--gray-400); display: block; padding: 4px 0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--secondary-light); padding-left: 5px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-logo img { height: 55px; border-radius: 0; background: transparent; object-fit: contain; }
.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  padding: 0;
}
.footer-social a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-newsletter input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.footer-newsletter input::placeholder { color: var(--gray-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--secondary-light); }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}
.cart-sidebar.active { right: 0; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--primary);
  color: var(--white);
}
.cart-header h3 { font-size: 1.2rem; }
.cart-close { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 15px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.85rem; color: var(--text-title); margin-bottom: 3px; }
.cart-item-info .price { color: var(--accent); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-qty span { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.1rem; }
.cart-footer { padding: 20px; border-top: 2px solid var(--gray-200); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; }
.cart-total .amount { color: var(--accent); }
.cart-empty { text-align: center; padding: 50px 20px; color: var(--gray-500); }
.cart-empty i { font-size: 4rem; margin-bottom: 15px; display: block; color: var(--gray-300); }

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gray-200);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img { padding: 30px; display: flex; align-items: center; justify-content: center; background: var(--gray-50); }
.modal-img img { width: 100%; max-height: 350px; object-fit: contain; border-radius: var(--radius); }
.modal-info { padding: 30px; }
.modal-info .product-category { margin-bottom: 8px; }
.modal-info h2 { font-size: 1.4rem; color: var(--text-title); margin-bottom: 10px; }
.modal-info .product-price { font-size: 1.6rem; margin-bottom: 15px; color: var(--accent); }
.modal-info .description { color: var(--gray-600); margin-bottom: 20px; font-size: 0.9rem; }
.modal-info .codes { background: var(--gray-50); padding: 12px; border-radius: var(--radius); margin-bottom: 15px; font-size: 0.8rem; color: var(--gray-600); }
.modal-qty { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.modal-qty label { font-weight: 600; }
.modal-qty input {
  width: 80px;
  padding: 8px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 5px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 5px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 5px 30px rgba(37,211,102,0.6); }
}

/* ===== CATALOG PAGE ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 40px 0;
  text-align: center;
  color: var(--white);
}
.page-header h1 { font-size: 2rem; margin-bottom: 5px; }
.page-header p { color: var(--gray-300); }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 10px; font-size: 0.85rem; color: var(--gray-400); }
.breadcrumb a:hover { color: var(--secondary-light); }

.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 40px 0; }
.catalog-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 120px;
}
.filter-group { margin-bottom: 25px; }
.filter-group h3 { font-size: 1rem; color: var(--text-title); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: 0.9rem; color: var(--gray-700); }
.filter-group input[type="checkbox"] { accent-color: var(--secondary); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.catalog-toolbar .results { color: var(--gray-600); font-size: 0.9rem; }
.catalog-toolbar select {
  padding: 8px 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--white);
}

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 30px; }
.pagination button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.pagination button.active, .pagination button:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }

/* ===== LOADING ===== */
.loading { text-align: center; padding: 40px; }
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; top: 100px; right: 20px; z-index: 5000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--success);
}
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== PRICE HISTORY WIDGET ===== */
.price-history-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 15px;
}
.price-history-widget h4 {
  font-size: 0.85rem;
  color: var(--text-title);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.price-history-widget canvas {
  width: 100% !important;
  height: 120px !important;
}
.price-min-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}
.product-badge.min-historico {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

/* ===== FILTER SIDEBAR ENHANCED ===== */
.filter-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  margin-top: 5px;
}
.filter-group .filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 0.88rem;
}
.filter-group .filter-checkbox input { accent-color: var(--secondary); }
.filter-reset {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
}
.filter-reset:hover { text-decoration: underline; }

/* ===== PRODUCT SPECS ===== */
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.product-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}
.product-spec-tag i { font-size: 0.6rem; color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-content h2 { font-size: 2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .modal-body { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .logo img { height: 50px; }
  .topbar { display: none; }
  .header-main { flex-wrap: wrap; }
  .search-bar { order: 3; flex: 1 1 100%; max-width: 100%; margin-top: 10px; }
  .nav-links { display: none; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-light); z-index: 999; }
  .mobile-menu-btn { display: block; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
  .hero { padding: 40px 0; }
  .hero-content h2 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-img { height: 180px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-img { height: 150px; }
  .product-info { padding: 12px; }
  .product-name { font-size: 0.85rem; }
  .product-price { font-size: 1.1rem; }
  .hero-content h2 { font-size: 1.4rem; }
}
