/* ============================================================
   VentureByte — Corporate Dark Tech
   Single stylesheet for all pages
   ============================================================ */

/* ----------------------------------------------------------
   Migra Font (add .woff2 files to assets/fonts/)
   ---------------------------------------------------------- */
@font-face {
  font-family: 'Migra';
  src: url('../fonts/Migra-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Migra';
  src: url('../fonts/Migra-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Migra';
  src: url('../fonts/Migra-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Migra';
  src: url('../fonts/Migra-Extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------
   1. CSS Variables
   ---------------------------------------------------------- */
:root {
  /* Core palette */
  --deep-black-blue: #0A0E20;
  --charcoal-blue: #0F1535;
  --primary-blue: #0A5CF5;
  --accent-blue: #4D8CF5;
  --soft-white: #FFFFFF;
  --cool-gray: #F2F4F8;
  --foreground: #0D1528;
  --muted-fg: #6B7A96;
  --border: #DCE4F0;
  --destructive: #F03D3D;

  /* Derived colors */
  --primary-blue-10: rgba(10, 92, 245, 0.1);
  --primary-blue-20: rgba(10, 92, 245, 0.2);
  --primary-blue-40: rgba(10, 92, 245, 0.4);
  --accent-blue-30: rgba(77, 140, 245, 0.3);

  /* Typography */
  --font-heading: 'Migra', Georgia, serif;
  --font-body: 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 1rem;
  --section-pad: 3.5rem 0;
  --gap: 1.5rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index scale */
  --z-nav: 1000;
  --z-mobile-menu: 999;
  --z-whatsapp: 900;
  --z-hero-content: 2;
  --z-hero-svg: 1;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--deep-black-blue);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ----------------------------------------------------------
   3. Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.875rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  max-width: 68ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.eyebrow--light {
  color: var(--accent-blue);
}

/* ----------------------------------------------------------
   4. Layout & Utilities
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-pad);
}

.section--dark {
  background: var(--deep-black-blue);
  color: var(--soft-white);
}

.section--charcoal {
  background: var(--charcoal-blue);
  color: var(--soft-white);
}

.section--light {
  background: var(--cool-gray);
  color: var(--foreground);
}

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

.section__header p {
  margin: 1rem auto 0;
  color: var(--muted-fg);
  max-width: 600px;
}

.section--dark .section__header p,
.section--charcoal .section__header p {
  color: rgba(255, 255, 255, 0.6);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.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;
}

/* ----------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: all var(--transition-base);
  text-align: center;
}

.btn--primary {
  background: var(--primary-blue);
  color: var(--soft-white);
  box-shadow: 0 4px 20px var(--primary-blue-40);
}

.btn--primary:hover {
  background: var(--accent-blue);
  box-shadow: 0 6px 28px var(--accent-blue-30);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--soft-white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--primary-blue-10);
}

.btn--outline-dark {
  color: var(--foreground);
  border: 1.5px solid var(--border);
}

.btn--outline-dark:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-blue-10);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   6. Navbar
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.125rem 0;
  transition: all var(--transition-base);
}

.nav--scrolled {
  background: rgba(10, 14, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: calc(var(--z-nav) + 1);
}

.nav__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--soft-white);
  letter-spacing: -0.01em;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--soft-white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--soft-white);
}

.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  z-index: calc(var(--z-nav) + 1);
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--soft-white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav__toggle--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  background: rgba(10, 14, 32, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-base);
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu--open .mobile-menu__link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu--open .mobile-menu__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu--open .mobile-menu__link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu--open .mobile-menu__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu--open .mobile-menu__link:nth-child(4) { transition-delay: 0.2s; }

.mobile-menu__link:hover,
.mobile-menu__link--active {
  color: var(--soft-white);
}

/* ----------------------------------------------------------
   7. Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  background: var(--deep-black-blue);
  overflow: hidden;
  padding: 6rem 0 3.5rem;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: var(--z-hero-svg);
  pointer-events: none;
  will-change: transform;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.25);
  z-index: calc(var(--z-hero-svg) + 1);
  pointer-events: none;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: var(--z-hero-content);
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  background: var(--primary-blue-10);
  border: 1px solid var(--primary-blue-20);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.hero__title {
  color: var(--soft-white);
  margin-bottom: 1.25rem;
}

.hero__title .accent {
  color: var(--primary-blue);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__actions .btn {
  width: 100%;
}

.hero__scroll {
  display: none;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-hero-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}

/* ----------------------------------------------------------
   8. Partners
   ---------------------------------------------------------- */
.partners {
  padding: 3rem 0;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  filter: grayscale(1) brightness(0.6);
  opacity: 0.5;
  transition: all var(--transition-base);
}

.partners__item:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  border-color: var(--primary-blue-20);
  background: rgba(255, 255, 255, 0.05);
}

.partners__item img {
  max-height: 40px;
  object-fit: contain;
}

.partners__item span {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------
   10. Valor 360
   ---------------------------------------------------------- */
.valor__grid {
  display: grid;
  gap: 1.5rem;
}

.valor__card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--soft-white);
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
  transition: all var(--transition-base);
}

.valor__card:hover {
  box-shadow: 0 8px 32px rgba(10, 92, 245, 0.1);
  transform: translateY(-2px);
}

.valor__card-img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
}

.valor__card h3 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.valor__card p {
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   11. Services
   ---------------------------------------------------------- */
.services__grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  padding: 1.25rem;
  background: var(--charcoal-blue);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-blue-40);
  box-shadow: 0 12px 40px var(--primary-blue-20);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue-10);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--primary-blue);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  color: var(--soft-white);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent-blue);
  font-weight: 500;
  font-size: 0.875rem;
  transition: gap var(--transition-fast);
}

.service-card__link:hover {
  gap: 0.625rem;
}

.service-card__link svg {
  width: 16px;
  height: 16px;
}

/* ----------------------------------------------------------
   12. About / Quiénes Somos
   ---------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: 2.5rem;
}

.about__text h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.about__text p {
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about__text .btn {
  margin-top: 0.5rem;
}

.about__image {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.about__image img {
  width: 100%;
  height: 120%;
  min-height: 120%;
  object-fit: cover;
  will-change: transform;
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(10, 92, 245, 0.15);
  pointer-events: none;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--soft-white);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.section--dark .stat,
.section--charcoal .stat {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.stat__number {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  font-weight: 500;
}

.section--dark .stat__label,
.section--charcoal .stat__label {
  color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------------
   13. Por Qué Elegirnos
   ---------------------------------------------------------- */
.reasons__grid {
  display: grid;
  gap: 1.5rem;
}

.reason {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.reason__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue-10);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--primary-blue);
}

.reason__icon svg {
  width: 24px;
  height: 24px;
}

.reason h3 {
  color: var(--soft-white);
  margin-bottom: 0.375rem;
  font-size: 1.125rem;
}

.reason p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   14. Valores
   ---------------------------------------------------------- */
.valores__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.valor-item {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: center;
  transition: all var(--transition-base);
}

.valor-item:hover {
  border-color: var(--primary-blue-20);
  background: rgba(255, 255, 255, 0.05);
}

.valor-item__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue-10);
  border-radius: 10px;
  margin: 0 auto 0.875rem;
  color: var(--primary-blue);
}

.valor-item__icon svg {
  width: 22px;
  height: 22px;
}

.valor-item h4 {
  color: var(--soft-white);
  margin-bottom: 0.375rem;
  font-size: 1rem;
}

.valor-item p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   15. Testimonios
   ---------------------------------------------------------- */
.testimonials__grid {
  display: grid;
  gap: 1.5rem;
}

.testimonial {
  padding: 1.25rem;
  background: var(--soft-white);
  border-radius: 14px;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: #F5A623;
}

.testimonial__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial__text {
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-blue-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

/* ----------------------------------------------------------
   16. Contact Form
   ---------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact__bg img {
  width: 100%;
  height: 120%;
  min-height: 120%;
  object-fit: cover;
  opacity: 0.15;
  will-change: transform;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact__inner h2 {
  color: var(--soft-white);
  margin-bottom: 0.75rem;
}

.contact__inner > p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 2.5rem;
}

.contact__form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

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

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--soft-white);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.08);
}

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

.form-group--error input,
.form-group--error textarea {
  border-color: var(--destructive);
}

.form-group__error {
  font-size: 0.75rem;
  color: var(--destructive);
  display: none;
}

.form-group--error .form-group__error {
  display: block;
}

.contact__form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.contact__note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  overflow-wrap: break-word;
  word-break: break-all;
}

.contact__note a {
  color: var(--accent-blue);
}

.contact__note a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   17. Footer
   ---------------------------------------------------------- */
.footer {
  background: var(--deep-black-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0 1.5rem;
  color: var(--soft-white);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.footer__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer__brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--soft-white);
  letter-spacing: 0.03em;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer__col a:hover {
  color: var(--accent-blue);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-all;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ----------------------------------------------------------
   18. WhatsApp Float
   ---------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: var(--z-whatsapp);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-float__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
}

.whatsapp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.whatsapp-float__tooltip {
  background: var(--soft-white);
  color: var(--foreground);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.whatsapp-float__tooltip--visible {
  opacity: 1;
  transform: translateX(0);
}

/* ----------------------------------------------------------
   18. Page Hero (subpages)
   ---------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 7rem 0 3rem;
  background: var(--deep-black-blue);
  overflow: hidden;
  text-align: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--deep-black-blue) 0%, transparent 30%, transparent 70%, var(--deep-black-blue) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__content h1 {
  color: var(--soft-white);
  margin-bottom: 1rem;
}

.page-hero__content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   21. Service Detail (que-hacemos)
   ---------------------------------------------------------- */
.service-detail {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.service-detail__image {
  border-radius: 16px;
  overflow: hidden;
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.service-detail__content h2 {
  margin-bottom: 1rem;
}

.service-detail__content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.service-detail__list {
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.service-detail__list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.section--dark .service-detail__content h2 { color: var(--soft-white); }
.section--dark .service-detail__content p { color: rgba(255, 255, 255, 0.6); }
.section--dark .service-detail__list li { color: rgba(255, 255, 255, 0.6); }
.section--light .service-detail__content h2 { color: var(--foreground); }
.section--light .service-detail__content p { color: var(--muted-fg); }
.section--light .service-detail__list li { color: var(--muted-fg); }

/* Process Timeline */
.process__grid {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.process__step {
  counter-increment: step;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  position: relative;
  transition: all var(--transition-base);
}

.process__step:hover {
  border-color: var(--primary-blue-20);
  background: rgba(255, 255, 255, 0.05);
}

.process__step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue-20);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.process__step h3 {
  color: var(--soft-white);
  margin-bottom: 0.5rem;
}

.process__step p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   22. About Detail (quienes-somos)
   ---------------------------------------------------------- */
.mission-vision__grid {
  display: grid;
  gap: 1.5rem;
}

.mission-vision__card {
  padding: 1.25rem;
  background: var(--soft-white);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.mission-vision__card h3 {
  color: var(--foreground);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-vision__card h3 svg {
  width: 24px;
  height: 24px;
  color: var(--primary-blue);
}

.mission-vision__card p {
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin: 0 auto 2rem;
}

/* ----------------------------------------------------------
   19. Scroll Reveal Animations
   ---------------------------------------------------------- */

/* Hero entrance (CSS-only, triggers on page load) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__badge   { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero__title   { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.hero__subtitle{ animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
.hero__actions { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }

.page-hero__content .eyebrow { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.page-hero__content h1       { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.page-hero__content p        { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }

/* Scroll reveal base — default: fade up */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: none !important;
}

/* Directional variants (override initial transform) */
.reveal--left  { transform: translateX(-50px); }
.reveal--right { transform: translateX(50px); }
.reveal--scale { transform: scale(0.9); }

/* Staggered delays */
.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }
.reveal--delay-4 { transition-delay: 0.48s; }

/* Accessibility: disable all animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__badge, .hero__title, .hero__subtitle, .hero__actions,
  .page-hero__content .eyebrow, .page-hero__content h1, .page-hero__content p {
    animation: none;
  }
}

/* ----------------------------------------------------------
   23a. Media Queries — Small Mobile+ (480px)
   ---------------------------------------------------------- */
@media (min-width: 480px) {
  :root {
    --container-pad: 1.25rem;
    --section-pad: 4rem 0;
    --gap: 1.75rem;
  }

  .section__header {
    margin-bottom: 2.5rem;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    width: auto;
  }

  .btn {
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
  }

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

  .partners__item {
    padding: 1.25rem;
  }

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

  .valores__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valor__card,
  .service-card,
  .testimonial,
  .process__step,
  .mission-vision__card {
    padding: 1.5rem;
  }

  .valor-item {
    padding: 1.5rem;
  }

  .page-hero {
    padding: 8rem 0 4rem;
  }

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-float__btn {
    width: 56px;
    height: 56px;
  }

  .nav__logo {
    width: 40px;
    height: 40px;
  }

  .nav__brand-name {
    font-size: 1.25rem;
  }

  .hero__scroll {
    display: flex;
  }
}

/* ----------------------------------------------------------
   23b. Media Queries — Tablet (768px)
   ---------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --container-pad: 2rem;
    --section-pad: 5.5rem 0;
    --gap: 2rem;
  }

  .section__header {
    margin-bottom: 3rem;
  }

  /* Navbar */
  .nav__toggle {
    display: none;
  }

  .nav__links {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 0;
  }

  .hero__content {
    max-width: 600px;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  /* Partners */
  .partners__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }

  .partners__item {
    padding: 1.5rem;
  }

  /* Valor 360 */
  .valor__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valor__card-img {
    display: block;
  }

  .valor__card,
  .service-card,
  .testimonial,
  .process__step,
  .mission-vision__card {
    padding: 2rem;
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about__image img {
    min-height: 120%;
  }

  /* Stats */
  .stats {
    gap: 1.5rem;
  }

  /* Reasons */
  .reasons__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Valores */
  .valores__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact form */
  .contact__form--2col {
    grid-template-columns: 1fr 1fr;
  }

  .contact__form--2col .form-group--full {
    grid-column: 1 / -1;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .footer__contact-item {
    word-break: normal;
  }

  /* Service Detail */
  .service-detail {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail--reverse .service-detail__image {
    order: 2;
  }

  .service-detail__image img {
    min-height: 260px;
  }

  /* Process */
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__step::before {
    font-size: 2.5rem;
  }

  /* Mission/Vision */
  .mission-vision__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Page hero */
  .page-hero {
    padding: 10rem 0 5rem;
  }

  .page-hero__content p {
    font-size: 1.125rem;
  }

  /* Footer */
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer__grid {
    gap: 2.5rem;
    margin-bottom: 3rem;
  }

  /* Partners */
  .partners {
    padding: 4rem 0;
  }
}

/* ----------------------------------------------------------
   24. Media Queries — Desktop (1200px)
   ---------------------------------------------------------- */
@media (min-width: 1200px) {
  :root {
    --container-pad: 2.5rem;
    --section-pad: 7rem 0;
  }

  .section__header {
    margin-bottom: 3.5rem;
  }

  .hero__content {
    max-width: 720px;
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Valores */
  .valores__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Process */
  .process__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ----------------------------------------------------------
   25. Step Form (solicitud.html)
   ---------------------------------------------------------- */
[hidden] {
  display: none !important;
}

.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;
}

.step-form {
  background: radial-gradient(circle at top left, rgba(10, 92, 245, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(77, 140, 245, 0.12), transparent 60%),
              var(--deep-black-blue);
  min-height: 100vh;
  padding: 7rem 0 4rem;
  color: var(--soft-white);
}

.step-form__container {
  max-width: 720px;
}

.step-form__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.step-form__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0.75rem 0 0.75rem;
  color: var(--soft-white);
}

.step-form__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.step-form__progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.step-form__progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.step-form__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
  border-radius: 999px;
  width: 0%;
  transition: width var(--transition-slow);
  box-shadow: 0 0 12px var(--primary-blue-40);
}

.step-form__progress-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.step-form__form {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.5rem 1.75rem 1.75rem;
  backdrop-filter: blur(6px);
}

/* Step base */
.step {
  border: 0;
  padding: 0;
  margin: 0;
  display: none;
}

/* Todas las variantes animables quedan display:block para que la
   transición pueda correr; solo la activa está visible por opacity. */
.step--active,
.step--enter,
.step--enter-back,
.step--exit,
.step--exit-back {
  display: block;
}

.step--active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Estado inicial del paso que entra — NO tiene transición,
   se setea de una y el frame siguiente salta a --active. */
.step--enter {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}
.step--enter-back {
  opacity: 0;
  transform: translate3d(0, -22px, 0);
}

/* Estado de salida — sí anima. */
.step--exit {
  opacity: 0;
  transform: translate3d(0, -16px, 0);
  transition:
    opacity 0.2s ease,
    transform 0.25s cubic-bezier(0.4, 0, 1, 1);
  pointer-events: none;
}
.step--exit-back {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.2s ease,
    transform 0.25s cubic-bezier(0.4, 0, 1, 1);
  pointer-events: none;
}

.step__legend {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.step__question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  line-height: 1.2;
  color: var(--soft-white);
  margin: 0 0 0.5rem;
}

.step__hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.step .form-group + .form-group {
  margin-top: 1rem;
}

.step .form-group__hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
}

.step .form-group--file input[type="file"] {
  padding: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.step .form-group--file input[type="file"]::-webkit-file-upload-button {
  background: var(--primary-blue-10);
  color: var(--accent-blue);
  border: 1px solid rgba(77, 140, 245, 0.3);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background var(--transition-fast);
}

.step .form-group--file input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--primary-blue-20);
}

/* Chips */
.step__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--primary-blue-10);
  transform: translateY(-1px);
}

.chip--active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--soft-white);
  box-shadow: 0 4px 14px var(--primary-blue-40);
}

/* Radio cards */
.step__radio-group {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step__radio-group--dense {
  grid-template-columns: 1fr;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.02);
}

.radio-card:hover {
  border-color: rgba(77, 140, 245, 0.5);
  background: rgba(77, 140, 245, 0.05);
}

.radio-card input[type="radio"] {
  margin-top: 0.2rem;
  accent-color: var(--primary-blue);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.radio-card input[type="radio"]:checked ~ .radio-card__body strong {
  color: var(--accent-blue);
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: var(--primary-blue);
  background: var(--primary-blue-10);
  box-shadow: 0 4px 20px var(--primary-blue-20);
}

.radio-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.radio-card__body strong {
  color: var(--soft-white);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: color var(--transition-fast);
}

.radio-card__body span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Checkbox card */
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.checkbox-card:hover {
  border-color: rgba(77, 140, 245, 0.5);
  background: rgba(77, 140, 245, 0.05);
}

.checkbox-card input[type="checkbox"] {
  accent-color: var(--primary-blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-card:has(input[type="checkbox"]:checked) {
  border-color: var(--primary-blue);
  background: var(--primary-blue-10);
  color: var(--soft-white);
}

/* Error for radio group */
.step__error-radio {
  display: none;
}

.step--error .step__error-radio {
  display: block;
  color: var(--destructive);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

/* Navegación */
.step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.step__nav .btn {
  min-width: 128px;
}

.step__nav #btnPrev {
  margin-right: auto;
}

.step__nav #btnPrev:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.8125rem;
  text-decoration: underline;
}

.btn--ghost:hover {
  color: var(--accent-blue);
}

/* Success */
.step--success {
  text-align: center;
  padding: 1.5rem 0;
}

.step--success .step__success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--primary-blue-10);
  border: 2px solid var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  animation: stepSuccessIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step--success .step__success-icon svg {
  width: 36px;
  height: 36px;
}

.step--success .btn {
  margin-top: 1.5rem;
}

@keyframes stepSuccessIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* Submit error */
.step__submit-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(240, 61, 61, 0.08);
  border: 1px solid rgba(240, 61, 61, 0.3);
  border-radius: 8px;
  color: #ffb4b4;
  font-size: 0.875rem;
  text-align: center;
}

.step__submit-error a {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Form loading state */
.step-form__form--sending {
  pointer-events: none;
  opacity: 0.75;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .step-form {
    padding: 6rem 0 3rem;
  }
  .step-form__form {
    padding: 1.5rem 1.1rem 1.25rem;
    border-radius: 14px;
  }
  .step-form__progress {
    margin-bottom: 1.75rem;
  }
  .step__nav {
    justify-content: stretch;
  }
  .step__nav .btn {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.75rem;
    font-size: 0.8125rem;
  }
  .step__nav #btnPrev {
    margin-right: 0;
    flex: 0 1 auto;
    min-width: 44px;
  }
  .step__nav #btnPrev span { display: none; }
  .btn--ghost {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .step__radio-group--dense {
    grid-template-columns: 1fr 1fr;
  }
  .step__nav .btn {
    min-width: 140px;
  }
}
