/* ============================================================
   ELECTRO ARGENTINO — styles.css
   Shared styles for index.html & admin.html
   ============================================================ */

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

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

:root {
  /* Brand Colors */
  --primary:        #0066FF;
  --primary-dark:   #0047CC;
  --primary-light:  #3385FF;
  --accent:         #FFB800;
  --accent-dark:    #E6A600;

  /* Dark Palette */
  --bg-deep:        #060B18;
  --bg-dark:        #0D1526;
  --bg-card:        #111827;
  --bg-card-hover:  #162035;
  --border:         rgba(255,255,255,0.08);
  --border-strong:  rgba(255,255,255,0.15);

  /* Text */
  --text-primary:   #F0F4FF;
  --text-secondary: #8CA0BF;
  --text-muted:     #4A6080;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #0066FF 0%, #0033CC 100%);
  --grad-accent:    linear-gradient(135deg, #FFB800 0%, #FF8800 100%);
  --grad-hero:      linear-gradient(135deg, #060B18 0%, #0D1526 50%, #0A1F3F 100%);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:      0 24px 64px rgba(0,0,0,0.5);
  --shadow-blue:    0 8px 32px rgba(0,102,255,0.3);
  --shadow-accent:  0 8px 32px rgba(255,184,0,0.3);

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Typography */
  --font-body:    'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.28s cubic-bezier(0.4,0,0.2,1);
  --t-slow:   0.5s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--r-full); }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

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

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

/* ── Utility Classes ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(0,102,255,0.12);
  border: 1px solid rgba(0,102,255,0.25);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--t-normal);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,102,255,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: var(--grad-accent);
  color: #1a0a00;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,184,0,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,102,255,0.08);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  padding: 8px 16px;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-normal);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  width: 100%;
}

.form-group select option {
  background-color: var(--bg-card, #111827);
  color: var(--text-primary, #f0f4ff);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
  background: rgba(0,102,255,0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* ── Toast Notification ── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-md);
  padding: 14px 20px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform var(--t-normal);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #22C55E; }
.toast.error   { border-left-color: #EF4444; }
.toast-icon { font-size: 1.2rem; }
.toast-message { font-size: 0.9rem; font-weight: 500; }

/* ── Glow Orbs (decorative) ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-blue {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,102,255,0.25) 0%, transparent 70%);
}
.orb-accent {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,184,0,0.15) 0%, transparent 70%);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-blue {
  background: rgba(0,102,255,0.15);
  color: var(--primary-light);
  border: 1px solid rgba(0,102,255,0.3);
}
.badge-green {
  background: rgba(34,197,94,0.15);
  color: #4ADE80;
  border: 1px solid rgba(34,197,94,0.3);
}
.badge-accent {
  background: rgba(255,184,0,0.15);
  color: var(--accent);
  border: 1px solid rgba(255,184,0,0.3);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ── Stars ── */
.stars { color: var(--accent); letter-spacing: 2px; font-size: 0.85rem; }

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section-title { font-size: 1.8rem; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,102,255,0.3); }
  50%       { box-shadow: 0 0 40px rgba(0,102,255,0.6); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ── Skeleton loading ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

/* ── Logo image shared styles ── */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.login-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 18px;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 4px 16px rgba(255,184,0,0.35));
}

