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

:root {
  --primary: #7B61FF;
  --primary-dark: #5A44D1;
  --secondary: #00C2C7;
  --accent-blue: #00A8FF;
  --dark: #061826;
  --gray: #1E2A32;
  --white: #FFFFFF;
  --text: #D1D1E0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

/* Visible solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: var(--font);
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(123, 97, 255, 0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 97, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(0, 194, 199, 0.3);
}
.btn-secondary:hover {
  background: #00b3b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 194, 199, 0.5);
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  color: var(--white);
  border: none;
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
  transition: all 0.4s ease;
  animation: pulse-glow 2s ease-in-out infinite;
}
.btn-glow:hover {
  box-shadow: 0 0 40px rgba(0, 168, 255, 0.7);
  transform: translateY(-2px) scale(1.02);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 168, 255, 0.3); }
  50% { box-shadow: 0 0 35px rgba(0, 168, 255, 0.6); }
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* ---------- HEADER ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 0;
  z-index: 1000;
  background: rgba(6, 24, 38, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
}
.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-links .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 4px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray) 50%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 194, 199, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: grid;
  /* minmax(0,…) evita que el ancho del arte ASCII estire la columna. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-text {
  text-align: left;
}
.hero-text h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-text h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.hero-buttons .btn {
  font-size: 0.95rem;
  padding: 12px 28px;
}

.code-window {
  background: #1E1E2E;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.code-window:hover {
  transform: scale(1.01);
}

.window-bar {
  background: #2D2D44;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.window-bar .dots {
  display: flex;
  gap: 8px;
}
.window-bar .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28C840; }

.window-bar .window-title {
  margin-left: 12px;
  font-size: 0.85rem;
  color: #A0A0B8;
  font-family: var(--mono);
  letter-spacing: 0.5px;
}

.code-content {
  padding: 20px 16px;
  font-family: var(--mono);
  /* El arte ASCII solo se lee alineado: se escala con el ancho en vez
     de partir las líneas. */
  font-size: clamp(0.42rem, 1.55vw, 0.85rem);
  line-height: 1.6;
  color: #C5C5D5;
  background: #1E1E2E;
  overflow-x: auto;
  white-space: pre;
  text-align: left;
  min-height: 200px;
  -webkit-user-select: none;
  user-select: none;
}
.code-content .line {
  display: block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* ---------- MARCO DESARROLLO ---------- */
.marco-desarrollo {
  background: var(--gray);
  padding: 100px 0;
}
.marco-desarrollo .section-header {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}
.marco-desarrollo .section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.marco-desarrollo .section-header h2 span {
  background: linear-gradient(135deg, var(--secondary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.marco-desarrollo .section-header p {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}

.marco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.marco-card {
  background: var(--dark);
  padding: 28px 24px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-align: left;
  cursor: default;
  display: flex;
  flex-direction: column;
}
.marco-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
  box-shadow: 0 12px 40px rgba(0, 194, 199, 0.1);
}
.marco-card .step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 10px;
  background: rgba(0, 194, 199, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}
.marco-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  transition: margin-bottom 0.3s ease;
}
.marco-card:hover .card-header {
  margin-bottom: 10px;
}
.marco-card .icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.marco-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.marco-card .marco-description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              margin-top 0.3s ease;
  margin-top: 0;
}
.marco-card:hover .marco-description {
  max-height: 300px;
  opacity: 1;
  margin-top: 4px;
}
.marco-card .marco-description p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
/* En pantallas táctiles no hay hover: sin esto el texto de las seis fases
   sería inalcanzable. */
@media (hover: none) {
  .marco-card .marco-description {
    max-height: none;
    opacity: 1;
    margin-top: 10px;
  }
  .marco-card .card-header {
    margin-bottom: 10px;
  }
}

/* ========================================================= */
/* ===== LÍNEA DE SCROLL CON TECNOLOGÍAS ====== */
/* ========================================================= */
.tech-stack-marquee {
  background: linear-gradient(135deg, #1A1A2E, #2A1F3D);
  padding: 28px 0;
  border-top: 2px solid rgba(123, 97, 255, 0.4);
  border-bottom: 2px solid rgba(123, 97, 255, 0.4);
  overflow: hidden;
  margin: 30px 0;
  position: relative;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 40px rgba(123, 97, 255, 0.1), inset 0 0 40px rgba(123, 97, 255, 0.02);
}
.tech-stack-marquee::before,
.tech-stack-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.tech-stack-marquee::before {
  left: 0;
  background: linear-gradient(to right, rgba(26, 26, 46, 0.95), transparent);
}
.tech-stack-marquee::after {
  right: 0;
  background: linear-gradient(to left, rgba(26, 26, 46, 0.95), transparent);
}

.tech-stack-marquee .marquee-track {
  display: flex;
  gap: 30px;
  animation: scrollTech 25s linear infinite;
  width: max-content;
  padding: 0 20px;
}
.tech-stack-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollTech {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-badge {
  padding: 10px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font);
  background: rgba(6, 24, 38, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.tech-badge:hover {
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(123, 97, 255, 0.3);
}

.tech-badge.html { border-color: #E34F26; color: #E34F26; }
.tech-badge.css { border-color: #1572B6; color: #1572B6; }
.tech-badge.js { border-color: #F7DF1E; color: #F7DF1E; }
.tech-badge.ts { border-color: #3178C6; color: #3178C6; }
.tech-badge.react { border-color: #61DAFB; color: #61DAFB; }
.tech-badge.next { border-color: #FFFFFF; color: #FFFFFF; }
.tech-badge.node { border-color: #68A063; color: #68A063; }
.tech-badge.python { border-color: #3776AB; color: #3776AB; }
.tech-badge.php { border-color: #777BB4; color: #777BB4; }
.tech-badge.laravel { border-color: #FF2D20; color: #FF2D20; }
.tech-badge.postgres { border-color: #336791; color: #336791; }
.tech-badge.mysql { border-color: #4479A1; color: #4479A1; }
.tech-badge.supabase { border-color: #3ECF8E; color: #3ECF8E; }
.tech-badge.docker { border-color: #2496ED; color: #2496ED; }
.tech-badge.git { border-color: #F05032; color: #F05032; }
.tech-badge.figma { border-color: #F24E1E; color: #F24E1E; }

.tech-badge:hover {
  background: rgba(6, 24, 38, 0.95);
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 40px rgba(123, 97, 255, 0.2);
}

/* ========================================================= */
/* ===== LÍNEA DE MARCAS ====== */
/* ========================================================= */
.brands-marquee {
  background: linear-gradient(135deg, #1A2A30, #0D1F2D);
  padding: 28px 0;
  border-top: 2px solid rgba(0, 194, 199, 0.4);
  border-bottom: 2px solid rgba(0, 194, 199, 0.4);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 194, 199, 0.08), inset 0 0 40px rgba(0, 194, 199, 0.02);
}
.brands-marquee::before,
.brands-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.brands-marquee::before {
  left: 0;
  background: linear-gradient(to right, rgba(26, 42, 48, 0.95), transparent);
}
.brands-marquee::after {
  right: 0;
  background: linear-gradient(to left, rgba(26, 42, 48, 0.95), transparent);
}

.brands-marquee .section-label {
  text-align: center;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 194, 199, 0.3);
}
.brands-marquee .section-label span {
  color: var(--white);
  font-weight: 800;
}

.brands-marquee .marquee-track {
  display: flex;
  gap: 50px;
  animation: scrollBrands 35s linear infinite;
  width: max-content;
  padding: 0 20px;
}
.brands-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-item {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  white-space: nowrap;
  padding: 8px 0;
  transition: all 0.4s ease;
  letter-spacing: 1px;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  border-bottom: 2px solid transparent;
}
.brand-item:hover {
  color: var(--white);
  opacity: 1;
  transform: scale(1.08);
  text-shadow: 0 0 30px rgba(0, 194, 199, 0.5);
  border-bottom-color: var(--secondary);
}

@media (max-width: 768px) {
  .brand-item { font-size: 1rem; }
  .brands-marquee .marquee-track { gap: 30px; }
  .tech-badge { font-size: 0.8rem; padding: 6px 16px; }
  .tech-stack-marquee .marquee-track { gap: 20px; }
}

/* ---------- VÍDEO ---------- */
.hero-bottom {
  margin-top: 20px;
  width: 100%;
}
.video-wrapper {
  background: var(--gray);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-wrapper .fallback {
  display: flex;
  width: 100%;
  height: 100%;
  background: var(--dark);
  color: var(--text);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.video-wrapper .fallback .play-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ---------- SECCIONES GENÉRICAS ---------- */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.section-header h2 span {
  background: linear-gradient(135deg, var(--secondary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================================= */
/* ===== ESPECIALIDADES ==================================== */
/* ========================================================= */
.especialidades {
  position: relative;
  overflow: hidden;
}

.especialidades-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.especialidad-item {
  display: flex;
  align-items: stretch;
  gap: 40px;
  position: relative;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  min-height: 280px;
}
.especialidad-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.especialidad-card {
  background: var(--gray);
  padding: 30px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-align: center;
  flex: 0 0 300px;
  min-width: 220px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.especialidad-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 40px rgba(0, 168, 255, 0.08);
}
.especialidad-card .icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}
.especialidad-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.especialidad-card p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  flex: 1;
}
.especialidad-card .btn-sm {
  margin-top: 16px;
  align-self: center;
}

.especialidad-window {
  flex: 1;
  background: #1E1E2E;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 28px;
  z-index: 10;
  opacity: 0;
  transform: translateX(40px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  pointer-events: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}
.especialidad-window.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  box-shadow: 0 30px 80px rgba(123, 97, 255, 0.3);
}

.especialidad-window .window-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}
.especialidad-window .window-header .dots {
  display: flex;
  gap: 6px;
}
.especialidad-window .window-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.especialidad-window .window-header .window-title {
  color: #A0A0B8;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-left: 8px;
}

.especialidad-window .window-body {
  padding: 10px 0;
}

.especialidad-window .window-body .preview {
  background: var(--dark);
  border-radius: 8px;
  padding: 24px 20px;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.especialidad-window .window-body .preview .preview-icon {
  font-size: 3rem;
}
.especialidad-window .window-body .preview .preview-text {
  font-weight: 600;
  color: var(--white);
  font-size: 1.1rem;
}
.especialidad-window .window-body .btn {
  padding: 10px 28px;
  font-size: 0.9rem;
}

.especialidad-window.app-movil .window-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-mockup {
  background: var(--dark);
  border-radius: 24px;
  padding: 12px;
  width: 160px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.phone-mockup .status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--text);
  margin-bottom: 6px;
  padding: 0 4px;
}
.phone-mockup .app-screen {
  background: var(--gray);
  border-radius: 12px;
  padding: 12px 10px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.phone-mockup .app-screen .app-icon {
  font-size: 2.2rem;
}
.phone-mockup .app-screen .app-title {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.phone-mockup .app-screen .app-desc {
  color: var(--text);
  font-size: 0.65rem;
  text-align: center;
}
.phone-mockup .app-screen .app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.phone-mockup .app-screen .app-grid .grid-icon {
  background: var(--dark);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--text);
}
.phone-mockup .home-indicator {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin: 8px auto 0;
}

@media (max-width: 1024px) {
  .especialidad-item {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: auto;
  }
  .especialidad-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }
  .especialidad-window {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    transform: translateY(20px) scale(0.95);
    min-height: auto;
  }
  .especialidad-window.active {
    transform: translateY(0) scale(1);
  }
  .phone-mockup { width: 140px; }
}

/* ========================================================= */
/* ===== IA ================================================ */
/* ========================================================= */
.ia-soluciones {
  background: var(--gray);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.ia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.ia-card {
  background: var(--dark);
  padding: 36px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: default;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.ia-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(123, 97, 255, 0.2);
}

.ia-card .circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ia-card .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(123, 97, 255, 0.08);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, width, height, background, opacity;
  animation: floatCircle 8s ease-in-out infinite alternate;
}
.ia-card .circle:nth-child(1) {
  width: 120px;
  height: 120px;
  top: -20px;
  right: -30px;
  animation-delay: 0s;
  background: rgba(0, 194, 199, 0.06);
}
.ia-card .circle:nth-child(2) {
  width: 80px;
  height: 80px;
  bottom: 10px;
  left: -20px;
  animation-delay: 1s;
  background: rgba(0, 168, 255, 0.05);
}
.ia-card .circle:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 40%;
  right: 10px;
  animation-delay: 2s;
  background: rgba(123, 97, 255, 0.07);
}
.ia-card .circle:nth-child(4) {
  width: 100px;
  height: 100px;
  bottom: -30px;
  right: 20%;
  animation-delay: 0.5s;
  background: rgba(0, 194, 199, 0.04);
}
.ia-card .circle:nth-child(5) {
  width: 40px;
  height: 40px;
  top: 10%;
  left: 20%;
  animation-delay: 3s;
  background: rgba(0, 168, 255, 0.08);
}
.ia-card .circle:nth-child(6) {
  width: 70px;
  height: 70px;
  top: 60%;
  left: -10px;
  animation-delay: 1.5s;
  background: rgba(123, 97, 255, 0.05);
}

@keyframes floatCircle {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(10px, -15px) scale(1.05) rotate(5deg);
  }
  66% {
    transform: translate(-8px, 10px) scale(0.95) rotate(-3deg);
  }
  100% {
    transform: translate(5px, -5px) scale(1.02) rotate(2deg);
  }
}

.ia-card:hover .circle:nth-child(1) {
  width: 180px;
  height: 180px;
  background: rgba(0, 194, 199, 0.15);
  transform: translate(-10px, -10px) scale(1.2);
  animation-duration: 0.5s;
}
.ia-card:hover .circle:nth-child(2) {
  width: 120px;
  height: 120px;
  background: rgba(0, 168, 255, 0.12);
  transform: translate(15px, 10px) scale(1.1);
  animation-duration: 0.5s;
}
.ia-card:hover .circle:nth-child(3) {
  width: 100px;
  height: 100px;
  background: rgba(123, 97, 255, 0.18);
  transform: translate(-5px, -20px) scale(1.3);
  animation-duration: 0.5s;
}
.ia-card:hover .circle:nth-child(4) {
  width: 150px;
  height: 150px;
  background: rgba(0, 194, 199, 0.10);
  transform: translate(20px, 10px) scale(1.15);
  animation-duration: 0.5s;
}
.ia-card:hover .circle:nth-child(5) {
  width: 70px;
  height: 70px;
  background: rgba(0, 168, 255, 0.20);
  transform: translate(-15px, 5px) scale(1.4);
  animation-duration: 0.5s;
}
.ia-card:hover .circle:nth-child(6) {
  width: 110px;
  height: 110px;
  background: rgba(123, 97, 255, 0.12);
  transform: translate(10px, -10px) scale(1.2);
  animation-duration: 0.5s;
}

.ia-card .ia-icon,
.ia-card h3,
.ia-card p {
  position: relative;
  z-index: 1;
}
.ia-card .ia-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
  display: block;
}
.ia-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 10px;
  z-index: 1;
}
.ia-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  z-index: 1;
}
.ia-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.ia-card:hover::after {
  opacity: 0.3;
}

@media (max-width: 768px) {
  .ia-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ia-card .circle:nth-child(1) { width: 80px; height: 80px; }
  .ia-card .circle:nth-child(2) { width: 60px; height: 60px; }
  .ia-card .circle:nth-child(3) { width: 50px; height: 50px; }
  .ia-card .circle:nth-child(4) { width: 70px; height: 70px; }
  .ia-card .circle:nth-child(5) { width: 30px; height: 30px; }
  .ia-card .circle:nth-child(6) { width: 50px; height: 50px; }
  .ia-card:hover .circle:nth-child(1) { width: 120px; height: 120px; }
  .ia-card:hover .circle:nth-child(2) { width: 90px; height: 90px; }
  .ia-card:hover .circle:nth-child(3) { width: 70px; height: 70px; }
  .ia-card:hover .circle:nth-child(4) { width: 100px; height: 100px; }
  .ia-card:hover .circle:nth-child(5) { width: 50px; height: 50px; }
  .ia-card:hover .circle:nth-child(6) { width: 80px; height: 80px; }
}

.ia-cta-block {
  margin-top: 80px;
  background: var(--dark);
  border-radius: 30px;
  padding: 60px 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ia-cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(0, 168, 255, 0.03), transparent 60%);
  pointer-events: none;
}
.ia-cta-block .cta-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}
.ia-cta-block .cta-title span {
  background: linear-gradient(135deg, var(--secondary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ia-cta-block .cta-sub {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.ia-cta-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.ia-cta-feature {
  background: var(--gray);
  padding: 30px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ia-cta-feature:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 40px rgba(0, 168, 255, 0.15);
}

.ia-cta-feature .feature-bg-circle {
  position: absolute;
  width: 180%;
  height: 180%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(123, 97, 255, 0.15), rgba(0, 194, 199, 0.05) 60%, transparent 80%);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity, background;
}
.ia-cta-feature:hover .feature-bg-circle {
  transform: translate(-50%, -50%) scale(1.15);
  background: radial-gradient(circle at center, rgba(0, 168, 255, 0.35), rgba(123, 97, 255, 0.15) 50%, transparent 80%);
  box-shadow: 0 0 60px rgba(0, 168, 255, 0.2);
}

.ia-cta-feature .feature-icon,
.ia-cta-feature h3,
.ia-cta-feature p {
  position: relative;
  z-index: 1;
}
.ia-cta-feature .feature-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
  display: block;
}
.ia-cta-feature h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.ia-cta-feature p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}
.ia-cta-feature::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.ia-cta-feature:hover::after {
  opacity: 0.25;
}

.ia-cta-button {
  position: relative;
  z-index: 1;
}
.ia-cta-button .btn {
  padding: 16px 50px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .ia-cta-block {
    padding: 40px 24px;
  }
  .ia-cta-block .cta-title {
    font-size: 1.8rem;
  }
  .ia-cta-block .cta-sub {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  .ia-cta-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ia-cta-feature {
    min-height: 150px;
    padding: 24px 16px;
  }
  .ia-cta-feature .feature-bg-circle {
    width: 200%;
    height: 200%;
  }
  .ia-cta-button .btn {
    padding: 14px 30px;
    font-size: 1rem;
    width: 100%;
  }
}

/* ========================================================= */
/* ===== AUTOMATIZACIÓN ==================================== */
/* ========================================================= */
.software {
  background: var(--dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.software .container {
  position: relative;
  z-index: 2;
}

.workflow-container {
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 40px 20px;
  background: rgba(30, 42, 50, 0.4);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workflow-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(123, 97, 255, 0.15);
  padding: 10px 28px;
  border-radius: 40px;
  border: 1px solid rgba(123, 97, 255, 0.2);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.workflow-brand.show {
  opacity: 1;
  transform: translateY(0);
}
.workflow-brand span {
  font-weight: 700;
  color: var(--white);
  font-size: 1.3rem;
}
.workflow-brand .brand-icon {
  font-size: 1.8rem;
}

.workflow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 8px 0;
  width: 100%;
}

.workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 12px 16px;
  background: rgba(30, 42, 50, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 70px;
}
.workflow-node.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.workflow-node .node-icon {
  font-size: 2.2rem;
}
.workflow-node .node-label {
  font-size: 0.7rem;
  color: var(--text);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.workflow-connector {
  font-size: 1.6rem;
  color: var(--primary);
  opacity: 0.3;
  animation: pulse-connector 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-connector {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.workflow-final {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  width: 100%;
}
.workflow-final-card {
  flex: 0 0 240px;
  background: var(--gray);
  padding: 30px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.4s;
}
.workflow-final-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.workflow-final-card .final-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}
.workflow-final-card h4 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.workflow-final-card p {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.workflow-final-card .btn {
  padding: 10px 28px;
  font-size: 0.9rem;
}

.software-cta {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .workflow-row {
    gap: 10px;
  }
  .workflow-node {
    min-width: 50px;
    padding: 8px 10px;
  }
  .workflow-node .node-icon {
    font-size: 1.8rem;
  }
  .workflow-connector {
    font-size: 1.2rem;
  }
  .workflow-final {
    gap: 20px;
  }
  .workflow-final-card {
    flex: 0 0 100%;
    max-width: 300px;
  }
  .workflow-brand span {
    font-size: 1rem;
  }
  .workflow-brand {
    padding: 8px 20px;
  }
}

/* ========================================================= */
/* ===== MARKETING DIGITAL ================================= */
/* ========================================================= */
.marketing {
  background: var(--gray);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.marketing-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.marketing-item {
  display: flex;
  align-items: stretch;
  gap: 40px;
  position: relative;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  min-height: 240px;
}
.marketing-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.marketing-item:nth-child(odd) .marketing-card {
  order: 0;
}
.marketing-item:nth-child(odd) .marketing-window {
  order: 1;
}
.marketing-item:nth-child(even) .marketing-card {
  order: 1;
}
.marketing-item:nth-child(even) .marketing-window {
  order: 0;
}

.marketing-card {
  background: var(--dark);
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-align: center;
  flex: 0 0 300px;
  min-width: 220px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.marketing-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
  box-shadow: 0 12px 40px rgba(0, 194, 199, 0.1);
}
.marketing-card .icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}
.marketing-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.marketing-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.marketing-window {
  flex: 1;
  background: #1E1E2E;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 28px;
  z-index: 10;
  opacity: 0;
  transform: translateX(40px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  pointer-events: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}
.marketing-item.visible .marketing-window {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  box-shadow: 0 30px 80px rgba(123, 97, 255, 0.3);
}

.marketing-window .window-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}
.marketing-window .window-header .dots {
  display: flex;
  gap: 6px;
}
.marketing-window .window-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.marketing-window .window-header .window-title {
  color: #A0A0B8;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-left: 8px;
}
.marketing-window .window-body {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.marketing-window .search-preview {
  background: var(--dark);
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.marketing-window .search-preview .search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.marketing-window .search-preview .search-bar input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--gray);
  color: var(--white);
  font-size: 0.85rem;
}
.marketing-window .search-preview .search-bar button {
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: default;
}
.marketing-window .search-preview .result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.marketing-window .search-preview .result .rank {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.8rem;
}
.marketing-window .search-preview .result .title {
  color: var(--accent-blue);
}

.marketing-window .phone-mockup {
  background: var(--dark);
  border-radius: 20px;
  padding: 16px;
  width: 180px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.marketing-window .phone-mockup .status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text);
  margin-bottom: 8px;
}
.marketing-window .phone-mockup .profile {
  text-align: center;
}
.marketing-window .phone-mockup .profile .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}
.marketing-window .phone-mockup .profile .name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.marketing-window .phone-mockup .profile .username {
  color: var(--text);
  font-size: 0.7rem;
}
.marketing-window .phone-mockup .profile .stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
  font-size: 0.7rem;
}
.marketing-window .phone-mockup .profile .stats span {
  color: var(--text);
}
.marketing-window .phone-mockup .profile .stats strong {
  color: var(--white);
}

.marketing-window .metrics-dashboard {
  width: 100%;
  background: var(--dark);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.marketing-window .metrics-dashboard .metric-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.marketing-window .metrics-dashboard .metric-row .label {
  color: var(--text);
  font-size: 0.8rem;
}
.marketing-window .metrics-dashboard .metric-row .value {
  color: var(--white);
  font-weight: 600;
}
.marketing-window .metrics-dashboard .chart-bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 60px;
  margin-top: 8px;
}
.marketing-window .metrics-dashboard .chart-bars .bar {
  width: 20px;
  border-radius: 4px 4px 0 0;
  background: var(--primary);
  transition: height 0.3s;
  min-height: 10px;
}
.marketing-window .metrics-dashboard .chart-bars .bar:nth-child(1) { height: 40px; background: var(--secondary); }
.marketing-window .metrics-dashboard .chart-bars .bar:nth-child(2) { height: 55px; background: var(--primary); }
.marketing-window .metrics-dashboard .chart-bars .bar:nth-child(3) { height: 30px; background: var(--accent-blue); }
.marketing-window .metrics-dashboard .chart-bars .bar:nth-child(4) { height: 45px; background: var(--secondary); }
.marketing-window .metrics-dashboard .chart-bars .bar:nth-child(5) { height: 65px; background: var(--primary); }

.marketing-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 60px;
}
.marketing-actions .btn {
  padding: 16px 40px;
  font-size: 1.1rem;
  min-width: 200px;
}

@media (max-width: 1024px) {
  .marketing-item {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: auto;
    transform: translateX(0);
  }
  .marketing-item:nth-child(odd) .marketing-card,
  .marketing-item:nth-child(even) .marketing-card {
    order: 0;
  }
  .marketing-item:nth-child(odd) .marketing-window,
  .marketing-item:nth-child(even) .marketing-window {
    order: 1;
  }
  .marketing-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }
  .marketing-window {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    transform: translateY(20px) scale(0.95);
  }
  .marketing-item.visible .marketing-window {
    transform: translateY(0) scale(1);
  }
  .marketing-window .phone-mockup {
    width: 140px;
  }
  .marketing-actions {
    flex-direction: column;
    align-items: center;
  }
  .marketing-actions .btn {
    width: 100%;
    max-width: 300px;
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .marketing-window .search-preview .search-bar {
    flex-wrap: wrap;
  }
  .marketing-window .search-preview .search-bar input {
    width: 100%;
  }
}

/* ========================================================= */
/* ===== CONTACTO ========================================== */
/* ========================================================= */
.contacto {
  background: var(--dark);
  padding: 100px 0;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacto-info h2 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 16px;
}
.contacto-info h2 span {
  color: var(--secondary);
}
.contacto-info p {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.contacto-info .detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
}
.contacto-info .detail strong {
  color: var(--white);
}

.contacto-form {
  background: var(--gray);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.contacto-form .step-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.contacto-form .step-indicators .step-dot {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--gray);
  transition: background 0.3s;
}
.contacto-form .step-indicators .step-dot.active {
  background: var(--secondary);
}
.contacto-form .step-indicators .step-dot.done {
  background: var(--primary);
}

.contacto-form .form-step {
  display: none;
  animation: fadeStep 0.4s ease;
}
.contacto-form .form-step.active {
  display: block;
}

@keyframes fadeStep {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

.contacto-form .form-step h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.contacto-form .form-step .step-desc {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.contacto-form .form-group {
  margin-bottom: 18px;
}
.contacto-form label {
  display: block;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.contacto-form label .required {
  color: #ff6b6b;
  margin-left: 2px;
}
.contacto-form input,
.contacto-form select,
.contacto-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--dark);
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  font-family: var(--font);
}
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 194, 199, 0.15);
}
.contacto-form textarea {
  min-height: 80px;
  resize: vertical;
}
.contacto-form select option {
  background: var(--dark);
  color: var(--white);
}
.contacto-form .checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.contacto-form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}
.contacto-form .checkbox-group input[type="checkbox"] {
  width: auto;
  accent-color: var(--secondary);
  transform: scale(1.1);
  cursor: pointer;
}

.contacto-form .step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.contacto-form .step-nav .btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  min-width: 120px;
}
.contacto-form .step-nav .btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.contacto-form .step-nav .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .contacto-form {
    padding: 24px;
  }
  .contacto-form .checkbox-group {
    grid-template-columns: 1fr;
  }
  .contacto-form .step-nav {
    flex-wrap: wrap;
  }
  .contacto-form .step-nav .btn {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contacto-form .step-nav .btn {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
}

/* ========================================================= */
/* ===== PÁGINAS INTERIORES (servicios) ==================== */
/* ========================================================= */
.page-hero {
  padding: 160px 0 70px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray) 55%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -45%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.16), transparent 62%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.75;
  margin-bottom: 22px;
}
.breadcrumb a {
  color: var(--secondary);
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  max-width: 900px;
  margin-bottom: 20px;
}
.page-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 760px;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.page-body {
  padding: 90px 0 110px;
}
.pending-notice {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--gray);
  border: 1px dashed rgba(0, 194, 199, 0.35);
  border-radius: 24px;
  padding: 56px 40px;
}
.pending-notice .pending-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 18px;
}
.pending-notice h2 {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.pending-notice p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 30px;
}
.footer-col a[aria-current="page"] {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 130px 0 55px;
  }
  .page-hero h1 {
    font-size: 2.1rem;
  }
  .page-intro {
    font-size: 1.03rem;
  }
  .pending-notice {
    padding: 40px 24px;
  }
}
@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 1.75rem;
  }
  .page-hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ========================================================= */
/* ===== PREGUNTAS FRECUENTES ============================== */
/* ========================================================= */
.faq {
  background: var(--gray);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover,
.faq-item[open] {
  border-color: rgba(0, 194, 199, 0.35);
}
.faq-item summary {
  padding: 22px 26px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--secondary);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: -2px;
}
.faq-answer {
  padding: 0 26px 24px;
}
.faq-answer p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}
@media (max-width: 480px) {
  .faq-item summary {
    padding: 18px 20px;
    font-size: 0.98rem;
  }
  .faq-answer {
    padding: 0 20px 20px;
  }
}

/* ========================================================= */
/* ===== NUEVO FOOTER (PREGUNTAS FRECUENTES ANTES QUE SOLUCIONES) ===== */
/* ========================================================= */
.footer-new {
  background: var(--dark);
  padding: 50px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-new .container {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.5fr 1.5fr;
  gap: 40px;
}

/* Columna 1: Marca + Newsletter */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand .logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  display: inline-block;
}
.footer-brand .logo span {
  color: var(--secondary);
}
.footer-brand p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 300px;
}
.footer-brand .newsletter h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.footer-brand .newsletter p {
  color: var(--text);
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.footer-brand .newsletter form {
  display: flex;
  gap: 6px;
}
.footer-brand .newsletter input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--gray);
  color: var(--white);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition);
}
.footer-brand .newsletter input:focus {
  border-color: var(--secondary);
}
.footer-brand .newsletter button {
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.8rem;
}
.footer-brand .newsletter button:hover {
  background: var(--primary-dark);
}

/* Columnas de enlaces */
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-col ul li {
  margin-bottom: 6px;
}
.footer-col ul li a {
  color: var(--text);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: var(--secondary);
}

/* Recursos dentro de la columna de Contacto */
.footer-col .recursos {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-col .recursos h4 {
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Fila inferior: Copyright + Social */
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .copy {
  color: var(--text);
  font-size: 0.75rem;
  opacity: 0.6;
}
.footer-bottom .social-links {
  display: flex;
  gap: 14px;
}
.footer-bottom .social-links a {
  color: var(--text);
  font-size: 1.1rem;
  transition: var(--transition);
}
.footer-bottom .social-links a:hover {
  color: var(--secondary);
}

@media (max-width: 1024px) {
  .footer-new .container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-brand p {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .footer-new .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-brand .newsletter form {
    flex-wrap: wrap;
  }
  .footer-brand .newsletter input {
    flex: 1 1 100%;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ========================================================= */
/* ===== BOTONES FLOTANTES ================================== */
/* ========================================================= */
.float-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  align-items: flex-end;
}

.whatsapp-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
  font-size: 2rem;
  order: 2;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

#backToTop {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.4);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  order: 1;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---------- RESPONSIVE GENERAL ---------- */
@media (max-width: 1024px) {
  .hero-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .code-window {
    max-width: 380px;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .marco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: var(--transition);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-links.open {
    right: 0;
  }
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .marco-grid {
    grid-template-columns: 1fr;
  }
  .especialidades-grid {
    gap: 40px;
  }
  .contacto-form {
    padding: 24px;
  }
  .code-content {
    font-size: 0.7rem;
    padding: 12px;
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-buttons .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  section {
    padding: 60px 0;
  }
  .code-window {
    max-width: 100%;
  }
  .code-content {
    font-size: 0.6rem;
    padding: 10px;
    min-height: 120px;
  }
}

/* ---------- ANIMACIONES SCROLL ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}