/* ============================================================
   POWER MIND — Landing Page Styles
   Brand: Navy #021c51 · Lime #b9e573 · Teal #0bc9cd
   Fonts: Delight (headings) · Neue Kabel (body/UI)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Delight";
  src: url("../assets/fonts/Delight-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Delight";
  src: url("../assets/fonts/Delight-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Delight";
  src: url("../assets/fonts/Delight-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Neue Kabel";
  src: url("../assets/fonts/NeueKabel-Book.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Kabel";
  src: url("../assets/fonts/NeueKabel-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Neue Kabel";
  src: url("../assets/fonts/NeueKabel-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --color-navy: #021c51;
  --color-navy-2: #0a2a63;
  --color-lime: #b9e573;
  --color-lime-dark: #9bd94f;
  --color-teal: #0bc9cd;

  --color-bg: #ffffff;
  --color-bg-tint: #f3f6f5;
  --color-bg-dark: var(--color-navy);
  --color-bg-dark-2: #0d295e;

  --color-heading: var(--color-navy);
  --color-text: #3c4a63;
  --color-text-muted: #6b7690;
  --color-border: #e3e8ee;

  --color-on-dark: #ffffff;
  --color-on-dark-muted: #b9c3dd;

  --font-heading: "Delight", "Arial Black", sans-serif;
  --font-body: "Neue Kabel", "Segoe UI", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-card: 0 2px 10px rgba(2, 28, 81, 0.06);
  --shadow-card-hover: 0 12px 28px rgba(2, 28, 81, 0.12);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 180ms;
  --dur-med: 280ms;

  --container-w: 1200px;

  --nav-height: 67px;
}
@media (min-width: 900px) {
  :root { --nav-height: 75px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
}
p { margin: 0 0 1em; }
:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 820px; }

.text-accent { color: var(--color-teal); }
.text-white { color: var(--color-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 14px 26px;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  min-height: 48px;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--color-lime);
  color: var(--color-navy);
}
.btn--primary:hover { background: var(--color-lime-dark); box-shadow: var(--shadow-card-hover); }
.btn--ghost {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn--ghost:hover { background: var(--color-navy); color: #fff; }
.section--dark .btn--ghost,
.hero-scroll .btn--ghost { border-color: #fff; color: #fff; }
.section--dark .btn--ghost:hover,
.hero-scroll .btn--ghost:hover { background: #fff; color: var(--color-navy); }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--sm { padding: 10px 18px; font-size: 14px; min-height: 40px; }
.btn--block { width: 100%; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon--accent { color: var(--color-lime); width: 28px; height: 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 42px; width: auto; }
@media (min-width: 900px) { .nav__logo { height: 50px; } }

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin-inline: auto;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.nav__menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__menu a:not(.btn) {
  width: 100%;
  padding: 14px 6px;
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-border);
}
.nav__menu .btn { width: 100%; margin-top: 12px; justify-content: center; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
  }
  .nav__menu a:not(.btn) { width: auto; padding: 0; border: none; }
  .nav__menu .btn { width: auto; margin-top: 0; }
  .nav__cta { margin-left: 12px; }
}

/* ---------- Hero ---------- */
.hero__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 20px;
}
.tag--on-dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}
.tag__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(11, 201, 205, 0.25);
}

.hero__title {
  font-size: clamp(32px, 5.5vw, 52px);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--color-text);
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.hero__note { font-size: 14px; color: var(--color-text-muted); }

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (min-width: 900px) {
  .hero__metrics { grid-template-columns: 1fr; gap: 16px; }
}
.metric {
  background: var(--color-navy);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
@media (min-width: 900px) { .metric { text-align: left; padding: 22px 24px; } }
.metric__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--color-lime);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.metric__label {
  display: block;
  font-size: 13px;
  color: var(--color-on-dark-muted);
  font-weight: 500;
}
.metric__caption {
  display: block;
  font-size: 11.5px;
  color: var(--color-on-dark-muted);
  opacity: 0.7;
  margin-top: 4px;
  line-height: 1.4;
}

/* ---------- Hero scroll-zoom (pinned reveal) ---------- */
.hero-scroll { position: relative; width: 100%; background: var(--color-navy); }
.hero-scroll__wrap { position: relative; width: 100%; }
.hero-scroll__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--color-navy);
}
.hero-scroll__media {
  position: absolute;
  inset: 0;
  will-change: clip-path;
  clip-path: polygon(25% 25%, 75% 25%, 75% 75%, 25% 75%);
}
.hero-scroll__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/hero-building.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 170%;
  will-change: background-size;
}
.hero-scroll__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 15, 46, 0.65) 0%, rgba(2, 15, 46, 0.35) 40%, rgba(2, 15, 46, 0.88) 100%);
}
.hero-scroll__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 90px 40px;
}
.hero-scroll__subtitle { color: var(--color-on-dark-muted); }
.hero-scroll__note { color: var(--color-on-dark-muted); }
.metric--glass {
  background: rgba(2, 28, 81, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.hero-scroll__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: hero-scroll-bounce 2.2s ease-in-out infinite;
}
@media (min-width: 700px) { .hero-scroll__scroll-hint { display: flex; } }
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll__scroll-hint { animation: none; }
}

/* ---------- Sections (generic) ---------- */
.section { padding-block: 72px; }
.section--tint { background: var(--color-bg-tint); }
.section--dark {
  background: linear-gradient(160deg, var(--color-navy), var(--color-bg-dark-2));
  color: var(--color-on-dark);
}
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--color-lime); }
.section__head h2 { font-size: clamp(26px, 4vw, 38px); }
.section__lead { font-size: 17px; color: var(--color-text-muted); max-width: 60ch; }
.section__lead--light { color: var(--color-on-dark-muted); }

/* ---------- Section intro with companion image ---------- */
.section__intro {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}
.section__intro .section__head { max-width: none; margin-bottom: 0; }
@media (min-width: 900px) {
  .section__intro { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .section__intro--reverse .section__head { order: 2; }
  .section__intro--reverse .section__visual { order: 1; }
}
.section__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.section--dark .section__visual img {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact__visual { margin-top: 28px; max-width: 420px; }

/* ---------- Pain cards ---------- */
.pain-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.pain-card__num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-teal);
  background: rgba(11, 201, 205, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.pain-card h3 { font-size: 19px; margin-bottom: 12px; }
.pain-card p { font-size: 15px; color: var(--color-text); }
.pain-card blockquote {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--color-lime);
  font-style: italic;
  font-size: 14px;
  color: var(--color-text-muted);
  background: var(--color-bg-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- About / Quiénes somos ---------- */
.about__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.about__grid h2 { font-size: clamp(26px, 4vw, 36px); }
.pull-quote {
  margin: 0;
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.pull-quote__mark { width: 48px; height: auto; margin: 0 auto 16px; }
.pull-quote p {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--color-lime);
  margin: 0;
  line-height: 1.3;
}

/* ---------- Stage stack (Seis etapas, sticky-reveal) ---------- */
.stage-stack { position: relative; margin-top: 24px; }
.stage { position: relative; background: var(--color-bg); }
.stage__sticky {
  position: sticky;
  top: var(--nav-height);
  z-index: 1;
  background: inherit;
  border-bottom: 1px solid var(--color-border);
}
.stage__header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 18px;
}
.stage__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-lime);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage__heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.stage__heading h3 { font-size: clamp(18px, 2.4vw, 22px); margin: 0; }
.stage__duration {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-teal);
  background: rgba(11, 201, 205, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.stage__content { padding-block: 28px 64px; min-height: 140px; }
.stage__content p { font-size: 16px; color: var(--color-text); max-width: 62ch; margin: 0; }
@media (min-width: 700px) {
  .stage__header { padding-block: 22px; }
  .stage__content { padding-block: 36px 96px; min-height: 220px; }
}

/* ---------- Feature grid (Agente IA) ---------- */
.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: background var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.feature-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.feature-card h3 { font-size: 18px; margin: 14px 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--color-on-dark-muted); margin: 0; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.team-card h3 { font-size: 19px; margin-bottom: 8px; }
.team-card__company { font-size: 13px; font-weight: 700; color: var(--color-teal); margin-bottom: 12px; }
.team-card p:not(.team-card__company) { font-size: 15px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-list li {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--color-border);
}
.why-card__num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-navy);
  background: var(--color-lime);
  border-radius: 8px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 14px;
}
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 15px; margin: 0; }

.guarantee {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}
.guarantee blockquote {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 26px);
  color: var(--color-lime);
  line-height: 1.35;
}
.stat-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}
.stat-list li {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-dark-muted);
}

/* ---------- Accordion ---------- */
.accordion__item {
  border-bottom: 1px solid var(--color-border);
}
.accordion__item h3 { margin: 0; font-family: var(--font-body); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 4px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
}
.accordion__chevron { color: var(--color-teal); transition: transform var(--dur-med) var(--ease-out); }
.accordion__trigger[aria-expanded="true"] .accordion__chevron { transform: rotate(180deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.accordion__panel > p {
  overflow: hidden;
  min-height: 0;
  font-size: 15px;
  color: var(--color-text);
  padding: 0 4px;
  margin: 0;
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__item.is-open .accordion__panel > p { padding-bottom: 20px; }
.accordion__panel { overflow: hidden; }
.accordion__panel > p { grid-row: 1 / -1; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact-details { margin-top: 28px; display: grid; gap: 12px; }
.contact-details li { font-size: 15px; }
.contact-details a:hover { color: var(--color-lime); }

.form {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form__row { display: grid; gap: 6px; }
.form__row label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
}
.form__row input,
.form__row select,
.form__row textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  min-height: 48px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.form__row textarea { min-height: unset; resize: vertical; }
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
  border-color: var(--color-teal);
  outline: none;
}
.form__row input.is-invalid,
.form__row select.is-invalid,
.form__row textarea.is-invalid { border-color: #d94040; }
.form__row .field-error {
  font-size: 12.5px;
  color: #d94040;
  margin: 2px 0 0;
  display: none;
}
.form__row .field-error.is-visible { display: block; }
.form__legal { font-size: 12px; color: var(--color-text-muted); text-align: center; margin: 0; }
.form__success {
  background: rgba(11, 201, 205, 0.12);
  border: 1px solid var(--color-teal);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-navy);
  color: var(--color-on-dark-muted);
  padding-block: 28px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  font-size: 14px;
}
.footer__inner p { margin: 0; }
.footer__nav { display: flex; gap: 20px; }
.footer__nav a:hover { color: var(--color-lime); }
.footer__social { display: flex; gap: 2px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-on-dark-muted);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.footer__social a:hover { color: var(--color-lime); background: rgba(255, 255, 255, 0.08); }
.footer__social .icon { width: 20px; height: 20px; }
@media (min-width: 640px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Scroll-reveal (progressive enhancement) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
