/* ==========================================================================
   Verati: hoja de estilos principal
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1f243b;
  --navy-900: #151a2c;
  --navy-deep: #0c2340;
  --green: #8ac43c;
  --green-600: #76ab2f;
  --cyan: #34c9d1;
  --ink: #1f243b;
  --text: #474c5e;
  --muted: #6b7083;
  --line: #e3e6ee;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --danger: #c0392b;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgb(21 26 44 / 0.06);
  --shadow: 0 18px 40px -18px rgb(21 26 44 / 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(16px, 4vw, 32px);
}

/* Base ------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }
.center { text-align: center; }

/* Tipografía de sección ------------------------------------------------- */

.section { padding-block: clamp(72px, 10vw, 120px); }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green-600);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--light { color: var(--green); }

.section-title {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem);
  font-weight: 800;
}
.section-title--light { color: #fff; }

.divider {
  width: 135px;
  height: 3px;
  margin: 1.25rem auto 1.75rem;
}

.accent { color: var(--green); }

/* Botones ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 10px 24px -12px rgb(138 196 60 / 0.9);
}
.btn--primary:hover { background: #9bd24c; }

.btn--ghost {
  border-color: rgb(255 255 255 / 0.55);
  color: #fff;
}
.btn--ghost:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.btn--block { width: 100%; }

.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}
.btn.is-loading .btn__label::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.6em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgb(31 36 59 / 0.96);
  box-shadow: 0 6px 24px -12px rgb(0 0 0 / 0.45);
  backdrop-filter: saturate(140%) blur(8px);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: var(--navy); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand img { width: 124px; height: auto; }

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

.site-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgb(255 255 255 / 0.86);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover,
.site-nav a.is-active { color: #fff; }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.site-nav .site-nav__cta {
  margin-left: 0.75rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--navy);
}
.site-nav .site-nav__cta:hover,
.site-nav .site-nav__cta.is-active {
  background: #9bd24c;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle__bar:nth-child(1) { top: 15px; }
.nav-toggle__bar:nth-child(2) { top: 21px; }
.nav-toggle__bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--navy);
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.5);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .site-nav.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.35s var(--ease);
  }
  .site-header:has(.site-nav.is-open) { background: var(--navy); }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .site-nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    font-size: 1.05rem;
  }
  .site-nav a:not(.site-nav__cta)::after { display: none; }
  .site-nav a.is-active { color: var(--green); }
  .site-nav .site-nav__cta {
    margin: 1.25rem 0 0;
    padding: 0.9rem;
    border: 0;
    text-align: center;
  }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(620px, 100svh);
  padding-block: calc(var(--header-h) + 48px) 120px;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(21 26 44 / 0.75) 0%, rgb(21 26 44 / 0.15) 22%, rgb(21 26 44 / 0) 45%),
    linear-gradient(90deg, rgb(31 36 59 / 0.92) 0%, rgb(31 36 59 / 0.72) 45%, rgb(31 36 59 / 0.35) 100%);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  transform-origin: 70% 40%;
  animation: hero-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero__content { max-width: 1200px; }
.hero__content > * { max-width: 760px; }

.hero__title {
  color: #fff;
  font-size: clamp(2.2rem, 1.2rem + 4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 600px;
  color: rgb(255 255 255 / 0.85);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero__content > * {
  animation: rise 0.9s var(--ease) both;
}
.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgb(255 255 255 / 0.55);
  border-radius: 14px;
}
.hero__scroll-line {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--green);
  animation: scroll-cue 1.8s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Franja de autoridades -------------------------------------------------- */

.authorities {
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}
.authorities__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2rem;
  padding-block: 1.4rem;
}
.authorities__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.authorities__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.authorities__list li {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.authorities__list li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Quiénes somos ---------------------------------------------------------- */

.about__text {
  color: var(--text);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.8;
}

/* Cómo lo hacemos -------------------------------------------------------- */

.process { padding-top: 0; }

.process__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.process__media {
  position: relative;
  margin: 0;
}
.process__media::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  opacity: 0.9;
}
.process__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps {
  position: relative;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(var(--green), var(--cyan));
  opacity: 0.35;
}
.steps__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.7rem;
}
.steps__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.steps__item:hover .steps__num {
  background: var(--green);
}
.steps__text {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
}

/* Filosofía -------------------------------------------------------------- */

.philosophy {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 160px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 1rem;
  margin-bottom: -150px;
}

.card {
  padding: clamp(24px, 3vw, 36px);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 50px -24px rgb(21 26 44 / 0.35), var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -24px rgb(21 26 44 / 0.42), var(--shadow-sm);
}
.card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.card__icon { width: 44px; height: 44px; flex: none; }
.card__title {
  font-size: 1.45rem;
  font-weight: 700;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.values {
  margin: 0;
  padding: 0;
  list-style: none;
}
.values li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.55rem;
  border-bottom: 1px dashed var(--line);
  color: var(--text);
  font-weight: 600;
}
.values li:last-child { border-bottom: 0; }
.values li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  background: url("../img/check.svg") center / contain no-repeat;
}

/* Servicios -------------------------------------------------------------- */

.services {
  position: relative;
  padding-top: calc(150px + clamp(72px, 9vw, 110px));
  overflow: hidden;
  background: var(--navy-deep) url("../img/fondo-servicios-1920.webp") center / cover no-repeat;
  color: #fff;
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 100%, rgb(52 201 209 / 0.12), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgb(138 196 60 / 0.10), transparent 50%);
  pointer-events: none;
}
.services > .container { position: relative; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: min(176px, 100%);
  aspect-ratio: 1;
}
.service__ring > svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 1.2s var(--ease);
}
.service:hover .service__ring > svg:first-child { transform: rotate(40deg); }

.ring-base {
  fill: rgb(255 255 255 / 0.03);
  stroke: rgb(255 255 255 / 0.55);
  stroke-width: 1;
}
.ring-arc {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: var(--len) 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease) 0.2s;
}
.ring-arc--green { stroke: var(--green); }
.ring-arc--cyan { stroke: var(--cyan); }
.ring-dot {
  fill: var(--navy-deep);
  stroke: #fff;
  stroke-width: 1.5;
}

.js .service:not(.is-visible) .ring-arc { stroke-dashoffset: var(--len); }

.service__icon {
  width: 38%;
  height: 38%;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease), stroke 0.4s;
}
.service:nth-child(even) .service__icon { stroke: var(--cyan); }
.service:hover .service__icon { transform: scale(1.08); }

.service__title {
  margin-top: 1.4rem;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.services__cta {
  margin-top: clamp(48px, 6vw, 72px);
  text-align: center;
}

/* Contacto --------------------------------------------------------------- */

.contact {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 9vw, 110px);
  overflow: hidden;
  background: #e9ebee;
}
.contact__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 50%;
}
.contact__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(233 235 238 / 0) 25%, rgb(233 235 238 / 0.55) 55%, rgb(233 235 238 / 0.85) 100%);
}

.contact__inner {
  display: flex;
  justify-content: flex-end;
}

.contact__panel {
  width: min(560px, 100%);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.contact__panel .section-title { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.3rem); }
.contact__subtitle {
  margin: 0.25rem 0 1.75rem;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.form__field { margin-bottom: 1rem; }
.form__field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.form__optional { color: var(--muted); font-weight: 400; }

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid #cfd4de;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { min-height: 96px; resize: vertical; }
.form select {
  appearance: none;
  padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f243b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 1rem center / 12px 8px no-repeat;
}
.form select:invalid { color: #8a8f9e; }
.form input::placeholder,
.form textarea::placeholder { color: #9a9fad; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--green-600);
  outline: none;
  box-shadow: 0 0 0 3px rgb(138 196 60 / 0.25);
}
.form input.is-invalid,
.form select.is-invalid,
.form textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgb(192 57 43 / 0.12);
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 1.4rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}
.form__check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--green-600);
}
.form__check.is-invalid span { color: var(--danger); }
.form__check a { color: var(--navy); font-weight: 600; }

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status:empty { display: none; }
.form__status {
  margin: 1rem 0 0;
  font-size: 0.93rem;
  font-weight: 600;
  text-align: center;
}
.form__status.is-success { color: #3f7a12; }
.form__status.is-error { color: var(--danger); }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: #fff;
  color: var(--text);
}
.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 60px;
  gap: 40px;
  padding-block: clamp(56px, 7vw, 80px);
}
.site-footer__brand img { width: 140px; margin-bottom: 1rem; }
.site-footer__brand p {
  max-width: 240px;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer__title {
  position: relative;
  margin-bottom: 1.4rem;
  padding-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.site-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
}

.contact-list { margin: 0; }
.contact-list > div + div { margin-top: 1rem; }
.contact-list dt {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
}
.contact-list dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.contact-list a,
.site-footer__nav a,
.site-footer__bar a {
  text-decoration: none;
  transition: color 0.2s;
}
.contact-list a:hover { color: var(--green-600); }

.site-footer__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__nav li + li { margin-top: 0.45rem; }
.site-footer__nav a { color: var(--muted); }
.site-footer__nav a:hover,
.site-footer__nav a.is-active { color: var(--green-600); }

.to-top {
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 48px;
  height: 96px;
  color: #575756;
  transition: color 0.2s, transform 0.3s var(--ease);
}
.to-top svg { width: 22px; height: 64px; fill: currentColor; }
.to-top:hover { color: var(--green-600); transform: translateY(-6px); }

.site-footer__bar {
  background: var(--green);
  color: var(--navy);
}
.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.site-footer__bar p { margin: 0; }
.site-footer__bar a:hover { text-decoration: underline; }

/* Animación de entrada --------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .cards .reveal:nth-child(2),
.js .services__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .cards .reveal:nth-child(3),
.js .services__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .services__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .services__grid .reveal:nth-child(5) { transition-delay: 0.32s; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1.3fr 1fr; }
  .to-top {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(56px, 7vw, 80px);
  }
}

@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__media { margin-right: 28px; }

  .cards {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .hero { align-items: flex-end; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgb(21 26 44 / 0.7) 0%, rgb(21 26 44 / 0.25) 30%, rgb(31 36 59 / 0.85) 70%, rgb(31 36 59 / 0.95) 100%);
  }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }

  .authorities__list { gap: 0.5rem; }
  .authorities__list li {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.82rem;
  }
  .authorities__list li + li::before { display: none; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service__ring { width: min(140px, 100%); }
  .service__title { font-size: 0.95rem; }

  .contact { padding-top: 0; background: var(--surface-alt); }
  .contact__media {
    position: relative;
    height: 220px;
  }
  .contact__media::after {
    background: linear-gradient(180deg, rgb(245 247 250 / 0) 50%, var(--surface-alt) 100%);
  }
  .contact__inner { margin-top: -60px; }
  .form__row { grid-template-columns: 1fr; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .services__grid { grid-template-columns: 1fr; }
}

@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;
    transition-delay: 0s !important;
  }
  .hero__img { animation: none; transform: scale(1.02); }
}
