/* =============================================
   CONTADO S.R.L. - Custom Styles
   Color palette from logo:
   - Background dark: #0a0f1a (near black)
   - Navy C:          #1e3a5f
   - Bright green:    #22c55e
   - White:           #FFFFFF
   ============================================= */

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

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0f1a;
  color: #f1f5f9;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* ---- NAVBAR ---- */
#navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.nav-scrolled {
  background: rgba(10, 15, 26, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* ---- LOGO SVG ---- */
.logo-svg {
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3));
}

/* ---- HERO ---- */
.hero-bg {
  background: linear-gradient(135deg, #0a0f1a 0%, #0f1f3d 50%, #0a0f1a 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.3) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

/* ---- QUOTE CARD ---- */
.quote-card {
  background: linear-gradient(135deg, #111827 0%, #0f1e38 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(34, 197, 94, 0.05);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e);
}

.price-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.price-box:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(34, 197, 94, 0.3);
}

.price-compra { color: #22c55e; }
.price-venta  { color: #60a5fa; }

/* Quote update flash animation */
.quote-updated {
  animation: flashUpdate 0.6s ease;
}

@keyframes flashUpdate {
  0%   { color: #fff; transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ---- CALCULATOR ---- */
.calc-card {
  background: linear-gradient(135deg, #111827 0%, #0f1e38 100%);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 1.5rem;
}

.calc-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  color: #f1f5f9;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  padding: 1rem;
}

.calc-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.calc-input::placeholder { color: rgba(241,245,249,0.3); }

.result-box {
  background: rgba(255,255,255,0.04);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem;
  text-align: center;
}

/* ---- STEPS ---- */
.step-card {
  background: linear-gradient(135deg, #111827 0%, #0f1e38 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.step-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

/* ---- ABOUT ---- */
.about-section {
  background: linear-gradient(180deg, #0a0f1a 0%, #0d1726 50%, #0a0f1a 100%);
  position: relative;
}

.stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.stat-box:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4);
}

/* ---- BUTTONS ---- */
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

/* ---- FLOATING WHATSAPP ---- */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Pulse ring */
.wa-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---- TOAST ---- */
#toast {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  z-index: 999;
  background: rgba(34, 197, 94, 0.95);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
  pointer-events: none;
}

/* ---- CONTACT ---- */
.contact-card {
  background: linear-gradient(135deg, #111827 0%, #0f1e38 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 2rem;
}

.map-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ---- SECTION DIVIDER ---- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ---- ANIMATIONS ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ---- FOOTER ---- */
footer {
  background: #050810;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- ADMIN STYLES ---- */
.admin-body {
  background: #0a0f1a;
  min-height: 100vh;
}

.admin-card {
  background: linear-gradient(135deg, #111827 0%, #0f1e38 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
}

.admin-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.5rem;
  color: #f1f5f9;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0f1a; }
::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #22c55e; }

/* ---- MOBILE FIXES ---- */
@media (max-width: 640px) {
  .hero-bg { padding-top: 6rem; }
  .quote-card { margin: 0 0.5rem; }
}
