@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
  color: #141414;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ========== CSS VARIABLES ========== */
:root {
  --bg: #ffffff;
  --fg: #141414;
  --card: #ffffff;
  --card-fg: #141414;
  --muted: #f5f5f5;
  --muted-fg: #737373;
  --border: #e5e5e5;
  --primary: #171717;
  --primary-fg: #fafafa;
  --offer: hsl(0, 84%, 55%);
  --offer-fg: #ffffff;
  --offer-soft: hsl(0, 84%, 96%);
  --success: hsl(142, 71%, 45%);
  --warning: hsl(38, 92%, 50%);
  --whatsapp: #16A34A;
  --whatsapp-dark: #15803D;
  --radius: 0.75rem;
  --shadow-card: 0 2px 16px -4px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 8px 30px -8px rgba(0,0,0,0.15);
  --container: 1400px;
}

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
.section-padding { padding: 4rem 0; }
@media (min-width: 768px) { .section-padding { padding: 6rem 0; } }

.text-gradient {
  background: linear-gradient(135deg, var(--offer), var(--warning));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-discount {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--offer), #dc2626);
  color: var(--offer-fg);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  letter-spacing: 0.02em;
}

.price-old {
  text-decoration: line-through;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.price-current {
  color: var(--fg);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-slide-in { animation: slideIn 0.3s ease-out; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.125rem; }

.btn-offer {
  background: var(--offer);
  color: var(--offer-fg);
}
.btn-offer:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-hero {
  background: var(--offer);
  color: var(--offer-fg);
  box-shadow: 0 4px 20px -4px rgba(220, 38, 38, 0.5);
}
.btn-hero:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 30px -4px rgba(220, 38, 38, 0.6); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 20px -4px rgba(22, 163, 74, 0.4);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 8px 30px -4px rgba(21, 128, 61, 0.5); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--fg);
  background: transparent;
}
.btn-outline:hover { background: var(--muted); }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}
.header-logo svg { color: var(--offer); }
.header-nav { display: none; align-items: center; gap: 2rem; }
.header-nav a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.header-nav a:not(.btn):hover { color: var(--fg); }
@media (min-width: 768px) { .header-nav { display: flex; } }

.mobile-toggle { display: block; padding: 0.5rem; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.3s ease-out;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 0.875rem; font-weight: 500; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.6), transparent);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
  padding: 5rem 0;
}
.hero-content > * { animation: fadeInUp 0.6s ease-out forwards; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 38, 38, 0.2);
  color: #fff;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .hero p { font-size: 1.25rem; } }
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

/* ========== PRODUCT CAROUSEL ========== */
.carousel-section .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.carousel-section .section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
@media (min-width: 768px) { .carousel-section .section-title { font-size: 1.875rem; } }
.carousel-section .section-subtitle {
  color: var(--muted-fg);
  font-size: 0.9375rem;
}
.carousel-arrows { display: none; gap: 0.5rem; }
@media (min-width: 768px) { .carousel-arrows { display: flex; } }
.carousel-arrows button {
  padding: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrows button:hover { background: var(--muted); }

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card-wrapper {
  min-width: 260px;
  max-width: 260px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.product-card .card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f9f9f9;
  border-bottom: 1px solid var(--border);
}
.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-image img { transform: scale(1.05); }
.product-card .card-badge-discount {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}
.product-card .card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.product-card .card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .card-title {
  font-size: 0.875rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
  margin-bottom: 0.75rem;
}
.product-card .card-prices {
  margin-top: auto;
  margin-bottom: 0.75rem;
}
.product-card .card-prices .price-current {
  font-size: 1.25rem;
}
.product-card .card-cta {
  width: 100%;
}

/* ========== BENEFITS ========== */
.benefits-section {
  background: var(--muted);
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.3s;
}
.benefit-card:hover { box-shadow: var(--shadow-card-hover); }
.benefit-card .icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--offer);
}
.benefit-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
.benefit-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ========== SOCIAL PROOF ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(4, 1fr); } }
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.testimonial-stars {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 0.75rem;
  color: var(--warning);
}
.testimonial-text {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
}

/* ========== COMMUNITY ========== */
.community-section {
  background: var(--primary);
  color: var(--primary-fg);
}
.community-section .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 38, 38, 0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.community-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .community-section h2 { font-size: 2.25rem; } }
.community-section .desc {
  color: rgba(250,250,250,0.7);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}
.community-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: rgba(250,250,250,0.5);
  font-size: 0.875rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.community-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(245,245,245,0.3);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.footer-logo svg { color: var(--offer); }
.footer p.footer-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.footer h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer ul li {
  margin-bottom: 0.5rem;
}
.footer ul a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* ========== CATALOG PAGE ========== */
.catalog-main { padding-top: 5rem; }
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.catalog-header h1 { font-size: 1.875rem; font-weight: 700; }
.catalog-header p { color: var(--muted-fg); margin-top: 0.25rem; }
.catalog-layout {
  display: flex;
  gap: 2rem;
}
.catalog-sidebar {
  display: none;
  width: 14rem;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .catalog-sidebar { display: block; } }
.catalog-sidebar-inner {
  position: sticky;
  top: 6rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
}
.filter-group h3 {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}
.filter-btn:hover { background: var(--muted); }
.filter-btn.active {
  background: var(--offer);
  color: var(--offer-fg);
  font-weight: 500;
}

.search-input-wrapper {
  position: relative;
}
.search-input-wrapper svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-fg);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.search-input:focus { border-color: var(--offer); }

.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.empty-state {
  text-align: center;
  padding: 5rem 0;
  color: var(--muted-fg);
  grid-column: 1 / -1;
}
.empty-state p { font-size: 1.125rem; margin-bottom: 1rem; }

/* Mobile filter toggle */
.mobile-filter-toggle { display: block; }
@media (min-width: 1024px) { .mobile-filter-toggle { display: none; } }
.mobile-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.mobile-filter-overlay.open { display: block; }
.mobile-filter-panel {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18rem;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 5rem 1.5rem 1.5rem;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
}

/* Section text center utility */
.text-center { text-align: center; }
.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header-center h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .section-header-center h2 { font-size: 1.875rem; } }
.section-header-center p {
  color: var(--muted-fg);
  max-width: 36rem;
  margin: 0 auto;
}

/* ========== SVG ICONS INLINE ========== */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }

/* Responsive fixes */
@media (max-width: 639px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero-trust { gap: 0.75rem; font-size: 0.75rem; }
}
