:root {
  --cream: #0b1020d0;
  --cream-warm: #12182b;
  --white: #161d33;

  --ink: #f5f1e8;
  --ink-soft: #0b1020;
  --ink-light: #a6afc3;
  --muted: #7f8aa3;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --indigo: #c8a96b;
  --indigo-light: rgba(200, 169, 107, 0.12);
  --indigo-soft: rgba(200, 169, 107, 0.1);

  --coral: #d9a15b;
  --coral-light: rgba(217, 161, 91, 0.1);

  --teal: #5fb3a8;
  --teal-light: rgba(95, 179, 168, 0.12);

  --violet: #9f8cff;
  --violet-light: rgba(159, 140, 255, 0.12);

  --rose: #d16d8a;

  --glass: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.42);

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--indigo);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

/* ═══ HEADER ═══ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream);
  font-weight: 400;
}
.logo-word {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.logo-word em {
  font-style: italic;
  color: var(--indigo);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-light);
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:not(.btn-nav) {
  position: relative;
}
.nav-links a:not(.btn-nav)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a.is-active,
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}
.btn-nav {
  background: var(--ink) !important;
  color: var(--cream) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all var(--transition) !important;
}
.btn-nav:hover {
  background: var(--indigo) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition:
    background var(--transition),
    transform var(--transition);
}
.hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}
.hamburger.is-open {
  background: rgba(255, 255, 255, 0.08);
}
.hamburger svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
  transition: transform var(--transition);
}
.hamburger.is-open svg {
  transform: rotate(90deg);
}

/* ═══ HERO ═══ */
.hero {
  padding: 160px 32px 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--indigo-soft) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-shape-2 {
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo-light);
  color: var(--indigo);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--indigo);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@keyframes floatCardMobile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--indigo);
}
.hero-text p {
  font-size: 17px;
  color: var(--ink-light);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover {
  background: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--border-strong);
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--white);
}

/* Hero illustration */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illustration {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.hero-illu-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--cream-warm);
  border-bottom: 1px solid var(--border);
}
.illu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.illu-dot.r {
  background: #ff6b6b;
}
.illu-dot.y {
  background: #ffd43b;
}
.illu-dot.g {
  background: #51cf66;
}
.illu-address {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.hero-illu-body {
  padding: 28px;
}
.illu-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.illu-card-mini {
  flex: 1;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--cream);
}
.illu-card-mini .illu-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 16px;
}
.illu-card-mini h5 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.illu-card-mini p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.illu-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.illu-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  animation: barGrow 1.5s ease-out forwards;
  transform-origin: bottom;
}
@keyframes barGrow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.hero-float-card {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  animation: floatCard 4s ease-in-out infinite;
}
.hero-float-card.top-right {
  top: -20px;
  right: -30px;
  animation-delay: 0s;
}
.hero-float-card.bottom-left {
  bottom: 20px;
  left: -40px;
  animation-delay: 1.5s;
}
.float-card-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.float-card-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}
.float-card-value.green {
  color: var(--teal);
}
.float-card-value.coral {
  color: var(--coral);
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ═══ TECH BAR ═══ */
.tech-bar {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.tech-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.tech-bar-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.tech-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.45;
}
.tech-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  font-family: var(--font-body);
}

/* ═══ SECTIONS SHARED ═══ */
section {
  padding: 120px 32px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 16px;
}
.section-tag-dot {
  width: 5px;
  height: 5px;
  background: var(--indigo);
  border-radius: 50%;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--indigo);
}
.section-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-header .section-subtitle {
  margin: 0 auto;
}

/* ═══ SERVICIOS ═══ */
.servicios {
  background: var(--white);
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.servicio-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.servicio-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.servicio-card-icon svg {
  width: 24px;
  height: 24px;
}
.servicio-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--ink);
}
.servicio-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ═══ CASOS ═══ */
.casos {
  background: var(--cream);
}
.casos-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.caso-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.caso-tab.active,
.caso-tab:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.casos-panel {
  max-width: 1100px;
  margin: 0 auto;
}
.casos-panel-group {
  display: none;
}
.casos-panel-group.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.caso-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}
.caso-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.caso-card-emoji {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.caso-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  margin-bottom: 8px;
}
.caso-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══ PROCESO TIMELINE ═══ */
.proceso {
  background: var(--white);
}
.timeline {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--border-strong);
}
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 24px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.timeline-step:hover .timeline-dot {
  border-color: var(--indigo);
  background: var(--indigo-light);
  color: var(--indigo);
}
.timeline-step h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 8px;
}
.timeline-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══ SOCIAL PROOF ═══ */
.social-proof {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 32px;
}
.social-proof .section-tag {
  color: rgba(245, 241, 232, 0.55);
}
.social-proof .section-tag-dot {
  background: rgba(200, 169, 107, 0.7);
}
.social-proof .section-title {
  color: var(--cream);
}
.social-proof .section-title em {
  color: #c8a96b;
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}
.testimonial-stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-card blockquote {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--cream);
}
.testimonial-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══ DIFERENCIADORES ═══ */
.diferenciadores {
  background: var(--white);
}
.dif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.dif-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px 28px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.dif-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.dif-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dif-icon svg {
  width: 22px;
  height: 22px;
}
.dif-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 6px;
}
.dif-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══ PRICING ═══ */
.pricing {
  background: var(--cream);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--indigo);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.pricing-card.featured:hover {
  transform: scale(1.06);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: #fff;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pricing-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 8px;
}
.pricing-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--ink);
  margin-bottom: 4px;
}
.pricing-period {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--ink-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li:last-child {
  border: none;
}
.check-icon {
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
}

.btn-pricing {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.btn-pricing:hover {
  border-color: var(--ink);
  background: var(--cream);
}
.btn-pricing.primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-pricing.primary:hover {
  background: var(--indigo);
  border-color: var(--indigo);
}

/* ═══ CONTACTO ═══ */
.contacto {
  background: var(--white);
}
.contact-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child {
  border: none;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--indigo);
}
.contact-detail span {
  font-size: 14px;
  color: var(--ink-light);
}

.contact-form-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-soft);
}
.form-group select {
  cursor: pointer;
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-submit:hover {
  background: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: #0b1220;
  padding: 80px 32px;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: #f5efe4;
  margin-bottom: 16px;
  font-weight: 400;
}

.cta-banner h2 em {
  font-style: italic;
  color: #c8a96b;
}

.cta-banner p {
  color: rgba(245, 239, 228, 0.78);
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-banner .btn-primary {
  background: #c8a96b;
  color: #0b1220;
  border: 1px solid rgba(200, 169, 107, 0.35);
}

.cta-banner .btn-primary:hover {
  background: #d6b57a;
  color: #0b1220;
  box-shadow: var(--shadow-xl);
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--cream-warm);
  padding: 64px 32px 28px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.7;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 12px;
  color: var(--muted);
}
.footer-acceso {
  font-size: 13px;
  color: var(--indigo);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-acceso:hover {
  color: var(--ink);
}

/* ═══ WHATSAPP ═══ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.contact-link {
  color: var(--ink-light);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-link:hover {
  color: var(--indigo);
}
.contact-text {
  color: var(--ink-light);
}
.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}
.field-error {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--rose);
}
.form-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid transparent;
}
.form-status.is-visible {
  display: block;
}
.form-status.is-success {
  background: rgba(14, 165, 140, 0.08);
  border-color: rgba(14, 165, 140, 0.2);
  color: var(--teal);
}
.form-status.is-error {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.18);
  color: var(--rose);
}
.whatsapp-float {
  isolation: isolate;
}
.whatsapp-label {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #0b1220;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition),
    transform var(--transition);
}
.whatsapp-float:hover .whatsapp-label,
.whatsapp-float:focus-visible .whatsapp-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body.menu-open {
  overflow: hidden;
}
section[id] {
  scroll-margin-top: 96px;
}
.hero-visual {
  position: relative;
}
.hero-illustration {
  position: relative;
  z-index: 1;
}
.hero-float-card {
  z-index: 3;
  pointer-events: none;
}
.illu-bar-chart {
  position: relative;
  overflow: hidden;
}
.illu-bar {
  animation:
    barGrow 1s ease-out forwards,
    barPulse 4s ease-in-out infinite;
  animation-delay: 0s, 1.1s;
  will-change: transform, opacity, filter;
}
@keyframes barPulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    transform: scaleY(0.9);
    opacity: 0.92;
    filter: brightness(1.08);
  }
}

/* ═══ REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .hero {
    padding: 144px 24px 84px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 42px;
  }

  .hero-text,
  .hero-visual,
  .illu-card-mini {
    min-width: 0;
  }

  .hero-illustration {
    max-width: 100%;
  }

  .hero-illu-body {
    padding: 22px;
  }

  .illu-row {
    gap: 10px;
  }

  .hero-float-card {
    transform: scale(0.9);
    transform-origin: center;
  }

  .hero-float-card.top-right {
    top: -10px;
    right: -10px;
  }

  .hero-float-card.bottom-left {
    bottom: 10px;
    left: -10px;
  }
}

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

  .pricing-card.featured,
  .pricing-card.featured:hover {
    transform: scale(1);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 128px 22px 68px;
  }

  .hero-inner,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  .timeline {
    flex-direction: column;
    gap: 28px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    text-align: left;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 0;
  }

  .timeline-dot {
    margin: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  section {
    padding: 80px 20px;
  }

  .nav-wrap {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    background: rgba(11, 16, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a:not(.btn-nav)::after {
    display: none;
  }

  .nav-links li:last-child a {
    border-bottom: 0;
  }

  .btn-nav {
    margin: 14px 16px 16px !important;
    text-align: center;
    display: block !important;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 112px 20px 56px;
  }

  .hero-bg-shape,
  .hero-bg-shape-2 {
    display: none;
  }

  .hero-visual {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 12px 0 18px;
  }

  .hero-illustration {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
  }

  .hero-float-card {
    display: block;
    min-width: 120px;
    max-width: 140px;
    padding: 10px 12px;
    border-radius: 16px;
    z-index: 4;
    box-shadow: var(--shadow-md);
    animation: floatCardMobile 3.6s ease-in-out infinite;
  }

  .hero-float-card.top-right {
    top: 8px;
    right: 8px;
    left: auto;
  }

  .hero-float-card.bottom-left {
    bottom: 10px;
    left: 8px;
  }

  .float-card-label {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .float-card-value {
    font-size: 18px;
    line-height: 1;
  }

  .hero-illu-body {
    padding: 16px;
  }

  .illu-bar-chart {
    height: 56px;
    padding: 10px 12px;
    gap: 4px;
  }

  .servicios-grid,
  .testimonials,
  .pricing-grid,
  .dif-grid,
  .metrics-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 42px;
  }

  .section-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .servicio-card,
  .caso-card,
  .testimonial-card,
  .pricing-card,
  .dif-card,
  .contact-form-card {
    padding: 24px 18px;
  }

  .dif-card {
    flex-direction: column;
    gap: 14px;
  }

  .pricing-card:hover {
    transform: none;
  }

  .contact-form-card,
  .footer,
  .cta-banner,
  .tech-bar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .casos-tabs {
    gap: 10px;
  }

  .caso-tab {
    width: calc(50% - 5px);
    text-align: center;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-label {
    display: none;
  }
}

@media (max-width: 768px) {
  #proceso .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  #proceso .section-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
  }

  #proceso .timeline {
    align-items: center;
    gap: 30px;
  }

  #proceso .timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    max-width: 340px;
    margin: 0 auto;
  }

  #proceso .timeline-step > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #proceso .timeline-dot {
    margin: 0 auto;
  }

  #proceso .timeline-step h4 {
    margin-bottom: 8px;
    text-align: center;
  }

  #proceso .timeline-step p {
    margin: 0 auto;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-float-card {
    min-width: 108px;
    max-width: 124px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .hero-float-card.top-right {
    top: 6px;
    right: 6px;
  }

  .hero-float-card.bottom-left {
    left: 6px;
    bottom: 6px;
  }

  .float-card-label {
    font-size: 9px;
  }

  .float-card-value {
    font-size: 16px;
  }
}

/* ═══ CLASE BASE PARA CARDS CON IMAGEN ═══ */
.card-with-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #071126;
}

.card-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.38;
  filter: brightness(1.35) saturate(1.15);
  transform: scale(1);
  transition:
    transform 0.45s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
  z-index: 0;
}

.card-with-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(33, 65, 162, 0.2) 0%,
    rgba(5, 10, 25, 0.46) 50%,
    rgba(5, 10, 25, 0.72) 100%
  );
  z-index: 1;
}

.card-with-bg > * {
  position: relative;
  z-index: 2;
}

.card-with-bg:hover::before {
  transform: scale(1.06);
  opacity: 0.48;
  filter: brightness(1.5) saturate(1.2);
}

@media (max-width: 768px) {
  .card-with-bg::before {
    opacity: 0.18;
  }

  .card-with-bg:hover::before {
    transform: scale(1.03);
    opacity: 0.22;
  }

  .servicio-card.card-with-bg .servicio-card-icon,
  .dif-card.card-with-bg .dif-icon {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
  }

  .servicio-card.card-with-bg .servicio-card-icon svg,
  .dif-card.card-with-bg .dif-icon svg {
    filter: brightness(1.2);
  }

  /* Servicios más centrados y premium */
  .servicio-card {
    text-align: center;
  }

  .servicio-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin: 0 auto 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  }

  .servicio-card h3 {
    margin-left: auto;
    margin-right: auto;
  }

  .servicio-card p {
    margin-left: auto;
    margin-right: auto;
    max-width: 32ch;
  }
  /* =========================
   SERVICE CARDS - PREMIUM CENTERED
   ========================= */

  .service-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px;
    transition:
      transform 0.35s ease,
      box-shadow 0.35s ease;
  }

  /* ICONO */
  .service-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin: 0 auto 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);

    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.25),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);

    transition:
      transform 0.35s ease,
      box-shadow 0.35s ease,
      background 0.35s ease;
  }

  /* SVG ICON */
  .service-card-icon svg {
    width: 26px;
    height: 26px;
    filter: brightness(1.2);
    transition: transform 0.35s ease;
  }

  /* TITULO */
  .service-card h3 {
    text-align: center !important;
    margin: 0;
  }

  /* TEXTO */
  .service-card p {
    text-align: center !important;
    max-width: 30ch;
    margin: 0 auto;
  }

  /* =========================
   HOVER EFFECT (PRO)
   ========================= */

  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .service-card:hover .service-card-icon {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);

    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.35),
      0 0 18px rgba(212, 175, 55, 0.15);
  }

  .service-card:hover .service-card-icon svg {
    transform: scale(1.08);
    filter: brightness(1.4);
  }

  /* =========================
   MOBILE AJUSTE
   ========================= */

  @media (max-width: 768px) {
    .service-card {
      gap: 10px;
    }

    .service-card-icon {
      width: 52px;
      height: 52px;
    }

    .service-card-icon svg {
      width: 22px;
      height: 22px;
    }

    .service-card p {
      max-width: 26ch;
    }
  }
  /* =========================
   DESKTOP ENHANCEMENT
   ========================= */

  @media (min-width: 1024px) {
    .service-card {
      padding: 32px 28px;
      align-items: center;
      justify-content: center;
    }

    .service-card-icon {
      width: 64px;
      height: 64px;
      margin-bottom: 18px;
    }

    .service-card-icon svg {
      width: 28px;
      height: 28px;
    }

    .service-card h3 {
      font-size: 20px;
      line-height: 1.3;
    }

    .service-card p {
      max-width: 34ch;
      font-size: 15px;
      line-height: 1.6;
    }
  }

  /* =========================
   CENTRAR GRID DE CASOS
   ========================= */

  .cases-grid {
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
  }
}
