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

:root {
  --background: #05070f;
  --foreground: #dde1ea;
  --card: #0b0f1c;
  --card-border: #141a2e;
  --border: #182047;
  --input: #12172a;
  --primary: #00e5ff;
  --primary-foreground: #05070f;
  --muted-foreground: #8a92a6;
  --destructive: #f04444;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Outfit', sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.06) 0%, rgba(0,0,0,0) 70%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.glass-panel {
  background: rgba(11, 15, 28, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.neon-text {
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.text-primary { color: var(--primary); }
.text-white { color: #ffffff; }
.text-muted { color: var(--muted-foreground); }

/* ---------- Fondo de humo animado e interactivo ---------- */
.smoke-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.smoke-plume {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.35) 0%, rgba(0, 229, 255, 0) 70%);
  transform: translate3d(var(--smoke-x, 0px), var(--smoke-y, 0px), 0);
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.smoke-plume-1 {
  width: 50vw;
  height: 50vw;
  top: -10%;
  left: -10%;
  animation: drift-1 26s ease-in-out infinite;
}

.smoke-plume-2 {
  width: 40vw;
  height: 40vw;
  top: 20%;
  right: -10%;
  background: radial-gradient(circle, rgba(120, 100, 255, 0.25) 0%, rgba(120, 100, 255, 0) 70%);
  animation: drift-2 32s ease-in-out infinite;
}

.smoke-plume-3 {
  width: 35vw;
  height: 35vw;
  bottom: -5%;
  left: 15%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0) 70%);
  animation: drift-3 38s ease-in-out infinite;
}

.smoke-plume-4 {
  width: 30vw;
  height: 30vw;
  bottom: 10%;
  right: 10%;
  background: radial-gradient(circle, rgba(200, 230, 255, 0.18) 0%, rgba(200, 230, 255, 0) 70%);
  animation: drift-4 30s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate3d(var(--smoke-x, 0px), var(--smoke-y, 0px), 0) scale(1); }
  50% { transform: translate3d(calc(var(--smoke-x, 0px) + 6vw), calc(var(--smoke-y, 0px) + 4vw), 0) scale(1.15); }
}

@keyframes drift-2 {
  0%, 100% { transform: translate3d(var(--smoke-x, 0px), var(--smoke-y, 0px), 0) scale(1); }
  50% { transform: translate3d(calc(var(--smoke-x, 0px) - 5vw), calc(var(--smoke-y, 0px) + 5vw), 0) scale(1.1); }
}

@keyframes drift-3 {
  0%, 100% { transform: translate3d(var(--smoke-x, 0px), var(--smoke-y, 0px), 0) scale(1); }
  50% { transform: translate3d(calc(var(--smoke-x, 0px) + 4vw), calc(var(--smoke-y, 0px) - 6vw), 0) scale(1.2); }
}

@keyframes drift-4 {
  0%, 100% { transform: translate3d(var(--smoke-x, 0px), var(--smoke-y, 0px), 0) scale(1); }
  50% { transform: translate3d(calc(var(--smoke-x, 0px) - 4vw), calc(var(--smoke-y, 0px) - 4vw), 0) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .smoke-plume {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.whatsapp-float .tooltip {
  margin-right: 0.75rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float .bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover .bubble {
  background: #34d399;
  transform: scale(1.05);
}

.whatsapp-float .bubble svg {
  color: #fff;
}

@media (max-width: 640px) {
  .whatsapp-float .tooltip {
    display: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(20, 26, 46, 0.6);
}

.header-spacer {
  height: 80px;
  width: 100%;
  flex-shrink: 0;
}

.site-header .container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.3);
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  position: relative;
  padding: 8px;
}

.cart-link:hover {
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* ---------- Hero ---------- */
.hero {
  padding: 24px 0;
  border-bottom: 1px solid rgba(20, 26, 46, 0.5);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
}

.hero p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* ---------- Catalog ---------- */
.catalog {
  padding: 24px 0 40px;
  flex: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
  height: 100%;
}

.product-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
}

.product-image {
  aspect-ratio: 3 / 4;
  background: linear-gradient(to bottom, rgba(20, 26, 46, 0.5), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.product-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.15));
}

.product-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  color: var(--primary);
  font-family: monospace;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.select-flavor {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--input);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.75rem;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.select-flavor:focus {
  outline: none;
  border-color: var(--primary);
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 36px;
  padding: 0 8px;
}

.qty-row span.label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

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

.qty-btn {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
}

.qty-btn:hover {
  color: var(--primary);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-value {
  font-family: monospace;
  font-size: 0.75rem;
  width: 16px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-glow {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--muted-foreground);
}

.btn-sm {
  height: 36px;
  padding: 0 12px;
  font-size: 0.75rem;
  width: 100%;
  margin-top: auto;
}

.btn-lg {
  height: 56px;
  padding: 0 24px;
  font-size: 1rem;
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid rgba(20, 26, 46, 0.5);
  background: rgba(11, 15, 28, 0.3);
  text-align: center;
}

.site-footer .brand-name {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.site-footer p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 4px 0;
}

.site-footer .fine-print {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 16px;
}

/* ---------- Age verification modal ---------- */
.age-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 7, 15, 0.95);
  backdrop-filter: blur(8px);
}

.age-modal-overlay.hidden {
  display: none;
}

.age-modal {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.1);
}

.age-modal h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.age-modal .divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 24px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.age-modal h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 16px;
}

.age-modal p.desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.age-modal .actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-deny {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  padding: 12px;
}

.age-deny:hover {
  color: #fff;
}

/* ---------- Toast ---------- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  width: calc(100% - 32px);
}

.toast {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.875rem;
  animation: toast-in 0.2s ease;
}

.toast.success {
  background: var(--card);
  border: 1px solid var(--primary);
  color: var(--foreground);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.toast.error {
  background: var(--card);
  border: 1px solid var(--destructive);
  color: var(--foreground);
}

.toast strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Cart page ---------- */
.cart-page {
  padding: 48px 0 80px;
  flex: 1;
}

.cart-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.cart-page .divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin-bottom: 48px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .cart-layout {
    grid-template-columns: 7fr 5fr;
  }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
}

.cart-item-image {
  width: 64px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  background: var(--card);
}

.cart-item-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-info .flavor-line {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 6px 0 12px;
}

.cart-item-info .flavor-line span {
  color: var(--foreground);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  width: fit-content;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.cart-item-price {
  font-family: monospace;
  font-weight: 500;
  color: var(--primary);
}

.remove-btn {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 8px;
}

.remove-btn:hover {
  color: var(--destructive);
}

.empty-cart {
  padding: 96px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.empty-cart-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-cart h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.empty-cart p {
  color: var(--muted-foreground);
  margin-bottom: 32px;
  max-width: 400px;
}

/* Checkout summary panel */
.checkout-panel {
  padding: 24px;
  border-radius: 16px;
}

.checkout-panel h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(20, 26, 46, 0.5);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #fff;
}

.summary-row.total {
  padding-top: 16px;
  border-top: 1px solid rgba(20, 26, 46, 0.5);
  margin-top: 4px;
  align-items: center;
}

.summary-row.total span:first-child {
  font-weight: 500;
  color: #fff;
}

.summary-row.total span:last-child {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.summary-row span:last-child {
  font-family: monospace;
  color: #fff;
}

.important-note {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #ffffff;
}

.important-note strong.label {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

.payment-method {
  margin-bottom: 16px;
}

.payment-method label.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.1);
  padding: 12px 16px;
}

.payment-option .radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-option .radio-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.payment-option .label-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
}

.form-field {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row .form-field {
  margin-bottom: 0;
}

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(18, 23, 42, 0.5);
  border: 1px solid var(--input);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: 'Outfit', sans-serif;
}

textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 16px;
  resize: none;
}

input::placeholder, textarea::placeholder {
  color: var(--muted-foreground);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

input.error, select.error {
  border-color: var(--destructive);
}

.field-error {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 4px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
