/* =============================================
   MUNDO DE TON - E-Commerce Styles
   Paleta: Turquesa #00B4C6, Amarillo #FFD600,
   Naranja #FF8C00, Blanco, Fondo #F9F7F2
   ============================================= */

:root {
  --teal: #00B4C6;
  --teal-dark: #0093A3;
  --yellow: #FFD600;
  --orange: #FF8C00;
  --cream: #F9F7F2;
  --dark: #1A1A2E;
  --gray: #6B7280;
  --light-gray: #F3F4F6;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Nunito', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

/* ── UTILIDADES ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,180,198,0.35);
}

.btn-secondary {
  background: var(--yellow);
  color: var(--dark);
}
.btn-secondary:hover {
  background: #ECC600;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,214,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-new { background: var(--teal); color: white; }
.badge-sale { background: #FF4757; color: white; }
.badge-popular { background: var(--yellow); color: var(--dark); }

/* ── HEADER / NAV ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text span:first-child {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logo-text span:last-child {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
}
.logo-text span:last-child em {
  color: var(--teal);
  font-style: normal;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(0,180,198,0.1);
  color: var(--teal);
}

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

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--light-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--dark);
  font-size: 18px;
}
.icon-btn:hover {
  background: rgba(0,180,198,0.12);
  color: var(--teal);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--teal);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #E0F9FB 0%, #FFF8DC 100%);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0,180,198,0.07);
  top: -100px;
  right: -100px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--dark);
}
.hero h1 .highlight {
  color: var(--teal);
  position: relative;
}

.hero-desc {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
}
.stat {
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--teal);
}
.stat-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-mascot-wrap {
  position: relative;
}

.hero-mascot {
  width: 380px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,180,198,0.2));
  animation: float 4s ease-in-out infinite;
}

.hero-badge {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}
.hero-badge.b1 { top: 30px; right: -20px; color: var(--teal); }
.hero-badge.b2 { bottom: 60px; left: -20px; color: var(--orange); }
.hero-badge .icon { font-size: 18px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ── STRIP PROPUESTA ── */
.value-strip {
  background: var(--teal);
  color: white;
  padding: 18px 0;
}
.value-strip-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
.value-icon { font-size: 22px; }

/* ── SECCIONES GENERALES ── */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-tag {
  display: inline-block;
  background: rgba(0,180,198,0.12);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-title span { color: var(--teal); }
.section-desc {
  font-size: 17px;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
}

/* ── CATEGORÍAS ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
}
.category-card:hover,
.category-card.active {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.category-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}
.category-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.category-count {
  font-size: 13px;
  color: var(--gray);
}

/* ── PRODUCTOS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.product-image-wrap {
  position: relative;
  background: var(--light-gray);
  aspect-ratio: 1;
  overflow: hidden;
}
.product-image-wrap img,
.product-image-wrap .product-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-placeholder {
  font-size: 64px;
  background: linear-gradient(135deg, #E0F9FB, #FFF8DC);
  color: var(--teal);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-wishlist:hover {
  background: #FFE0E0;
  transform: scale(1.1);
}

.product-body {
  padding: 20px;
}
.product-age {
  font-size: 12px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-desc {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-price {
  display: flex;
  flex-direction: column;
}
.price-current {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
}
.price-original {
  font-size: 13px;
  color: var(--gray);
  text-decoration: line-through;
}

.add-to-cart {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.add-to-cart:hover {
  background: var(--teal-dark);
  transform: scale(1.1);
}

/* ── PRODUCTO DESTACADO ── */
.featured-product {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  color: white;
  overflow: hidden;
  position: relative;
}
.featured-product::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -80px;
  right: -80px;
}
.featured-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.featured-product h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.2;
}
.featured-product p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}
.featured-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.featured-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.featured-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.featured-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.featured-price {
  font-size: 38px;
  font-weight: 900;
}
.featured-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-img img {
  width: 100%;
  max-width: 420px;
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* ── CÓMO FUNCIONA ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  position: relative;
}
.how-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--cream);
  border-radius: var(--radius);
  position: relative;
}
.how-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.how-icon { font-size: 36px; margin-bottom: 14px; }
.how-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.how-desc {
  font-size: 14px;
  color: var(--gray);
}

/* ── TESTIMONIOS ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.review-stars {
  color: var(--yellow);
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 20px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.review-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
}
.review-role {
  font-size: 12px;
  color: var(--gray);
}

/* ── NEWSLETTER ── */
.newsletter {
  background: linear-gradient(135deg, #FFF8DC, #E0F9FB);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
}
.newsletter h2 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 12px;
}
.newsletter p {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 2px solid #E5E7EB;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus {
  border-color: var(--teal);
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── CARRITO SIDEBAR ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  background: white;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
}
.cart-sidebar.open {
  transform: translateX(0);
}
.cart-header {
  padding: 24px;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 {
  font-size: 20px;
  font-weight: 800;
}
.cart-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--light-gray);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.cart-empty .empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty p { font-size: 15px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
}
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--teal); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.qty-num { font-weight: 700; font-size: 15px; }
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray);
  padding: 4px;
  align-self: flex-start;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #F3F4F6;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cart-total span:first-child {
  font-size: 16px;
  color: var(--gray);
}
.cart-total-amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--dark);
}
.checkout-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 17px;
}

/* ── ANUNCIO BANNER ── */
.announcement {
  background: var(--yellow);
  color: var(--dark);
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
}
.announcement a {
  color: var(--teal);
  text-decoration: underline;
  margin-left: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image { display: none; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }

  .featured-product {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
    border-radius: 20px;
  }
  .featured-product h2 { font-size: 26px; }
  .featured-product p { font-size: 15px; margin-bottom: 20px; }
  .featured-price { font-size: 28px; }
  .featured-price-row {
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }
  .featured-price-row .btn {
    width: 100%;
    justify-content: center;
  }
  .featured-img {
    font-size: 80px;
    order: -1;
  }
  .featured-img img {
    max-width: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .newsletter {
    padding: 40px 24px;
  }
  .newsletter-form {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .value-strip-inner { gap: 20px; }
}
