/* Import Outfit Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Crisp Light Theme Color Tokens */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --primary: #0070f3;
  --primary-glow: #00a0f0;
  --primary-dark: #0050b3;
  --secondary: #00b4d8;
  --accent-light: #e0f2fe;
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-muted: #475569;
  
  /* Glassmorphism Styles (Light Mode) */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 112, 243, 0.15);
  --glass-border-hover: rgba(0, 112, 243, 0.35);
  --glass-shadow: 0 10px 30px rgba(0, 112, 243, 0.06);
  
  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  color-scheme: light;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  
  /* Tech Background Grid & Glowing Ambient Spheres */
  background-image: 
    radial-gradient(circle at 5% 10%, rgba(0, 112, 243, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 95% 70%, rgba(0, 180, 216, 0.07) 0%, transparent 45%),
    linear-gradient(rgba(0, 112, 243, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 112, 243, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Custom Light Scrollbar */
@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: var(--primary) var(--bg-main);
    scrollbar-width: thin;
  }
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-main);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
  }
}

/* Typography Utility */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-weight: 400;
}

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

/* Layout Elements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 14px 0;
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* Desktop Navigation Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 112, 243, 0.08);
  border: 1px solid rgba(0, 112, 243, 0.2);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.25);
  white-space: nowrap;
}

/* Mobile Toggle Hamburger Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-drawer.open {
  max-height: 400px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 28px 24px;
  gap: 16px;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-wa-btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 0 40px 0;
  text-align: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid rgba(0, 112, 243, 0.2);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 112, 243, 0.08);
}

.badge-dot {
  width: 10px;
  height: 10px;
  background-color: #00c853;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.6);
  animation: blink 1.5s infinite alternate;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Tech Deploy Status Card */
.deploy-status-card {
  max-width: 780px;
  margin: 0 auto;
  background: white;
  border: 1px solid rgba(0, 112, 243, 0.2);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 112, 243, 0.06);
}

.status-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 112, 243, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-info {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.status-info strong {
  color: var(--text-primary);
}

/* Parroquias & Sectores Grid */
.parroquias-section {
  padding: 50px 0 20px 0;
}

.parroquias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.parroquia-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.parroquia-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 112, 243, 0.1);
}

.parroquia-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

.parroquia-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.parroquia-status.active {
  background: #00c853;
  color: white;
}

.parroquia-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 112, 243, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.parroquia-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.parroquia-card p {
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 112, 243, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 112, 243, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Feature Cards (Planes) Section */
.planes-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.plan-card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 112, 243, 0.3);
  box-shadow: 0 15px 40px rgba(0, 112, 243, 0.12);
}

/* Highlighted Plan Card style */
.plan-card.highlighted {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, rgba(224, 242, 254, 0.3) 100%);
  box-shadow: 0 20px 45px rgba(0, 112, 243, 0.15);
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.plan-speed {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-speed span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.plan-features svg {
  color: #00c853;
  flex-shrink: 0;
}

.plan-card .btn {
  width: 100%;
}

/* Registration Form Section */
.register-section {
  padding: 70px 0;
  position: relative;
}

.register-container {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 112, 243, 0.08);
  position: relative;
  overflow: hidden;
}

.form-title {
  text-align: center;
  margin-bottom: 32px;
}

.form-title h3 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media(min-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-full-width {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.12);
}

/* Validation styling */
.form-control:user-valid {
  border-color: #00c853;
}

.form-control:user-invalid {
  border-color: #ef4444;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 40px;
}

select.form-control option {
  background-color: white;
  color: var(--text-primary);
}

.form-submit-btn {
  width: 100%;
  margin-top: 16px;
  font-size: 1.1rem;
  padding: 16px;
}

/* Contact Options Bar */
.contact-channels {
  padding: 40px 0 80px 0;
  text-align: center;
}

.channels-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 28px 36px;
  border-radius: 20px;
  min-width: 240px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.channel-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 112, 243, 0.1);
}

.channel-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.channel-icon.whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
}

.channel-icon.call {
  background: rgba(0, 112, 243, 0.12);
  color: var(--primary);
}

.channel-icon.email {
  background: rgba(0, 180, 216, 0.12);
  color: var(--secondary);
}

.channel-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.channel-value {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* Floating Action Panel (Calls & WA) */
.floating-panel {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-4px);
}

.float-btn.float-wa {
  background: #25d366;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}

.float-btn.float-call {
  background: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 112, 243, 0.35);
}

.float-tooltip {
  position: absolute;
  right: 80px;
  background: #0f172a;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
  right: 74px;
}

/* Dialog / Success Popup */
.success-dialog {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: calc(100% - 40px);
  margin: auto;
  color: var(--text-primary);
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
  outline: none;
}

.success-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px auto;
  border: 2px solid #00c853;
}

.success-dialog h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.success-dialog p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer styling */
footer {
  border-top: 1px solid #e2e8f0;
  padding: 40px 0;
  text-align: center;
  background-color: white;
}

.footer-logo {
  height: 38px;
  margin-bottom: 16px;
}

/* Keyframes and Animations */
@keyframes blink {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Scroll-driven animations */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    
    .reveal-scroll {
      animation: reveal-up auto linear forwards;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .region-badge {
    font-size: 0.78rem;
    padding: 4px 10px;
  }
  .logo img {
    height: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 45px 0 30px 0;
  }
  .register-container {
    padding: 32px 20px;
  }
  .deploy-status-card {
    flex-direction: column;
    text-align: center;
  }
  .floating-panel {
    bottom: 20px;
    right: 20px;
  }
  .float-btn {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
}
