/* AirFenix — SaaS / enterprise (light default + dark via data-theme) */
:root {
  --color-orange: #ff6a00;
  --color-orange-soft: #ff8a3d;
  --color-blue: #2563eb;
  --bg: #ffffff;
  --bg-muted: #f5f7fa;
  --bg-elevated: #ffffff;
  --text: #0b0f1a;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
  --logo-surface: #ffffff;
  --logo-ring: rgba(15, 23, 42, 0.06);
  --header-bg: rgba(255, 255, 255, 0.85);
  --hero-gradient: linear-gradient(135deg, #f5f7fa 0%, #ffffff 45%, #fff5eb 100%);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 64px;
  --hero-badge-bg: rgba(255, 255, 255, 0.92);
  --hero-badge-border: rgba(15, 23, 42, 0.08);
  --hero-ambient: radial-gradient(ellipse 85% 75% at 50% 48%, rgba(255, 106, 0, 0.09), transparent 62%),
    radial-gradient(ellipse 55% 50% at 72% 32%, rgba(37, 99, 235, 0.06), transparent 55%);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --card-thumb-bg: #f1f5f9;
  --card-thumb-ring: rgba(15, 23, 42, 0.06);
  --card-thumb-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --card-thumb-shadow-hover: 0 10px 28px rgba(15, 23, 42, 0.12);
  --transition: 0.22s ease;
  --transition-theme: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

html[data-theme="dark"] {
  --bg: #0f172a;
  --bg-muted: #1e293b;
  --bg-elevated: #1e293b;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --logo-surface: #1e293b;
  --logo-ring: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(15, 23, 42, 0.88);
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1a1520 100%);
  --hero-badge-bg: rgba(30, 41, 59, 0.88);
  --hero-badge-border: rgba(148, 163, 184, 0.14);
  --hero-ambient: radial-gradient(ellipse 85% 75% at 50% 48%, rgba(255, 106, 0, 0.14), transparent 62%),
    radial-gradient(ellipse 55% 50% at 72% 32%, rgba(37, 99, 235, 0.1), transparent 55%);
  --card-thumb-bg: #0f172a;
  --card-thumb-ring: rgba(255, 255, 255, 0.08);
  --card-thumb-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --card-thumb-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: var(--transition-theme);
}

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

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

a:hover {
  color: var(--color-orange);
}

.container {
  width: min(1080px, 100% - 2rem);
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

/* —— Logo circular (siempre) —— */
.logo-mark--circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--logo-surface);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--logo-ring);
  transition: var(--transition-theme);
}

.logo-mark--circle .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  padding: 10%;
  box-sizing: border-box;
}

.logo-mark--xs {
  width: 36px;
  height: 36px;
}

.logo-mark--xs .logo-img {
  padding: 8%;
}

.logo-mark--sm {
  width: 40px;
  height: 40px;
}

.logo-mark--sm .logo-img {
  padding: 9%;
}

.logo-mark--lg {
  width: min(220px, 56vw);
  height: min(220px, 56vw);
  max-width: 248px;
  max-height: 248px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--logo-ring),
    0 0 60px rgba(255, 106, 0, 0.12);
}

.logo-mark--lg .logo-img {
  padding: 8%;
}

/* Header — márgenes horizontales generosos, contenido centrado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

.nav-shell {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  width: 100%;
  min-height: calc(var(--header-h) - 2px);
  padding-block: 0.35rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.logo-link:hover {
  color: var(--text);
}

.logo-text {
  color: var(--text);
}

.header-end {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem 1rem;
  flex: 1;
  justify-content: flex-end;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
}

.nav-list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--color-orange);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: flex;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  cursor: pointer;
}

@media (min-width: 881px) {
  .nav-toggle {
    display: none !important;
  }
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .header-end {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }

  .header-end .theme-toggle {
    order: 1;
  }

  .header-end .nav-toggle {
    order: 2;
  }

  .header-end .nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease, visibility 0.25s ease;
    border-top: 1px solid transparent;
  }

  .header-end .nav.is-open {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top-color: var(--border);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-list a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  pointer-events: none;
  transition: opacity var(--transition-theme);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  overflow: visible;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__content {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn--primary {
  background: var(--color-orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.25);
}

.btn--primary:hover {
  background: var(--color-orange-soft);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--secondary:hover {
  border-color: var(--color-orange);
  color: var(--text);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:disabled:hover {
  transform: none;
}

a.btn {
  text-decoration: none;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

/* Hero — escena: fénix siempre visible, tecnologías en órbita */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 1;
  min-height: 280px;
  isolation: isolate;
}

.hero-scene__ambient {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: var(--hero-ambient);
  filter: blur(0.5px);
  opacity: 0.95;
  transition: opacity var(--transition-theme);
  pointer-events: none;
}

.hero-scene__orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.hero-scene__center {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-scene__center .logo-mark--lg {
  pointer-events: auto;
}

@keyframes hero-orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes hero-orbit-badge-counter {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.hero-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  /* 1×1px evita anillo 0×0: en algunos motores la animación de transform no compone bien */
  width: 1px;
  height: 1px;
  transform-origin: center center;
  animation: hero-orbit-spin var(--dur, 88s) linear infinite;
  animation-direction: var(--dir, normal);
  will-change: transform;
}

.hero-orbit__node {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r)));
}

.hero-orbit__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--badge, 38px);
  height: var(--badge, 38px);
  border-radius: 11px;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: hero-orbit-badge-counter var(--dur, 88s) linear infinite;
  animation-direction: var(--dir-badge, normal);
  will-change: transform;
  transition: background var(--transition-theme), border-color var(--transition-theme),
    box-shadow var(--transition-theme);
}

.hero-orbit__badge--text {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 4px;
  text-align: center;
  line-height: 1.15;
}

.hero-orbit__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.88;
  transition: filter var(--transition-theme), opacity var(--transition);
}

html[data-theme="light"] .hero-orbit__icon {
  filter: opacity(0.9);
}

html[data-theme="dark"] .hero-orbit__icon {
  filter: brightness(0) invert(1) opacity(0.88);
}

.hero-orbit__badge:hover .hero-orbit__icon {
  opacity: 1;
}

@media (max-width: 640px) {
  .hero-scene {
    max-width: min(100%, 320px);
    min-height: 260px;
  }

  .hero-scene__center .logo-mark--lg {
    width: min(178px, 48vw);
    height: min(178px, 48vw);
  }

  .hero-orbit__badge {
    --badge: 32px;
    border-radius: 9px;
  }

  .hero-orbit__icon {
    width: 18px;
    height: 18px;
  }

  .hero-orbit__badge--text {
    font-size: 0.5rem;
  }
}

.hero-orbit:first-of-type {
  z-index: 1;
}

.hero-orbit:nth-of-type(2) {
  z-index: 2;
}

.hero-orbit--still {
  animation: none !important;
  transform: translate(-50%, -50%) rotate(0deg) !important;
}

.hero-orbit--still .hero-orbit__badge {
  animation: none !important;
  transform: translate(-50%, -50%) rotate(0deg) !important;
}

.hero-orbit--still .hero-orbit__node {
  opacity: 0.82;
}

/*
 * Si en Windows "no gira" pero en Mac sí: comprobá prefers-reduced-motion.
 * Windows 11: Configuración > Accesibilidad > Efectos visuales > Efectos de animación.
 * Con "reduce" activo, el sitio deja de animar la órbita por accesibilidad (WCAG).
 */
@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .hero-orbit__badge {
    animation: none !important;
  }

  .hero-orbit {
    transform: translate(-50%, -50%) rotate(0deg) !important;
  }

  .hero-orbit__badge {
    transform: translate(-50%, -50%) rotate(0deg) !important;
  }

  .hero-orbit__node {
    opacity: 0.78;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section--muted {
  background: var(--bg-muted);
  transition: background var(--transition-theme);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 560px;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Quiénes somos — fénix / SaaS */
.section--about {
  overflow: hidden;
}

.about-story {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(2.25rem, 5.5vw, 3.25rem);
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.about-story__visual {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.about-story__portrait {
  width: min(240px, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
  background: var(--card-thumb-bg);
  border: 1px solid var(--border);
  box-shadow:
    var(--card-thumb-shadow),
    0 0 0 1px var(--card-thumb-ring),
    0 20px 48px rgba(15, 23, 42, 0.1);
  transition: box-shadow var(--transition-theme), border-color var(--transition-theme);
}

html[data-theme="dark"] .about-story__portrait {
  box-shadow:
    var(--card-thumb-shadow),
    0 0 0 1px var(--card-thumb-ring),
    0 24px 56px rgba(0, 0, 0, 0.45);
}

.about-story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.about-story__content {
  min-width: 0;
}

.about-story__title {
  margin: 0 0 clamp(1.1rem, 2.5vw, 1.35rem);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.about-story__lead {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: clamp(1.02rem, 1.35vw, 1.125rem);
  line-height: 1.78;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-align: justify;
  text-align-last: left;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

.about-story__signature {
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
  padding-top: clamp(1.15rem, 2.5vw, 1.4rem);
  border-top: 1px solid var(--border);
}

.about-story__name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-story__role {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.about-story__visual.reveal {
  transition:
    opacity 0.65s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
  transform: translateY(18px) scale(0.97);
}

.about-story__visual.reveal.is-visible {
  transform: translateY(0) scale(1);
}

.about-story__content.reveal {
  transition-delay: 0.1s;
}

@media (min-width: 768px) {
  .about-story {
    flex-direction: row;
    align-items: center;
    gap: clamp(2.25rem, 5vw, 3.5rem);
    max-width: 100%;
  }

  .about-story__visual {
    flex: 0 0 38%;
    max-width: 320px;
    justify-content: center;
  }

  .about-story__portrait {
    width: min(260px, 100%);
    margin-inline: 0;
  }

  .about-story__content {
    flex: 1;
    min-width: 0;
  }
}

@media (min-width: 960px) {
  .about-story__visual {
    flex-basis: 34%;
  }

  .about-story__portrait {
    width: min(280px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-story__visual.reveal {
    transform: none;
  }

  .about-story__visual.reveal.is-visible {
    transform: none;
  }

  .about-story__content.reveal {
    transition-delay: 0s;
  }
}

/* Proyectos — showcase premium (spotlight + ambiente) */
.section--projects {
  position: relative;
  overflow: hidden;
}

.section.section--projects {
  padding: clamp(1.65rem, 3.6vw, 2.25rem) 0;
}

.proj-showcase {
  --ps-dur: 0.75s;
  --ps-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  padding-block: clamp(0, 0.35vw, 0.35rem);
}

.proj-showcase__ambient {
  position: absolute;
  inset: -20% -10% -15%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.proj-showcase__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(255, 106, 0, 0.11), transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 70%, rgba(37, 99, 235, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(245, 247, 250, 0.9) 0%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 245, 235, 0.5) 100%);
  animation: proj-showcase-mesh 22s ease-in-out infinite alternate;
  opacity: 0.95;
  transition: opacity var(--transition-theme);
}

html[data-theme="dark"] .proj-showcase__mesh {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(255, 106, 0, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 70%, rgba(37, 99, 235, 0.12), transparent 50%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.7) 50%, rgba(20, 25, 40, 0.85) 100%);
}

.proj-showcase__gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, black 20%, transparent 75%);
  animation: proj-showcase-grid 38s linear infinite;
}

html[data-theme="dark"] .proj-showcase__gridlines {
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.4) 1px, transparent 1px);
}

.proj-showcase__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: proj-showcase-orb 18s ease-in-out infinite;
}

.proj-showcase__orb--a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  left: -5%;
  background: rgba(255, 106, 0, 0.35);
}

.proj-showcase__orb--b {
  width: min(360px, 48vw);
  height: min(360px, 48vw);
  bottom: -12%;
  right: -8%;
  background: rgba(37, 99, 235, 0.22);
  animation-delay: -7s;
}

.proj-showcase__particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 88%, rgba(255, 106, 0, 0.12) 0, transparent 2px),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.1) 0, transparent 2px),
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.35) 0, transparent 1px);
  background-size: 100% 100%;
  opacity: 0.65;
  animation: proj-showcase-particles 24s linear infinite;
}

.proj-showcase__contain {
  position: relative;
  z-index: 1;
}

.proj-showcase__intro {
  max-width: 600px;
  margin-bottom: clamp(1.2rem, 3vw, 1.75rem);
}

.proj-showcase__intro .section-title {
  margin-bottom: 0.45rem;
  font-size: clamp(1.32rem, 2.5vw, 1.6rem);
}

.proj-showcase__eyebrow {
  margin-bottom: 0.35rem;
}

.proj-showcase__lead {
  font-size: 0.98rem;
  line-height: 1.52;
}

.proj-showcase__load-msg {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.proj-showcase__load-msg--error {
  color: #b45309;
}

html[data-theme="dark"] .proj-showcase__load-msg--error {
  color: #fbbf24;
}

.proj-showcase__stage {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
  perspective: 1200px;
}

.proj-card {
  position: relative;
  min-width: 0;
  border-radius: 18px;
  outline: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform var(--ps-dur) var(--ps-ease),
    opacity var(--ps-dur) var(--ps-ease),
    filter var(--ps-dur) var(--ps-ease),
    box-shadow var(--ps-dur) var(--ps-ease);
}

.proj-card:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45);
}

.proj-card__border-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.35), rgba(37, 99, 235, 0.2), transparent 55%);
  -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.55;
  pointer-events: none;
  transition: opacity var(--ps-dur) var(--ps-ease);
}

.proj-card__sweep {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.07) 52%,
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-30%);
  transition: opacity 0.4s ease;
}

.proj-card:hover .proj-card__sweep,
.proj-card.is-spotlight .proj-card__sweep {
  opacity: 1;
  animation: proj-showcase-sweep 1.1s var(--ps-ease) forwards;
}

.proj-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(1.05rem, 2.4vw, 1.35rem);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background var(--ps-dur) var(--ps-ease), border-color var(--ps-dur) var(--ps-ease),
    box-shadow var(--ps-dur) var(--ps-ease);
}

html[data-theme="dark"] .proj-card__inner {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.proj-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.75rem;
  gap: 0.6rem;
}

.proj-card__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0.75;
}

.proj-card__status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.28);
}

html[data-theme="dark"] .proj-card__status {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.28);
}

.proj-card__status--evolution {
  color: var(--color-blue);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

html[data-theme="dark"] .proj-card__status--evolution {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
}

.proj-card__visual {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.proj-card__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(255, 106, 0, 0.45), rgba(37, 99, 235, 0.25), rgba(255, 106, 0, 0.35));
  opacity: 0.55;
  animation: proj-showcase-ring 10s linear infinite;
}

.proj-card__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card-thumb-bg);
  box-shadow: var(--card-thumb-shadow), 0 0 0 1px var(--card-thumb-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  box-sizing: border-box;
  transition: transform var(--ps-dur) var(--ps-ease), box-shadow var(--ps-dur) var(--ps-ease);
}

.proj-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.85s var(--ps-ease);
}

.proj-card__tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  text-transform: uppercase;
}

.proj-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  transition: color var(--ps-dur) var(--ps-ease);
}

.proj-card__desc {
  margin: 0;
  font-size: 0.90625rem;
  line-height: 1.52;
  color: var(--text-muted);
  max-width: 38ch;
}

.proj-card__detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    max-height 0.85s var(--ps-ease),
    opacity 0.65s var(--ps-ease),
    margin 0.65s var(--ps-ease);
}

.proj-card__long {
  margin: 0;
  padding-top: 0.55rem;
  font-size: 0.84375rem;
  line-height: 1.58;
  color: var(--text-muted);
  text-align: left;
  max-width: 42ch;
  margin-inline: auto;
}

.proj-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--color-orange);
  opacity: 0.75;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.proj-card__hint-icon {
  transition: transform 0.45s var(--ps-ease);
}

.proj-card:hover .proj-card__hint-icon,
.proj-card.is-spotlight .proj-card__hint-icon {
  transform: translate(2px, -2px);
}

.proj-showcase:not(.is-inview) .proj-card {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  filter: blur(8px);
  pointer-events: none;
}

.proj-showcase.is-inview .proj-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
  pointer-events: auto;
  transition:
    opacity 0.42s var(--ps-ease),
    transform 0.42s var(--ps-ease),
    filter 0.35s ease,
    box-shadow var(--ps-dur) var(--ps-ease);
}

.proj-showcase.is-inview .proj-card:nth-child(1) {
  transition-delay: 0.03s;
}

.proj-showcase.is-inview .proj-card:nth-child(2) {
  transition-delay: 0.08s;
}

.proj-showcase.is-inview .proj-card:nth-child(3) {
  transition-delay: 0.14s;
}

.proj-showcase.is-inview .proj-card:nth-child(n + 4) {
  transition-delay: 0.18s;
}

/* Spotlight — desktop */
@media (min-width: 900px) {
  .proj-showcase__stage {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card:not(.is-spotlight) {
    opacity: 0.5;
    filter: blur(2.5px) saturate(0.92);
    transform: scale(0.97) translateY(6px);
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card:not(.is-spotlight) .proj-card__inner {
    box-shadow: var(--shadow-sm);
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card.is-spotlight {
    transform: translateY(-8px) scale(1.02);
    z-index: 2;
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card.is-spotlight .proj-card__inner {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 106, 0, 0.28);
    box-shadow:
      0 0 0 1px rgba(255, 106, 0, 0.12),
      0 28px 56px rgba(15, 23, 42, 0.12),
      0 0 48px rgba(255, 106, 0, 0.1);
  }

  html[data-theme="dark"] .proj-showcase__stage[data-spotlight="1"] .proj-card.is-spotlight .proj-card__inner {
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(255, 106, 0, 0.32);
    box-shadow:
      0 0 0 1px rgba(255, 106, 0, 0.15),
      0 32px 64px rgba(0, 0, 0, 0.45),
      0 0 56px rgba(255, 106, 0, 0.08);
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card.is-spotlight .proj-card__border-glow {
    opacity: 1;
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card.is-spotlight .proj-card__title {
    color: var(--color-orange);
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card.is-spotlight .proj-card__img {
    transform: scale(1.06);
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card.is-spotlight .proj-card__detail {
    max-height: 15rem;
    opacity: 1;
    margin-top: 0.4rem;
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card:not(.is-spotlight) .proj-card__hint {
    opacity: 0.35;
  }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 899px) {
  .proj-showcase__stage {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

/* Mobile */
@media (max-width: 899px) {
  .proj-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .proj-card__detail {
    max-height: none;
    opacity: 1;
    margin-top: 0.5rem;
    display: block;
  }
}

@media (hover: none) and (min-width: 900px) {
  .proj-showcase__stage[data-spotlight="1"] .proj-card:not(.is-spotlight),
  .proj-showcase__stage[data-spotlight="1"] .proj-card.is-spotlight {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card .proj-card__detail {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 0.65rem !important;
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card .proj-card__inner {
    box-shadow: var(--shadow-md) !important;
    border-color: var(--border) !important;
  }

  .proj-showcase__stage[data-spotlight="1"] .proj-card .proj-card__title {
    color: var(--text) !important;
  }
}

@keyframes proj-showcase-mesh {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.05) translate(1.5%, -1%);
  }
}

@keyframes proj-showcase-grid {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-48px, -48px);
  }
}

@keyframes proj-showcase-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4%, -3%) scale(1.06);
  }
}

@keyframes proj-showcase-particles {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-24px);
  }
}

@keyframes proj-showcase-ring {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes proj-showcase-sweep {
  to {
    transform: translateX(30%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .proj-showcase__mesh,
  .proj-showcase__gridlines,
  .proj-showcase__orb,
  .proj-showcase__particles,
  .proj-card__ring {
    animation: none !important;
  }

  .proj-card:hover .proj-card__sweep,
  .proj-card.is-spotlight .proj-card__sweep {
    animation: none;
    opacity: 0;
  }

  .proj-showcase__orb {
    transform: none;
  }
}


/* Servicios — capabilities showcase (fondo alineado a Quiénes somos: section--muted) */
.section--svc {
  overflow: hidden;
}

.section.section--svc {
  padding: clamp(1.65rem, 3.6vw, 2.25rem) 0;
}

.section--svc .section-head {
  margin-bottom: clamp(1rem, 2.4vw, 1.4rem);
}

.section--svc .section-title {
  margin-bottom: 0.45rem;
  font-size: clamp(1.32rem, 2.5vw, 1.6rem);
}

.section--svc .section-lead {
  font-size: 0.98rem;
  line-height: 1.52;
}

.svc-showcase {
  --svc-dur: 0.55s;
  --svc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.svc-showcase__wrap {
  position: relative;
}

.svc-showcase__eyebrow {
  margin-bottom: 0.35rem;
}

.svc-showcase__stage {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  perspective: 1400px;
}

.svc-card {
  --svc-accent: var(--color-orange);
  position: relative;
  min-width: 0;
  border-radius: 16px;
  outline: none;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform var(--svc-dur) var(--svc-ease),
    opacity var(--svc-dur) var(--svc-ease),
    filter var(--svc-dur) var(--svc-ease),
    box-shadow var(--svc-dur) var(--svc-ease);
}

.svc-card:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45);
}

.svc-card__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(125deg, rgba(255, 106, 0, 0.12), transparent 55%);
  pointer-events: none;
  transition: opacity var(--svc-dur) var(--svc-ease);
}

.svc-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(1rem, 2.2vw, 1.3rem);
  border-radius: inherit;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.38)),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--svc-accent) 12%, transparent), transparent 42%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--svc-dur) var(--svc-ease), border-color var(--svc-dur) var(--svc-ease),
    box-shadow var(--svc-dur) var(--svc-ease);
}

html[data-theme="dark"] .svc-card__inner {
  background:
    linear-gradient(165deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.62)),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--svc-accent) 18%, transparent), transparent 44%);
  border-color: rgba(148, 163, 184, 0.11);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 40px rgba(0, 0, 0, 0.32);
}

.svc-card__top {
  position: relative;
  display: block;
  margin-bottom: 0.5rem;
  min-height: 2.9rem;
}

.svc-card__icon {
  position: relative;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--svc-accent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--svc-accent) 16%, transparent), rgba(255, 255, 255, 0.42));
  border: 1px solid color-mix(in srgb, var(--svc-accent) 32%, rgba(255, 255, 255, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 20px color-mix(in srgb, var(--svc-accent) 14%, transparent);
  transition:
    transform var(--svc-dur) var(--svc-ease),
    color var(--svc-dur) var(--svc-ease),
    background var(--svc-dur) var(--svc-ease),
    box-shadow var(--svc-dur) var(--svc-ease);
}

.svc-card__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-card__icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--svc-accent) 25%, transparent);
  opacity: 0.5;
  pointer-events: none;
}

.svc-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding-right: 3.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  opacity: 0.9;
}

.svc-card__title {
  margin: 0 0 0.42rem;
  padding-right: 3.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.85vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  transition: color var(--svc-dur) var(--svc-ease);
}

.svc-card__lead {
  margin: 0;
  font-size: 0.90625rem;
  line-height: 1.52;
  color: var(--text-muted);
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.svc-card__extra {
  margin: 0;
  margin-top: 0;
  padding-top: 0;
  font-size: 0.78125rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition:
    max-height 0.65s var(--svc-ease),
    opacity 0.45s var(--svc-ease),
    margin 0.45s var(--svc-ease),
    padding 0.45s var(--svc-ease),
    transform 0.45s var(--svc-ease);
}

.svc-showcase:not(.is-inview) .svc-card {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(6px);
  pointer-events: none;
}

.svc-showcase.is-inview .svc-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
  pointer-events: auto;
  transition:
    opacity 0.5s var(--svc-ease),
    transform 0.5s var(--svc-ease),
    filter 0.4s ease,
    box-shadow var(--svc-dur) var(--svc-ease);
}

.svc-showcase.is-inview .svc-card:nth-child(1) {
  transition-delay: 0.04s;
}

.svc-showcase.is-inview .svc-card:nth-child(2) {
  transition-delay: 0.1s;
}

.svc-showcase.is-inview .svc-card:nth-child(3) {
  transition-delay: 0.16s;
}

.svc-showcase.is-inview .svc-card:nth-child(4) {
  transition-delay: 0.22s;
}

.svc-showcase.is-inview .svc-card:nth-child(5) {
  transition-delay: 0.28s;
}

.svc-card:nth-child(1) {
  --svc-accent: #0ea5e9;
}

.svc-card:nth-child(2) {
  --svc-accent: #8b5cf6;
}

.svc-card:nth-child(3) {
  --svc-accent: #f97316;
}

.svc-card:nth-child(4) {
  --svc-accent: #06b6d4;
}

.svc-card:nth-child(5) {
  --svc-accent: #22c55e;
}

@media (min-width: 900px) {
  .svc-showcase__stage {
    grid-template-columns: repeat(12, 1fr);
    gap: 0.7rem 0.75rem;
    align-items: stretch;
  }

  .svc-card:nth-child(1) {
    grid-column: span 6;
  }

  .svc-card:nth-child(2) {
    grid-column: span 6;
  }

  .svc-card:nth-child(3) {
    grid-column: span 4;
  }

  .svc-card:nth-child(4) {
    grid-column: span 4;
  }

  .svc-card:nth-child(5) {
    grid-column: span 4;
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card:not(.is-spotlight) {
    opacity: 0.52;
    filter: blur(2px) saturate(0.92);
    transform: scale(0.985) translateY(4px);
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card.is-spotlight {
    transform: translateY(-6px) scale(1.01);
    z-index: 2;
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card.is-spotlight .svc-card__inner {
    border-color: rgba(255, 106, 0, 0.28);
    box-shadow:
      0 0 0 1px rgba(255, 106, 0, 0.1),
      0 22px 48px rgba(15, 23, 42, 0.1),
      0 0 40px rgba(255, 106, 0, 0.07);
    background: rgba(255, 255, 255, 0.68);
  }

  html[data-theme="dark"] .svc-showcase__stage[data-spotlight="1"] .svc-card.is-spotlight .svc-card__inner {
    background: rgba(30, 41, 59, 0.82);
    border-color: rgba(255, 106, 0, 0.32);
    box-shadow:
      0 0 0 1px rgba(255, 106, 0, 0.12),
      0 26px 56px rgba(0, 0, 0, 0.42),
      0 0 48px rgba(255, 106, 0, 0.06);
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card.is-spotlight .svc-card__shine {
    opacity: 1;
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card.is-spotlight .svc-card__title {
    color: var(--svc-accent);
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card.is-spotlight .svc-card__icon {
    transform: translateY(-1px) scale(1.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      0 0 30px color-mix(in srgb, var(--svc-accent) 24%, transparent);
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card.is-spotlight .svc-card__extra {
    max-height: 9rem;
    opacity: 1;
    margin-top: 0.65rem;
    padding-top: 0.15rem;
    transform: translateY(0);
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .svc-showcase__stage {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 899px) {
  .svc-card__extra {
    max-height: none;
    opacity: 1;
    margin-top: 0.55rem;
    padding-top: 0;
    transform: none;
  }
}

@media (hover: none) and (min-width: 900px) {
  .svc-showcase__stage[data-spotlight="1"] .svc-card:not(.is-spotlight),
  .svc-showcase__stage[data-spotlight="1"] .svc-card.is-spotlight {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card .svc-card__extra {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 0.55rem !important;
    transform: none !important;
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card .svc-card__title {
    color: var(--text) !important;
  }

  .svc-showcase__stage[data-spotlight="1"] .svc-card .svc-card__inner {
    box-shadow: var(--shadow-md) !important;
    border-color: var(--border) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-showcase:not(.is-inview) .svc-card {
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
  }
}

/* Por qué trabajar con nosotros — bento + fondo premium (capas) */
.section--why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--why-section-bg, transparent);
  transition: background var(--transition-theme);
  --why-section-bg: linear-gradient(
    168deg,
    #eef2fb 0%,
    #f8fafc 38%,
    #fff8f2 72%,
    #f1f5f9 100%
  );
}

html[data-theme="dark"] .section--why {
  --why-section-bg: linear-gradient(168deg, #0a0f1c 0%, #111827 42%, #0f172a 78%, #0c1220 100%);
}

.section.section--why {
  padding: clamp(1.55rem, 3.4vw, 2.1rem) 0;
}

.section--why .section-head {
  margin-bottom: clamp(0.95rem, 2.2vw, 1.35rem);
}

.section--why .section-title {
  margin-bottom: 0.4rem;
  font-size: clamp(1.28rem, 2.4vw, 1.52rem);
}

.section--why .section-lead {
  font-size: 0.96875rem;
  line-height: 1.5;
}

.why-showcase__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.why-showcase__mesh {
  position: absolute;
  inset: -8% -6% -6%;
  background:
    radial-gradient(ellipse 72% 58% at 18% 22%, rgba(255, 106, 0, 0.11), transparent 55%),
    radial-gradient(ellipse 58% 52% at 88% 78%, rgba(37, 99, 235, 0.09), transparent 52%),
    radial-gradient(ellipse 50% 45% at 50% 50%, rgba(255, 255, 255, 0.35), transparent 70%);
  animation: why-mesh-shift 28s ease-in-out infinite alternate;
  will-change: transform;
}

html[data-theme="dark"] .why-showcase__mesh {
  background:
    radial-gradient(ellipse 72% 58% at 18% 22%, rgba(255, 106, 0, 0.16), transparent 55%),
    radial-gradient(ellipse 58% 52% at 88% 78%, rgba(37, 99, 235, 0.12), transparent 52%),
    radial-gradient(ellipse 45% 40% at 48% 48%, rgba(148, 163, 184, 0.06), transparent 65%);
}

.why-showcase__grid {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.55) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, black 12%, transparent 68%);
  animation: why-grid-drift 50s linear infinite;
  will-change: transform;
}

html[data-theme="dark"] .why-showcase__grid {
  opacity: 0.07;
  background-image:
    linear-gradient(90deg, rgba(148, 163, 184, 0.4) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.4) 1px, transparent 1px);
}

.why-showcase__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
  animation: why-glow-pulse 14s ease-in-out infinite;
  will-change: transform, opacity;
}

.why-showcase__glow--a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -12%;
  left: -8%;
  background: rgba(255, 106, 0, 0.22);
}

.why-showcase__glow--b {
  width: min(360px, 48vw);
  height: min(360px, 48vw);
  bottom: -14%;
  right: -6%;
  background: rgba(37, 99, 235, 0.14);
  animation-delay: -5s;
}

html[data-theme="dark"] .why-showcase__glow--a {
  background: rgba(255, 106, 0, 0.2);
  opacity: 0.38;
}

html[data-theme="dark"] .why-showcase__glow--b {
  background: rgba(37, 99, 235, 0.18);
  opacity: 0.35;
}

.why-showcase__sweep {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 42%,
    rgba(255, 106, 0, 0.03) 52%,
    transparent 68%
  );
  animation: why-sweep 22s ease-in-out infinite;
  pointer-events: none;
}

html[data-theme="dark"] .why-showcase__sweep {
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(255, 106, 0, 0.04) 50%,
    transparent 70%
  );
}

.why-showcase {
  --why-dur: 0.5s;
  --why-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
}

.why-showcase__eyebrow {
  margin-bottom: 0.28rem;
}

.why-showcase__lead {
  max-width: 34rem;
}

@keyframes why-mesh-shift {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.05) translate(1.2%, -1%);
  }
}

@keyframes why-grid-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-48px, -48px);
  }
}

@keyframes why-glow-pulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(1) translate(0, 0);
  }
  50% {
    opacity: 0.52;
    transform: scale(1.06) translate(2%, -1.5%);
  }
}

@keyframes why-sweep {
  0%,
  100% {
    transform: translate(-4%, 0) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: translate(4%, 2%) rotate(0.5deg);
    opacity: 1;
  }
}

.why-bento {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  perspective: 1400px;
}

.why-tile {
  --why-accent: var(--color-orange);
  position: relative;
  min-width: 0;
  border-radius: 16px;
  outline: none;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform var(--why-dur) var(--why-ease),
    opacity var(--why-dur) var(--why-ease),
    filter var(--why-dur) var(--why-ease),
    box-shadow var(--why-dur) var(--why-ease);
}

.why-tile:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45);
}

.why-tile__accent {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.14), transparent 58%);
  pointer-events: none;
  transition: opacity var(--why-dur) var(--why-ease);
}

.why-tile__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  height: 100%;
  padding: clamp(1rem, 2.2vw, 1.3rem);
  border-radius: inherit;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--why-accent) 12%, transparent), transparent 45%);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 10px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color var(--why-dur) var(--why-ease),
    box-shadow var(--why-dur) var(--why-ease),
    transform var(--why-dur) var(--why-ease),
    background var(--why-dur) var(--why-ease);
}

html[data-theme="dark"] .why-tile__inner {
  background:
    linear-gradient(165deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.66)),
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--why-accent) 18%, transparent), transparent 47%);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 40px rgba(0, 0, 0, 0.38);
}

.why-tile__inner--row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.3rem 0.7rem;
}

@media (min-width: 640px) {
  .why-tile__inner--row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  .why-tile__inner--row .why-tile__icon {
    flex-shrink: 0;
  }

  .why-tile__inner--row .why-tile__copy {
    min-width: 0;
  }
}

.why-tile__icon {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--why-accent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--why-accent) 16%, transparent), rgba(255, 255, 255, 0.46));
  border: 1px solid color-mix(in srgb, var(--why-accent) 30%, rgba(255, 255, 255, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 10px 18px color-mix(in srgb, var(--why-accent) 14%, transparent);
  transition:
    transform var(--why-dur) var(--why-ease),
    box-shadow var(--why-dur) var(--why-ease),
    color var(--why-dur) var(--why-ease);
}

.why-tile__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-tile__icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--why-accent) 26%, transparent);
  opacity: 0.5;
  pointer-events: none;
}

.why-tile__title {
  margin: 0 0 0.4rem;
  padding-right: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.85vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  transition: color var(--why-dur) var(--why-ease);
}

.why-tile--feature .why-tile__title {
  font-size: clamp(1.02rem, 1.85vw, 1.12rem);
}

.why-tile__text {
  margin: 0;
  margin-top: 0.15rem;
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: 0.90625rem;
  line-height: 1.52;
  color: var(--text-muted);
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.why-tile--feature .why-tile__text {
  font-size: 0.90625rem;
}

.why-tile__inner--row .why-tile__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.why-tile__inner--row .why-tile__copy .why-tile__title,
.why-tile__inner--row .why-tile__copy .why-tile__text {
  grid-column: auto;
  grid-row: auto;
  padding-right: 0.2rem;
}

.why-tile__label {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding-right: 0;
  margin-bottom: 0;
  grid-column: 1;
  grid-row: 1;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  opacity: 0.9;
}

.why-showcase:not(.is-inview) .why-tile {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  pointer-events: none;
}

.why-showcase.is-inview .why-tile {
  opacity: 1;
  transform: translateY(0);
  filter: none;
  pointer-events: auto;
  transition:
    opacity 0.48s var(--why-ease),
    transform 0.48s var(--why-ease),
    filter 0.38s ease,
    box-shadow var(--why-dur) var(--why-ease);
}

.why-showcase.is-inview .why-tile:nth-child(1) {
  transition-delay: 0.04s;
}

.why-showcase.is-inview .why-tile:nth-child(2) {
  transition-delay: 0.1s;
}

.why-showcase.is-inview .why-tile:nth-child(3) {
  transition-delay: 0.16s;
}

.why-showcase.is-inview .why-tile:nth-child(4) {
  transition-delay: 0.22s;
}

.why-showcase.is-inview .why-tile:nth-child(5) {
  transition-delay: 0.28s;
}

.why-showcase.is-inview .why-tile:nth-child(6) {
  transition-delay: 0.34s;
}

.why-tile:nth-child(1) {
  --why-accent: #f97316;
}

.why-tile:nth-child(2) {
  --why-accent: #0ea5e9;
}

.why-tile:nth-child(3) {
  --why-accent: #8b5cf6;
}

.why-tile:nth-child(4) {
  --why-accent: #22c55e;
}

.why-tile:nth-child(5) {
  --why-accent: #14b8a6;
}

.why-tile:nth-child(6) {
  --why-accent: #f59e0b;
}

@media (min-width: 900px) {
  .why-bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 0.7rem 0.75rem;
    align-items: stretch;
  }

  .why-tile:nth-child(1),
  .why-tile:nth-child(2),
  .why-tile:nth-child(3) {
    grid-column: span 4;
  }

  .why-tile:nth-child(4),
  .why-tile:nth-child(5),
  .why-tile:nth-child(6) {
    grid-column: span 4;
  }

  .why-bento[data-spotlight="1"] .why-tile:not(.is-spotlight) {
    opacity: 0.55;
    filter: blur(1.5px) saturate(0.94);
    transform: scale(0.992) translateY(3px);
  }

  .why-bento[data-spotlight="1"] .why-tile.is-spotlight {
    transform: translateY(-5px) scale(1.008);
    z-index: 2;
  }

  .why-bento[data-spotlight="1"] .why-tile.is-spotlight .why-tile__inner {
    border-color: rgba(255, 106, 0, 0.28);
    box-shadow:
      0 0 0 1px rgba(255, 106, 0, 0.08),
      0 18px 42px rgba(15, 23, 42, 0.09),
      0 0 36px rgba(255, 106, 0, 0.06);
  }

  html[data-theme="dark"] .why-bento[data-spotlight="1"] .why-tile.is-spotlight .why-tile__inner {
    box-shadow:
      0 0 0 1px rgba(255, 106, 0, 0.12),
      0 22px 50px rgba(0, 0, 0, 0.38),
      0 0 40px rgba(255, 106, 0, 0.05);
  }

  .why-bento[data-spotlight="1"] .why-tile.is-spotlight .why-tile__accent {
    opacity: 1;
  }

  .why-bento[data-spotlight="1"] .why-tile.is-spotlight .why-tile__title {
    color: var(--why-accent);
  }

  .why-bento[data-spotlight="1"] .why-tile.is-spotlight .why-tile__icon {
    transform: translateY(-1px) scale(1.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      0 0 28px color-mix(in srgb, var(--why-accent) 24%, transparent);
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .why-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-tile:nth-child(2),
  .why-tile:nth-child(3),
  .why-tile:nth-child(4),
  .why-tile:nth-child(5),
  .why-tile:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (hover: none) and (min-width: 900px) {
  .why-bento[data-spotlight="1"] .why-tile:not(.is-spotlight),
  .why-bento[data-spotlight="1"] .why-tile.is-spotlight {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .why-bento[data-spotlight="1"] .why-tile .why-tile__inner {
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--border) !important;
  }

  .why-bento[data-spotlight="1"] .why-tile .why-tile__title {
    color: var(--text) !important;
  }

  .why-bento[data-spotlight="1"] .why-tile .why-tile__accent {
    opacity: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-showcase__mesh,
  .why-showcase__grid,
  .why-showcase__glow,
  .why-showcase__sweep {
    animation: none !important;
  }

  .why-showcase__glow {
    transform: none !important;
    opacity: 0.4;
  }

  .why-showcase:not(.is-inview) .why-tile {
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
  }
}

@media (max-width: 639px) {
  .why-tile__text {
    padding-right: 0.35rem;
  }

  .why-showcase__grid {
    opacity: 0.04;
  }

  html[data-theme="dark"] .why-showcase__grid {
    opacity: 0.055;
  }
}

/* Contacto */
.section--contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(3.5rem, 9vw, 5rem);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%);
  transition: background var(--transition-theme);
}

html[data-theme="dark"] .section--contact {
  background: linear-gradient(180deg, var(--bg) 0%, #151c2e 100%);
}

.contact {
  position: relative;
}

.contact__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.contact__ambient-mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(255, 106, 0, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 85%, rgba(37, 99, 235, 0.06), transparent 50%);
  animation: contact-mesh 26s ease-in-out infinite alternate;
}

html[data-theme="dark"] .contact__ambient-mesh {
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(255, 106, 0, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 85%, rgba(37, 99, 235, 0.08), transparent 50%);
}

.contact__ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.35;
  animation: contact-glow 16s ease-in-out infinite;
}

.contact__ambient-glow--1 {
  width: min(340px, 50vw);
  height: min(340px, 50vw);
  top: -15%;
  right: -5%;
  background: rgba(255, 106, 0, 0.18);
}

.contact__ambient-glow--2 {
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  bottom: -20%;
  left: -8%;
  background: rgba(37, 99, 235, 0.12);
  animation-delay: -6s;
}

.contact.is-inview .contact__ambient-mesh {
  opacity: 1;
}

.contact__wrap {
  position: relative;
  z-index: 1;
}

.contact__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(2.25rem, 5vw, 3.5rem);
  }
}

.contact__eyebrow {
  margin-bottom: 0.5rem;
}

.contact__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.contact__lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36rem;
}

.contact__bullets {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact__bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact__bullet-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-orange);
}

.contact__direct {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact__direct-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.9;
}

.contact__mailto {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-blue);
}

.contact__mailto:hover {
  color: var(--color-orange);
}

.contact__social {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.contact__social-label {
  margin: 0 0 0.7rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--text-muted);
}

.contact__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.contact__social-link svg {
  flex-shrink: 0;
  color: var(--color-orange);
  opacity: 0.95;
}

html[data-theme="dark"] .contact__social-link {
  background: rgba(255, 255, 255, 0.06);
}

.contact__social-link:hover {
  color: var(--color-orange);
  border-color: rgba(255, 106, 0, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.12);
}

.contact__social-link:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.contact__panel {
  padding: clamp(1.35rem, 3vw, 1.75rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 16px 44px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--transition-theme), box-shadow var(--transition-theme),
    background var(--transition-theme);
}

html[data-theme="dark"] .contact__panel {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 48px rgba(0, 0, 0, 0.35);
}

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

.contact-form__status {
  margin: 0;
  min-height: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status--success {
  display: block;
  color: #0d5c2e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

html[data-theme="dark"] .contact-form__status--success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

.contact-form__status--error {
  display: block;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

html[data-theme="dark"] .contact-form__status--error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form__field--invalid .contact-form__input,
.contact-form__field--invalid .contact-form__textarea {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.contact-form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.contact-form__req {
  color: var(--color-orange);
}

.contact-form__opt {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.contact-form__control {
  display: flex;
  align-items: stretch;
  position: relative;
}

.contact-form__input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s ease;
}

.contact-form__field:focus-within .contact-form__input-icon {
  color: var(--color-orange);
  opacity: 1;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  margin: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem 0.75rem 2.65rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form__textarea {
  padding-left: 0.85rem;
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.contact-form__input:hover,
.contact-form__textarea:hover {
  border-color: rgba(15, 23, 42, 0.12);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

html[data-theme="dark"] .contact-form__input:focus,
html[data-theme="dark"] .contact-form__textarea:focus {
  border-color: rgba(255, 106, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.contact-form__error {
  margin: 0;
  min-height: 0;
  font-size: 0.8125rem;
  color: #b91c1c;
}

html[data-theme="dark"] .contact-form__error {
  color: #f87171;
}

.contact-form__error:empty {
  display: none;
}

.contact-form__row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__submit {
  width: 100%;
  margin-top: 0.25rem;
  position: relative;
  gap: 0.5rem;
}

.contact-form__submit-spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin 0.7s linear infinite;
}

.contact-form__submit.is-loading .contact-form__submit-label {
  opacity: 0.92;
}

.contact-form__submit.is-loading .contact-form__submit-spinner {
  display: inline-block;
}

.contact-form__submit.is-loading {
  pointer-events: none;
}

@keyframes contact-mesh {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.03) translate(0.5%, -0.5%);
  }
}

@keyframes contact-glow {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.04);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .contact__ambient-mesh,
  .contact__ambient-glow {
    animation: none !important;
  }

  .contact__ambient-glow {
    opacity: 0.35;
  }
}

/* Snackbar (cards sin enlace) — abajo a la derecha */
.snackbar {
  position: fixed;
  z-index: 200;
  left: auto;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  width: min(440px, calc(100% - 2rem));
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.snackbar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.snackbar[hidden] {
  display: none !important;
}

.snackbar__inner {
  position: relative;
  padding: 1.15rem 2.75rem 1.2rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--color-orange);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 106, 0, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--transition-theme), border-color var(--transition-theme), box-shadow var(--transition-theme);
}

.snackbar__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.snackbar__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.snackbar__close {
  position: absolute;
  top: 0.4rem;
  right: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.snackbar__close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .snackbar__close:hover {
  background: rgba(255, 255, 255, 0.06);
}

.snackbar__close:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .snackbar {
    transition-duration: 0.2s;
  }
}

/* Footer — cierre premium (identidad propia + capas) */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(1.75rem, 4vw, 2.25rem);
  border-top: 1px solid var(--border);
  background: var(--footer-bg, var(--bg));
  transition: background var(--transition-theme), border-color var(--transition-theme);
  --footer-bg: linear-gradient(
    185deg,
    #f0f4fb 0%,
    #f8fafc 38%,
    #faf6f2 72%,
    #eef2f7 100%
  );
}

html[data-theme="dark"] .site-footer {
  --footer-bg: linear-gradient(185deg, #0b1020 0%, #111827 40%, #0f172a 78%, #0a0e18 100%);
  border-top-color: rgba(148, 163, 184, 0.1);
}

.site-footer__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.88;
  transition: opacity 0.9s ease;
}

.site-footer.is-inview .site-footer__ambient {
  opacity: 1;
}

.site-footer__bg {
  position: absolute;
  inset: 0;
  background: var(--footer-bg);
  opacity: 1;
}

.site-footer__mesh {
  position: absolute;
  inset: -6% -4%;
  background:
    radial-gradient(ellipse 55% 48% at 12% 88%, rgba(255, 106, 0, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 45% at 92% 12%, rgba(37, 99, 235, 0.07), transparent 52%);
  animation: footer-mesh 24s ease-in-out infinite alternate;
}

html[data-theme="dark"] .site-footer__mesh {
  background:
    radial-gradient(ellipse 55% 48% at 12% 88%, rgba(255, 106, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 92% 12%, rgba(37, 99, 235, 0.1), transparent 52%);
}

.site-footer__gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.5) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  animation: footer-grid 40s linear infinite;
}

html[data-theme="dark"] .site-footer__gridlines {
  opacity: 0.06;
  background-image:
    linear-gradient(90deg, rgba(148, 163, 184, 0.35) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.35) 1px, transparent 1px);
}

.site-footer__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.38;
  animation: footer-glow 18s ease-in-out infinite;
}

.site-footer__glow--1 {
  width: min(320px, 45vw);
  height: min(320px, 45vw);
  bottom: -18%;
  left: -6%;
  background: rgba(255, 106, 0, 0.2);
}

.site-footer__glow--2 {
  width: min(260px, 38vw);
  height: min(260px, 38vw);
  top: -20%;
  right: -4%;
  background: rgba(37, 99, 235, 0.12);
  animation-delay: -7s;
}

html[data-theme="dark"] .site-footer__glow--1 {
  opacity: 0.32;
}

html[data-theme="dark"] .site-footer__glow--2 {
  opacity: 0.28;
}

.site-footer__accent-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.35), transparent);
  opacity: 0.85;
}

html[data-theme="dark"] .site-footer__accent-line {
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.25), transparent);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

.site-footer__top {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.25rem);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2rem 2.5rem;
    align-items: start;
  }
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__logo:hover {
  color: var(--color-orange);
}

.site-footer__logo:hover .logo-mark {
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.2), 0 8px 24px rgba(255, 106, 0, 0.12);
}

.site-footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.site-footer__pitch {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 36ch;
}

.site-footer__tag {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
  opacity: 0.9;
}

.site-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.15rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-orange), rgba(255, 106, 0, 0.35));
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__link:hover {
  color: var(--text);
  transform: translateX(3px);
}

.site-footer__link:hover::after {
  width: 100%;
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.96875rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 10px;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease;
}

.site-footer__email:hover {
  color: var(--color-orange);
  transform: translateX(2px);
  text-shadow: 0 0 24px rgba(255, 106, 0, 0.15);
}

.site-footer__email-icon {
  display: flex;
  color: var(--color-orange);
  opacity: 0.9;
}

.site-footer__contact-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 0.9;
}

.site-footer__mini {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.site-footer__badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

html[data-theme="dark"] .site-footer__badge {
  background: rgba(255, 255, 255, 0.04);
}

.site-footer__badge:hover {
  border-color: rgba(255, 106, 0, 0.32);
  color: var(--text);
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.08);
}

.site-footer__social {
  display: flex;
  gap: 0.5rem;
}

.site-footer__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

html[data-theme="dark"] .site-footer__social-btn {
  background: rgba(255, 255, 255, 0.06);
}

.site-footer__social-btn:hover {
  color: var(--color-orange);
  border-color: rgba(255, 106, 0, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.12);
}

.site-footer__rail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: clamp(1.75rem, 4vw, 2.25rem) 0;
  opacity: 0.85;
}

.site-footer__rail-node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.35);
  flex-shrink: 0;
}

.site-footer__rail-track {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.35), rgba(37, 99, 235, 0.2), transparent);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.site-footer__rail-pulse {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: footer-rail-pulse 3.2s ease-in-out infinite;
  opacity: 0.5;
}

html[data-theme="dark"] .site-footer__rail-pulse {
  opacity: 0.25;
}

.site-footer__bottom {
  text-align: center;
  padding-top: 0.25rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

@keyframes footer-mesh {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.04) translate(1%, -1%);
  }
}

@keyframes footer-grid {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-40px, -40px);
  }
}

@keyframes footer-glow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.48;
    transform: scale(1.06);
  }
}

@keyframes footer-rail-pulse {
  0%,
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  50% {
    transform: translateX(100%);
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__mesh,
  .site-footer__gridlines,
  .site-footer__glow,
  .site-footer__rail-pulse {
    animation: none !important;
  }

  .site-footer__glow {
    opacity: 0.35;
  }

  .site-footer__ambient {
    opacity: 1;
    transition: none;
  }
}

.site-footer .logo-mark {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1), transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .proj-showcase:not(.is-inview) .proj-card {
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
  }
}
