:root {
  --bg: #F4F7F9;
  --surface: #ffffff;
  --surface-soft: #e9f0f4;
  --primary: #3CBED8;
  --primary-dark: #2baec8;
  --secondary: #1A2B3C;
  --text: #1A2B3C;
  --muted: #627482;
  --border: rgba(26, 43, 60, 0.12);
  --shadow: 0 24px 60px rgba(26, 43, 60, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(60, 190, 216, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
}

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(26, 43, 60, 0.08);
  transition: all 0.3s ease;
}

.transparent-topbar {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.hero-copy h1,
.section-heading h2,
.about-grid h2,
.primary-card h2 {
  font-family: "Manrope", sans-serif;
}

.transparent-topbar .brand-copy strong {
  color: #fff;
}

.brand-copy small {
  color: var(--muted);
}

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary);
  color: #fff;
  flex-direction: column;
  padding: 20px;
  display: none;
  gap: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nav-links.is-open {
  display: flex;
}

.transparent-topbar .nav-links {
  color: #fff;
}

.transparent-topbar .nav-links a {
  opacity: 0.9;
  transition: opacity 0.2s;
}

.transparent-topbar .nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-toggle,
.btn,
.icon-button {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--secondary);
}

.transparent-topbar .icon-button {
  color: #fff;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
}

.mobile-menu-toggle {
  display: grid;
}

.counter-blur-animate {
  display: inline-block;
  animation: blurFadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes blurFadeUp {
  0% {
    filter: blur(8px);
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    transform: translateY(0);
    opacity: 1;
  }
}

.cart-toggle strong {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.hero-wrapper {
  background: url('./img/hero-bg.png') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 43, 60, 0.98) 0%, rgba(26, 43, 60, 0.9) 50%, rgba(60, 190, 216, 0.75) 100%);
  pointer-events: none;
}

.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 60px 0;
}

.hero-container {
  width: 100%;
}

.hero-copy {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}



.hero-badge svg {
  color: #3CBED8;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.text-highlight {
  color: #3CBED8;
}

.hero-copy p {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  gap: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.icon-button:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(60, 190, 216, 0.3);
}

.btn-primary:hover {
  background: #E64E97;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  width: 100%;
}

.hero-stats article {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  color: #fff;
  font-size: 1.8rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

.section-heading p,
.category-card p,
.product-card p,
.about-card p,
.footer p,
.cart-item-meta {
  color: var(--muted);
  line-height: 1.7;
}

.metrics-grid,
.categories-grid,
.products-grid,
.footer-grid {
  display: grid;
  gap: 16px;
}

.primary-card {
  height: 100%;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(60, 190, 216, 0.12), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #F4F7F9 100%);
}

.panel-label {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-weight: 700;
}

.primary-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--secondary);
}

.panel-stats {
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-stats article {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(26, 43, 60, 0.08);
}

.panel-stats strong,
.metrics-grid strong,
.product-precio,
.cart-total strong {
  display: block;
  font-size: 1.4rem;
  color: var(--secondary);
}

.floating-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 280px;
  padding: 20px;
  background: var(--secondary);
  color: #fff;
}

.floating-title {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.metrics-section,
.categories-section,
.products-section,
.about-section,
.footer {
  padding: 24px 0 32px;
}

.metrics-grid article,
.category-card,
.product-card,
.about-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(26, 43, 60, 0.08);
}

.metrics-grid strong {
  font-size: 2rem;
  margin-bottom: 6px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.about-grid h2 {
  margin: 12px 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--secondary);
}

.category-card,
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 190, 216, 0.15), transparent 70%);
}

.categories-heading-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  transition: opacity 0.2s;
}

.view-all-link:hover {
  opacity: 0.8;
}

.categories-grid-4 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(1, 1fr);
}

.category-card-new {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 43, 60, 0.05);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.category-card-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(26, 43, 60, 0.1);
  border-color: var(--primary);
}

.card-image-wrapper {
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card-new:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.category-icon-new {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
  transition: color 0.3s, transform 0.3s;
}

.category-card-new:hover .category-icon-new {
  color: #3CBED8;
  transform: scale(1.1);
}

.card-content h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--secondary);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-align: center;
}

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

.align-between {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.product-media {
  width: 100%;
  height: 220px;
  border-radius: 22px;
  margin-bottom: 18px;
  background: linear-gradient(145deg, rgba(60, 190, 216, 0.18), rgba(26, 43, 60, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.3rem;
  overflow: hidden;
}

.product-media img, .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #ffffff; /* Fondo gris si no hay imagen */
  min-height: 200px;
  display: block;
}

.product-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-discount {
  background: rgba(43, 174, 200, 0.12);
  color: var(--primary-dark);
}

.tag-new {
  background: rgba(26, 43, 60, 0.1);
  color: var(--secondary);
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--secondary);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.product-precio small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: line-through;
}

.add-to-cart {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
}

.about-points {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.about-points li + li {
  margin-top: 12px;
}

.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.88);
}

.footer h3,
.footer h4 {
  color: #fff;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -12px 0 40px rgba(26, 43, 60, 0.18);
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 30;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header,
.cart-item,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-body {
  overflow: auto;
  display: grid;
  gap: 14px;
  align-content: start;
}

.cart-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.cart-item-title {
  margin: 0;
  color: var(--secondary);
  font-weight: 700;
}

.cart-item-meta {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

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

.qty-controls button,
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 43, 60, 0.08);
  color: var(--secondary);
}

.btn-full {
  width: 100%;
}

.empty-state {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #E64E97);
  color: #fff;
  box-shadow: 0 20px 40px rgba(60, 190, 216, 0.28);
}

.whatsapp-float span {
  font-size: 0.82rem;
  opacity: 0.9;
}

@media (min-width: 700px) {
  .metrics-grid,
  .categories-grid-4,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .mobile-menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    background: transparent;
    color: var(--text);
    flex-direction: row;
    display: inline-flex;
    padding: 0;
    box-shadow: none;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .hero-section {
    padding-top: 56px;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .categories-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  }
}

/* About Section Redesign */
.about-grid-new {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .about-grid-new {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--secondary);
  font-family: "Manrope", sans-serif;
  margin: 12px 0 24px;
  line-height: 1.1;
}

.about-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.about-icons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .about-icons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-icon-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-icon-item span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.premium-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(60, 190, 216, 0.08);
  border: 1px solid rgba(60, 190, 216, 0.2);
  flex-shrink: 0;
}

.about-image-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26, 43, 60, 0.15);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

/* Catalog Page Styles */
.catalog-banner {
  background: var(--primary-dark);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 40px;
}

.catalog-banner h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.catalog-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.catalog-search-bar {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  height: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.catalog-search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.catalog-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-filters select {
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--secondary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.catalog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.catalog-results-info {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Catalog specific product card overrides */
.catalog-card {
  display: flex;
  flex-direction: column;
}

.catalog-media {
  height: 200px;
}

.catalog-card-body {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-category-label {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 4px;
}

.catalog-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.catalog-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-card .product-precio {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.catalog-card .product-precio strong {
  font-size: 1.25rem;
  color: var(--secondary);
}

.catalog-card .product-precio .original-precio {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

.btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}





.main-footer {
    background-color: #1A2B3C; /* Verde oscuro profundo coherente con el Hero */
    color: #e9f0f4;
    padding: 60px 8% 20px;
    font-size: 0.9rem;
    border-top: 3px solid #3CBED8;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #3CBED8;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #3CBED8;
    margin-top: 8px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-column ul li i {
    color: #3CBED8;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.bank-info, .wallet-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #3CBED8;
}

.developer-tag {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }
}
