/* ==========================================================================
   GUERRERO SOFTWARE - CORPORATE ENTERPRISE DESIGN SYSTEM (PURE CSS3)
   ========================================================================== */

:root {
  --bg-deep: #070D1E;
  --bg-surface: #0E172E;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(26, 41, 74, 0.85);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(0, 210, 255, 0.4);
  
  --azure-blue: #0078D4;
  --azure-blue-light: #2B88D8;
  --azure-blue-dark: #004E8C;
  --cyan-accent: #00D2FF;
  --cyan-light: #70E1FF;
  --emerald-accent: #10B981;
  --whatsapp-color: #25D366;
  
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-azure: 0 0 25px rgba(0, 120, 212, 0.35);
  --shadow-cyan: 0 0 25px rgba(0, 210, 255, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 120, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0, 210, 255, 0.06) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(7, 13, 30, 0.98), #070D1E);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background: rgba(10, 17, 40, 0.45);
}

.section-title-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 120, 212, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan-accent);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-azure);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--azure-blue) 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--azure-blue-light) 0%, var(--azure-blue) 100%);
  box-shadow: 0 6px 20px rgba(0, 120, 212, 0.6);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2EE06E 0%, #169E8F 100%);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* Gradient Texts */
.gradient-text-azure {
  background: linear-gradient(135deg, #FFFFFF 20%, #38BDF8 60%, #0078D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background-color: rgba(7, 13, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
  background-color: rgba(7, 13, 30, 0.96);
  border-bottom-color: rgba(0, 120, 212, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 17, 40, 0.7);
  font-size: 0.785rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-accent);
  display: inline-block;
  box-shadow: 0 0 6px var(--emerald-accent);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--cyan-accent);
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
}

.mobile-drawer {
  display: none;
  background: rgba(7, 13, 30, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(0, 120, 212, 0.2) 0%, rgba(0, 210, 255, 0.06) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-wrapper {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 120, 212, 0.2);
  margin-bottom: 1.75rem;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-accent);
  box-shadow: 0 0 8px var(--cyan-accent);
}

.hero-title {
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Terminal Window */
.code-terminal {
  text-align: left;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 120, 212, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 120, 212, 0.15);
  margin-bottom: 3.5rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 17, 40, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dot-red { width: 11px; height: 11px; border-radius: 50%; background: #EF4444; }
.dot-yellow { width: 11px; height: 11px; border-radius: 50%; background: #F59E0B; }
.dot-green { width: 11px; height: 11px; border-radius: 50%; background: #10B981; }

.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--cyan-accent);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  background: rgba(6, 11, 25, 0.95);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
  color: #E2E8F0;
  overflow-x: auto;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-templateColumns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.kpi-card {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.kpi-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #FFFFFF 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.kpi-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.kpi-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tech Filter Tabs */
.tech-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tech-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tech-tab-btn.active, .tech-tab-btn:hover {
  background: var(--azure-blue);
  color: #FFFFFF;
  border-color: var(--cyan-accent);
  box-shadow: 0 0 15px rgba(0, 120, 212, 0.4);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.tech-item-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-item-card.hidden {
  display: none;
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-accent);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.85rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.service-card-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--azure-blue), transparent);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 120, 212, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-accent);
  margin-bottom: 1.5rem;
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
}

/* Case Studies */
.case-study-card {
  padding: 2.5rem;
  border-left: 4px solid var(--azure-blue);
  margin-bottom: 2.5rem;
}

.metrics-box {
  background: rgba(6, 11, 25, 0.8);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 1.5rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: center;
}

.metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #38BDF8;
  font-family: var(--font-heading);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tech-tag-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  font-size: 0.785rem;
  font-family: var(--font-mono);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Contact & Maps Layout */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.map-container {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 120, 212, 0.35);
  box-shadow: var(--shadow-md);
}

.map-header {
  padding: 0.75rem 1rem;
  background: rgba(10, 17, 40, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
}

.map-iframe-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  background: #0A1128;
}

.map-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.05) saturate(1.1);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.15rem;
}

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 17, 40, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cyan-accent);
}

.form-select option {
  background: #0E172E;
  color: #FFFFFF;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-tooltip {
  position: relative;
  background: rgba(10, 17, 40, 0.95);
  border: 1px solid rgba(37, 211, 102, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  max-width: 260px;
  font-size: 0.8rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.whatsapp-circle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-circle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-circle-btn svg {
  width: 32px;
  height: 32px;
}

.whatsapp-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: pingSmall 2.5s infinite;
  z-index: -1;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  max-width: 750px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.25rem;
  background: #0B132B;
  border: 1px solid rgba(0, 120, 212, 0.4);
  position: relative;
  border-radius: var(--radius-md);
}

/* Footer */
.site-footer {
  background: #050A17;
  border-top: 1px solid rgba(0, 120, 212, 0.25);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes pingSmall {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Responsive Media Queries */
@media (max-width: 980px) {
  .nav-desktop {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}
