/* AnyGift México - Official Brand Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  --color-teal-900: #0d3832;
  --color-teal-800: #124d45;
  --color-teal-700: #1b665c;
  --color-teal-50: #f0f7f5;
  --color-terracotta: #c04227;
  --color-terracotta-dark: #9e321b;
  --color-terracotta-light: #fbeee9;
  --color-gold: #d99018;
  --color-gold-light: #fef5e7;
  --color-cobalt: #1b3864;
  --color-cream: #faf7f2;
  --color-surface: #ffffff;
  --color-text-main: #1c2421;
  --color-text-muted: #5e6d67;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
}

/* Mexican Papel Picado / Aztec Pattern Accents */
.pattern-mexico {
  background-image: radial-gradient(#c04227 0.75px, transparent 0.75px), radial-gradient(#124d45 0.75px, #faf7f2 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.pattern-aztec-border {
  background: repeating-linear-gradient(45deg, var(--color-terracotta), var(--color-terracotta) 10px, var(--color-gold) 10px, var(--color-gold) 20px, var(--color-teal-800) 20px, var(--color-teal-800) 30px);
  height: 4px;
  width: 100%;
}

/* Glassmorphism & Cards */
.glass-nav {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 77, 69, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 144, 24, 0.15);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -10px rgba(13, 56, 50, 0.07);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(13, 56, 50, 0.12);
  border-color: rgba(192, 66, 39, 0.3);
}

/* Buttons & Badges */
.btn-primary {
  background-color: var(--color-terracotta);
  color: #ffffff !important;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(192, 66, 39, 0.3);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 66, 39, 0.4);
}

/* Header Dedicated Sample Button */
.nav-sample-btn {
  background-color: var(--color-terracotta);
  color: #ffffff !important;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(192, 66, 39, 0.25);
  transition: all 0.2s ease;
  line-height: 1.25;
  text-decoration: none;
}

.nav-sample-btn:hover {
  background-color: var(--color-terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192, 66, 39, 0.35);
}

.btn-secondary {
  background-color: var(--color-teal-800);
  color: #ffffff !important;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(18, 77, 69, 0.25);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-secondary:hover {
  background-color: var(--color-teal-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 77, 69, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--color-teal-800);
  color: var(--color-teal-800) !important;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--color-teal-800);
  color: #ffffff !important;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  background: #ffffff;
  color: var(--color-text-main);
  border-left: 5px solid var(--color-terracotta);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal Overlay */
.modal-overlay {
  background: rgba(13, 56, 50, 0.65);
  backdrop-filter: blur(5px);
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: 1.5rem;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Interactive Configurator Preview box */
.box-preview-container {
  perspective: 1000px;
}
.box-preview-card {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #faf7f2;
}
::-webkit-scrollbar-thumb {
  background: #d4c5b2;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #124d45;
}
