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

:root {
  --primary: #0d9488;      /* Verde Esmeralda fresco */
  --dark: #0f172a;         /* Pizarra oscuro */
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-muted: #64748b;
  --border-radius: 16px;
}

body {
  font-family: 'Urbanist', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark);
  line-height: 1.5;
  padding-bottom: 30px;
}

.navbar {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 0.8rem 1.2rem;
}

.nav-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.brand-name .dot {
  color: var(--primary);
  font-style: normal;
}

.cart-btn {
  background: var(--light-bg);
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
}

/* PWA Banner */
.pwa-banner { background: var(--dark); color: white; padding: 0.8rem 1.2rem; }
.pwa-banner.hidden { display: none; }
.pwa-content { max-width: 600px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.btn-install { background: var(--primary); color: white; border: none; padding: 0.5rem 1rem; border-radius: 8px; font-family: 'Urbanist', sans-serif; font-weight: 700; cursor: pointer; }

/* Main layout */
.main-container { max-width: 600px; margin: 0 auto; padding: 1.2rem; }

.hero-card {
  background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.hero-tag { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.hero-card h2 { font-size: 1.5rem; font-weight: 800; margin: 0.6rem 0 0.4rem 0; }

.section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.product-grid { display: flex; flex-direction: column; gap: 1.2rem; }

.product-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid #f1f5f9;
}

.product-header { display: flex; justify-content: space-between; align-items: flex-start; }
.product-title { font-size: 1.4rem; font-weight: 800; }
.product-badge { background: #fef3c7; color: #b45309; font-weight: 700; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 6px; }
.product-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }

.btn-add-cart {
  background: var(--dark);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

/* Modal Carrito */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: flex-end; }
.modal-overlay.hidden { display: none; }
.modal-content { background: white; width: 100%; max-width: 600px; margin: 0 auto; border-top-left-radius: 24px; border-top-right-radius: 24px; padding: 1.5rem; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.close-btn { background: none; border: none; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; }

.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem; background: var(--light-bg); border-radius: 10px; margin-bottom: 0.5rem; }
.qty-controls { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid #cbd5e1; background: white; font-weight: 700; cursor: pointer; }

.summary-line { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; margin: 1rem 0; border-top: 1px solid #e2e8f0; padding-top: 0.8rem; }
.shipping-form { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.shipping-form input { padding: 0.7rem; border: 1px solid #cbd5e1; border-radius: 8px; font-family: 'Urbanist', sans-serif; }

.btn-checkout { width: 100%; background: var(--primary); color: white; border: none; padding: 1rem; border-radius: 12px; font-family: 'Urbanist', sans-serif; font-weight: 800; font-size: 1rem; cursor: pointer; }
.footer { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: var(--text-muted); }
/* Estilos para precios con descuento y ahorro */
.price-container {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.6rem;
}

.prices-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.original-price {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

.savings-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  width: fit-content;
}

.btn-add-cart {
  width: 100%;
}
/* Botón Volver Arriba Flotante */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  background-color: var(--dark);
  color: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 150;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.back-to-top:active {
  transform: scale(0.92);
}
/* Estilo para emojis animados tipo Telegram */
.animated-emoji {
  width: 22px;
  height: 22px;
  vertical-align: sub;
  display: inline-block;
  object-fit: contain;
}

/* Para etiquetas de ahorro o destacados */
.savings-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #d97706; /* Color cálido para el ahorro */
}
