:root {
  --white: #ffffff;
  --paper: #f4f7f8;
  --ink: #10202a;
  --muted: #4a5c68;
  --line: #d7e2e6;
  --navy: #072633;
  --navy-deep: #041820;
  --teal-dark: #0a3f4c;
  --teal: #0d7a72;
  --teal-bright: #149a8c;
  --gold: #f5c518;
  --gold-deep: #e0b000;
  --wa: #0e7d45;
  --chrome: 90%;
  --content: 80%;
  --fab-size: 60px;
  --fab-right: 22px;
  --fab-bottom: 22px;
  --up-size: 48px;
  --up-gap: 50px;
  --header-h: 5.5rem;
  --sticky-offset: var(--header-h);
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(7, 38, 51, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3, .logo, .btn, .eyebrow, .nav, .toolbar, .hero-sectors a, .step-no, .footer-title {
  font-family: var(--font-display);
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

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

.band-90 {
  width: var(--chrome);
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}

.band-80 {
  width: var(--content);
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--gold);
}

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

.section {
  padding: 5.4rem 0;
}

.section h2,
.legal h1,
.hero h1 {
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
}

.section h2 em,
.contact h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--teal);
}

/* Toolbar */
.toolbar {
  background: #021014;
  color: #e7eef1;
  border-bottom: 3px solid var(--gold);
  font-size: 0.84rem;
}

.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 2.7rem;
  padding: 0.4rem 0;
}

.toolbar-loc,
.toolbar-contact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  max-width: 100%;
}

.toolbar-loc a,
.toolbar-contact a {
  overflow-wrap: anywhere;
}

.toolbar-loc svg,
.toolbar-contact svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.toolbar a {
  color: #e7eef1;
  text-decoration: none;
}

.toolbar a:hover {
  color: var(--gold);
}

.toolbar-contact {
  margin-left: auto;
}

.toolbar-contact li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.toolbar-contact li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: #ffffff;
  border-bottom: 1px solid rgba(7, 38, 51, 0.08);
}

.header.is-stuck {
  box-shadow: 0 10px 28px rgba(7, 38, 51, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: var(--header-h);
  padding-block: 0.35rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 68px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--teal);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  margin-left: 0.4rem;
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #ffd84a;
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: #0b655f;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-wa {
  background: var(--wa);
  color: var(--white);
}

.btn-wa:hover {
  background: #0b6538;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-left: 0.2rem;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - var(--header-h) - 200px);
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-panel {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform-origin: 70% 50%;
  animation: ken 22s ease-in-out infinite alternate;
}

.hero-panel {
  z-index: 1;
  background: linear-gradient(108deg, rgba(5, 24, 34, 0.95) 0%, rgba(8, 52, 62, 0.9) 40%, rgba(8, 52, 62, 0.55) 54%, rgba(8, 52, 62, 0) 70%);
  animation: panelIn 1s ease both;
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 44%, rgba(20, 154, 140, 0.55) 44.3%, rgba(10, 63, 76, 0.08) 60%, transparent 60.3%);
  animation: shardIn 1.2s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

.hero-vertical {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  top: 46%;
  margin: 0;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.hero-layout {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 3.5rem 0 2.2rem;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.5vw, 5.15rem);
  font-weight: 800;
}

.hero h1 span {
  display: block;
  animation: rise 0.8s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

.hero h1 span:nth-child(1) { animation-delay: 0.15s; }
.hero h1 span:nth-child(2) { animation-delay: 0.28s; }
.hero h1 span:nth-child(3) { animation-delay: 0.41s; }
.hero h1 span:nth-child(4) { animation-delay: 0.54s; }

.hero h1 .emph {
  font-weight: 500;
  font-style: italic;
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  animation: rise 0.8s 0.66s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: rise 0.8s 0.78s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

.hero-sectors {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(3, 16, 24, 0.72));
  animation: rise 0.8s 0.9s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

.hero-sectors-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-sectors a {
  z-index: 1;
  min-width: 0;
  padding: 1.05rem 0.4rem 1.2rem;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-sectors a:hover {
  color: var(--gold);
}

.hero-sectors-inner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% / 3);
  height: 3px;
  background: var(--gold);
  animation: sectorSlide 9s ease-in-out infinite;
}

/* Empresa */
.empresa {
  background: var(--paper);
}

.empresa-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem 3rem;
  align-items: end;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 1.15rem 1.1rem 1.2rem;
  background: var(--white);
  border-top: 3px solid var(--gold);
}

.principles strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.principles span {
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.split .lede {
  margin: 0;
}

.sector-grid,
.project-grid,
.cap-grid,
.steps {
  display: grid;
  gap: 1.4rem;
}

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

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

.sector,
.project {
  scroll-margin-top: calc(var(--sticky-offset) + 0.8rem);
}

.media {
  overflow: hidden;
  background: var(--teal-dark);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.sector:nth-child(2) .media {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
}

.sector:nth-child(3) .media {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project .media {
  clip-path: none;
}

.project .media img {
  height: 390px;
}

.sector:hover img,
.project:hover img {
  transform: scale(1.06);
}

#comercial img { object-position: center 72%; }
#institucional img { object-position: center 42%; }
#servicios img { object-position: center center; }
.project:first-child img { object-position: center 68%; }
.project:last-child img { object-position: center 62%; }

.sector h3,
.project h3,
.cap h3,
.steps h3 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 1.3rem;
}

.sector h3,
.project h3 {
  margin-top: 1rem;
}

.sector h3::before,
.project h3::before {
  content: "";
  display: block;
  width: 2.3rem;
  height: 3px;
  margin-bottom: 0.7rem;
  background: var(--gold);
}

.sector p,
.project p,
.cap p,
.steps p {
  margin: 0;
  color: var(--muted);
}

/* Capacidades */
.capabilities {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.capabilities-bg {
  position: absolute;
  inset: 0 0 0 38%;
  background: url("../img/capacidades.jpg") center / cover no-repeat;
  opacity: 0.5;
}

.capabilities-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #072633 0%, #072633 46%, rgba(7, 38, 51, 0.88) 70%, rgba(7, 38, 51, 0.45) 100%);
}

.capabilities .band-80,
.capabilities .section-copy {
  position: relative;
  z-index: 1;
}

.capabilities h2 {
  color: var(--white);
  max-width: 14ch;
}

.capabilities h2 em {
  color: var(--gold);
}

.cap-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.4rem;
}

.cap h3 {
  color: var(--white);
  font-size: 1.12rem;
}

.cap p {
  color: rgba(255, 255, 255, 0.78);
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(245, 197, 24, 0.55);
  border-radius: 50%;
  color: var(--gold);
}

/* Proceso */
.process {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--teal);
  color: var(--white);
}

.process h2,
.steps h3 {
  color: var(--white);
}

.process h2 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 6%;
  right: 6%;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.step-no {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  background: var(--teal);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-weight: 800;
}

.steps p {
  color: rgba(255, 255, 255, 0.9);
}

/* Contacto */
.contact {
  background:
    linear-gradient(120deg, rgba(20, 154, 140, 0.18), transparent 36%),
    var(--navy-deep);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.contact h2 {
  margin: 0 0 0.9rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.contact h2 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.contact-copy p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
}

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

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field option {
  color: var(--navy);
}

.contact-form ::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form .btn {
  width: 100%;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--gold);
  font-size: 0.92rem;
}

.form-status:empty {
  display: none;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: #d5e3e8;
}

.footer-main {
  padding: 3.6rem 0 2.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.2fr 0.9fr;
  gap: 2.2rem 1.8rem;
}

.footer .logo {
  margin-bottom: 1rem;
  padding: 0.4rem 0.6rem;
  background: #ffffff;
  border-radius: 8px;
}

.footer .logo img {
  height: 62px;
}

.footer-brand p,
.footer-next p {
  margin: 0 0 1rem;
  color: #b7c9cf;
}

.footer-title {
  margin: 0 0 0.95rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-menu {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.footer-menu li {
  margin: 0.42rem 0;
}

.footer-menu li::marker {
  color: var(--gold);
}

.footer a {
  color: #d5e3e8;
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.7rem 0;
}

.footer-contact svg {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--gold);
}

.footer-contact a,
.footer-contact span {
  overflow-wrap: anywhere;
}

.copyright {
  background: #03141c;
  padding: 0.95rem 0;
  color: #9fb0b8;
  font-size: 0.88rem;
}

.copyright-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.copyright p {
  margin: 0;
}

.copyright a {
  color: var(--gold);
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
}

/* Gadgets: WhatsApp abajo a la derecha; subir 50px arriba y centrado */
.fab-wa,
.fab-up {
  position: fixed;
  z-index: 90;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(7, 38, 51, 0.28);
}

.fab-wa {
  right: calc(var(--fab-right) + env(safe-area-inset-right));
  bottom: calc(var(--fab-bottom) + env(safe-area-inset-bottom));
  width: var(--fab-size);
  height: var(--fab-size);
  background: var(--wa);
  color: var(--white);
  text-decoration: none;
}

.fab-wa:hover {
  background: #0b6538;
}

.fab-wa svg {
  width: 32px;
  height: 32px;
}

.fab-label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease;
}

.fab-wa:hover .fab-label,
.fab-wa:focus-visible .fab-label {
  opacity: 1;
}

.fab-up {
  width: var(--up-size);
  height: var(--up-size);
  right: calc(var(--fab-right) + (var(--fab-size) - var(--up-size)) / 2 + env(safe-area-inset-right));
  bottom: calc(var(--fab-bottom) + env(safe-area-inset-bottom) + var(--fab-size) + var(--up-gap));
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.fab-up.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.fab-up:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.fab-up svg {
  width: 22px;
  height: 22px;
}

/* Aviso */
.legal {
  padding: 4.2rem 0 5rem;
  background: var(--white);
}

.crumbs {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.legal h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--navy);
}

.legal .updated {
  color: var(--muted);
}

.legal h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  max-width: 72ch;
  color: #314652;
}

.legal ul {
  padding-left: 1.2rem;
}

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

section[id] {
  scroll-margin-top: calc(var(--sticky-offset) + 0.8rem);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes ken {
  from { transform: scale(1.06); }
  to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}

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

@keyframes panelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shardIn {
  from { transform: translateX(-8%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes sectorSlide {
  0%, 18% { transform: translateX(0); }
  33%, 51% { transform: translateX(100%); }
  66%, 84% { transform: translateX(200%); }
  100% { transform: translateX(0); }
}

@media (max-width: 1100px) {
  .cap-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps::before {
    display: none;
  }

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

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.4rem 5% 1rem;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(7, 38, 51, 0.12);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .header .btn-gold {
    margin-left: auto;
  }

  .empresa-grid,
  .split,
  .contact-grid,
  .sector-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.55rem 0;
  }

  .toolbar-contact {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
  }

  .toolbar-contact li + li::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - var(--header-h) - 200px);
  }

  .hero-vertical {
    display: none;
  }

  .hero-panel {
    background: linear-gradient(180deg, rgba(5, 24, 34, 0.92), rgba(5, 24, 34, 0.72) 62%, rgba(5, 24, 34, 0.4));
  }

  .hero-panel::after {
    display: none;
  }

  .hero-sectors a {
    letter-spacing: 0.02em;
    font-size: 0.62rem;
    padding-inline: 0.1rem;
  }

  .principles,
  .project-grid,
  .form-row,
  .cap-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project .media img,
  .media img {
    height: 230px;
  }

  .copyright-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo img {
    height: 54px;
  }
}

@media (max-width: 520px) {
  .logo img {
    height: 46px;
  }

  .header-inner {
    gap: 0.45rem;
  }

  .btn-gold.header-cta {
    margin-left: auto;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@media print {
  .toolbar,
  .fab-wa,
  .fab-up,
  .nav-toggle,
  .header-cta {
    display: none;
  }

  .header {
    position: static;
  }

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