/* ===== Variables — Manual de marca ARISEN ===== */
:root {
  /* Paleta corporativa */
  --navy: #041e42;
  --gold: #e4c367;
  --gold-bronze: #b6863e;
  --white: #ffffff;

  /* UI (tema oscuro — versión negativa del logo) */
  --bg-dark: var(--navy);
  --bg-card: #052a58;
  --bg-elevated: #063570;
  --bg-footer: #02152e;
  --gold-light: #e4c367;
  --gold-dim: rgba(228, 195, 103, 0.18);
  --text: var(--white);
  --text-muted: rgba(255, 255, 255, 0.72);
  --border: rgba(228, 195, 103, 0.38);
  --navy-rgb: 4, 30, 66;

  /* Tipografía — Montserrat SemiBold (manual) */
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --gradient-gold: linear-gradient(135deg, var(--gold-bronze) 0%, var(--gold) 100%);
  --header-h: 96px;
  --logo-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 8px 32px rgba(228, 195, 103, 0.22);
  --tracking-tagline: 0.22em;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.text-gold { color: var(--gold); }

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.header.scrolled {
  background: rgba(var(--navy-rgb), 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gold-dim);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo__img {
  height: var(--logo-h);
  width: auto;
  max-width: min(380px, 55vw);
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 2rem;
}
.nav__link {
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition), left var(--transition);
}
.nav__link:hover,
.nav__link.active { color: var(--gold); }
.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
  left: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn--primary {
  background: var(--gradient-gold);
  color: var(--navy);
  border-color: var(--gold-bronze);
  font-weight: var(--fw-semibold);
}
.btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold-dim);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn--header { font-size: 0.72rem; padding: 0.65rem 1.2rem; color: var(--gold); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.72rem; }
.btn--full { width: 100%; justify-content: center; }

/* ===== Hero ===== */
.section--hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(var(--navy-rgb), 0.92) 0%, rgba(var(--navy-rgb), 0.65) 55%, rgba(var(--navy-rgb), 0.4) 100%),
    url("img/fondo_arisen.png") center/cover no-repeat;
  z-index: -1;
}
.hero {
  padding: 4rem 0 6rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: var(--fw-semibold);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 640px;
}
.hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.5rem;
}
.hero__highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gold);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero__highlight svg { flex-shrink: 0; margin-top: 2px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero__secure {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Pillars ===== */
.pillars {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pillar {
  padding: 3rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: background var(--transition);
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--bg-elevated); }
.pillar__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--gold);
}
.pillar__icon svg { width: 100%; height: 100%; }
.pillar h3 {
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.pillar p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Statement ===== */
.statement {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
}
.statement__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(var(--navy-rgb), 0.75), rgba(var(--navy-rgb), 0.85)),
    url("https://images.unsplash.com/photo-1449824913935-59a10b8d2001?w=1920&q=80") center/cover;
  z-index: -1;
}
.statement__text {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  position: relative;
}

/* ===== Sections ===== */
.section--page {
  padding: 6rem 0;
  scroll-margin-top: var(--header-h);
}
.section-header {
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}
.section-header--center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.divider {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto;
}
.divider--wide { width: 120px; }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tagline);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

/* ===== Services ===== */
#servicios {
  background: linear-gradient(
    165deg,
    #0c2f5c 0%,
    #082647 45%,
    #061e3d 100%
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.service-card {
  background: #ffffff;
  border: 1px solid rgba(var(--navy-rgb), 0.12);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(var(--navy-rgb), 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(var(--navy-rgb), 0.12), var(--shadow-gold);
  border-color: var(--gold);
}
.service-card__icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(var(--navy-rgb), 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 1.25rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.service-card:hover .service-card__icon {
  background: rgba(var(--navy-rgb), 0.06);
  border-color: rgba(var(--navy-rgb), 0.35);
  color: var(--navy);
}
.service-card h3 {
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.service-card__price {
  font-size: 0.9rem;
  color: rgba(var(--navy-rgb), 0.78);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.service-card__price strong {
  display: block;
  font-size: 1.4rem;
  color: var(--gold-bronze);
  margin-top: 0.25rem;
}
.service-card ul {
  flex: 1;
  margin-bottom: 1.5rem;
}
.service-card li {
  font-size: 0.85rem;
  color: var(--navy);
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  line-height: 1.5;
}
.service-card li strong {
  color: var(--gold-bronze);
}
.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.service-card .btn--outline {
  color: var(--navy);
  border-color: var(--gold-bronze);
}
.service-card .btn--outline:hover {
  background: rgba(228, 195, 103, 0.14);
  color: var(--gold-bronze);
}
.service-card__note {
  font-size: 0.75rem;
  color: rgba(var(--navy-rgb), 0.65);
  margin-top: 1rem;
  font-style: italic;
  line-height: 1.55;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.feature { text-align: center; }
.feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.feature:hover .feature__icon {
  transform: scale(1.08);
  background: var(--gold-dim);
}
.feature h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cta-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  flex-wrap: wrap;
}
.cta-banner svg { color: var(--gold); flex-shrink: 0; }
.cta-banner div { flex: 1; min-width: 200px; }
.cta-banner strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.cta-banner p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Metodología ===== */
.section--metodologia {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}
.metodologia__decor {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse, var(--gold-dim) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.metodologia__decor::before {
  content: "A";
  position: absolute;
  right: 10%;
  top: 20%;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 20rem;
  color: rgba(228, 195, 103, 0.05);
}

.metodologia-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  max-width: 820px;
  margin: 0 auto 3.5rem;
  padding: 1.15rem 2rem;
  background: rgba(var(--navy-rgb), 0.35);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.metodologia-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.metodologia-banner__text {
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: var(--fw-medium);
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 0;
  white-space: nowrap;
}
.metodologia-banner__text strong {
  font-weight: var(--fw-bold);
  color: var(--gold);
}
.metodologia-banner__divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .metodologia-banner {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }
  .metodologia-banner__divider {
    display: none;
  }
  .metodologia-banner__text {
    white-space: normal;
    text-align: center;
    width: 100%;
  }
}

.acronym-title {
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.acronym-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.acronym-item {
  padding: 2rem 1.25rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}
.acronym-item:last-child { border-right: none; }
.acronym-item:hover { background: var(--bg-elevated); }
.acronym-item__letter {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.acronym-item__word {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.acronym-item__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--gold);
}
.acronym-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.approach {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  margin-bottom: 4rem;
  background: var(--bg-card);
}
.approach > h3 {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.approach__item { text-align: center; }
.approach__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--gold);
}
.approach__item h4 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.approach__item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quote {
  text-align: center;
  position: relative;
  padding: 2rem;
}
.quote__mark {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 0.5;
  display: block;
  margin-bottom: -1rem;
}
.quote p {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.4;
}

/* ===== Nosotros ===== */
.section--nosotros { scroll-margin-top: var(--header-h); }

.nosotros-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}
.nosotros-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--navy-rgb), 0.95) 0%, rgba(var(--navy-rgb), 0.5) 50%, rgba(var(--navy-rgb), 0.3) 100%),
    url("img/fondo_2.jpg") center/cover;
  z-index: -1;
}
.nosotros-hero__content {
  padding-top: calc(var(--header-h) + 4rem);
}
.nosotros-hero h2 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 600px;
  line-height: 1.2;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 4rem 0;
}
.mv-card {
  border: 1px solid rgba(var(--navy-rgb), 0.12);
  border-radius: 8px;
  padding: 2.5rem;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(var(--navy-rgb), 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(var(--navy-rgb), 0.12), var(--shadow-gold);
  border-color: var(--gold);
}
.mv-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(182, 134, 62, 0.5);
  background: rgba(228, 195, 103, 0.22);
  color: var(--gold-bronze);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(182, 134, 62, 0.25);
}
.mv-card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
}
.mv-card h3 {
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.mv-card p {
  font-size: 0.9rem;
  color: rgba(var(--navy-rgb), 0.78);
  line-height: 1.8;
}

.impact {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem 2rem;
  background:
    linear-gradient(rgba(var(--navy-rgb), 0.9), rgba(var(--navy-rgb), 0.9)),
    url("https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1200&q=80") center/cover;
  border-radius: 4px;
  margin-bottom: 4rem;
}
.impact__map {
  width: 100px;
  height: auto;
  color: var(--gold);
  flex-shrink: 0;
  opacity: 0.8;
}
.impact p {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
}

.team-header {
  text-align: center;
  margin-bottom: 3rem;
}
.team-header h3 {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.team-card {
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card:hover { transform: translateY(-6px); }

.team-card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: inherit;
  border-radius: 4px;
}
.team-card__trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.team-card__photo-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color var(--transition);
}
.team-card:hover .team-card__photo-wrap,
.team-card__trigger:focus-visible .team-card__photo-wrap {
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}

.team-card__photo {
  display: block;
  aspect-ratio: 3/4;
  background: var(--bg-elevated) var(--photo) center/cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card__trigger:hover .team-card__photo,
.team-card__trigger:focus-visible .team-card__photo {
  transform: scale(1.06);
}

.team-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(var(--navy-rgb), 0.15) 0%,
    rgba(var(--navy-rgb), 0.72) 55%,
    rgba(var(--navy-rgb), 0.92) 100%
  );
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card__trigger:hover .team-card__overlay,
.team-card__trigger:focus-visible .team-card__overlay {
  opacity: 1;
}

.team-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gradient-gold);
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(228, 195, 103, 0.35);
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card__cta::after {
  content: "→";
  font-size: 0.85rem;
}
.team-card__trigger:hover .team-card__cta,
.team-card__trigger:focus-visible .team-card__cta {
  transform: translateY(0);
  opacity: 1;
}

.team-card h4 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.team-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Modal equipo — tema claro ===== */
body.modal-open {
  overflow: hidden;
}

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  visibility: hidden;
}
.team-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--navy-rgb), 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-modal.is-open .team-modal__backdrop {
  opacity: 1;
}

.team-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid rgba(var(--navy-rgb), 0.12);
  border-radius: 12px;
  box-shadow:
    0 24px 64px rgba(var(--navy-rgb), 0.18),
    0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-modal.is-open .team-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.team-modal__watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("img/A.png") center 42% / min(72%, 520px) no-repeat;
  opacity: 0.14;
  mix-blend-mode: lighten;
}

.team-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(var(--navy-rgb), 0.2);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.team-modal__close:hover {
  background: rgba(var(--navy-rgb), 0.06);
  border-color: var(--gold-bronze);
  color: var(--gold-bronze);
  transform: rotate(90deg);
}
.team-modal__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.team-modal__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.2fr);
  gap: 0;
  align-items: stretch;
}

.team-modal__figure {
  position: relative;
  margin: 0;
  min-height: 100%;
  background: #f4f1ea;
  border-right: 1px solid rgba(var(--navy-rgb), 0.1);
  overflow: hidden;
}
.team-modal__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-modal__content {
  padding: 2.5rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.team-modal__label {
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bronze);
}
.team-modal__name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1.2;
}
.team-modal__role {
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: rgba(var(--navy-rgb), 0.65);
  letter-spacing: 0.02em;
}
.team-modal__content .divider {
  width: 56px;
  height: 2px;
  margin: 0.75rem 0 0.5rem;
  background: var(--gradient-gold);
  border: none;
}
.team-modal__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.team-modal__bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.team-modal__bio p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--navy);
}

.team-modal__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding: 1.15rem 1rem;
  background: rgba(var(--navy-rgb), 0.04);
  border: 1px solid rgba(var(--navy-rgb), 0.12);
  border-radius: 8px;
}
.team-modal__pillar {
  text-align: center;
  padding: 0.5rem 0.4rem;
  border-right: 1px solid rgba(var(--navy-rgb), 0.1);
}
.team-modal__pillar:last-child {
  border-right: none;
}
.team-modal__pillar-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 0.6rem;
  color: var(--gold-bronze);
}
.team-modal__pillar-icon svg {
  width: 100%;
  height: 100%;
}
.team-modal__pillar h4 {
  font-size: 0.58rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bronze);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.team-modal__pillar p {
  font-size: 0.74rem;
  line-height: 1.55;
  color: rgba(var(--navy-rgb), 0.78);
}

@media (max-width: 900px) {
  .team-modal__pillars {
    grid-template-columns: 1fr;
  }
  .team-modal__pillar {
    border-right: none;
    border-bottom: 1px solid rgba(var(--navy-rgb), 0.1);
    padding-bottom: 1rem;
  }
  .team-modal__pillar:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .team-modal__watermark {
    background-size: min(85%, 380px);
    background-position: center 35%;
    opacity: 0.05;
  }
  .team-modal__layout {
    grid-template-columns: 1fr;
  }
  .team-modal__figure {
    border-right: none;
    border-bottom: 1px solid rgba(var(--navy-rgb), 0.1);
    min-height: auto;
    aspect-ratio: 4 / 5;
    max-height: 45vh;
  }
  .team-modal__content {
    padding: 1.75rem 1.35rem 1.5rem;
  }
}

.values-footer {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.values-footer__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
}
.values-footer__item svg { width: 40px; height: 40px; }
.values-footer__item span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== Contacto ===== */
.section--contacto { scroll-margin-top: var(--header-h); }

.contacto-hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}
.contacto-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(var(--navy-rgb), 0.95) 40%, rgba(var(--navy-rgb), 0.7) 100%),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?w=1920&q=80") center/cover;
  z-index: -1;
}
.contacto-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contacto-hero__text h2 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.contacto-hero__text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background: rgba(17, 21, 28, 0.95);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  animation: slideIn 0.8s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.contact-form__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.contact-form__header svg { color: var(--gold); flex-shrink: 0; }
.contact-form__header h3 {
  font-size: 1rem;
  line-height: 1.4;
}
.contact-cta__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  padding: 0 1rem;
  margin-bottom: 0.85rem;
  background: var(--bg-dark);
  transition: border-color var(--transition);
}
.field:focus-within { border-color: var(--gold); }
.field svg { color: var(--gold); flex-shrink: 0; opacity: 0.7; }
.field input,
.field select {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.9rem 0;
}
.field select { cursor: pointer; }
.field select option { background: var(--bg-dark); }
.contact-form__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.form-message {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gold);
}
.form-message.error { color: #e74c3c; }

.steps-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 4rem 0 3rem;
  flex-wrap: wrap;
}
.steps-header h3 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 1.5rem;
}
.step__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--gold);
  transition: transform var(--transition);
}
.step:hover .step__icon { transform: scale(1.1); }
.step h4 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.step__arrow {
  color: var(--gold);
  font-size: 1.5rem;
  padding-top: 2rem;
  opacity: 0.6;
}

.coverage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.coverage__item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 2rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(var(--navy-rgb), 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(var(--navy-rgb), 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.coverage__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(var(--navy-rgb), 0.12), var(--shadow-gold);
  border-color: var(--gold);
}
.coverage__item svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0.5rem;
  border-radius: 50%;
  border: 1px solid rgba(182, 134, 62, 0.5);
  background: rgba(228, 195, 103, 0.22);
  color: var(--gold-bronze);
  box-shadow: 0 4px 14px rgba(182, 134, 62, 0.25);
  box-sizing: content-box;
}
.coverage__item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.coverage__item span {
  font-size: 0.8rem;
  color: rgba(var(--navy-rgb), 0.72);
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-footer);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.social-list li { margin-bottom: 0.75rem; }
.social-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.social-list a:hover { color: var(--gold); }
.social-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}
.footer__contact,
.footer__phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__contact:hover,
.footer__phone:hover { color: var(--gold); }
.footer__contact svg,
.footer__phone svg { color: var(--gold); }
.footer__col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.footer__copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: none; }
  .pillar { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .services-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .features-row { grid-template-columns: repeat(2, 1fr); }
  .acronym-grid { grid-template-columns: repeat(3, 1fr); }
  .acronym-item:nth-child(3) { border-right: none; }
  .approach__grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-hero__grid { grid-template-columns: 1fr; }
  .coverage { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 768px) {
  :root {
    --header-h: 88px;
    --logo-h: 58px;
  }
  .nav-toggle { display: flex; }
  .btn--header { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(var(--navy-rgb), 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid var(--border);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; }
  .features-row { grid-template-columns: 1fr; }
  .acronym-grid { grid-template-columns: 1fr; }
  .acronym-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .approach__grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .impact { flex-direction: column; text-align: center; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .values-footer { flex-direction: column; gap: 2rem; }
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .steps { flex-direction: column; align-items: center; }
  .step__arrow { transform: rotate(90deg); padding: 0; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .social-list a { justify-content: center; }
  .footer__contact, .footer__phone { justify-content: center; }
}

/* ===== Página diagnóstico ===== */
.page-diagnostico {
  background: var(--bg-dark);
}

.diag-hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.diag-hero__watermark {
  position: absolute;
  inset: 0;
  background: url("img/A.png") center 55% / min(55%, 420px) no-repeat;
  opacity: 0.05;
  mix-blend-mode: lighten;
  pointer-events: none;
}
.diag-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.diag-hero h1 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.diag-hero p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.diag-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}
.diag-hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.diag-hero__meta svg { color: var(--gold); flex-shrink: 0; }

.diag-form-section {
  padding: 3rem 0 5rem;
}
.diag-form-wrap {
  max-width: 920px;
}

.diag-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== Wizard por pasos ===== */
.diag-wizard__top {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
}
.diag-wizard__progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.diag-wizard__progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-bronze), var(--gold));
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.diag-wizard__step-meta {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bronze);
  margin-bottom: 0.35rem;
}
.diag-wizard__step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--fw-semibold);
  color: #fff;
  line-height: 1.35;
}

.diag-wizard__steps {
  position: relative;
  min-height: 200px;
}
.diag-step {
  animation: diagStepIn 0.4s ease both;
}
.diag-step[hidden] {
  display: none !important;
}
@keyframes diagStepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diag-wizard__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}
.diag-wizard__nav--last {
  justify-content: flex-start;
}
.diag-wizard__back {
  margin-right: auto;
}
.diag-wizard__next,
.diag-wizard__back {
  min-width: 160px;
}
.diag-wizard__submit-wrap {
  margin-top: 0.25rem;
}

.diag-block {
  background: #ffffff;
  border: 1px solid rgba(var(--navy-rgb), 0.1);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}
.diag-block__header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(var(--navy-rgb), 0.1);
}
.diag-block__number {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  color: var(--gold-bronze);
  padding-top: 0.35rem;
}
.diag-block__header h2 {
  font-size: 1.05rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.diag-block__header p {
  font-size: 0.88rem;
  color: rgba(var(--navy-rgb), 0.7);
  line-height: 1.55;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:24px;
}

.diag-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.diag-field--full {
  grid-column: 1 / -1;
}
.diag-field__label {
  font-size: 0.82rem;
  font-weight: var(--fw-medium);
  color: var(--navy);
  line-height: 1.45;
}
.diag-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(var(--navy-rgb), 0.18);
  border-radius: 4px;
  background: #f7f9fc;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.diag-input:focus {
  outline: none;
  border-color: var(--gold-bronze);
  box-shadow: 0 0 0 3px rgba(228, 195, 103, 0.2);
}
.diag-input:invalid:not(:placeholder-shown) {
  border-color: rgba(231, 76, 60, 0.5);
}

.diag-checkgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.diag-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(var(--navy-rgb), 0.15);
  border-radius: 999px;
  background: #f7f9fc;
  font-size: 0.82rem;
  color: var(--navy);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.diag-check:has(input:checked) {
  border-color: var(--gold-bronze);
  background: rgba(228, 195, 103, 0.18);
}
.diag-check input {
  accent-color: var(--gold-bronze);
}

.diag-field--error .diag-input,
.diag-field--error .diag-checkgroup {
  border-color: rgba(231, 76, 60, 0.55);
}
.diag-field__error {
  font-size: 0.75rem;
  color: #c0392b;
}

.diag-form__footer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
}
.diag-form__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.diag-submit {
  position: relative;
  min-height: 52px;
}
.diag-submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.diag-submit__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(var(--navy-rgb), 0.2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: diagSpin 0.7s linear infinite;
}
.diag-submit.is-loading .diag-submit__spinner {
  display: inline-block;
}
@keyframes diagSpin {
  to { transform: rotate(360deg); }
}

.diag-success {
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(var(--navy-rgb), 0.12);
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.diag-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(228, 195, 103, 0.2);
  color: var(--gold-bronze);
}
.diag-success h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.diag-success p {
  color: rgba(var(--navy-rgb), 0.75);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.diag-success .btn--outline {
  color: var(--navy);
  border-color: var(--gold-bronze);
}

#diagnosticoMessage {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .diag-grid {
    grid-template-columns: 1fr;
  }
  .diag-block {
    padding: 1.5rem 1.25rem;
  }
  .diag-block__header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .diag-wizard__nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .diag-wizard__back {
    margin-right: 0;
    order: 2;
  }
  .diag-wizard__next {
    order: 1;
    width: 100%;
  }
  .diag-wizard__back {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: opacity 0.3s; transform: none; }
  .reveal.visible { transform: none; }
  .team-card__photo,
  .team-card__overlay,
  .team-card__cta,
  .team-modal__backdrop,
  .team-modal__panel { transition-duration: 0.01ms !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
