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

/* BRAND FONTS */
@font-face {
  font-family: 'Ubuntu-Brand';
  src: url('Archivos_OF_Software/Fuentes/Ubuntu-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Antipasto-Brand';
  src: url('Archivos_OF_Software/Fuentes/Antipasto_extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

/* DESIGN SYSTEM TOKENS */
:root {
  --color-primary: #4AC4FA;       /* CMYK: 71, 23, 2, 0 */
  --color-secondary: #133E64;     /* CMYK: 89, 64, 42, 32 */
  
  /* Color Shades & Neutrals */
  --bg-dark-base: #060B11;
  --bg-dark-section: #0B121A;
  --bg-card: rgba(19, 34, 51, 0.4);
  --bg-card-hover: rgba(26, 47, 71, 0.6);
  --border-color: rgba(74, 196, 250, 0.15);
  --border-color-active: rgba(74, 196, 250, 0.5);
  
  --text-main: #F3F5F7;
  --text-muted: #8B9CAE;
  --text-highlight: #4AC4FA;
  
  /* Font Families */
  --font-heading: 'Ubuntu-Brand', 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-slogan: 'Antipasto-Brand', sans-serif;
  
  /* Gradients */
  --grad-hero: radial-gradient(circle at 50% -20%, rgba(74, 196, 250, 0.18), transparent 70%);
  --grad-card: linear-gradient(135deg, rgba(19, 34, 51, 0.6) 0%, rgba(10, 18, 27, 0.8) 100%);
  --grad-primary: linear-gradient(135deg, #4AC4FA 0%, #133E64 100%);
  --grad-text: linear-gradient(135deg, #FFF 30%, #4AC4FA 100%);
  
  /* Blurs & Shadows */
  --blur-nav: blur(16px);
  --blur-card: blur(8px);
  --glow-shadow: 0 0 25px rgba(74, 196, 250, 0.25);
  --glow-shadow-small: 0 0 15px rgba(74, 196, 250, 0.15);
  
  /* Spacing & Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark-base);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* SECTIONS COMMON */
section {
  padding: 8rem 2rem;
  position: relative;
}

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

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  z-index: 10;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-subtitle {
  font-family: var(--font-slogan);
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 200;
  letter-spacing: 0.1em;
}

.section-desc {
  max-width: 600px;
  margin: 1rem auto 0 auto;
  font-size: 1.1rem;
}

/* GLOW EFFECT BACKGROUND */
.glow-spot {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 196, 250, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--bg-dark-base);
  border: 1px solid var(--color-primary);
  box-shadow: var(--glow-shadow-small);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-shadow);
  background: #FFF;
  border-color: #FFF;
}

.btn-secondary {
  background: rgba(19, 62, 100, 0.3);
  color: var(--color-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-card);
}

.btn-secondary:hover {
  background: rgba(74, 196, 250, 0.15);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

/* NAVIGATION HEADER */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header-nav.scrolled {
  background: rgba(6, 11, 17, 0.75);
  backdrop-filter: var(--blur-nav);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 2rem;
  transition: var(--transition-smooth);
}

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

.logo-img {
  height: 45px;
  width: auto;
}

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

.nav-item a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-item a:hover {
  color: var(--text-main);
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  position: relative;
  padding-top: 8rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 80%, var(--bg-dark-base) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-slogan);
  font-size: 2.2rem;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-weight: 200;
  text-transform: lowercase;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFF 40%, #A2E1FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
}

/* Floating Terminal Code Mockup */
.hero-visual {
  position: relative;
  z-index: 10;
}

.terminal-mockup {
  background: rgba(10, 18, 27, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), var(--glow-shadow-small);
  backdrop-filter: var(--blur-card);
  font-family: 'Consolas', 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #A9B2C3;
  width: 100%;
}

.terminal-header {
  background: rgba(19, 34, 51, 0.8);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(74, 196, 250, 0.1);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-title {
  margin-left: 0.5rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  line-height: 1.5;
}

.terminal-line {
  margin-bottom: 0.5rem;
  display: flex;
}

.terminal-num {
  color: #3B536D;
  margin-right: 1.5rem;
  user-select: none;
  width: 15px;
  text-align: right;
}

.terminal-code {
  white-space: pre-wrap;
}

.keyword { color: #F07178; }
.class-name { color: #F3B73E; }
.string-val { color: #C3E88D; }
.function { color: #82AAFF; }
.comment { color: #546E7A; font-style: italic; }
.cyan { color: #4AC4FA; }

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(19, 34, 51, 0.8);
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: var(--blur-card);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: float 6s ease-in-out infinite;
  z-index: 12;
}

.badge-1 {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: -25px;
  left: 20px;
  animation-delay: 3s;
}

.badge-icon {
  background: rgba(74, 196, 250, 0.1);
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.badge-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* STATS BAR */
.stats {
  background: var(--bg-dark-section);
  padding: 4rem 2rem;
  border-y: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-color), transparent);
}

.stat-number {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* SERVICES SECTION */
.services {
  background: var(--bg-dark-base);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: var(--blur-card);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-color-active);
  box-shadow: var(--glow-shadow-small);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  background: rgba(74, 196, 250, 0.06);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: var(--bg-dark-base);
  box-shadow: var(--glow-shadow-small);
  transform: rotate(5deg);
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
}

.service-link span {
  transition: var(--transition-fast);
}

.service-card:hover .service-link span {
  transform: translateX(5px);
}

/* INTERACTIVE ESTIMATOR (COTIZADOR) */
.estimator {
  background: var(--bg-dark-section);
  border-y: 1px solid var(--border-color);
}

.estimator-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  background: rgba(10, 18, 27, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3.5rem;
  backdrop-filter: var(--blur-card);
}

.estimator-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.estimator-group {
  margin-bottom: 2.5rem;
}

.estimator-group-title {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  display: block;
  font-weight: 500;
  color: var(--color-primary);
}

/* Type selectors (Radio buttons) */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.type-option {
  position: relative;
}

.type-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.type-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: rgba(19, 34, 51, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.type-label i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.type-label span {
  font-size: 0.9rem;
  font-weight: 500;
}

.type-option input:checked + .type-label {
  border-color: var(--color-primary);
  background: rgba(74, 196, 250, 0.1);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(74, 196, 250, 0.15);
}

.type-option input:checked + .type-label i {
  color: var(--color-primary);
  transform: scale(1.1);
}

/* Modules checkboxes */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.module-option {
  position: relative;
}

.module-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.module-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(19, 34, 51, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.module-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  background: var(--bg-dark-base);
}

.module-checkbox-custom i {
  font-size: 0.65rem;
  color: var(--bg-dark-base);
  opacity: 0;
  transition: var(--transition-fast);
}

.module-text {
  font-size: 0.9rem;
}

.module-option input:checked + .module-label {
  border-color: var(--color-primary);
  background: rgba(74, 196, 250, 0.08);
}

.module-option input:checked + .module-label .module-checkbox-custom {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.module-option input:checked + .module-label .module-checkbox-custom i {
  opacity: 1;
}

/* Module configure button (opens the submodules selection modal) */
.module-option.has-submodules .module-label {
  padding-right: 3rem;
}

.module-configure-btn {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 196, 250, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2;
}

.module-configure-btn:hover {
  color: var(--color-primary);
  border-color: var(--border-color-active);
}

.module-option input:checked ~ .module-configure-btn {
  color: var(--color-primary);
  border-color: var(--border-color-active);
  background: rgba(74, 196, 250, 0.18);
}

/* Submodules Selection Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 12, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

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

.modal-box {
  background: var(--bg-dark-section);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--glow-shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-main);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  border-color: var(--border-color-active);
}

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

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.submodule-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(19, 34, 51, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.submodule-row:hover {
  border-color: var(--border-color-active);
}

.submodule-row.checked {
  border-color: var(--color-primary);
  background: rgba(74, 196, 250, 0.08);
}

.submodule-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.submodule-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-main);
}

.submodule-price {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.modal-footer-total {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .modal-box {
    padding: 1.5rem;
  }
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Range input style */
.range-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.range-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(74, 196, 250, 0.15);
  outline: none;
  transition: opacity .2s;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--glow-shadow-small);
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #FFF;
}

.range-value {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  min-width: 60px;
  text-align: right;
}

/* Estimator Sidebar / Results Card */
.estimator-result-card {
  background: var(--grad-card);
  border: 1px solid var(--border-color-active);
  border-radius: 16px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--glow-shadow-small);
  position: relative;
  overflow: hidden;
}

.estimator-result-card::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74, 196, 250, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.result-title {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.price-display {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  color: #10B981; /* Premium Green */
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.time-display {
  font-size: 1.1rem;
  color: var(--color-primary);
}

.result-summary-list {
  border-y: 1px solid rgba(74, 196, 250, 0.1);
  padding: 1.5rem 0;
  margin-bottom: 2.5rem;
}

.result-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.result-summary-item span:first-child {
  color: var(--text-muted);
}

.result-summary-item span:last-child {
  color: var(--text-main);
  font-weight: 500;
}

.result-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
}

/* TIMELINE METHODOLOGY */
.methodology {
  background: var(--bg-dark-base);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 2rem 0;
  position: relative;
  width: 50%;
}

.timeline-item-left {
  left: 0;
  padding-right: 3rem;
}

.timeline-item-right {
  left: 50%;
  padding-left: 3rem;
}

.timeline-badge {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-dark-base);
  border: 3px solid var(--color-primary);
  top: 2.5rem;
  left: 100%;
  margin-left: -15px;
  z-index: 10;
  transition: var(--transition-smooth);
}

.timeline-item-right .timeline-badge {
  left: 0;
  margin-left: -15px;
}

.timeline-item:hover .timeline-badge {
  background: var(--color-primary);
  box-shadow: var(--glow-shadow);
  transform: scale(1.25);
}

.timeline-content {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  border-color: var(--border-color-active);
  box-shadow: var(--glow-shadow-small);
  transform: translateY(-5px);
}

.timeline-step {
  font-family: var(--font-slogan);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
  display: block;
}

.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.timeline-desc {
  font-size: 0.95rem;
}

/* FAQ & CONTACT */
.contact-faq {
  background: var(--bg-dark-section);
  border-top: 1px solid var(--border-color);
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

/* Accordion (FAQ) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(19, 34, 51, 0.2);
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.faq-question i {
  font-size: 0.9rem;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Active FAQ states */
.faq-item.active {
  border-color: var(--border-color-active);
  background: rgba(19, 34, 51, 0.4);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

/* Contact Form */
.contact-form-container {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: var(--blur-card);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(6, 11, 17, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(74, 196, 250, 0.15);
}

.form-label {
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
  transform-origin: left top;
}

/* Floating label effect */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-1.6rem) scale(0.85);
  color: var(--color-primary);
  font-weight: 500;
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  border: none;
  padding: 1.1rem;
  font-weight: 600;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

/* FOOTER */
.footer {
  background: #03060a;
  border-top: 1px solid var(--border-color);
  padding: 5rem 2rem 2.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(74, 196, 250, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(19, 34, 51, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--color-primary);
  color: var(--bg-dark-base);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--glow-shadow-small);
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .estimator-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem;
  }
  
  .contact-faq-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 6rem 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: rgba(6, 11, 17, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 4rem 2rem;
    transition: var(--transition-smooth);
    z-index: 999;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .nav-item a {
    font-size: 1.3rem;
    display: block;
    padding: 1rem;
  }
  
  .nav-btn {
    width: 100%;
    margin-top: 2rem;
  }
  
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 3rem;
    padding-right: 0;
  }
  
  .timeline-item-left {
    left: 0;
  }
  
  .timeline-item-right {
    left: 0;
  }
  
  .timeline-badge {
    left: 20px !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .type-grid {
    grid-template-columns: 1fr;
  }
  
  .modules-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .price-display {
    font-size: 2.2rem;
  }
  
  .range-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  
  .range-value {
    text-align: left;
  }
}

/* PORTFOLIO SECTION */
.portfolio {
  background: var(--bg-dark-base);
  border-top: 1px solid var(--border-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.portfolio-item {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  backdrop-filter: var(--blur-card);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-active);
  box-shadow: var(--glow-shadow-small);
}

.portfolio-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #060b11;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.portfolio-item-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.portfolio-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.portfolio-tags span {
  font-size: 0.75rem;
  background: rgba(74, 196, 250, 0.08);
  color: var(--color-primary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   DUAL-CURRENCY PRICE DISPLAY (CALCULATOR)
   ========================================= */
#estimated-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.price-usd {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #10b981, #4ac4fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.price-usd small {
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981, #4ac4fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-mxn {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
