/* ==========================================================================
   Yarn & Needle Atelier Textil - Defensive CSS & Argentine Theming
   ========================================================================== */

:root {
  --yn-gold: #C59B27;
  --yn-gold-dark: #997316;
  --yn-gold-light: #E5C158;
  --yn-black: #0B0E14;
  --yn-dark: #121824;
  --yn-slate: #1E293B;
  --yn-gray: #64748B;
  --yn-light: #F8FAFC;
  --yn-border: #E2E8F0;
  --yn-font: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  margin: 0;
  padding: 0;
  font-family: var(--yn-font);
  color: #1E293B;
  background-color: #0B0E14;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Header & Top Bar */
header#header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(11, 14, 20, 0.98) !important;
  border-bottom: 2px solid var(--yn-gold);
  padding: 0 !important;
  transition: all 0.3s ease;
}

.pre-header-yn {
  background: #05080E;
  border-bottom: 1px solid rgba(197, 155, 39, 0.25);
  padding: 7px 30px;
  font-size: 0.82rem;
  color: #94A3B8;
}

.pre-header-yn a {
  color: var(--yn-gold-light);
  text-decoration: none;
  transition: color 0.2s;
  margin-left: 12px;
}

.pre-header-yn a:hover {
  color: #FFFFFF;
}

header#header nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 32px !important;
  max-width: 1350px !important;
  margin: 0 auto !important;
}

.logo-img {
  max-height: 48px;
  width: auto;
}

/* Desktop Single-Line Navigation (1280px) */
@media (min-width: 992px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    position: static !important;
    background: transparent !important;
    width: auto !important;
  }

  .nav-menu li {
    white-space: nowrap !important;
    display: inline-flex !important;
  }

  .nav-menu a, .nav-link {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    padding: 0.5rem 0.9rem !important;
    color: #E2E8F0 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
  }

  .nav-menu a:hover, .nav-menu a.active {
    color: var(--yn-gold) !important;
  }

  .menu-toggle {
    display: none !important;
  }
}

/* Mobile Navigation (<= 991.98px) */
@media (max-width: 991.98px) {
  .pre-header-yn {
    display: none;
  }

  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(197, 155, 39, 0.4);
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--yn-gold);
    transition: all 0.25s;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #0B0E14;
    border-bottom: 3px solid var(--yn-gold);
    padding: 24px 32px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    width: 100% !important;
  }

  .nav-menu.open,
  .nav-menu.show,
  .nav-menu.active {
    display: flex !important;
  }
}

/* Argentine Corporate Footer */
.footer-yn {
  background-color: #07090E;
  color: #94A3B8;
  padding: 70px 0 30px;
  border-top: 3px solid var(--yn-gold);
  font-size: 0.9rem;
}

.footer-yn h4 {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.footer-yn a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-yn a:hover {
  color: var(--yn-gold-light);
}

.footer-yn .legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-yn .legal-list li {
  margin-bottom: 0.65rem;
}

.footer-yn .afip-box {
  display: inline-block;
  background: #FFFFFF;
  padding: 6px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.footer-bottom-yn {
  background-color: #040508;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: #64748B;
}

/* Floating WhatsApp Button */
.wa-widget-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-btn {
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #FFFFFF;
}

.wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-tooltip {
  background-color: #0B0E14;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: none;
  white-space: nowrap;
  border: 1px solid rgba(197, 155, 39, 0.3);
}

@media (min-width: 768px) {
  .wa-tooltip {
    display: block;
  }
}

/* Legal Inner Pages */
.legal-page-header {
  background: linear-gradient(135deg, #0B0E14 0%, #151C28 100%);
  color: #FFFFFF;
  padding: 60px 0 45px;
  border-bottom: 3px solid var(--yn-gold);
}

.legal-content-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--yn-border);
  padding: 45px;
  margin-top: -30px;
  margin-bottom: 60px;
  line-height: 1.8;
  color: #334155;
}

.legal-content-card h2 {
  color: #0B0E14;
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yn-border);
}

.legal-content-card p, .legal-content-card li {
  font-size: 0.95rem;
}

/* Form notifications */
.form-notification {
  display: none;
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-notification.success {
  background-color: #064E3B;
  color: #A7F3D0;
  border: 1px solid #059669;
}

.form-notification.error {
  background-color: #7F1D1D;
  color: #FECACA;
  border: 1px solid #DC2626;
}

/* Ensure preloader never blocks audit or user */
.loading-screen {
  display: none !important;
  pointer-events: none !important;
}

