/* ==========================================================================
   WALE | Marroquinería Sustentable (@wale.arg)
   Sistema de Diseño y Estilos Globales - Dark Luxury Eco-Tech
   ========================================================================== */

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

:root {
  /* Paleta Oficial WaLe */
  --brand-lime: #75f03d;
  --brand-lime-hover: #52d818;
  --brand-lime-glow: #3eb80c;
  --brand-lime-dark: #2d8c07;
  
  /* Superficies Oscuras */
  --bg-dark-900: #0d130b;
  --bg-dark-800: #141c11;
  --bg-dark-700: #1e291b;
  --bg-dark-600: #293825;

  /* Textos */
  --text-primary: #ffffff;
  --text-secondary: #f3f4f6;
  --text-muted: #9ca3af;
  
  /* Fuentes */
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-dark-900);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark-900);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Barras de desplazamiento estilizadas */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-900);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-dark-700);
  border-radius: 4px;
  border: 2px solid var(--bg-dark-900);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-lime-dark);
}

/* Glow y Efectos de Neón Sustentable */
.neon-glow {
  box-shadow: 0 0 25px rgba(117, 240, 61, 0.25);
}

.neon-glow-lg {
  box-shadow: 0 0 45px rgba(117, 240, 61, 0.35);
}

.neon-border {
  border-color: rgba(117, 240, 61, 0.3);
}

.neon-border:hover {
  border-color: var(--brand-lime);
  box-shadow: 0 0 20px rgba(117, 240, 61, 0.2);
}

.text-lime-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #75f03d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-lime-pure {
  color: var(--brand-lime);
}

/* Tarjetas y superficies oscuras */
.card-surface {
  background-color: var(--bg-dark-800);
  border: 1px solid rgba(117, 240, 61, 0.12);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-surface:hover {
  border-color: rgba(117, 240, 61, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(117, 240, 61, 0.1);
}

/* Botones Principales */
.btn-lime {
  background-color: var(--brand-lime);
  color: #0d130b;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(117, 240, 61, 0.25);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-lime:hover {
  background-color: var(--brand-lime-hover);
  box-shadow: 0 6px 25px rgba(117, 240, 61, 0.45);
  transform: translateY(-1px);
}

.btn-lime:active {
  transform: translateY(1px);
}

.btn-outline-lime {
  background-color: transparent;
  color: var(--brand-lime);
  border: 1px solid rgba(117, 240, 61, 0.5);
  font-weight: 600;
  font-family: var(--font-display);
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline-lime:hover {
  background-color: rgba(117, 240, 61, 0.1);
  border-color: var(--brand-lime);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(117, 240, 61, 0.2);
}

/* Badges de Upcycling */
.badge-eco {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(117, 240, 61, 0.1);
  border: 1px solid rgba(117, 240, 61, 0.3);
  color: var(--brand-lime);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Navbar activo */
.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: var(--brand-lime);
  background-color: rgba(117, 240, 61, 0.08);
  border: 1px solid rgba(117, 240, 61, 0.2);
}

/* Range Slider personalizado para Calculadora */
input[type="range"].eco-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-dark-700);
  outline: none;
}

input[type="range"].eco-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-lime);
  cursor: pointer;
  box-shadow: 0 0 15px var(--brand-lime);
  border: 2px solid #0d130b;
  transition: transform 0.15s ease;
}

input[type="range"].eco-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--brand-lime-hover);
}

input[type="range"].eco-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-lime);
  cursor: pointer;
  box-shadow: 0 0 15px var(--brand-lime);
  border: 2px solid #0d130b;
}

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(13, 19, 11, 0.88);
  backdrop-filter: blur(8px);
}

/* Animaciones sutiles */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s infinite ease-in-out;
}

/* Acordeón FAQ */
.faq-header {
  cursor: pointer;
  user-select: none;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.45s ease-in-out, opacity 0.3s ease;
}

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

/* Toast flotante */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-dark-800);
  color: var(--text-primary);
  border: 1px solid rgba(117, 240, 61, 0.3);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(117, 240, 61, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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