/* ==========================================================================
   EL TALLER DE TATA — MODERN BOTANICAL GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */

:root {
  --primary-forest: #1e392a;
  --primary-forest-light: #2d543e;
  --primary-forest-dark: #12241a;
  --accent-terracotta: #c15a3e;
  --accent-terracotta-hover: #a84c33;
  --accent-mint: #38b000;
  --accent-mint-glow: rgba(56, 176, 0, 0.4);
  --bg-cream: #faf7f2;
  --bg-cream-dark: #f2ece1;
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-bg-hover: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-dark: rgba(30, 57, 42, 0.12);
  --glass-shadow: 0 16px 36px -8px rgba(30, 57, 42, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --glass-shadow-hover: 0 24px 48px -10px rgba(30, 57, 42, 0.16), 0 8px 20px rgba(0, 0, 0, 0.05);
  --glass-dark-bg: rgba(22, 39, 29, 0.85);
}

/* Base Styles & Typography */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-cream);
  color: #2c3e35;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .font-serif-title {
  font-family: 'Tenor Sans', 'Playfair Display', serif;
}

/* Botanical Background Blobs */
.bg-blobs-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.45;
  will-change: transform;
  animation: floatSlow 20s ease-in-out infinite alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #a3c9a8 0%, #70a288 60%, transparent 80%);
  top: -10%;
  right: -10%;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #f0c394 0%, #e29578 50%, transparent 80%);
  bottom: 15%;
  left: -15%;
  animation-delay: -7s;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #c2e1c2 0%, #83b692 60%, transparent 80%);
  top: 45%;
  right: -5%;
  animation-delay: -12s;
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(30px) rotate(15deg) scale(1.08); }
  100% { transform: translateY(-25px) rotate(-10deg) scale(0.95); }
}

/* Glassmorphism Components */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px);
}

.glass-card-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-radius: 1.5rem;
}

.glass-nav {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(30, 57, 42, 0.08);
}

/* Navigation Dropdowns & Submenus */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 57, 42, 0.12);
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(30, 57, 42, 0.12);
  padding: 0.75rem 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.submenu-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-forest);
  padding: 0.35rem 0.75rem 0.2rem 0.75rem;
  display: block;
}

.submenu-item {
  display: block;
  padding: 0.4rem 0.75rem 0.4rem 1.25rem;
  font-size: 0.815rem;
  color: #4a5568;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  position: relative;
}

.submenu-item::before {
  content: '—';
  position: absolute;
  left: 0.6rem;
  color: #a0aec0;
  font-size: 0.75rem;
  transition: color 0.15s ease;
}

.submenu-item:hover {
  background: rgba(30, 57, 42, 0.06);
  color: var(--primary-forest-dark);
}

.submenu-item:hover::before {
  color: var(--accent-terracotta);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* NFC Pulsing Effect */
.nfc-pulse {
  position: relative;
}

.nfc-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent-mint);
  animation: nfcWaves 2s infinite cubic-bezier(0, 0.2, 0.8, 1);
  pointer-events: none;
}

@keyframes nfcWaves {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Custom Sliders for Calculator */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(30, 57, 42, 0.12);
  border-radius: 9999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-forest);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-terracotta);
}

/* Phone Mockup Screen */
.phone-mockup {
  border: 10px solid #1c2d22;
  border-radius: 42px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: #ffffff;
}

/* Smooth Accordion Animations */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 280px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}
