/* ELEMSIN — Diseño industrial robusto */
:root {
  --navy: #0a1628;
  --navy-2: #12233a;
  --steel: #1c334d;
  --slate: #31465f;
  --copper: #c8102e;
  --copper-hot: #e11d2e;
  --panel: #f3f5f8;
  --panel-2: #e8ecf1;
  --ink: #101820;
  --muted: #5a6a7a;
  --line: #d0d7e0;
  --white: #ffffff;
  --ok: #1f7a4c;
  --err: #a32020;
  --shadow: 0 16px 40px rgba(10, 22, 40, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --header-h: 108px;
  --hero-gutter: clamp(1.5rem, 3vw, 2.5rem);
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1500px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-transform: none;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--copper);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn--accent {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

.btn--accent:hover {
  background: var(--copper-hot);
  border-color: var(--copper-hot);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn--dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn--dark:hover {
  background: var(--steel);
  border-color: var(--steel);
}

.btn--sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.header-top {
  background: #07101c;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 36px;
}

.header-top__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.header-top__contact a,
.header-top__social a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.header-top__contact a:hover,
.header-top__social a:hover {
  color: #fff;
}

.header-top__social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

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

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.primary-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-chevron {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

.has-submenu:hover > a .nav-chevron,
.has-submenu:focus-within > a .nav-chevron,
.has-submenu.is-open > a .nav-chevron {
  transform: rotate(180deg);
}

.primary-nav__list > li > a:hover,
.primary-nav__list > li > a.is-active {
  color: #fff;
  border-bottom-color: var(--copper);
}

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 280px;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
  z-index: 20;
  overflow: hidden;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--steel);
  border-left: 3px solid transparent;
}

.submenu a:hover {
  background: var(--panel);
  border-left-color: var(--copper);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Hero — full-bleed (ancho de pantalla) */
.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  background: var(--navy);
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  background: var(--navy);
  border-radius: 0;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.15s ease;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-media,
.page-hero__media,
.service-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-media,
.page-hero__media {
  transform: translateZ(0);
}

.service-card__media {
  transform: scale(1.06);
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(6, 14, 28, 0.95) 0%,
    rgba(6, 14, 28, 0.82) 32%,
    rgba(6, 14, 28, 0.45) 62%,
    rgba(6, 14, 28, 0.25) 100%
  );
}

.hero__wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: calc(100vh - var(--header-h));
  width: min(100% - (var(--hero-gutter) * 2), var(--max));
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
  box-sizing: border-box;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 36rem);
  max-width: 36rem;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-hot);
  text-align: left;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.6vw, 4.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1.1rem;
  text-transform: none;
  text-align: left;
  color: #fff;
}

.hero__brand .text-accent {
  color: var(--copper-hot);
}

.hero__title {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  max-width: 38ch;
  margin: 0 0 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  line-height: 1.55;
  text-align: left;
  color: #e8eef5;
}

.hero__text {
  max-width: 42ch;
  color: #b7c4d4;
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.9rem;
}

.hero__dots {
  position: absolute;
  left: max(var(--hero-gutter), calc((100% - var(--max)) / 2 + var(--hero-gutter)));
  bottom: 1.35rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero__dot.is-active {
  background: var(--copper);
}

/* Sections */
.section {
  padding: 5rem 0;
}

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

.section--navy {
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.94), rgba(28, 51, 77, 0.9)),
    url("../assets/images/hero/slider2.jpeg") center/cover;
  color: #fff;
  border-radius: 0;
  margin: 0;
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.55rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 0.75rem;
}

.section__lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.section--navy .section__lead {
  color: rgba(255, 255, 255, 0.78);
}

.section__rule {
  width: 64px;
  height: 3px;
  background: var(--copper);
  margin: 0 0 1.25rem;
  border: 0;
}

/* About teaser */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.about-grid__media {
  position: relative;
  min-height: 420px;
  background: var(--steel) center/cover no-repeat;
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-grid__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: var(--copper);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 1rem 0.85rem;
  border-left: 3px solid var(--copper);
  background: var(--panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: var(--navy-2);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(10, 22, 40, 0.12);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.15) 0%, rgba(10, 22, 40, 0.88) 72%);
  z-index: 1;
  transition: background 0.35s ease;
}

.service-card:hover {
  transform: scale(0.92);
  box-shadow: 0 12px 28px rgba(10, 22, 40, 0.22);
}

.service-card:hover::before {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.22) 0%, rgba(10, 22, 40, 0.9) 75%);
}

.service-card:hover .service-card__media {
  transform: scale(1.06);
}

.service-card__body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.5rem 1.35rem 1.5rem;
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card__link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
}

.service-card__link span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.service-card:hover .service-card__link span {
  transform: translateX(4px);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.cert-item {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  border-radius: var(--radius);
  text-align: center;
  padding: 1.35rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.cert-item:hover {
  border-color: var(--copper);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.cert-item__img {
  display: none;
}

.cert-item__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-2), var(--steel));
  color: #fff;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 10px 24px rgba(10, 22, 40, 0.18);
}

.cert-item__media:hover,
.cert-item__media:focus-visible {
  transform: scale(1.06);
  background: linear-gradient(145deg, var(--copper), var(--copper-hot));
  outline: none;
}

.cert-item__icon {
  width: 32px;
  height: 32px;
  display: block;
}

.cert-item__zoom {
  display: none;
}

.cert-item__body {
  padding: 0;
}

.cert-item__title {
  font-size: 0.98rem;
  margin: 0;
  text-transform: none;
  letter-spacing: -0.01em;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.cert-item__hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--copper);
  font-weight: 600;
}

/* CTA band */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  padding: 0.5rem 0;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
}

/* Page hero (inner) — full-bleed */
.page-hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  background: var(--navy);
}

.page-hero__frame {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--navy);
  border-radius: 0;
}

.page-hero__media {
  filter: blur(1.5px) brightness(0.92) saturate(1);
  transform: scale(1.04) translateZ(0);
}

.page-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 12, 24, 0.86) 0%,
    rgba(5, 12, 24, 0.68) 28%,
    rgba(5, 12, 24, 0.32) 55%,
    rgba(5, 12, 24, 0.1) 78%,
    rgba(5, 12, 24, 0.02) 100%
  );
}

.page-hero__frame::after {
  content: none;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--hero-gutter) * 2), var(--max));
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 0 2.75rem;
  text-align: left;
  box-sizing: border-box;
}

.page-hero__content > * {
  max-width: 40rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  text-align: left;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.page-hero__content > p {
  color: rgba(255, 230, 234, 0.92);
}

.page-hero__content > p::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  margin-right: 0.55rem;
  margin-bottom: 0.2rem;
  vertical-align: middle;
  background: var(--copper);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: #f2a0ab;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span:last-child {
  color: var(--copper-hot);
  font-weight: 600;
}

.text-accent {
  color: var(--copper-hot);
}

/* Content layouts */
.content-block {
  max-width: 760px;
}

.content-block h2,
.content-block h3 {
  margin-top: 1.75rem;
}

.content-block ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.content-block li {
  margin-bottom: 0.45rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* —— Páginas de servicio (full-width prose + media grande) —— */
.svc-page__intro {
  max-width: 58rem;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.svc-page__lead {
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 1.6rem;
}

.svc-page__actions {
  flex-wrap: wrap;
}

.svc-page__media {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 0.5rem;
}

.svc-page__media--single {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.svc-page__media--duo {
  grid-template-columns: 1fr 1fr;
}

.svc-page__figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 1.35rem;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #eef2f6 0%, #e2e8ef 100%);
  cursor: zoom-in;
  min-height: 400px;
  box-shadow: 0 14px 36px rgba(10, 22, 40, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.svc-page__media--single .svc-page__figure {
  min-height: 460px;
  padding: 1.75rem;
}

.svc-page__figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(10, 22, 40, 0.16);
}

.svc-page__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
}

.svc-page__media--single .svc-page__figure img {
  max-height: 480px;
}

.svc-page__zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.svc-page__figure:hover .svc-page__zoom,
.svc-page__figure:focus-visible .svc-page__zoom {
  opacity: 1;
  transform: none;
}

.svc-page__block {
  max-width: 58rem;
  margin: 0 auto;
  width: 100%;
}

.svc-page__title {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  margin: 0 0 1.1rem;
  color: var(--navy);
  line-height: 1.25;
}

.svc-page__copy p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
  margin: 0 0 1rem;
}

.svc-page__copy p:last-child {
  margin-bottom: 0;
}

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

.svc-list li {
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 2.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  line-height: 1.5;
}

.section--panel .svc-list li {
  background: var(--white);
}

.svc-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15);
}

.svc-page__intro,
.svc-page__media,
.svc-page__block {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible.svc-page__intro,
.reveal.is-visible.svc-page__media,
.reveal.is-visible.svc-page__block {
  opacity: 1;
  transform: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 16, 28, 0.92);
}

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

.lightbox__img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: #fff;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox__close:hover {
  background: var(--copper);
  border-color: var(--copper);
}

body.lightbox-open {
  overflow: hidden;
}

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

.value-card {
  padding: 1.5rem 1.25rem;
  background: #fff;
  border-top: 3px solid var(--copper);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
  border-radius: var(--radius);
}

.value-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.value-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-panel {
  background: var(--navy);
  color: #fff;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
}

.contact-panel h2 {
  font-size: 1.8rem;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--panel-2);
  min-height: 380px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.contact-map__link {
  margin: 1.25rem 0 0;
}

.contact-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-list strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--copper-hot);
  margin-bottom: 0.25rem;
}

.contact-list a:hover {
  text-decoration: underline;
}

.form {
  background: var(--panel);
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(200, 16, 46, 0.35);
  border-color: var(--copper);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 1rem;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--steel);
  line-height: 1.3;
}

.form-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--copper);
  cursor: pointer;
}

.form-check span {
  display: inline;
}

.alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid;
}

.alert--ok {
  background: #e8f6ee;
  border-color: var(--ok);
  color: #145536;
}

.alert--err {
  background: #f8eaea;
  border-color: var(--err);
  color: #7a1818;
}

/* Footer */
.site-footer {
  background: #07101c;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand__logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand__text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-radius: 50%;
}

.footer-social a:hover {
  background: var(--copper);
  border-color: var(--copper);
}

.footer-col__title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.55rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.35rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  animation: wa-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.whatsapp-float__btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2fe074 0%, #25d366 45%, #1ebe57 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float__label {
  position: relative;
  white-space: nowrap;
  background: #fff;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(10, 22, 40, 0.16);
  opacity: 1;
  transform: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float__btn svg {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
}

.whatsapp-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: 0;
  pointer-events: none;
}

.whatsapp-float__pulse--delay {
  animation-delay: 1.1s;
}

.whatsapp-float__label::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.whatsapp-float:hover .whatsapp-float__btn {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:hover .whatsapp-float__label {
  transform: translateX(-3px);
  box-shadow: 0 14px 32px rgba(10, 22, 40, 0.2);
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.65; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes wa-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.85); }
  to { opacity: 1; transform: none; }
}

/* Reveal + live motion (scroll up/down) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
  will-change: opacity, transform;
}

.reveal.reveal--up {
  transform: translateY(-22px);
}

.reveal.reveal--down {
  transform: translateY(26px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Cards: hover shrink (debe ganar a .reveal.is-visible) */
a.service-card.reveal.is-visible,
a.service-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

a.service-card.reveal.is-visible:hover,
a.service-card:hover {
  transform: scale(0.92);
  box-shadow: 0 12px 28px rgba(10, 22, 40, 0.22);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.section__head.reveal.is-visible .section__rule {
  animation: rule-grow 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rule-grow {
  from { transform: scaleX(0); transform-origin: left center; }
  to { transform: scaleX(1); transform-origin: left center; }
}

.hero__content {
  animation: hero-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__eyebrow { animation: hero-in 0.8s ease 0.05s both; }
.hero__brand { animation: hero-in 0.85s ease 0.12s both; }
.hero__title { animation: hero-in 0.9s ease 0.2s both; }
.hero__text { animation: hero-in 0.95s ease 0.28s both; }
.hero__actions { animation: hero-in 1s ease 0.36s both; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.service-card,
.cert-item,
.svc-page__figure {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.stat__num {
  transition: transform 0.35s ease;
}

.stat:hover .stat__num {
  transform: scale(1.06);
  color: var(--copper);
}

.nav-chevron {
  transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .primary-nav__list > li > a {
    font-size: 0.98rem;
    padding: 0.65rem 0.5rem;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .nav-toggle {
    display: flex;
    z-index: 120;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--navy-2);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.75rem 1.25rem 2rem;
    gap: 0.75rem;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.3s ease;
    max-height: none;
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  }

  .primary-nav.is-open {
    transform: none;
    pointer-events: auto;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav__list > li > a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.95rem 0.25rem;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .primary-nav__list > li > a.is-active,
  .primary-nav__list > li > a:hover {
    border-bottom-color: var(--copper);
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.22);
    min-width: 0;
    display: none;
    margin: 0.15rem 0 0.5rem;
    border-top: 0;
    border-left: 2px solid var(--copper);
  }

  .has-submenu.is-open .submenu {
    display: block;
  }

  .submenu a {
    color: rgba(255, 255, 255, 0.88);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .submenu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .header-cta {
    width: 100%;
    margin-top: 0.5rem;
    min-height: 48px;
  }

  .brand__logo {
    height: 42px;
  }

  .header-main__inner {
    min-height: 64px;
  }

  .about-grid,
  .split,
  .contact-grid,
  .cta-band,
  .svc-page__media--duo {
    grid-template-columns: 1fr;
  }

  .svc-page__figure,
  .svc-page__media--single .svc-page__figure {
    min-height: 300px;
  }

  .svc-page__figure img,
  .svc-page__media--single .svc-page__figure img {
    max-height: 340px;
  }

  .about-grid__media {
    min-height: 260px;
    order: -1;
  }

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

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .stat {
    padding: 0.85rem 0.55rem;
  }

  .stat__num {
    font-size: 1.7rem;
  }

  .stat__label {
    font-size: 0.72rem;
  }

  .header-top__contact a:nth-child(2) {
    display: none;
  }

  .section--navy {
    background-attachment: scroll;
  }

  .hero {
    margin: 0;
    border-radius: 0;
    min-height: calc(88vh - var(--header-h));
  }

  .hero__frame {
    min-height: calc(88vh - var(--header-h));
  }

  .hero__wrap {
    min-height: calc(88vh - var(--header-h));
    width: 100%;
    max-width: none;
    padding: 3.25rem var(--hero-gutter) 4rem;
  }

  .hero__content {
    max-width: 100%;
    width: 100%;
  }

  .hero__dots {
    left: var(--hero-gutter);
  }

  .btn-group {
    width: 100%;
  }

  .btn-group .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }

  .page-hero__frame {
    min-height: 240px;
  }

  .page-hero__content {
    width: 100%;
    max-width: none;
    padding: 3rem var(--hero-gutter) 2rem;
  }

  .page-hero__content > * {
    max-width: none;
  }

  .content-block .btn,
  .content-block .btn + .btn {
    display: flex;
    width: 100%;
    margin: 0 0 0.65rem !important;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .services-grid,
  .cert-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
.form input,
  .form textarea,
  .form select {
    font-size: 16px; /* evita zoom automático en iOS */
  }

  .hero {
    min-height: calc(80vh - var(--header-h));
    margin: 0;
    border-radius: 0;
  }

  .hero__frame {
    min-height: calc(80vh - var(--header-h));
  }

  .hero__wrap {
    min-height: calc(80vh - var(--header-h));
    width: 100%;
    max-width: none;
    padding: 2.75rem var(--hero-gutter) 3.5rem;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
  }

  .hero__dots {
    left: var(--hero-gutter);
    bottom: 1rem;
  }

  .hero__text {
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: column;
  }

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

  .section {
    padding: 3rem 0;
  }

  .section__title {
    font-size: 1.85rem;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 230px;
  }

  .form,
  .contact-panel {
    padding: 1.35rem 1.1rem;
  }

  .contact-map {
    min-height: 280px;
  }

  .contact-map iframe {
    height: 300px;
  }

  .cta-band {
    text-align: left;
  }

  .cta-band .btn-group,
  .cta-band .btn {
    width: 100%;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }

  .header-top {
    font-size: 0.78rem;
  }

  .header-top__inner {
    min-height: 32px;
  }

  .lightbox {
    padding: 3.5rem 0.75rem 1rem;
  }

  .lightbox__img {
    max-width: 96vw;
    max-height: 78vh;
  }

  .lightbox__close {
    top: 0.65rem;
    right: 0.65rem;
  }

  .whatsapp-float {
    right: 0.9rem;
    bottom: 0.9rem;
    gap: 0.45rem;
  }

  .whatsapp-float__btn {
    width: 56px;
    height: 56px;
  }

  .whatsapp-float__label {
    font-size: 0.75rem;
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 380px) {
  .brand__logo {
    height: 36px;
    max-width: 160px;
  }

  .hero__brand {
    font-size: 2.45rem;
  }

  .primary-nav__list > li > a {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .svc-page__intro,
  .svc-page__media,
  .svc-page__block,
  .hero__content,
  .hero__eyebrow,
  .hero__brand,
  .hero__title,
  .hero__text,
  .hero__actions {
    opacity: 1 !important;
    transform: none !important;
  }
}
