/* ==========================================================================
   CONVERSIA BY DITESA - DESIGN SYSTEM & TERMINAL THEME
   Palette: Dark Navy (#030712, #060e22, #0b1739), Crisp White (#ffffff),
   Electric Blue accents (#3b82f6, #60a5fa, #2563eb), Cyan highlights (#38bdf8).
   ========================================================================== */

:root {
  --bg-deep-navy: #030712;
  --bg-navy-surface: #070e24;
  --bg-navy-card: rgba(11, 23, 57, 0.55);
  --bg-navy-card-hover: rgba(16, 32, 79, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.35);
  --border-card: rgba(99, 102, 241, 0.15);
  
  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  
  --accent-blue: #3b82f6;
  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-electric: #2563eb;
  
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --glow-radial: radial-gradient(circle at 50% 30%, rgba(30, 64, 175, 0.28) 0%, rgba(3, 7, 18, 0) 70%);
}

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

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

body {
  background-color: var(--bg-deep-navy);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Viewport-fixed ambient gradient on its own layer (background-attachment: fixed repaints the page on every scroll) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 60%, rgba(29, 78, 216, 0.08), transparent 80%);
}

/* Selection */
::selection {
  background: rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

/* Global Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   NAVIGATION BAR (INSPIRED BY BETOMORROW)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  padding: 0.85rem 2rem;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Ditesa Brand Logo */
.brand-ditesa {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.brand-ditesa-img {
  height: 22px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.brand-ditesa:hover .brand-ditesa-img {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Center Pill Nav Bar */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 1.6rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link.active {
  color: var(--text-white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

/* Call To Action: Burbuja Transparente Reflejante (Reflective Bubble Button) */
.btn-bubble-reflective {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  text-decoration: none;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(59, 130, 246, 0.25);
}

/* Upper Specular Light Reflection (Bubble Sheen) */
.btn-bubble-reflective::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 15%;
  right: 15%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 9999px 9999px 0 0;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* Light sweep animation on hover */
.btn-bubble-reflective::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: rotate(25deg);
  transition: 0.75s ease;
  pointer-events: none;
}

.btn-bubble-reflective:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.7),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(37, 99, 235, 0.35),
    0 0 20px rgba(59, 130, 246, 0.45);
}

.btn-bubble-reflective:hover::after {
  left: 130%;
}

.btn-bubble-reflective:active {
  transform: translateY(1px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   HERO SECTION - REAL-TIME CODING CONSOLE & LOGO EMERGENCE
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}

/* Ambient Subtle Glow Behind Hero (Restrained, elegant depth) */
.hero-ambient-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 480px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(30, 58, 138, 0.05) 50%, rgba(3, 7, 18, 0) 75%);
  pointer-events: none;
  z-index: 1;
  filter: blur(50px);
}

/* Background Terminal / Code Editor Container - Clean & Minimalist */
.terminal-background-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  background: #030712;
  opacity: 1;
}

/* Vignette / Clean Subtle Depth */
.terminal-background-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(6, 12, 26, 0.35) 0%, rgba(3, 7, 18, 0.88) 70%, #030712 100%);
  pointer-events: none;
  z-index: 2;
}

/* Scanline removed for clean, modern aesthetic without retro distraction */
.terminal-background-layer::after {
  display: none;
}

/* Terminal Window Mockup Frame */
.terminal-window {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* Terminal Header Bar (Minimal Clean Frame) */
.terminal-header {
  height: 38px;
  background: rgba(6, 11, 22, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  user-select: none;
  z-index: 4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.65;
}

.terminal-dot.close { 
  background: #ef4444; 
}
.terminal-dot.minimize { 
  background: #f59e0b; 
}
.terminal-dot.maximize { 
  background: #10b981; 
}

.terminal-title {
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.terminal-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  padding: 2px 8px;
  border-radius: 9999px;
}

.terminal-status-dot {
  width: 5px;
  height: 5px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Terminal Code Area with Line Numbers - Clean & Non-distracting */
.terminal-body {
  flex: 1;
  display: flex;
  padding: 1.5rem 1.5rem;
  overflow: hidden;
  position: relative;
  filter: none;
  opacity: 0.75;
  transition: opacity 0.5s ease;
}

.terminal-line-numbers {
  display: flex;
  flex-direction: column;
  text-align: right;
  padding-right: 1.5rem;
  color: rgba(148, 163, 184, 0.25);
  user-select: none;
  font-size: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-lines-stream {
  padding-left: 1.5rem;
  flex: 1;
  white-space: pre-wrap;
  word-break: break-all;
  color: #cbd5e1;
  overflow-y: hidden;
}

/* Code Syntax Highlighting colors */
.syn-kw { color: #f472b6; font-weight: 500; }     /* let, const, import, async, return */
.syn-fn { color: #60a5fa; }                       /* console.log, processIntent */
.syn-var { color: #93c5fd; }                      /* res, agent, city */
.syn-prop { color: #7dd3fc; }                     /* .name, .country, .temp */
.syn-str { color: #86efac; }                      /* "conversia", 'ready' */
.syn-num { color: #fca5a5; }                      /* 4.2, 0.15 */
.syn-com { color: #475569; font-style: italic; }  /* comments */
.syn-ai { color: #c084fc; font-weight: 600; }     /* [CONVERSIA ENGINE] */

/* Blinking Cursor in Terminal */
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background-color: var(--accent-cyan);
  vertical-align: -2px;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ==========================================================================
   FOREGROUND HERO CONTENT & CONVERSIA LOGO EMERGENCE
   ========================================================================== */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Brand Launch Pill / Category Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(13, 23, 44, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.42rem 1.3rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #93c5fd;
  margin: 0 auto 2.2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 25px rgba(37, 99, 235, 0.15);
  animation: fadeInDown 0.8s ease-out forwards;
}

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

/* The Conversia Logo Container - Clean, Non-Shiny, Sharp Geometric Typography */
.conversia-hero-logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto 2.5rem;
  user-select: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Prompt Symbol > _ (Clean white, no diffuse glow) */
.conversia-prompt-symbol {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.15rem;
  margin-bottom: 0.1rem;
  text-shadow: none;
}

/* ==========================================================================
   HERO BOOT ANIMATION & AI SPEECH BUBBLE
   ========================================================================== */

/* ==========================================================================
   CUADRO AZUL OSCURO (HERO INFO BOX — MINIMALISTA & EDITORIAL)
   ========================================================================== */
.hero-dark-box {
  position: relative;
  max-width: 800px;
  margin: 0 auto 2.4rem;
  padding: 2.6rem 3.2rem;
  background: #091224;
  background: linear-gradient(180deg, rgba(13, 23, 44, 0.94) 0%, rgba(6, 12, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 
    0 30px 80px -20px rgba(0, 0, 0, 0.95),
    0 0 50px -10px rgba(10, 25, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  opacity: 0;
  transform: translateY(65px);
  will-change: transform, opacity;
}

.hero-dark-box.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.darkbox-text {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: clamp(1.04rem, 1.65vw, 1.18rem);
  font-weight: 380;
  color: #cbd5e1;
  line-height: 1.82;
  letter-spacing: -0.012em;
  margin-bottom: 1.6rem;
}

.darkbox-text strong {
  color: #ffffff;
  font-weight: 600;
  text-shadow: none;
}

.darkbox-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.darkbox-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 450;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 0.36rem 1rem;
  letter-spacing: 0.035em;
  transition: all 0.25s ease;
}

.darkbox-tag:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Hero CTA Group & Console Pill */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(45px);
  will-change: transform, opacity;
}

.hero-cta-group.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.hero-cta-group .btn-bubble-reflective {
  padding: 0.85rem 2.25rem;
  font-size: 1rem;
}

.btn-secondary-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-secondary-ghost:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section-padding {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4.5rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* About Visual Animation (3D AI Solution Object) */
.about-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.about-video-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28) 0%, rgba(56, 189, 248, 0.12) 40%, rgba(3, 7, 18, 0) 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.about-soluciones-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
  pointer-events: none;
  border: none;
  outline: none;
  background: transparent;
  filter: contrast(1.12) brightness(0.98);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0) 78%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0) 78%);
  transform: translateZ(0);
  will-change: transform;
}

/* ==========================================================================
   EXPERTISE / SERVICIOS SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: var(--bg-navy-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(37, 99, 235, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.08);
  background: rgba(37, 99, 235, 0.25);
  color: #ffffff;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-bottom: 0.6rem;
  display: block;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--text-white);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-card-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   BLOQUE "PRUEBA NUESTRA DEMO" (Sección intermedia sobria, no un hero)
   - Contenedor minimalista: bg 2%, border 1px 8%, radius 16px, sin sombras ni glow
   - 2 columnas centradas verticalmente: 60% texto / 40% acción
   - Botón sólido acento #4F7DF3 con hover suave (arrow translate +4px)
   ========================================================================== */
.demo-cta-box-wrapper {
  margin-top: 3.5rem;
  width: 100%;
}

.demo-cta-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3.5rem 3rem; /* 56px arriba y abajo */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

/* Quitar cualquier línea superior brillante y glow */
.demo-cta-card::before {
  display: none !important;
}

/* Columna Izquierda: ~60% */
.demo-cta-content {
  flex: 0 1 58%;
  max-width: 580px;
}

/* Etiqueta tech chip idéntica al resto del sitio */
.demo-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  color: #4F7DF3;
  background: rgba(79, 125, 243, 0.08);
  border: 1px solid rgba(79, 125, 243, 0.3);
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem; /* 16px de separación con el título */
}

.demo-cta-badge .ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #4F7DF3;
}

/* Título de sección (no de hero) */
.demo-cta-title {
  font-size: clamp(2rem, 2.5vw, 2.35rem); /* ~36–40px en escritorio */
  font-weight: 600;
  color: #ffffff;
  line-height: 1.22;
  margin-bottom: 1rem; /* 16px de separación con el párrafo */
  letter-spacing: -0.02em;
}

/* Párrafo descriptivo */
.demo-cta-desc {
  font-size: 16.5px;
  color: #9AA3B5;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 0;
}

/* Columna Derecha: ~40% (Botón + Nota apilados a la izquierda) */
.demo-cta-btn-wrap {
  flex: 0 1 42%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px; /* 12px de separación */
}

/* Botón plano y sobrio en color de acento (#4F7DF3) */
.demo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #4F7DF3;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15.5px;
  padding: 0.85rem 1.65rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 200ms ease, transform 200ms ease, border-color 200ms ease;
  outline: none;
}

.demo-cta-btn .btn-arrow {
  display: inline-block;
  font-family: inherit;
  font-size: 1.1em;
  line-height: 1;
  transition: transform 200ms ease;
}

.demo-cta-btn:hover {
  background-color: #638ef6;
  border-color: rgba(255, 255, 255, 0.25);
}

.demo-cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.demo-cta-btn:active {
  transform: scale(0.98);
}

.demo-cta-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Nota monoespaciada a la izquierda */
.demo-cta-footnote {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  color: rgba(154, 163, 181, 0.5); /* gris al 50% */
  line-height: 1.45;
  max-width: 320px;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .demo-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.75rem;
    gap: 1.75rem;
  }
  .demo-cta-content {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .demo-cta-title {
    font-size: 1.75rem;
  }
  .demo-cta-btn-wrap {
    flex: 1 1 100%;
    width: 100%;
    gap: 12px;
  }
  .demo-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .demo-cta-footnote {
    max-width: 100%;
  }
}

/* ==========================================================================
   SOLUCIONES CON INTELIGENCIA ARTIFICIAL (Exactamente 6 Soluciones)
   ========================================================================== */
.solutions-six-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.solution-item-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.solution-item-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(37, 99, 235, 0.2);
}

.solution-pending-card {
  border-color: rgba(245, 158, 11, 0.28) !important;
  background: linear-gradient(180deg, rgba(20, 16, 8, 0.4) 0%, rgba(13, 23, 44, 0.5) 100%) !important;
}

.solution-pending-card:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.15) !important;
}

.solution-pending-banner {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 9px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.06em;
}

.pending-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: pendingPulse 1.8s infinite;
}

@keyframes pendingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.tag-amber {
  color: #fbbf24 !important;
}

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

@media (max-width: 640px) {
  .solutions-six-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CÓMO CONVERSIA TE PUEDE AYUDAR (Diagnóstico Interactivo 2 Cuadros)
   ========================================================================== */
.consultant-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: stretch;
}

.consultant-card {
  background: #091224;
  background: linear-gradient(180deg, rgba(13, 23, 44, 0.95) 0%, rgba(6, 12, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 40px -10px rgba(10, 25, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease;
}

.consultant-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
}

/* Card Header */
.consultant-card-header {
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.consultant-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.08em;
}

.consultant-step-badge .step-num {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #38bdf8;
  padding: 1px 7px;
  border-radius: 4px;
}

.consultant-status-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.consultant-card-body {
  padding: 2rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.consultant-prompt-heading {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.consultant-prompt-subtext {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.consultant-textarea-wrap {
  width: 100%;
  margin-bottom: 1.5rem;
}

.consultant-textarea {
  width: 100%;
  background: rgba(4, 9, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: #ffffff;
  line-height: 1.6;
  resize: vertical;
  min-height: 110px;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.consultant-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  background: rgba(6, 13, 28, 0.95);
}

.consultant-textarea::placeholder {
  color: #64748b;
  font-size: 0.92rem;
}

/* Chips Section */
.consultant-chips-section {
  margin-bottom: 1.75rem;
}

.chips-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.consultant-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.consultant-chip-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 0.38rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.consultant-chip-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.consultant-chip-btn:active {
  transform: translateY(0);
}

.consultant-action-wrap {
  margin-top: auto;
}

.consultant-submit-button {
  width: 100%;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.96rem;
  cursor: pointer;
}

/* Cuadro 2: Robot Card */
.robot-header-bar {
  background: rgba(6, 13, 28, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.robot-avatar-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.robot-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(56, 189, 248, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  position: relative;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
}

.robot-live-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #091224;
  box-shadow: 0 0 8px #10b981;
}

.robot-identity-text {
  display: flex;
  flex-direction: column;
}

.robot-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.robot-status-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #10b981;
  letter-spacing: 0.02em;
}

.robot-ai-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.08em;
}

.consultant-robot-card-body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.robot-chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
  min-height: 280px;
}

.robot-bubble-msg {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
  position: relative;
  backdrop-filter: blur(10px);
}

.welcome-msg {
  border-left: 3px solid #38bdf8;
}

.bubble-header-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.robot-bubble-msg p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Typing Indicator Animation */
.robot-typing-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: fit-content;
}

.typing-dots-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot-bounce {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  animation: typingBounce 1.3s infinite ease-in-out;
}

.dot-bounce:nth-child(2) { animation-delay: 0.2s; }
.dot-bounce:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.typing-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* Formatted AI Response Bubble */
.robot-response-card {
  background: rgba(13, 27, 56, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-left: 3px solid #22c55e;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.response-header-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.08em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.response-diagnosis {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

.response-architecture {
  background: rgba(6, 12, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.65;
}

.response-architecture strong {
  color: #38bdf8;
}

.response-impact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
}

.response-hook {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
}

/* Call to Action Container inside Robot Box */
.robot-cta-container {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.robot-cta-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(13, 23, 44, 0.4) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.robot-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cta-headline {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.cta-subtext {
  font-size: 0.78rem;
  color: #94a3b8;
}

.robot-cta-call-btn {
  padding: 0.75rem 1.35rem;
  font-size: 0.86rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .consultant-split-grid {
    grid-template-columns: 1fr;
  }
  .robot-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .robot-cta-call-btn {
    width: 100%;
    justify-content: center;
  }
}

.loading-spin {
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(9, 17, 43, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.active {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(14, 25, 61, 0.5);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.75rem 1.5rem;
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */
.contact-wrapper {
  background: linear-gradient(180deg, rgba(8, 16, 40, 0.8) 0%, rgba(4, 9, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.contact-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.booking-shortcut-box {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(30, 58, 138, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.booking-shortcut-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.booking-shortcut-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Form Styles */

/* Honeypot anti-spam field: out of the layout and invisible, but still submitted by bots */
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-white);
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(3, 7, 18, 0.85);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-dim);
}

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

.form-select option {
  background: #090e21;
  color: #ffffff;
}

/* Privacy consent block (spans every column in both the contact grid and the modal stack) */
.form-consent {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-consent-info {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.form-consent-info strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.form-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-consent-check input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.form-consent a,
.footer-legal-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-link:hover,
.form-consent a:hover {
  color: var(--text-white);
}

.form-submit-btn {
  grid-column: span 2;
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.95rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #02050e;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-system-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--text-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   MODAL: CALENDAR / AGENDAR LLAMADA
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  /* The window centers itself with margin: auto; when it is taller than the screen it stays
     top-aligned and the overlay scrolls (align-items: center would cut off both ends) */
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #080f28;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  margin: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(37, 99, 235, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
  
  .nav-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem;
  }
  
  .hero-section {
    padding-top: 6rem;
  }
  
  .conversia-prompt-symbol {
    font-size: 2.75rem;
    margin-left: 0;
  }
  
  

  .hero-dark-box {
    padding: 1.4rem 1.4rem;
    margin-bottom: 2rem;
    border-radius: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .form-submit-btn {
    grid-column: span 1;
  }
}

/* ==========================================================================
   LEGAL PAGES (privacidad.html)
   ========================================================================== */
.legal-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-back-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-back-link:hover {
  color: var(--text-white);
}

.legal-page {
  max-width: 780px;
}

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.35rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.75rem;
  color: var(--text-white);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-page p + p {
  margin-top: 0.85rem;
}

.legal-page ul {
  margin: 0.75rem 0 0.85rem 1.25rem;
}

.legal-page strong {
  color: var(--text-primary);
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.legal-page .legal-draft-banner {
  margin-bottom: 2rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
  font-size: 0.85rem;
}
