/* ==========================================================================
   ASFINANCIEROS - ESTILOS CORPORATIVOS "EN CONSTRUCCIÓN"
   Diseño Premium: Deep Navy, Cyan Eléctrico, Glassmorphism & Microinteracciones
   ========================================================================== */

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

:root {
  --bg-dark: #050b14;
  --bg-gradient-1: #071224;
  --bg-gradient-2: #02060d;
  --card-bg: rgba(13, 27, 49, 0.65);
  --card-border: rgba(0, 163, 255, 0.22);
  --card-border-hover: rgba(0, 212, 255, 0.6);
  --primary-blue: #0066ff;
  --primary-cyan: #00d4ff;
  --accent-cyan: #38ef7d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-highlight: #e2e8f0;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --shadow-neon: 0 0 30px rgba(0, 163, 255, 0.25);
  --shadow-glow: 0 10px 40px -10px rgba(0, 102, 255, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* Background Canvas & Ambient Lights */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0052cc 0%, rgba(0, 82, 204, 0) 70%);
}

.orb-2 {
  bottom: -15%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00a3ff 0%, rgba(0, 163, 255, 0) 70%);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.orb-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0) 75%);
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(35px) scale(1.08); }
  100% { transform: translateY(-25px) scale(0.95); }
}

/* Page Layout */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Header & Brand */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00e5ff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #00e5ff;
  animation: pulseLight 1.8s infinite;
}

@keyframes pulseLight {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 5px #00e5ff; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #00e5ff; }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 5px #00e5ff; }
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  color: var(--text-highlight);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: var(--primary-cyan);
  color: #fff;
  transform: translateY(-2px);
}

/* Main Hero Card */
.main-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--shadow-neon);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #0066ff 25%, #00d4ff 50%, #0066ff 75%, transparent 100%);
  animation: shineLine 4s infinite linear;
}

@keyframes shineLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Logo Hero Section */
.logo-container {
  display: inline-block;
  margin-bottom: 1.8rem;
  position: relative;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  padding: 16px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.16) 0%, rgba(13, 27, 49, 0) 70%);
}

.logo-img {
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 15px 25px rgba(0, 102, 255, 0.35));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.logo-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 20px 30px rgba(0, 212, 255, 0.5));
}

/* Hero Typography */
.hero-tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-cyan);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1.2rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #60a5fa 60%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* Progress Tracker */
.progress-box {
  max-width: 520px;
  margin: 0 auto 3rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-highlight);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, #0052cc 0%, #00a3ff 50%, #00d4ff 100%);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shineProgress 2s infinite;
}

@keyframes shineProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: right;
}

/* Countdown Section */
.countdown-container {
  margin-bottom: 3.2rem;
}

.countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-unit {
  background: rgba(7, 18, 36, 0.8);
  border: 1px solid rgba(0, 163, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 1.2rem 0.5rem;
  box-shadow: inset 0 0 20px rgba(0, 102, 255, 0.08);
  transition: var(--transition);
}

.countdown-unit:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 102, 255, 0.3), inset 0 0 25px rgba(0, 212, 255, 0.15);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.countdown-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-cyan);
  margin-top: 0.4rem;
}

/* Services Pill Grid */
.services-section {
  margin-bottom: 3rem;
}

.services-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-highlight);
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  text-align: left;
}

.service-card {
  background: rgba(10, 22, 41, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: rgba(14, 30, 56, 0.88);
  border-color: rgba(0, 163, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(0, 82, 204, 0.3);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 102, 255, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-cyan);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Action CTA & Notification Form */
.cta-box {
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(0, 163, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 2.2rem 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.cta-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.cta-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-subscribe {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.input-email {
  flex: 1;
  background: rgba(4, 10, 20, 0.85);
  border: 1px solid rgba(0, 163, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.input-email:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
}

.input-email::placeholder {
  color: #64748b;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0066ff 0%, #0099ff 50%, #00d4ff 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 102, 255, 0.4);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 212, 255, 0.5);
  filter: brightness(1.1);
}

.cta-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-alt-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.btn-email-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0052cc 0%, #00a3ff 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0, 102, 255, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.btn-email-cta:hover {
  background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
  color: #fff;
}

/* Footer Section */
.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item:hover {
  color: var(--primary-cyan);
}

.footer-copy {
  font-size: 0.8rem;
  color: #64748b;
}

/* Floating Contact / Email Button */
.contact-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.contact-bubble {
  background: rgba(13, 27, 49, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.4);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 30px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  animation: fadeInRight 0.6s ease;
  pointer-events: none;
}

.contact-icon-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052cc 0%, #0099ff 50%, #00d4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-icon-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(0, 163, 255, 0.7), 0 0 25px rgba(0, 212, 255, 0.5);
}

.contact-icon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #00d4ff;
  animation: wavePulse 2s infinite;
}

@keyframes wavePulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 13, 0.82);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #091426;
  border: 1px solid rgba(0, 163, 255, 0.3);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 102, 255, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-highlight);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: rgba(3, 8, 16, 0.85);
  border: 1px solid rgba(0, 163, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.form-msg {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 1rem;
  display: none;
  text-align: center;
}

.form-msg.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.form-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Responsive Queries */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .main-card {
    padding: 2.5rem 1.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-wrapper {
    padding: 1.2rem 1rem 1rem;
  }
  .header {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-description {
    font-size: 0.98rem;
  }
  .logo-img {
    max-width: 250px;
  }
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .countdown-number {
    font-size: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .form-subscribe {
    flex-direction: column;
  }
  .btn-primary {
    width: 100%;
  }
  .contact-bubble,
  .whatsapp-bubble {
    display: none;
  }
  .contact-float,
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  .contact-icon-btn,
  .whatsapp-icon-btn {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}
