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

:root {
  --violet:     #9B6BFA;
  --blue:       #4B8BFF;
  --bg:         #0C0C20;
  --card:       #141432;
  --text:       #FFFFFF;
  --text-muted: #9898B8;
  --gradient:   linear-gradient(135deg, #9B6BFA, #4B8BFF);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(12, 12, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155, 107, 250, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-links .nav-cta {
  background: var(--gradient);
  color: var(--text);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links .nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   SECTIONS (placeholder height)
   ============================================================ */
section {
  min-height: auto;
}

/* ============================================================
   HERO ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) skewX(-12deg);
  }
  100% {
    transform: translateX(300%) skewX(-12deg);
  }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  text-align: center;
  padding: 0 1.5rem;
}

/* Radial glow — violeta arriba a la derecha */
.hero-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(155, 107, 250, 0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Título */
.hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

/* Subtítulo */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

/* CTA button */
.hero-cta {
  position: relative;
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--gradient);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(155, 107, 250, 0.35);
}

.hero-cta-text {
  position: relative;
  z-index: 1;
}

/* Shimmer sweep */
.hero-cta-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  animation: shimmer 2.8s ease-in-out 1.5s infinite;
}

/* Disclaimer */
.hero-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

/* Scroll indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%       { transform: translateY(7px) rotate(45deg); }
}

.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.4s forwards;
  cursor: pointer;
  text-decoration: none;
}

.hero-scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(152, 152, 184, 0.5);
  border-bottom: 2px solid rgba(152, 152, 184, 0.5);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease-in-out infinite;
  will-change: transform;
}

@media (max-width: 600px) {
  .hero-scroll { display: none; }
}

/* ============================================================
   SHARED SECTION LAYOUT
   ============================================================ */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 3.5rem;
  text-align: center;
}

.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   REVEAL ANIMATIONS — unified system (Intersection Observer)
   ============================================================ */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Initial hidden states — only transform + opacity (GPU-friendly) */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  will-change: transform, opacity;
}

[data-reveal].is-visible {
  animation: revealUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============================================================
   PROBLEMA
   ============================================================ */
#problema {
  min-height: auto;
}

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

.problema-card {
  background: var(--card);
  border: 1px solid rgba(155, 107, 250, 0.15);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.problema-card:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 107, 250, 0.55);
  box-shadow: 0 12px 40px rgba(155, 107, 250, 0.12);
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

/* ============================================================
   REVEAL FROM LEFT / RIGHT
   ============================================================ */
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

[data-reveal-left] {
  opacity: 0;
  transform: translateX(-36px);
  will-change: transform, opacity;
}

[data-reveal-left].is-visible {
  animation: revealLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-reveal-right] {
  opacity: 0;
  transform: translateX(36px);
  will-change: transform, opacity;
}

[data-reveal-right].is-visible {
  animation: revealRight 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============================================================
   SECTION SUBTITLE
   ============================================================ */
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: -2.5rem;
  margin-bottom: 3.5rem;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
#servicios {
  min-height: auto;
}

.servicios-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Wrapper para el borde gradiente en hover */
.servicio-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 2.75rem 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  overflow: hidden;
  /* borde base */
  border: 1px solid rgba(155, 107, 250, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

/* Borde gradiente via pseudo-elemento en hover */
.servicio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.servicio-card:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 48px rgba(155, 107, 250, 0.14);
}

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

/* Número decorativo */
.servicio-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(155, 107, 250, 0.08);
  user-select: none;
  flex-shrink: 0;
  letter-spacing: -0.04em;
  transition: color 0.3s ease;
}

.servicio-card:hover .servicio-num {
  color: rgba(155, 107, 250, 0.18);
}

.servicio-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.5rem;
}

.servicio-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.servicio-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}

.servicio-badge {
  display: inline-block;
  background: rgba(155, 107, 250, 0.15);
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(155, 107, 250, 0.25);
  letter-spacing: 0.01em;
  width: fit-content;
}

@media (max-width: 600px) {
  .servicio-card {
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
  }

  .servicio-num {
    font-size: 4rem;
  }
}

/* ============================================================
   PROCESO
   ============================================================ */
#proceso {
  min-height: auto;
  background: #0A0A1A;
}

/* --- keyframes paso --- */
@keyframes stepAppear {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- keyframes linea horizontal --- */
@keyframes lineGrowH {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* --- keyframes linea vertical --- */
@keyframes lineGrowV {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* TIMELINE contenedor */
.proceso-timeline {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

/* Cada paso ocupa el mismo ancho */
.proceso-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0;
  will-change: transform, opacity;
}

.proceso-step.step-visible {
  animation: stepAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Nodo círculo */
.proceso-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(155, 107, 250, 0.12);
  transition: box-shadow 0.3s ease;
}

.proceso-node span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.proceso-step:hover .proceso-node {
  box-shadow: 0 0 0 10px rgba(155, 107, 250, 0.18);
}

/* Conector horizontal (desktop) */
.proceso-connector-wrap {
  height: 2px;
  flex: 1;
  position: absolute;
  /* empieza justo a la derecha del nodo (28px = radio) */
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  top: 27px; /* mitad de 56px */
  overflow: hidden;
}

/* el último paso no tiene conector */
.proceso-step:last-child .proceso-connector-wrap {
  display: none;
}

.proceso-connector {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 2px;
}

/* Disparo de la línea cuando el timeline es visible */
.proceso-timeline.lines-active .proceso-step:nth-child(1) .proceso-connector {
  animation: lineGrowH 0.5s ease 0.3s forwards;
}
.proceso-timeline.lines-active .proceso-step:nth-child(2) .proceso-connector {
  animation: lineGrowH 0.5s ease 0.75s forwards;
}
.proceso-timeline.lines-active .proceso-step:nth-child(3) .proceso-connector {
  animation: lineGrowH 0.5s ease 1.2s forwards;
}

/* Texto del paso */
.proceso-content {
  margin-top: 1.5rem;
  text-align: center;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.proceso-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.proceso-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   PROCESO — MOBILE (vertical timeline)
   ============================================================ */
@media (max-width: 768px) {
  .proceso-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 1rem;
  }

  .proceso-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    flex: none;
    width: 100%;
    padding-bottom: 2.5rem;
  }

  /* Conector vertical */
  .proceso-connector-wrap {
    position: absolute;
    left: 27px; /* centro del nodo (56/2 - 1px para centrar) */
    top: 56px;
    bottom: 0;
    width: 2px;
    height: auto;
    right: auto;
    overflow: hidden;
  }

  .proceso-step:last-child {
    padding-bottom: 0;
  }

  .proceso-connector {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform-origin: top center;
    transform: scaleY(0);
  }

  .proceso-timeline.lines-active .proceso-step:nth-child(1) .proceso-connector {
    animation: lineGrowV 0.5s ease 0.3s forwards;
  }
  .proceso-timeline.lines-active .proceso-step:nth-child(2) .proceso-connector {
    animation: lineGrowV 0.5s ease 0.75s forwards;
  }
  .proceso-timeline.lines-active .proceso-step:nth-child(3) .proceso-connector {
    animation: lineGrowV 0.5s ease 1.2s forwards;
  }

  .proceso-content {
    text-align: left;
    margin-top: 0.65rem;
    padding: 0;
  }
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
#testimonios {
  min-height: auto;
  background: #0A0A1A;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.testimonio-card {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  /* Borde izquierdo grueso con gradiente via pseudo-elemento */
  border: 1px solid rgba(155, 107, 250, 0.1);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Borde izquierdo gradiente */
.testimonio-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient);
  border-radius: 4px 0 0 4px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.testimonio-card:hover {
  border-color: rgba(155, 107, 250, 0.25);
  box-shadow: 0 12px 40px rgba(155, 107, 250, 0.1);
}

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

/* Comillas decorativas */
.testimonio-quote {
  font-size: 5rem;
  line-height: 0.6;
  font-family: Georgia, serif;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.35;
  user-select: none;
  display: block;
  margin-bottom: -0.5rem;
}

.testimonio-cita {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonio-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.testimonio-nombre {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

/* ============================================================
   DEMO
   ============================================================ */
#demo {
  min-height: auto;
}

.demo-wrapper {
  display: flex;
  justify-content: center;
}

/* Ventana de chat */
.demo-chat-window {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid rgba(155, 107, 250, 0.2);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* Cabecera */
.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(155, 107, 250, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.demo-header-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  flex-shrink: 0;
}

.demo-header-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.demo-header-status {
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 500;
}

/* Área de mensajes */
.demo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 280px;
  max-height: 340px;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 107, 250, 0.2) transparent;
}

.demo-messages::-webkit-scrollbar {
  width: 4px;
}
.demo-messages::-webkit-scrollbar-thumb {
  background: rgba(155, 107, 250, 0.25);
  border-radius: 4px;
}

/* Animación de entrada de mensajes */
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-message {
  max-width: 80%;
  animation: msgIn 0.3s ease forwards;
}

.demo-message p {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* Mensaje IA — izquierda */
.demo-message--ai {
  align-self: flex-start;
}

.demo-message--ai p {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

/* Mensaje usuario — derecha */
.demo-message--user {
  align-self: flex-end;
}

.demo-message--user p {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.demo-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 1.25rem 0;
}

.demo-typing[hidden] {
  display: none;
}

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

.demo-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  animation: typingBounce 1.2s ease infinite;
}
.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Sugerencias */
.demo-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0;
}

.demo-suggestion {
  background: transparent;
  border: 1px solid rgba(155, 107, 250, 0.3);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: 'Inter', sans-serif;
}

.demo-suggestion:hover {
  border-color: var(--violet);
  color: var(--text);
  background: rgba(155, 107, 250, 0.08);
}

/* Input area */
.demo-input-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(155, 107, 250, 0.1);
  margin-top: 0.75rem;
}

.demo-input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(155, 107, 250, 0.25);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

.demo-input::placeholder {
  color: var(--text-muted);
}

.demo-input:focus {
  border-color: rgba(155, 107, 250, 0.6);
}

.demo-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.demo-send:hover {
  opacity: 0.88;
  transform: scale(1.05);
}

.demo-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 500px) {
  .demo-chat-window {
    border-radius: 14px;
  }

  .demo-suggestions {
    gap: 0.4rem;
  }

  .demo-suggestion {
    font-size: 0.74rem;
  }
}

/* ============================================================
   CONTACTO
   ============================================================ */
#contacto {
  background: #0A0A1A;
}

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Columna izquierda */
.contacto-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.contacto-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.contacto-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contacto-puntos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.contacto-puntos li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contacto-puntos li::before {
  content: '';
}

/* Formulario */
.contacto-form-wrap {
  position: relative;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: 1px solid rgba(155, 107, 250, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(152, 152, 184, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(155, 107, 250, 0.7);
  box-shadow: 0 0 0 3px rgba(155, 107, 250, 0.1);
}

/* Botón submit con shimmer reutilizado del hero */
.form-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  padding: 0.95rem 2rem;
  background: var(--gradient);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(155, 107, 250, 0.35);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-submit-text {
  position: relative;
  z-index: 1;
}

/* Reutiliza el shimmer del hero */
.form-submit .hero-cta-shimmer {
  animation: shimmer 3s ease-in-out 2s infinite;
}

/* Mensaje de éxito */
.form-success {
  position: absolute;
  inset: 0;
  background: var(--card);
  border: 1px solid rgba(155, 107, 250, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeUp 0.5s ease forwards;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.form-success p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

@media (max-width: 768px) {
  .contacto-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #080818;
  min-height: auto;
  border-top: 1px solid rgba(155, 107, 250, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(152, 152, 184, 0.5);
}

@media (max-width: 640px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ============================================================
   HERO RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .hero-glow {
    width: 400px;
    height: 400px;
    top: -5%;
    right: -20%;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(12, 12, 32, 0.97);
    border-top: 1px solid rgba(155, 107, 250, 0.1);
    padding: 1rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }

  .nav-links .nav-cta {
    display: inline-block;
    margin: 0.25rem auto;
  }

  .nav-toggle {
    display: flex;
  }
}
