/* =========================
   Reset & Base
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-purple: #6e42c5;
  --dark-purple: #422977;
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-100);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
     Toasts (social proof)
     ========================= */
.toast-container {
  position: fixed;
  left: 16px;
  bottom: 80px;
  display: flex;
  gap: 12px;
  z-index: 1200;
}

.about-bullets {
  display: flex;
  align-items: end;
  height: 100%;
}

.toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  background: rgba(12, 10, 18, 0.92);
  border: 1px solid rgba(110, 66, 197, 0.22);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 12px 36px rgba(110, 66, 197, 0.18);
  backdrop-filter: blur(10px);
  transform: translateY(12px) scale(.98);
  opacity: 0;
  animation: toastInBounce .5s cubic-bezier(.22, .61, .36, 1) forwards;
}

.toast i {
  color: var(--white);
  font-size: 1.35rem;
}

.toast.hide {
  animation: toastOut .28s ease forwards;
}

/* Gradient border via pseudo */
.toast::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Highlight variant */
.toast.highlight {
  box-shadow: 0 18px 48px rgba(110, 66, 197, .45), 0 0 0 4px rgba(110, 66, 197, .25) inset;
}

.toast.highlight::before {
  background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
}

.toast.highlight i {
  color: var(--white);
}

/* Variante especial: cuando alguien "inició su automatización" */
.toast.automation {
  border-color: rgba(110, 66, 197, 0.38);
  box-shadow:
    0 18px 48px rgba(110, 66, 197, .35),
    0 0 0 4px rgba(110, 66, 197, .22) inset;
  animation: toastInBounce .5s cubic-bezier(.22, .61, .36, 1) forwards, toastPulse 1.8s ease-in-out 1s 2;
}

.toast.automation::before {
  background: linear-gradient(135deg, rgba(110, 66, 197, 0.95), rgba(66, 41, 119, 0.85));
}

/* Barra lateral de acento sutil */
.toast.automation::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-purple), var(--dark-purple));
  opacity: .9;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

@keyframes toastPulse {
  0% {
    box-shadow: 0 18px 48px rgba(110, 66, 197, .35), 0 0 0 4px rgba(110, 66, 197, .22) inset;
  }

  50% {
    box-shadow: 0 22px 56px rgba(110, 66, 197, .48), 0 0 0 4px rgba(110, 66, 197, .28) inset;
  }

  100% {
    box-shadow: 0 18px 48px rgba(110, 66, 197, .35), 0 0 0 4px rgba(110, 66, 197, .22) inset;
  }
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .toast.automation {
    animation: toastInBounce .5s cubic-bezier(.22, .61, .36, 1) forwards;
  }
}

/* Animations for toasts */
@keyframes toastInBounce {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(.96);
  }

  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
}

/* =========================
     Header & Navigation
     ========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110, 66, 197, 0.2);
}

.header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.nav-logo i {
  color: var(--primary-purple);
  font-size: 2rem;
}

/* Tamaño del logo en el nav */
.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: .5rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: all .25s ease;
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* =========================
     Buttons & CTAs
     ========================= */
.cta-button {
  background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 15px rgba(110, 66, 197, .3);
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Asegurar sin subrayado en estados de enlace */
a.cta-button,
a.cta-button:link,
a.cta-button:visited,
a.cta-button:hover,
a.cta-button:focus {
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(110, 66, 197, .5);
  filter: saturate(1.1);
  background-position: 100% 0%;
}

.cta-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 10px 30px rgba(110, 66, 197, .5);
}

/* Brillo diagonal que cruza el botón en hover */
.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-10%) skewX(-20deg);
  transition: transform .55s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cta-button:hover::after {
  transform: translateX(320%) skewX(-20deg);
}

/* Efecto presionado */
.cta-button:active {
  transform: translateY(0) scale(1.08);
  box-shadow: 0 6px 16px rgba(110, 66, 197, .35);
  filter: saturate(1.05);
}

/* Respeto a preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {

  .cta-button,
  .cta-button::after,
  .cta-button:hover,
  .cta-button:active {
    transition: none !important;
    transform: none !important;
    background-position: initial !important;
  }
}

/* Ripple effect */
.cta-button .ripple {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.35);
  animation: ripple .6s ease-out forwards;
}

@keyframes ripple {
  from {
    opacity: .7;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(20);
  }
}

/* Attention states */
.cta-button.attention {
  animation: pulseGlow 1.6s ease-out, wiggle 0.6s ease-in-out;
  animation-iteration-count: 1, 1;
  background-size: 200% 200%;
  animation-name: pulseGlow, wiggle, gradientMove;
  animation-duration: 1.6s, 0.6s, 1.6s;
  animation-timing-function: ease-out, ease-in-out, linear;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 6px 18px rgba(110, 66, 197, .45);
    filter: saturate(1.05);
  }

  50% {
    box-shadow: 0 16px 40px rgba(110, 66, 197, .75);
    filter: saturate(1.2) brightness(1.05);
  }

  100% {
    box-shadow: 0 8px 24px rgba(110, 66, 197, .5);
    filter: saturate(1.1);
  }
}

@keyframes wiggle {
  0% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* White / Dark CTA variants */
.cta-white {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-white:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, .18);
}

.cta-white.attention {
  box-shadow: 0 0 0 4px rgba(110, 66, 197, .45), 0 14px 36px rgba(110, 66, 197, .45);
}

.cta-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Outline CTA used in sticky */
.cta-button.outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}

/* =========================
     Hero
     ========================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(110, 66, 197, 0.18) 0%, var(--black) 75%);
}

.hero.minimal {
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -20%, rgba(110, 66, 197, 0.38), transparent 60%),
    linear-gradient(180deg, #000000 0%, #0b0716 100%);
  align-items: center;
  padding-top: 120px;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.minimal-title {
  font-size: 3.25rem;
  line-height: 1.1;
  color: var(--white);
  font-weight: 800;
  margin-bottom: .8rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-300);
  margin: 0 auto 2rem;
  max-width: 900px;
}

.minimal-subtitle {
  font-size: 2rem;
  line-height: 1.3;
  color: var(--gray-300);
  font-weight: 700;
  opacity: .85;
  max-width: 900px;
  margin: 0 auto 2rem;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: inline-flex;
  gap: .75rem;
}

.pre-headline {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.highlight {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  display: block;
  margin-top: .5rem;
  font-size: 0.9em;
}

/* Hero background layers */
.hero .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Overlay para resaltar y dar profundidad sin tapar el contenido */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(110, 66, 197, 0.22), transparent 62%),
    radial-gradient(80% 80% at 50% 100%, rgba(0, 0, 0, 0.45), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero .hero-bg>div {
  will-change: transform, opacity;
  transition: transform .2s ease-out;
}

/* =========================
     Background Decorations
     ========================= */
.bg-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px;
  background-position: 0 0, 0 0;
  animation: pan-grid 18s linear infinite;
  opacity: 0.55;
}

@keyframes pan-grid {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  to {
    transform: translate3d(-80px, -80px, 0) rotate(0.001deg) scale(1.02);
  }
}

.bg-blobs {
  position: absolute;
  inset: -10%;
  filter: blur(50px);
  opacity: 0.7;
}

.bg-blobs::before,
.bg-blobs::after {
  content: "";
  position: absolute;
  width: 64vmin;
  height: 64vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(110, 66, 197, 0.9), rgba(66, 41, 119, 0.2) 60%, transparent 70%);
  animation: blob-drift 16s ease-in-out infinite alternate;
}

.bg-blobs::after {
  left: 50%;
  top: 20%;
  width: 56vmin;
  height: 56vmin;
  background: radial-gradient(circle at 70% 70%, rgba(66, 41, 119, 0.9), rgba(110, 66, 197, 0.2) 60%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -6s;
}

@keyframes blob-drift {
  0% {
    transform: translate3d(-10%, -5%, 0) scale(1);
  }

  100% {
    transform: translate3d(8%, 6%, 0) scale(1.08);
  }
}

.bg-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 65% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 80% 70%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 35% 80%, rgba(255, 255, 255, 0.7), transparent);
  background-repeat: repeat;
  background-size: 300px 220px;
  opacity: 0.85;
  animation: twinkle 3.5s ease-in-out infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  50% {
    opacity: 0.45;
    transform: translateY(-6px);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  .bg-grid,
  .bg-blobs::before,
  .bg-blobs::after,
  .bg-stars {
    animation: none !important;
  }
}

/* =========================
     Sections & Typography
     ========================= */
.section {
  padding: 60px 0;
  background: var(--black);
}

.bg-light {
  background: rgba(255, 255, 255, 0.03);
}

.bg-dark {
  background: var(--black);
  color: var(--white);
}

.text-light {
  color: var(--white);
}

.center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* =========================
     Includes (¿Qué incluye?)
     ========================= */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.feature-card h4 {
  color: var(--white);
  margin-bottom: .75rem;
}

.feature-card.accent {
  position: relative;
}

.feature-card.accent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(110,66,197,.35), rgba(255,255,255,0.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (max-width: 768px) {
  .includes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
/* Scoped grid for PAS section to avoid global grid interference */
.pas-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

/* Place first two cards stacked on the left, third spans on the right */
.pas-grid > article:nth-child(1),
.pas-grid > article:nth-child(2) {
  grid-column: 1;
}

.pas-grid > article:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
}

/* =========================
     PAS cards: border glow
     ========================= */
.pas .card {
  position: relative;
  overflow: hidden;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-radius: 280px;
  --glow-opacity: 0;
  will-change: box-shadow, transform;
}

.pas .card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: radial-gradient(
    var(--glow-radius) circle at var(--glow-x) var(--glow-y),
    rgba(132, 0, 255, 0.95) 0%,
    rgba(132, 0, 255, 0.55) 28%,
    rgba(132, 0, 255, 0.28) 46%,
    transparent 72%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  /* Siempre visible + pulso automático */
  opacity: .7;
  animation: pasGlowPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pasGlowPulse {
  0%   { opacity: .45; }
  50%  { opacity: .9; }
  100% { opacity: .45; }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .pas .card::after {
    animation: none !important;
    opacity: .65;
  }
}

.pas .card:hover {
  box-shadow: none !important; /* solo borde con glow */
}



.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--gray-300);
  margin: 0 auto 0rem;
  max-width: 700px;
}

/* =========================
     Icons: normalization
     ========================= */
/* Normalize Remix Icon elements */
i[class^="ri-"],
i[class*=" ri-"] {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  font-style: normal;
  color: currentColor; /* inherit from surrounding text unless overridden */
}

/* Size utilities */
.icon-sm { font-size: 0.9em; }
.icon-md { font-size: 1.15em; }
.icon-lg { font-size: 1.35em; }
.icon-xl { font-size: 1.6em; }

/* Button icons slightly larger and fixed spacing */
.cta-button i {
  font-size: 1.15em;
  flex: 0 0 auto;
}

/* Align icons in custom lists */
.icon-list i {
  width: 1.25em;
  text-align: center;
}

/* =========================
     About (¿Quiénes somos?)
     ========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.about-text p {
  color: var(--gray-300);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Section-level polish (scoped) */
.about .section-title {
  margin-bottom: 1.25rem;
}

.about .card {
  height: 100%;
}

/* Badges row */
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.about-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-badges .badge i {
  color: var(--primary-purple);
}

/* Icon checklist on the right */
.about .icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about .icon-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--gray-300);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about .icon-list li:last-child {
  border-bottom: 0;
}

.about .icon-list i {
  color: var(--primary-purple);
  font-size: 1.15rem;
}

/* Accent variant for the right card */
.about .about-bullets.accent {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about .about-bullets.accent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(110,66,197,.35), rgba(255,255,255,0.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* About bullets heading styling */
.about .about-bullets.accent h4 {
  margin-bottom: .5rem;
  color: var(--white);
}

/* About section */
.about .about-bullets {
  display: block;
  height: auto;
  align-items: initial;
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
     Cards & Components
     ========================= */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(110, 66, 197, 0.15);
}

.card h5 {
  color: var(--white);
}

/* =========================
     Automatizaciones: tarjetas
     ========================= */
#automatizaciones .autom-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

#automatizaciones .autom-card .card-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}

#automatizaciones .autom-card .card-head i {
  color: var(--primary-purple);
  font-size: 1.4rem;
}

#automatizaciones .autom-card .card-head h5 {
  margin: 0;
  color: var(--white);
  font-weight: 700;
}

#automatizaciones .autom-card .checklist {
  margin-top: .25rem;
}

#automatizaciones .autom-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-purple), rgba(255,255,255,0.15));
  opacity: .8;
}

#automatizaciones .autom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(110, 66, 197, 0.22);
}

/* Benefits cards specific styling */
.benefits .card h5 {
  color: var(--primary-purple);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

/* =========================
     Lists
     ========================= */
.checklist {
  list-style: none;
  margin: 1rem 0;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .75rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.checklist li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: bold;
  font-size: 1.2em;
}

.numbered {
  counter-reset: step-counter;
  list-style: none;
  margin: 1rem 0;
}

.numbered li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: .75rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.numbered li:before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-purple);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: bold;
}

.bullets {
  list-style: none;
  margin: 1rem 0;
}

.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .5rem;
  color: var(--gray-300);
}

.bullets li:before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-purple);
  font-weight: bold;
  font-size: 1.2em;
}

/* =========================
     Value Stack & Pricing
     ========================= */
.stack {
  list-style: none;
  background: rgb(110 66 197 / 20%);
  border-radius: 16px;
  padding: 2rem;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  
}

.stack li {
  position: relative;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-300);
  font-size: 1.1rem;
}

.stack li:last-child {
  border-bottom: none;
}

.stack li:before {
  content: '🎯';
  margin-right: .75rem;
}

.price-box {
  background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
  color: var(--white);
  text-align: center;
  border-radius: 18px;
  padding: 12rem 0rem 12rem 0rem;
}

.price-box h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.price-box .bullets li {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: .75rem 0;
}

.price-box .cta-button {
  background: var(--white);
  color: var(--primary-purple);
  margin-top: 1rem;
  border: 1px solid var(--white);
}

/* =========================
     Testimonios
     ========================= */
.quote-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 16px;
  border-left: 4px solid var(--primary-purple);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

.quote-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray-300);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.quote-card cite {
  font-weight: 600;
  color: var(--primary-purple);
  font-style: normal;
}

/* =========================
     Testimonials Slider
     ========================= */
#testimonios .testimonials-slider {
  position: relative;
  overflow: hidden;
}

#testimonios .slider-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  will-change: transform;
  transition: transform .6s ease;
}

#testimonios .slide {
  flex: 0 0 100%;
  display: flex;
}

#testimonios .slide .quote-card {
  width: 100%;
}

#testimonios .slider-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  z-index: 1;
}

#testimonios .slider-fade.left {
  left: 0;
  background: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(255,255,255,0.03) 35%, rgba(0,0,0,0) 100%);
}

#testimonios .slider-fade.right {
  right: 0;
  background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(255,255,255,0.03) 35%, rgba(0,0,0,0) 100%);
}

@media (min-width: 768px) {
  #testimonios .slide { flex: 0 0 50%; }
}

@media (min-width: 1024px) {
  #testimonios .slide { flex: 0 0 33.3333%; }
}

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

.faq details {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.faq summary {
  padding: 1.25rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: all .2s ease;
  list-style: none;
}

/* Chevron arrow indicator */
#faq details summary {
  position: relative;
  padding-right: 2.25rem;
}

#faq details summary::after {
  content: "▾"; /* chevron */
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .2s ease;
  color: var(--white);
  opacity: .9;
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  background: rgba(110, 66, 197, 0.1);
  color: var(--white);
}

.faq details[open] summary {
  background: rgba(110, 66, 197, 0.15);
  color: var(--white);
}

.faq details p {
  padding: 1.25rem;
  color: var(--gray-300);
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.6;
}

/* =========================
     FAQ: border glow like PAS
     ========================= */
#faq details {
  position: relative;
  overflow: hidden;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-radius: 260px;
  --glow-opacity: 0;
}

#faq details::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 12px; /* match details border */
  background: radial-gradient(
    var(--glow-radius) circle at var(--glow-x) var(--glow-y),
    rgba(132, 0, 255, 0.95) 0%,
    rgba(132, 0, 255, 0.55) 28%,
    rgba(132, 0, 255, 0.28) 46%,
    transparent 72%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: var(--glow-opacity);
  transition: opacity .2s ease;
  pointer-events: none;
}

#faq details:hover::after,
#faq details:focus-within::after {
  opacity: 1;
}

/* =========================
     Contact Form
     ========================= */
.contact-section {
  background: rgba(255, 255, 255, 0.02);
  padding: 60px 0;
}

/* =========================
     Urgency card styling
     ========================= */
#urgencia .urgency-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 0, 255, 0.25);
  position: relative;
  overflow: hidden;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-radius: 320px;
  --glow-opacity: 0;
}

#urgencia .urgent-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.2rem;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
  justify-content: center;
  padding-right: 0;
  line-height: 1.15;
  flex-direction: column;
}

#urgencia .urgent-title i {
  display: inline-flex;
  align-items:flex-start;
  justify-content:flex-start;
  color: rgb(255, 8, 0);
  filter: drop-shadow(0 0 6px rgba(255, 196, 0, 0.4));
  line-height: 1; /* evita desajustes verticales */
  vertical-align: middle;
}

#urgencia .urgent-badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 0, 21, 0.85), rgba(255, 0, 0, 0.85));
  box-shadow: 0 4px 18px rgba(255, 71, 87, .25);
  animation: urgentPulse 1.8s ease-in-out infinite;
  position: static; /* inline con el título */
  margin-left: .5rem;
}

@keyframes urgentPulse {
  0%, 100% { transform: translateZ(0) scale(1); filter: drop-shadow(0 0 0 rgba(255, 140, 0, .0)); }
  50% { transform: translateZ(0) scale(1.03); filter: drop-shadow(0 0 12px rgba(255, 140, 0, .35)); }
}

#urgencia .urgency-card:hover::after { opacity: 1; }

/* Animated soft accent background */
#urgencia .urgency-card::before {
  content: "";
  position: absolute;
  inset: -20% -10% -30% -10%;
  background: radial-gradient(60% 60% at 30% 20%, rgba(132,0,255,.18), transparent 60%),
              radial-gradient(50% 50% at 80% 50%, rgba(119, 0, 255, 0.12), transparent 60%);
  filter: blur(20px);
  animation: floatAccent 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatAccent {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.05); }
}

/* Border glow like PAS */
#urgencia .urgency-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 16px;
  background: radial-gradient(
    var(--glow-radius) circle at var(--glow-x) var(--glow-y),
    rgba(132, 0, 255, 0.95) 0%,
    rgba(132, 0, 255, 0.45) 30%,
    rgba(132, 0, 255, 0.2) 55%,
    transparent 75%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: var(--glow-opacity);
  transition: opacity .2s ease;
  pointer-events: none;
}

#urgencia .urgency-card:hover { transform: translateY(-2px); }
#urgencia .urgency-card:hover::after { opacity: 1; }

/* CTA button placement */
#urgencia .urgency-card .cta-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  min-width: 260px;
}



@media (max-width: 768px) {
  #urgencia .urgency-card { padding: 1.5rem; }
  #urgencia .urgent-title { font-size: 1.6rem; }
}

/* =========================
     Hero Pre-Badge
     ========================= */
.hero .pre-badge {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

.hero .pre-badge .badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
  background: rgba(132, 0, 255, 0.281);
  border: 1px solid rgba(211, 182, 238, 0.35);
  box-shadow: 0 0 0 1px rgba(132, 0, 255, 0.534) inset;
}

@media (max-width: 768px) {
  .hero .pre-badge .badge {
    font-size: .85rem;
    padding: .35rem .7rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center; /* centra los bloques en el eje horizontal */
}

/* =========================
     Contact Form Styles
     ========================= */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: .35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--white);
  padding: .75rem .9rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea { resize: vertical; }

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

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(132, 0, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(132, 0, 255, 0.18);
}

/* Checkbox inline style */
.form-field .checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gray-300);
}

.form-field .checkbox input { accent-color: #8400FF; }

/* Error states */
.form-field.has-error label { color: #ff6161; }
.form-field .field-error,
.form-field input.field-error,
.form-field textarea.field-error {
  border-color: rgba(255, 97, 97, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(255, 97, 97, 0.22) !important;
}

.form-actions { margin-top: 1rem; }

.cta-button.loading {
  position: relative;
  pointer-events: none;
  opacity: .85;
}

.cta-button.loading::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.7);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Success message */
.form-success {
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.form-success i { 
  color: #2ecc71; 
  font-size: 2rem; 
}

.form-success h4 {
   color: var(--white); 
   margin: .5rem 0; 
  }

.form-success p { 
  color: var(--gray-300); 
}

.contact-copy h2 {
  text-align:center;
  margin-bottom: 1rem;
}

.contact-copy .section-subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* CTA Final stacked spacing */
#cta-final .contact-copy { 
  max-width: 820px;
   margin-left: auto;
   margin-right: auto; 
  }

#cta-final .contact-form {
   max-width: 820px; 
   margin-top: .5rem; 
   margin-left: auto; 
   margin-right: auto; 
  }

/* =========================
     Value Stack (Lo que obtenés)
     ========================= */
#valor .grid-2 {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Stats panel */
#valor .stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

#valor .stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Refuerzo del borde superior con el mismo color */
  border-top: 2px solid rgba(132, 0, 255, 0.65);
}

#valor .stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 14px;
  background: radial-gradient(240px circle at 50% 0%, rgba(132,0,255,1), rgba(132,0,255,.55) 30%, rgba(132,0,255,.28) 55%, transparent 75%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: .85;
}

/* Línea de luz adicional en el borde superior */
#valor .stat-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(132,0,255,.9), transparent);
  opacity: .9;
  pointer-events: none;
}

#valor .stat-value {
  color: var(--white);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: .5px;
}

#valor .stat-label {
  color: var(--gray-300);
  font-size: .95rem;
  margin-top: .25rem;
}

@media (max-width: 992px) {
  #valor .stats-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  #valor .stats-panel { grid-template-columns: 1fr; }
}

#valor .stack {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

#valor .stack li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-300);
  border-radius: 12px;
  padding: .8rem 1rem;
}

#valor .price-box {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 0, 255, 0.22);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

#valor .price-box h4 {
  color: var(--white);
  margin-bottom: .75rem;
}

#valor .price-box .bullets {
  margin: 0 0 1rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}

#valor .price-box .bullets li {
  color: var(--gray-300);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: .6rem .8rem;
}

/* Subtle border glow for price box */
#valor .price-box::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 16px;
  background: radial-gradient(260px circle at 50% 50%, rgba(132,0,255,.9), rgba(132,0,255,.35) 30%, rgba(132,0,255,.15) 55%, transparent 75%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

/* Spacing between list and price when stacked */
#valor .grid-2 > div:last-child { margin-top: .5rem; }

.contact-cta {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  justify-content: center;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  color: var(--gray-300);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  outline: none;
  font-family: inherit;
  transition: all .2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(110, 66, 197, 0.35);
  border-color: rgba(110, 66, 197, 0.6);
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--gray-300);
  cursor: pointer;
}

.checkbox input {
  margin-top: .25rem;
  width: auto;
}

.checkbox span {
  line-height: 1.5;
  font-size: .9rem;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-actions .cta-button {
  width: 100%;
  justify-content: center;
}

/* =========================
     Form Success
     ========================= */
.form-success {
  text-align: center;
  color: var(--white);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.form-success i {
  font-size: 3rem;
  color: var(--primary-purple);
  display: block;
  margin-bottom: 1rem;
}

.form-success h4 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.form-success p {
  color: var(--gray-300);
}

/* =========================
     Sticky CTA
     ========================= */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: .75rem;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(110, 66, 197, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1100;
  opacity: 0;
}

.sticky-cta.show {
  display: flex;
}

/* =========================
     Footer
     ========================= */
.footer {
  padding: 60px 0;
  background: var(--black);
  border-top: 1px solid rgba(110, 66, 197, 0.2);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-logo i {
  color: var(--primary-purple);
  font-size: 2rem;
}

/* Tamaño del logo en el footer */
.footer-logo img {
  height: 200px;
  width: auto;
  display: block;
}

.footer p {
  color: var(--gray-300);
  
  opacity: .8;
}

/* =========================
     Responsive Breakpoints
     ========================= */
@media (max-width: 992px) {
  .minimal-title {
    font-size: 2.6rem;
  }

  .minimal-subtitle {
    font-size: 1.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .minimal-title {
    font-size: 2.2rem;
  }

  .minimal-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .pas-grid {
    grid-template-columns: 1fr;
  }
  .pas-grid > article {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-copy h2,
  .contact-copy .section-subtitle {
    text-align: center;
  }

  .sticky-cta {
    display: flex;
  }

  .toast-container {
    left: 8px;
    bottom: 60px;
  }

  .toast {
    padding: 10px 12px;
    font-size: .9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title,
  .minimal-title {
    font-size: 2rem;
  }

  .minimal-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .card,
  .contact-form {
    padding: 1.25rem;
  }

  .nav {
    padding: .75rem 1rem;
  }

  .nav-logo img {
    height: 45px;
  }

  .footer-logo img {
    height: 60px;
  }

  .hero.minimal {
    padding-top: 100px;
  }
}

/* =========================
     Utilities
     ========================= */
.highlight {
  color: var(--primary-purple);
  font-weight: 600;
}

strong {
  color: var(--primary-purple);
  font-weight: 700;
}

em {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Hidden utility */
[hidden] {
  display: none !important;
}

/* =========================
   Welcome Modal (Codexy style)
   ========================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.modal[aria-hidden="false"] { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s ease; 
}

.modal-content {
  position: relative;
  width: min(720px, 92vw);
  background: rgba(12, 10, 18, 0.92);
  border: 1px solid rgba(110, 66, 197, 0.22);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 22px 56px rgba(110,66,197,.25);
  z-index: 1;
}

/* Animated gradient border like cards */
.modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    rgba(110,66,197,0.9) 0%,
    rgba(66,41,119,0.85) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(66,41,119,0.85) 75%,
    rgba(110,66,197,0.9) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderAngleSweep 8s linear infinite;
}

@keyframes borderAngleSweep {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

.modal-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title {
  color: var(--white);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

.modal-subtitle {
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }
.form-label { color: var(--white); font-weight: 700; display: block; margin-bottom: .5rem; }
.hint { color: var(--gray-300); opacity: .9; display: block; margin-top: .35rem; font-size: .95rem; }

.input {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--white);
  outline: none;
}

.input:focus {
  border-color: rgba(110,66,197,.65);
  box-shadow: 0 0 0 3px rgba(110,66,197,.25);
}

.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  padding: .5rem .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.chip:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(110,66,197,.18); }
.chip.selected { border-color: rgba(110,66,197,.65); background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple)); }

.form-actions { display: flex; gap: .5rem; justify-content: flex-end; }

.success-box {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1rem;
}
.success-box p { color: var(--white); font-weight: 700; }
.icon-ok { color: #22c55e; font-size: 2rem; margin-bottom: .25rem; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .modal-content { padding: 1.25rem; }
  .modal-title { font-size: 1.3rem; }
}