/* ==========================================================================
   DANIEL MORENO - MARTILLERO Y CORREDOR PÚBLICO
   Sistema de Diseño Elegante con Transiciones Suaves
   ========================================================================== */

:root {
  /* Color Palette - Obsidian Dark & Champagne Gold */
  --bg-dark: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #1a243d;
  --bg-surface: #182238;
  --bg-glass: rgba(19, 27, 46, 0.75);
  --bg-glass-nav: rgba(11, 15, 25, 0.88);
  
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa8625;
  --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa8625 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --silver-slate: #cbd5e1;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #e2c46c;

  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --border-glass: rgba(212, 175, 55, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  background: radial-gradient(circle at 50% 0%, #172238 0%, #0b0f19 70%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Form Layouts */
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ==========================================================================
   HEADER & NAVIGATION (ALWAYS FIXED AT TOP)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  width: 100%;
  flex-wrap: nowrap;
  transition: var(--transition-normal);
}

/* Logo Showcase */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-img-wrapper {
  height: 52px;
  width: auto;
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  transition: var(--transition-normal);
}

.brand-logo:hover .logo-img-wrapper {
  box-shadow: none;
  border-color: transparent;
}

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-top: 2px;
}

/* Nav Links & Tabs */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.1);
}

.nav-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background: var(--gold-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: var(--transition-fast);
}

.btn-whatsapp-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Currency Switcher Toggle */
.currency-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 2px;
  position: relative;
}

.currency-toggle-btn {
  padding: 0.32rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.currency-toggle-btn:hover {
  color: #ffffff;
}

.currency-toggle-btn.active {
  background: var(--gold-gradient);
  color: #0b0f19;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.catalog-currency-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exchange-rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Admin Subtle Login Button */
.btn-admin-subtle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.btn-admin-subtle:hover {
  color: var(--gold-primary);
  border-color: var(--border-glass);
  background: rgba(212, 175, 55, 0.1);
  transform: rotate(5deg);
}

.btn-admin-subtle.logged-in {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  animation: pulseGlow 2.5s infinite;
}

.tooltip-admin {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.btn-admin-subtle:hover .tooltip-admin {
  opacity: 1;
  transform: translateY(4px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  padding: 8px;
}

/* Responsive Grid Helpers */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* Password Visibility Toggle */
.pass-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pass-input-wrapper .form-control {
  padding-right: 42px;
}

.pass-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pass-toggle-btn:hover {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

