:root {
  --cloud-gray: #f8fafc;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --teal: #0d9488;
  --teal-dark: #0b7a70;
  --teal-light: #14b8a6;
  --teal-glow: rgba(13, 148, 136, 0.45);
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 60px rgba(13, 148, 136, 0.25);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --header-h: 92px;
  --marquee-h: 42px;
  --site-top: calc(var(--marquee-h) + var(--header-h));
  --section-h: calc(100dvh - var(--site-top));
  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --content-max: 1280px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font);
  background: var(--cloud-gray);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  z-index: 200;
  box-shadow: 0 0 12px var(--teal-glow);
  transition: width 0.1s linear;
}

/* Header */
.header {
  position: fixed;
  top: var(--marquee-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s, height 0.3s;
}

.header.scrolled {
  height: 76px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.06);
}

.header.hero-over {
  background: transparent;
  box-shadow: none;
}

.header.hero-over .nav__links a {
  color: rgba(255, 255, 255, 0.75);
}

.header.hero-over .nav__links a:hover {
  color: var(--white);
}

.header.hero-over.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
}

.header.hero-over.scrolled .nav__links a {
  color: rgba(255, 255, 255, 0.8);
}

.header__inner {
  width: 100%;
  max-width: none;
  padding-inline: var(--page-gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 64px;
}

.logo__img {
  width: auto;
  height: clamp(42px, 5vw, 64px);
  max-width: none;
  transition: height 0.3s var(--ease-out-expo), transform 0.3s var(--ease-spring), opacity 0.3s;
}

.header.scrolled .logo__img {
  height: 52px;
}

.logo__img--light {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.logo__img--dark {
  opacity: 1;
}

.header.hero-over:not(.scrolled) .logo__img--dark,
.header.hero-over.scrolled .logo__img--dark {
  opacity: 0;
}

.header.hero-over:not(.scrolled) .logo__img--light,
.header.hero-over.scrolled .logo__img--light {
  opacity: 1;
}

.header:not(.hero-over) .logo__img--dark {
  opacity: 1;
}

.header:not(.hero-over) .logo__img--light {
  opacity: 0;
}

.logo:hover .logo__img--dark {
  transform: scale(1.02);
}

.logo:hover .logo__img--light {
  transform: translateY(-50%) scale(1.02);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  list-style: none;
}

.nav__links a {
  position: relative;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  padding-bottom: 0.35rem;
  transition: color 0.25s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 999px;
  transition: width 0.3s var(--ease-out-expo);
}

.nav__links a:hover {
  color: var(--teal);
}

.nav__links a:hover::after {
  width: 100%;
  height: 2px;
}

.nav__links a.is-active {
  color: var(--navy);
  font-weight: 600;
}

.nav__links a.is-active::after {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.header.hero-over .nav__links a.is-active {
  color: var(--white);
}

.header.hero-over .nav__links a.is-active::after,
.header.hero-over .nav__links a:hover::after {
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.header__user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2rem;
  flex-shrink: 0;
  max-width: 7.5rem;
}

.header__greeting {
  margin: 0;
  max-width: 100%;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.header.hero-over .header__greeting {
  color: rgba(255, 255, 255, 0.8);
}

.lang-toggle {
  display: flex;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  overflow: hidden;
  padding: 3px;
  background: rgba(255, 255, 255, 0.5);
  margin-left: 0.25rem;
}

.header.hero-over .lang-toggle {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.header.hero-over .lang-toggle button {
  opacity: 0.75;
}

.lang-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.25s, opacity 0.25s, box-shadow 0.25s;
  line-height: 0;
}

.lang-toggle__flag {
  display: block;
  width: 1.35rem;
  height: 0.9rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.lang-toggle__flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-toggle button.active {
  background: rgba(15, 23, 42, 0.08);
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.header.hero-over .lang-toggle button.active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.lang-toggle button:hover:not(.active) {
  opacity: 1;
  background: rgba(15, 23, 42, 0.05);
}

.header.hero-over .lang-toggle button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
}

.nav__ctas {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.375rem;
  height: 2.375rem;
  padding: 0 1.15rem;
  background: var(--teal);
  color: var(--white);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.25s;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
}

.nav__cta:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.45);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 2;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.header.hero-over .menu-btn span {
  background: var(--white);
}

.menu-btn.open span {
  background: var(--navy) !important;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero — inspired by Linear / Stripe dark hero */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: calc(var(--marquee-h) + var(--header-h) + 3rem) 0 5rem;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero__illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/hero-illustration.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, transparent 15%, black 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, transparent 15%, black 70%);
  z-index: 0;
}

.hero__grid-pattern {
  z-index: 1;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(64px, 64px); }
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orb-float 12s ease-in-out infinite;
  z-index: 1;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--teal);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: #1e40af;
  bottom: -15%;
  left: -10%;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: 250px;
  height: 250px;
  background: var(--teal-light);
  top: 40%;
  left: 30%;
  opacity: 0.25;
  animation-delay: -8s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero__content-wrap {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5); }
  50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.35s forwards;
}

.gradient-text {
  background: linear-gradient(135deg, var(--white) 0%, var(--teal-light) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero__subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--white);
  font-weight: 400;
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.75;
  text-shadow: 0 2px 28px rgba(15, 23, 42, 0.55);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.5s forwards;
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.65s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-spring);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.4);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn--primary:hover {
  background: var(--teal-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(13, 148, 136, 0.5);
}

.btn--primary:hover::before {
  transform: translateX(100%);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero visual removed — logo only in header */

/* Marquee — news ticker (right to left) */
.marquee {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: var(--marquee-h);
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  width: 100%;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 22s linear infinite;
}

.marquee__track:hover {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  white-space: nowrap;
}

.marquee__dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section:not(.section--dark)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-illustration-dark.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

/* Full-viewport sections (nav targets) */
.section--screen {
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  padding-top: var(--site-top);
  padding-bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.section--screen > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  max-height: var(--section-h);
  padding-block: clamp(1.25rem, 3.5vh, 2.75rem);
  gap: clamp(1.25rem, 3.5vh, 2.5rem);
}

.section--screen .section__header {
  margin-bottom: 0;
  flex-shrink: 0;
  max-width: 52rem;
}

.section--screen .section__header--center {
  margin-bottom: 0;
}

.section--screen .section__label {
  margin-bottom: 0.6rem;
  font-size: clamp(0.75rem, 1.4vh, 0.875rem);
}

.section--screen .section__label::before {
  width: clamp(24px, 4vw, 32px);
}

.section--screen .section__title {
  font-size: clamp(1.75rem, 4.2vh, 2.75rem);
  line-height: 1.12;
}

.section--screen .section__divider {
  margin-top: clamp(0.65rem, 1.5vh, 1rem);
  width: clamp(48px, 8vw, 72px);
  height: 4px;
}

.section--screen .section__desc {
  margin-top: clamp(0.65rem, 1.5vh, 1rem);
  font-size: clamp(1.05rem, 2.2vh, 1.35rem);
  line-height: 1.6;
  max-width: 52rem;
}

/* Nosotros + MVV unificado */
#nosotros .nosotros__layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  min-height: 0;
  padding-block: clamp(0.5rem, 1.5vh, 1.5rem);
}

#nosotros .nosotros__left,
#nosotros .nosotros__right {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vh, 0.85rem);
}

#nosotros .nosotros__right {
  border-left: 2px solid rgba(13, 148, 136, 0.18);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

#nosotros .about__facts {
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 1vh, 0.75rem);
  margin-top: clamp(0.5rem, 1vh, 0.85rem);
}

#nosotros .about__fact {
  font-size: clamp(0.875rem, 1.65vh, 1rem);
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}

#nosotros .about__fact strong {
  color: var(--navy);
  font-weight: 700;
}

#nosotros .section__desc strong {
  color: var(--navy);
  font-weight: 700;
}

/* Tarjetas inline MVV dentro de Nosotros */
#nosotros .mvv__cards {
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.4vh, 1rem);
  margin-top: clamp(0.5rem, 1vh, 0.75rem);
}

#nosotros .mvv-inline {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
  padding: clamp(0.85rem, 1.8vh, 1.25rem) clamp(1rem, 1.8vw, 1.35rem);
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#nosotros .mvv-inline:hover {
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.11);
  transform: translateY(-2px);
}

#nosotros .mvv-inline__num {
  font-size: clamp(1.5rem, 3.2vh, 2.1rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  -webkit-background-clip: text;
  background-clip: text;
  flex-shrink: 0;
  margin-top: 0.1em;
}

#nosotros .mvv-inline h4 {
  font-size: clamp(0.9375rem, 1.8vh, 1.0625rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

#nosotros .mvv-inline p {
  font-size: clamp(0.8125rem, 1.5vh, 0.9375rem);
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}

#nosotros .values-list {
  margin-top: 0.4rem;
  gap: 0.35rem;
}

#nosotros .value-pill {
  padding: 0.3rem 0.65rem;
  font-size: clamp(0.75rem, 1.3vh, 0.8125rem);
}

/* Escala los títulos de la columna derecha para que no compitan con la izquierda */
#nosotros .nosotros__right .section__title {
  font-size: clamp(1.25rem, 2.8vh, 1.85rem);
}

#nosotros .nosotros__right .section__label {
  font-size: clamp(0.7rem, 1.2vh, 0.8125rem);
}

/* Servicios */
#servicios .services__tabs {
  margin-bottom: 0;
  flex-shrink: 0;
}

#servicios .services__tab {
  padding: clamp(0.55rem, 1.2vh, 0.75rem) clamp(1rem, 2vh, 1.35rem);
  font-size: clamp(0.875rem, 1.6vh, 1rem);
}

#servicios .services__panel.active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#servicios .services__grid {
  flex: 1;
  align-content: start;
  align-items: stretch;
  gap: clamp(0.5rem, 1vh, 0.75rem);
}

#servicios .service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(0.55rem, 1vw, 0.75rem);
  row-gap: clamp(0.35rem, 0.8vh, 0.5rem);
  align-items: center;
  min-height: 0;
  padding: clamp(0.6rem, 1.25vh, 0.85rem) clamp(0.7rem, 1.4vh, 0.95rem);
}

#servicios .service-card__icon {
  grid-column: 1;
  grid-row: 1;
  width: clamp(30px, 3.5vh, 36px);
  height: clamp(30px, 3.5vh, 36px);
  margin-bottom: 0;
  border-radius: 8px;
}

#servicios .service-card__icon svg {
  width: clamp(14px, 1.7vh, 17px);
  height: clamp(14px, 1.7vh, 17px);
}

#servicios .service-card h4 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(0.8125rem, 1.5vh, 0.9375rem);
  margin-bottom: 0;
  line-height: 1.25;
}

#servicios .service-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: clamp(0.75rem, 1.35vh, 0.8125rem);
  line-height: 1.35;
}

#servicios .services__panel[data-panel="eco"] .services__grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin-inline: auto;
  width: 100%;
}

#servicios .services__panel[data-panel="saas"] .services__grid {
  grid-template-columns: minmax(0, 22rem);
  justify-content: center;
  max-width: 900px;
  margin-inline: auto;
  width: 100%;
}

/* MVV */
#mvv .mvv__grid {
  gap: clamp(0.85rem, 1.8vh, 1.35rem);
  flex: 1;
  align-items: stretch;
  min-height: 0;
}

#mvv .mvv-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(8rem, 17vh, 12rem);
  padding: clamp(1.15rem, 2.4vh, 1.85rem);
}

#mvv .mvv-card__num {
  font-size: clamp(2rem, 4.5vh, 3rem);
  margin-bottom: clamp(0.5rem, 1vh, 0.85rem);
}

#mvv .mvv-card h3 {
  font-size: clamp(1.125rem, 2.2vh, 1.375rem);
  margin-bottom: 0.5rem;
}

#mvv .mvv-card p {
  font-size: clamp(0.9375rem, 1.8vh, 1.0625rem);
  line-height: 1.55;
}

#mvv .value-pill {
  padding: 0.4rem 0.8rem;
  font-size: clamp(0.75rem, 1.4vh, 0.875rem);
}

/* Equipo — carrusel 3D */
#equipo .team-carousel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 1.5vh, 1rem);
  min-height: 0;
  width: 100%;
}

#equipo .team-carousel__stage {
  position: relative;
  width: min(100%, 56rem);
  height: clamp(16rem, 34vh, 22rem);
  overflow: visible;
  touch-action: none;
  cursor: grab;
  perspective: 900px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

#equipo .team-carousel__stage.is-dragging {
  cursor: grabbing;
  user-select: none;
}

#equipo .team-carousel .team__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(80%, 24rem);
  max-width: none;
  min-height: clamp(13rem, 27vh, 17rem);
  margin: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.25rem, 2.4vh, 1.85rem) clamp(1rem, 2vw, 1.35rem);
  gap: clamp(0.65rem, 1.3vh, 0.85rem);
  border-radius: var(--radius-xl);
  transform-origin: center center;
  transition: box-shadow 0.45s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  cursor: pointer;
}

#equipo .team-carousel .team__card.is-front {
  cursor: default;
  pointer-events: none;
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.18);
}

#equipo .team-carousel .team__card.is-front.is-linkable {
  cursor: pointer;
}

#equipo .team-carousel .team__card.is-side {
  cursor: pointer;
}

#equipo .team-carousel .team__info {
  will-change: opacity;
}

#equipo .team__avatar {
  width: clamp(80px, 11vh, 104px);
  height: clamp(80px, 11vh, 104px);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  flex-shrink: 0;
}

#equipo .team__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#equipo .team__info h3 {
  font-size: clamp(1.05rem, 2.2vh, 1.35rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

#equipo .team__role {
  font-size: clamp(0.8125rem, 1.55vh, 0.9375rem);
  color: var(--teal);
  font-weight: 600;
  margin-top: 0.2rem;
}

#equipo .team__bio {
  font-size: clamp(0.8125rem, 1.55vh, 0.9375rem);
  color: var(--slate-600);
  margin-top: 0.35rem;
  line-height: 1.55;
}

.team-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.team-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: width 0.35s var(--ease-out-expo), background 0.35s;
}

.team-carousel__dot.active {
  width: 1.5rem;
  background: var(--teal);
}

.team-carousel__dot:hover {
  background: rgba(13, 148, 136, 0.45);
}

.team-linkedin-bubble {
  position: absolute;
  z-index: 220;
  transform: translateX(-50%);
  pointer-events: auto;
  animation: team-linkedin-bubble-in 0.28s var(--ease-out-expo);
}

.team-linkedin-bubble[hidden] {
  display: none;
}

.team-linkedin-bubble__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid rgba(10, 102, 194, 0.14);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
  color: #0a66c2;
  font-family: inherit;
  font-size: clamp(0.8125rem, 1.5vh, 0.9375rem);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease-out-expo), box-shadow 0.22s ease;
}

.team-linkedin-bubble__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

.team-linkedin-bubble__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

@keyframes team-linkedin-bubble-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* Precios */
#precios .pricing__box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 3.5vh, 2.75rem) clamp(1.5rem, 3vh, 2.25rem);
  min-height: clamp(14rem, 30vh, 22rem);
}

#precios .pricing__box p {
  font-size: clamp(1.05rem, 2.2vh, 1.25rem);
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
  line-height: 1.6;
}

#precios .pricing__features {
  gap: clamp(0.65rem, 1.2vh, 0.85rem);
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

#precios .pricing__features li {
  padding: clamp(0.65rem, 1.2vh, 0.9rem) clamp(0.85rem, 1.5vh, 1.15rem);
  font-size: clamp(0.9375rem, 1.7vh, 1.0625rem);
}

#precios .pricing__features svg {
  width: clamp(18px, 2.2vh, 22px);
  height: clamp(18px, 2.2vh, 22px);
}

#precios .pricing__box .btn {
  align-self: center;
  padding: 0.85rem 1.75rem;
  font-size: clamp(0.9375rem, 1.7vh, 1.0625rem);
}

/* Contacto */
#contacto .contact__panel {
  flex: 1;
  padding: clamp(1.75rem, 3.5vh, 2.75rem);
  gap: clamp(1.5rem, 3vh, 2.5rem);
  min-height: clamp(14rem, 30vh, 22rem);
}

#contacto .contact__panel h2 {
  font-size: clamp(1.5rem, 3.2vh, 2rem);
}

#contacto .contact__panel > div > p {
  font-size: clamp(1rem, 2vh, 1.125rem);
  line-height: 1.55;
  margin-top: 0.65rem;
}

#contacto .contact__links {
  gap: clamp(0.75rem, 1.4vh, 1rem);
}

#contacto .contact__link {
  padding: clamp(0.85rem, 1.6vh, 1.15rem) clamp(1rem, 2vh, 1.35rem);
}

#contacto .contact__link-icon {
  width: clamp(44px, 5.5vh, 52px);
  height: clamp(44px, 5.5vh, 52px);
}

#contacto .contact__link-icon svg {
  width: clamp(20px, 2.5vh, 24px);
  height: clamp(20px, 2.5vh, 24px);
}

#contacto .contact__link-label {
  font-size: clamp(0.75rem, 1.4vh, 0.8125rem);
}

#contacto .contact__link-value {
  font-size: clamp(1rem, 1.9vh, 1.125rem);
}

.section__header {
  max-width: 42rem;
  margin-bottom: 3.5rem;
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section__header--center .section__divider {
  margin-inline: auto;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.875rem;
}

.section__label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.section--dark .section__label {
  color: var(--teal-light);
}

.section--dark .section__label::before {
  background: var(--teal-light);
}

.section__title {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.15;
}

.section--dark .section__title {
  color: var(--white);
}

.section__divider {
  margin-top: 1rem;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.section__desc {
  margin-top: 1.125rem;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.75;
  max-width: 48rem;
}

.section--dark .section__desc {
  color: var(--slate-400);
}

/* About — bento grid */
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.about__card {
  padding: 1.75rem;
  background: var(--cloud-gray);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
}

.about__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.about__card:hover::before {
  transform: scaleX(1);
}

.about__card:nth-child(1) { grid-column: span 6; }
.about__card:nth-child(2) { grid-column: span 6; }
.about__card:nth-child(3) { grid-column: span 4; }
.about__card:nth-child(4) { grid-column: span 8; }

.about__card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.about__card-icon svg {
  width: 20px;
  height: 20px;
}

.about__card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.about__card p {
  font-size: 0.9375rem;
  color: var(--slate-600);
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  padding: 0.4rem 0.9rem;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s var(--ease-spring);
}

.tag:hover {
  background: rgba(13, 148, 136, 0.2);
  transform: scale(1.05);
}

/* Services */
.services__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 4px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
  width: fit-content;
}

.services__tab {
  padding: 0.625rem 1.25rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.services__tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.services__panel {
  display: none;
}

.services__panel.active {
  display: block;
  animation: panel-in 0.5s var(--ease-out-expo);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.service-card {
  position: relative;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card__icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(13, 148, 136, 0.05));
  color: var(--teal);
  border-radius: 12px;
  margin-bottom: 1.125rem;
  transition: transform 0.4s var(--ease-spring);
}

.service-card:hover .service-card__icon {
  transform: scale(1.08) rotate(-3deg);
}

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

.service-card h4 {
  position: relative;
  z-index: 1;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card p {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* MVV */
.mvv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mvv-card {
  position: relative;
  padding: 2.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, background 0.4s;
  overflow: hidden;
}

.mvv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.mvv-card__glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15), transparent 70%);
  pointer-events: none;
}

.mvv-card__num {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.mvv-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.875rem;
}

.mvv-card p {
  font-size: 0.9375rem;
  color: var(--slate-400);
  line-height: 1.65;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.value-pill {
  padding: 0.4rem 0.875rem;
  background: rgba(13, 148, 136, 0.2);
  color: var(--teal-light);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.3);
  transition: transform 0.25s var(--ease-spring), background 0.25s;
}

.value-pill:hover {
  transform: scale(1.06);
  background: rgba(13, 148, 136, 0.35);
}

/* Team */
.team__card {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  max-width: 720px;
  margin-inline: auto;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.team__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.12);
}

.team__avatar {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  animation: avatar-glow 3s ease-in-out infinite;
}

@keyframes avatar-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(13, 148, 136, 0); }
}

.team__info h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.team__role {
  font-size: 0.9375rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 0.25rem;
}

.team__bio {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* Pricing */
.pricing__box {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  padding: 3.5rem 2.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.pricing__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light), var(--teal));
  background-size: 200% 100%;
  animation: shimmer-bar 3s linear infinite;
}

@keyframes shimmer-bar {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.pricing__box p {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.pricing__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  list-style: none;
  text-align: left;
}

.pricing__features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--navy);
  font-weight: 500;
  padding: 0.75rem 1rem;
  background: var(--cloud-gray);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-spring);
}

.pricing__features li:hover {
  transform: translateX(4px);
}

.pricing__features svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Contact */
.contact__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2744 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact__panel::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.2), transparent 60%);
  pointer-events: none;
}

.contact__panel > * {
  position: relative;
  z-index: 1;
}

.contact__panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.contact__panel .section__label {
  color: var(--teal-light);
}

.contact__panel .section__label::before {
  background: var(--teal-light);
}

.contact__panel > div > p {
  margin-top: 1rem;
  color: var(--slate-400);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 1.125rem 1.375rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: background 0.3s, transform 0.3s var(--ease-spring), border-color 0.3s;
}

.contact__link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(13, 148, 136, 0.4);
  transform: translateX(6px);
}

.contact__link-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  border-radius: 12px;
  transition: transform 0.3s var(--ease-spring);
}

.contact__link:hover .contact__link-icon {
  transform: scale(1.08);
}

.contact__link-icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.contact__link-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
}

.contact__link-value {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 0.125rem;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  background: var(--navy);
  color: var(--slate-400);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand img {
  height: 48px;
  width: auto;
  opacity: 0.95;
}

.footer__copy {
  font-size: 0.875rem;
}

.footer__tagline {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__actions {
    opacity: 1;
    animation: none;
  }

  .marquee__track {
    animation: marquee-scroll 22s linear infinite !important;
    animation-iteration-count: infinite !important;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .nav__links a {
    font-size: 0.8125rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .nav__cta {
    min-height: 2.125rem;
    height: 2.125rem;
    padding: 0 0.9rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 960px) {
  html {
    scroll-snap-type: none;
  }

  .section--screen {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    padding-top: var(--site-top);
    overflow: visible;
  }

  .section--screen > .container {
    max-height: none;
    justify-content: flex-start;
    padding-block: 2rem;
  }

  #nosotros .nosotros__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #nosotros .nosotros__right {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid rgba(13, 148, 136, 0.18);
    padding-top: 1.5rem;
  }

  #nosotros .about__facts {
    max-width: none;
  }

  #servicios .services__panel[data-panel="eco"] .services__grid,
  #servicios .services__panel[data-panel="saas"] .services__grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .about__grid,
  .mvv__grid,
  .services__grid,
  .contact__panel {
    grid-template-columns: 1fr;
  }

  .about__card:nth-child(n) {
    grid-column: span 12;
  }

  .logo__img {
    height: 48px;
  }

  .header.scrolled .logo__img {
    height: 42px;
  }

  .nav__links,
  .nav__ctas {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .nav.open .nav__links,
  .nav.open .nav__ctas {
    display: flex;
  }

  .nav.open {
    position: fixed;
    inset: calc(var(--marquee-h) + var(--header-h)) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    background: var(--white);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    gap: 1.5rem;
    overflow-y: auto;
    z-index: 99;
  }

  .header.hero-over .nav.open {
    background: var(--navy);
  }

  .nav.open .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav.open .nav__ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

  .services__tabs {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-bottom: 3rem;
  }

  .section {
    padding: 4rem 0;
  }

  .team__card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  #equipo .team-carousel__stage {
    height: clamp(14rem, 30vh, 18rem);
  }

  #equipo .team-carousel .team__card {
    width: min(86%, 20rem);
    min-height: clamp(11rem, 24vh, 14rem);
  }

  .contact__panel {
    padding: 2rem 1.5rem;
  }

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

  .hero__actions .btn {
    width: min(100%, 280px);
  }
}

/* Service detail pages */
html:has(body.service-detail) {
  scroll-snap-type: none;
}

.service-detail {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 148, 136, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 23, 42, 0.06), transparent 50%),
    var(--cloud-gray);
  color: var(--navy);
}

.service-detail__top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.service-detail__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.service-detail__brand img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.service-detail__top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-detail__main {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vh, 2.75rem) clamp(1.25rem, 4vw, 2rem) clamp(3.5rem, 8vh, 5rem);
}

.service-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.25s, transform 0.25s;
}

.service-detail__back:hover {
  color: var(--teal);
  transform: translateX(-2px);
}

.service-detail__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.service-detail__label::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.service-detail__title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

.service-detail__lead {
  font-size: clamp(1.05rem, 2.2vh, 1.2rem);
  color: var(--slate-600);
  line-height: 1.65;
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.service-detail__visual {
  position: relative;
  margin: 0 0 2.25rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.45);
}

.service-detail__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease-out-expo);
}

.service-detail__visual:hover img {
  transform: scale(1.04);
}

.service-detail__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.28));
  pointer-events: none;
}

.service-detail__credit {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--slate-400);
}

.service-detail__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-detail__block {
  margin-bottom: 2.15rem;
}

.service-detail__block-title {
  font-size: clamp(1.15rem, 2.5vh, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.95rem;
  color: var(--navy);
}

.service-detail__list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
}

.service-detail__list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.65rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--slate-600);
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.35);
}

.service-detail__list li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.service-detail__list strong {
  color: var(--navy);
  font-weight: 700;
}

.service-detail__main--empty {
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}

.service-detail__cta-text {
  flex: 1 1 14rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.service-detail__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
  white-space: nowrap;
}

.service-detail__cta-btn:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .service-detail__visual img,
  .service-detail__back,
  .service-detail__cta-btn {
    transition: none;
  }

  .service-detail__visual:hover img {
    transform: none;
  }
}

/* Auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  max-height: min(92dvh, 36rem);
  overflow-y: auto;
  padding: 1.15rem 1.15rem 1.1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  animation: auth-modal-in 0.28s var(--ease-out-expo);
}

@keyframes auth-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--slate-600);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-modal__close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: var(--navy);
}

.auth-modal__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 1.75rem 0.75rem 0;
}

.auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
  padding: 0.22rem;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 999px;
}

.auth-modal__tab {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.55rem;
  background: transparent;
  color: var(--slate-600);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.auth-modal__tab.is-active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.auth-modal__error {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.auth-form[hidden] {
  display: none;
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.auth-form__field input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: var(--cloud-gray);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-form__field input:focus {
  border-color: rgba(13, 148, 136, 0.55);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.auth-form__submit {
  width: 100%;
  margin-top: 0.2rem;
  min-height: 2.4rem;
  justify-content: center;
  font-size: 0.875rem;
}

.auth-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-modal__divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0 0.7rem;
  color: var(--slate-400);
  font-size: 0.75rem;
  font-weight: 500;
}

.auth-modal__divider::before,
.auth-modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.1);
}

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.auth-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.auth-social__btn:hover {
  background: var(--cloud-gray);
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.auth-social__btn.is-disabled,
.auth-social__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.auth-social__btn.is-disabled:hover,
.auth-social__btn:disabled:hover {
  background: var(--white);
  border-color: rgba(15, 23, 42, 0.12);
  transform: none;
}

.auth-social__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

body.auth-open {
  overflow: hidden;
}
