/* =========================================================
   CONEXIÓN · V12
   CSS consolidado y ordenado.
   Paleta principal: azul / azul noche / blanco / gris.
========================================================= */

:root {
  --blue: #0072bc;
  --blue-2: #1596e8;
  --blue-soft: #6fc3f5;
  --navy: #071b2a;
  --navy-2: #0b2a42;
  --navy-3: #103955;
  --white: #ffffff;
  --off: #f3f7fa;
  --line: #d7e1e8;
  --muted: #708391;
  --text: #153044;
  --shadow: 0 28px 80px rgba(7, 27, 42, .12);
  --shell: min(1220px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

::selection {
  color: #fff;
  background: var(--blue);
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  background: rgba(7, 27, 42, .94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .15);
  backdrop-filter: blur(12px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  height: 84px;
  margin: 0 auto;
}

.brand img {
  width: auto;
  height: 60px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, .82);
  font-size: .83rem;
  font-weight: 800;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 11px 17px;
  color: #fff !important;
  background: var(--blue);
  border-radius: 4px;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--blue-2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 75% 30%, rgba(21, 150, 232, .16), transparent 30%),
    linear-gradient(135deg, #061824 0%, #08253a 58%, #0b3655 100%);
}

#energyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .58;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 27, 42, .95) 0%, rgba(7, 27, 42, .78) 45%, rgba(7, 27, 42, .1) 100%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 70px;
  width: var(--shell);
  min-height: 820px;
  margin: 0 auto;
  padding-top: 84px;
}

.hero-copy {
  max-width: 780px;
}

.micro-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #88c9ef;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--blue-2);
  border-radius: 50%;
}

.pulse-dot::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid rgba(21, 150, 232, .55);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(.65); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 900;
}

.hero h1 span {
  display: block;
  color: #73c2ef;
}

.hero-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 4px;
  font-weight: 900;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-2);
}

.btn-ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .32);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--navy);
  background: #fff;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 700px;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.hero-meta div {
  padding: 18px 20px 0 0;
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  color: #fff;
  font-size: .9rem;
}

.hero-meta span {
  margin-top: 6px;
  color: rgba(255, 255, 255, .60);
  font-size: .76rem;
  line-height: 1.45;
}

/* Panel derecho del hero */
.hero-console {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  overflow: hidden;
  background: rgba(6, 24, 36, .72);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
}

.console-top,
.console-status,
.console-list button {
  font-weight: 900;
  letter-spacing: .1em;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  color: rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  font-size: .72rem;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #86d1ff;
  font-size: .72rem;
}

.console-status i {
  width: 8px;
  height: 8px;
  background: var(--blue-2);
  border-radius: 50%;
}

.console-core {
  position: relative;
  display: grid;
  place-items: center;
  height: 350px;
  overflow: hidden;
}

.core-ring {
  position: absolute;
  border: 1px solid rgba(111, 195, 245, .2);
  border-radius: 50%;
}

.ring-1 {
  width: 290px;
  height: 290px;
  animation: rotate 16s linear infinite;
}

.ring-2 {
  width: 215px;
  height: 215px;
  border-style: dashed;
  animation: rotateReverse 10s linear infinite;
}

.ring-3 {
  width: 135px;
  height: 135px;
  border-color: rgba(21, 150, 232, .46);
}

.ring-1::before,
.ring-2::before {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--blue-2);
  border-radius: 50%;
}

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

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

.core-center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.core-center span,
.core-center strong,
.core-center small {
  display: block;
}

.core-kicker {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .45);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.core-center strong {
  color: #fff;
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -.05em;
}

.core-center small {
  margin-top: 6px;
  color: #7ac7f2;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.console-list {
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.console-list button {
  display: grid;
  grid-template-columns: 48px 1fr;
  width: 100%;
  padding: 18px 22px;
  color: rgba(255, 255, 255, .68);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: .78rem;
  line-height: 1.35;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}

.console-list button:hover,
.console-list button:focus-visible {
  padding-left: 27px;
  color: #fff;
  background: rgba(21, 150, 232, .1);
}

.console-list button span {
  color: #59b5ec;
  font-size: .76rem;
}

/* =========================================================
   FRANJA DE CAPACIDADES
========================================================= */

.trust-strip {
  overflow: hidden;
  color: #fff;
  background: var(--blue);
}

.trust-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: max-content;
  padding: 15px 22px;
  animation: marquee 26s linear infinite;
}

.trust-track span {
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.trust-track i {
  width: 5px;
  height: 5px;
  background: #9edcff;
  border-radius: 50%;
}

@keyframes marquee {
  from { transform: translateX(7%); }
  to { transform: translateX(-7%); }
}

/* =========================================================
   ESTRUCTURA COMÚN
========================================================= */

.section {
  padding: 112px 0;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.section-kicker.light {
  color: #78c5f2;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.company-copy h2,
.services-head h2,
.process-head h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.8rem, 4.7vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 900;
}

/* =========================================================
   EMPRESA
   V12: jerarquía visual más equilibrada y lectura más cómoda.
========================================================= */

.company {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  overflow: hidden;
  background: #fff;
}

.company-background {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.company-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
  transform: scale(1.01);
}

.company-background::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, .985) 0%,
      rgba(255, 255, 255, .96) 25%,
      rgba(255, 255, 255, .88) 45%,
      rgba(255, 255, 255, .66) 60%,
      rgba(255, 255, 255, .25) 78%,
      rgba(255, 255, 255, .06) 100%
    );
}

.company-grid {
  display: flex;
  align-items: center;
  min-height: 760px;
}

.company-copy {
  width: min(66%, 790px);
  padding: 34px 0;
}

.company-kicker {
  margin-bottom: 14px;
}

.company-copy h2 {
  max-width: 760px;
  color: var(--navy-2);
  font-size: clamp(2.65rem, 3.75vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.company-copy .lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #36566d;
  font-size: 1.14rem;
  line-height: 1.76;
}

.company-copy .company-lead-secondary {
  margin-top: 12px;
}

.company-values {
  display: grid;
  gap: 12px;
  max-width: 690px;
  margin-top: 30px;
}

.company-value {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(11, 42, 66, .12);
  border-radius: 7px;
  box-shadow: 0 10px 28px rgba(7, 27, 42, .045);
  backdrop-filter: blur(4px);
}

.company-value-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--blue);
  border-radius: 5px;
  font-size: .94rem;
  font-weight: 900;
}

.company-value h3 {
  margin: 0 0 5px;
  color: var(--navy-2);
  font-size: 1.16rem;
  line-height: 1.25;
  font-weight: 900;
}

.company-value p {
  max-width: 570px;
  margin: 0;
  color: #48657a;
  font-size: .98rem;
  line-height: 1.62;
}

/* =========================================================
   SERVICIOS SOBRE FONDO PETROLERO
========================================================= */

.services-oil {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.services-oil-background {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.services-oil-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.025);
}

.services-oil-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 22, 34, .96) 0%,
      rgba(5, 22, 34, .93) 36%,
      rgba(5, 22, 34, .88) 62%,
      rgba(5, 22, 34, .80) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 22, 34, .92) 0%,
      rgba(5, 22, 34, .70) 42%,
      rgba(5, 22, 34, .90) 100%
    );
}

.services-oil::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 195, 245, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 195, 245, .035) 1px, transparent 1px);
  background-size: 54px 54px;
}

.services-oil-content {
  position: relative;
  z-index: 2;
}

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .58fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 48px;
}

.services-head h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.65rem, 4.6vw, 4.7rem);
}

.services-head > p {
  max-width: 470px;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .76);
  font-size: 1rem;
  line-height: 1.72;
}

.service-selector {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 540px;
  overflow: hidden;
  background: rgba(3, 24, 38, .52);
  border: 1px solid rgba(125, 196, 238, .20);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
  backdrop-filter: blur(7px);
}

.service-tabs {
  border-right: 1px solid rgba(125, 196, 238, .16);
}

.service-tab {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 24px 26px;
  color: rgba(255, 255, 255, .78);
  text-align: left;
  background: rgba(4, 27, 42, .22);
  border: 0;
  border-bottom: 1px solid rgba(125, 196, 238, .13);
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, padding-left .2s ease;
}

.service-tab span {
  color: #55b9f4;
  font-size: .88rem;
  font-weight: 900;
}

.service-tab:hover,
.service-tab:focus-visible {
  color: #fff;
  background: rgba(0, 114, 188, .16);
}

.service-tab.active {
  padding-left: 30px;
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 114, 188, .34), rgba(0, 114, 188, .11));
}

.service-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}

.service-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 28px;
  padding: 44px 42px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity .35s ease, transform .35s ease;
}

.service-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.service-code {
  align-self: start;
  padding-top: 4px;
  color: #59bdf7;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .10em;
}

.service-panel-copy h3 {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 900;
}

.service-panel-copy > p {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1rem;
  line-height: 1.72;
}

.service-panel-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.service-panel-copy li {
  padding: 9px 11px;
  color: #c5eaff;
  background: rgba(0, 114, 188, .15);
  border: 1px solid rgba(103, 188, 242, .24);
  font-size: .75rem;
  font-weight: 800;
}

.service-symbol {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  justify-self: center;
  color: rgba(102, 190, 244, .52);
  background: rgba(4, 27, 42, .18);
  border: 1px solid rgba(102, 190, 244, .23);
  border-radius: 50%;
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
}

/* =========================================================
   METODOLOGÍA
========================================================= */

.process {
  background: var(--off);
}

.process-head {
  max-width: 780px;
}

.process-head h2 {
  color: var(--navy-2);
}

.process-head > p {
  max-width: 700px;
  margin: 24px 0 0;
  color: #587083;
  font-size: 1.08rem;
  line-height: 1.72;
}

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 68px;
  border-top: 1px solid #bccbd5;
}

.process-progress {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 1.2s ease;
}

.process-line.in-view .process-progress {
  width: 100%;
}

.process-line article {
  min-height: 235px;
  padding: 30px 28px 0 0;
  border-right: 1px solid #c8d4dc;
}

.process-line article:last-child {
  border-right: 0;
}

.process-line article > span {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
}

.process-line h3 {
  margin: 0 0 8px;
  color: var(--navy-2);
  font-size: 1.28rem;
  line-height: 1.18;
  font-weight: 900;
}

.process-line p {
  max-width: 245px;
  margin: 0;
  color: #587083;
  font-size: .98rem;
  line-height: 1.62;
}

/* =========================================================
   CONTACTO
========================================================= */

.contact {
  background: linear-gradient(180deg, #edf3f7 0%, #f7f9fb 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  gap: 82px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 120px;
  padding-top: 14px;
}

.contact-copy h2 {
  color: var(--navy-2);
}

.contact-copy > p {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-direct {
  margin-top: 42px;
  border-top: 1px solid #cbd7df;
}

.contact-direct > * {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid #cbd7df;
}

.contact-direct small,
.contact-direct strong {
  display: block;
}

.contact-direct small {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.contact-direct strong {
  color: var(--navy-2);
  font-size: .92rem;
}

.contact-form-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid #cbd7df;
  box-shadow: 0 24px 70px rgba(7, 27, 42, .10);
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 38px 25px;
  border-bottom: 1px solid var(--line);
}

.form-card-head small {
  color: var(--blue);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.form-card-head h3 {
  margin: 7px 0 0;
  color: var(--navy-2);
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 900;
}

.form-status-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  flex: 0 0 auto;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(0, 114, 188, .10);
}

.form-card-intro {
  max-width: 620px;
  margin: 0;
  padding: 26px 38px 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.7;
}

.contact-form {
  padding: 28px 38px 38px;
}

.form-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.contact-form label > span,
.form-label {
  display: block;
  margin-bottom: 7px;
  color: #425d70;
  font-size: .72rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--navy-2);
  background: #f4f6f8;
  border: 1px solid #c7d4dd;
  border-radius: 5px;
  outline: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.contact-form input {
  min-height: 48px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, .08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7e8b95;
}

.form-service,
.message-field,
.form-completion {
  display: block;
  margin-top: 27px;
}

.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.service-choice-grid button {
  min-height: 44px;
  padding: 9px;
  color: #526b7d;
  background: #fff;
  border: 1px solid #c7d4dd;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.service-choice-grid button:hover,
.service-choice-grid button:focus-visible {
  transform: translateY(-1px);
}

.service-choice-grid button:hover,
.service-choice-grid button:focus-visible,
.service-choice-grid button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

#serviceSelect {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.form-completion > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #6d808f;
  font-size: .68rem;
}

.form-completion strong {
  color: var(--blue);
}

.completion-track {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  background: #dfe7ec;
}

.completion-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width .25s ease;
}

.send-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 25px;
  padding: 16px 18px;
  color: #fff;
  background: var(--navy-2);
  border: 0;
  border-radius: 5px;
  font-weight: 900;
  transition: background .2s ease, transform .2s ease;
}

.send-button:hover,
.send-button:focus-visible {
  background: var(--blue);
  transform: translateY(-1px);
}

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

.form-message {
  display: none;
  margin: 24px 38px 0;
  padding: 13px 15px;
  font-size: .82rem;
  font-weight: 800;
}

.form-message.success {
  display: block;
  color: #155e35;
  background: #eaf8ef;
  border-left: 4px solid #268a50;
}

.form-message.error {
  display: block;
  color: #8b1e1e;
  background: #fff0f0;
  border-left: 4px solid #c84545;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 58px 0 24px;
  color: rgba(255, 255, 255, .6);
  background: var(--navy);
}

.footer-shell,
.footer-bottom {
  width: var(--shell);
  margin: 0 auto;
}

.footer-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 42px;
}

.footer-brand img {
  width: auto;
  height: 58px;
}

.footer-brand p {
  max-width: 360px;
  margin: 18px 0 0;
  font-size: .82rem;
  line-height: 1.65;
}

.footer-shell nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-shell nav a {
  color: rgba(255, 255, 255, .75);
  font-size: .8rem;
  font-weight: 800;
}

.footer-shell nav a:hover,
.footer-shell nav a:focus-visible {
  color: #7fc9f2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .7rem;
}

/* =========================================================
   WHATSAPP FLOTANTE
========================================================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: visible;
  background: #25d366;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(7, 27, 42, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 42px rgba(7, 27, 42, .36);
}

.whatsapp-icon {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.whatsapp-float::after {
  position: absolute;
  z-index: 1;
  inset: -7px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(37, 211, 102, .45);
  border-radius: 50%;
  animation: whatsappPulse 2.2s infinite;
}

@keyframes whatsappPulse {
  0% { transform: scale(.92); opacity: .8; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {
  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 130px;
    padding-bottom: 100px;
  }

  .hero-console {
    max-width: 720px;
    margin: 0;
  }

  .company,
  .company-grid {
    min-height: 720px;
  }

  .company-copy {
    width: min(78%, 740px);
  }

  .company-copy h2 {
    max-width: 690px;
    font-size: clamp(2.55rem, 5.2vw, 3.65rem);
  }

  .company-copy .lead {
    max-width: 650px;
  }

  .company-background img {
    object-position: 62% center;
  }

  .company-background::after {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, .99) 0%,
        rgba(255, 255, 255, .96) 34%,
        rgba(255, 255, 255, .84) 58%,
        rgba(255, 255, 255, .38) 82%,
        rgba(255, 255, 255, .16) 100%
      );
  }

  .services-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-head > p {
    max-width: 680px;
  }

  .service-selector {
    grid-template-columns: 310px minmax(0, 1fr);
  }

  .service-panel {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .service-symbol {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-copy {
    position: static;
  }
}

/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .header-shell {
    height: 72px;
  }

  .brand img {
    height: 52px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px;
    background: rgba(7, 27, 42, .985);
    transform: translateX(100%);
    transition: transform .28s ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 1rem;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 80px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2rem, 8.3vw, 2.75rem);
    line-height: 1.03;
    letter-spacing: -.035em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero h1 span {
    max-width: 100%;
  }

  .hero-lead {
    font-size: .98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta div {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .hero-console {
    max-width: none;
  }

  .console-core {
    height: 285px;
  }

  .ring-1 {
    width: 235px;
    height: 235px;
  }

  .ring-2 {
    width: 175px;
    height: 175px;
  }

  .ring-3 {
    width: 112px;
    height: 112px;
  }

  .core-center strong {
    font-size: 3.8rem;
  }

  .console-list button {
    padding: 16px 18px;
    font-size: .82rem;
  }

  .section {
    padding: 78px 0;
  }

  .company {
    min-height: auto;
    padding: 0;
  }

  .company-grid {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .company-copy {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .company-background img {
    object-position: 58% center;
  }

  .company-background::after {
    background: rgba(255, 255, 255, .88);
  }

  .company-copy h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.5vw, 4rem);
    line-height: 1;
  }

  .company-copy .lead {
    max-width: 100%;
    font-size: 1.08rem;
    line-height: 1.72;
  }

  .company-values {
    max-width: 100%;
  }

  .company-value {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 15px;
    background: rgba(255, 255, 255, .82);
  }

  .company-value-number {
    width: 50px;
    height: 50px;
    font-size: .9rem;
  }

  .company-value p {
    max-width: none;
    font-size: .9rem;
  }

  .services-oil {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .services-oil-background img {
    object-position: 58% center;
  }

  .services-oil-overlay {
    background: linear-gradient(rgba(5, 22, 34, .90), rgba(5, 22, 34, .92));
  }

  .services-head h2 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.03;
  }

  .services-head > p {
    font-size: .98rem;
  }

  .service-selector {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .service-tabs {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(125, 196, 238, .16);
    scrollbar-width: thin;
  }

  .service-tab {
    min-width: 210px;
    min-height: 72px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 17px 16px;
    border-right: 1px solid rgba(125, 196, 238, .12);
    border-bottom: 0;
    font-size: .95rem;
  }

  .service-tab.active,
  .service-tab:hover,
  .service-tab:focus-visible {
    padding-left: 16px;
  }

  .service-tab span {
    font-size: .76rem;
  }

  .service-stage {
    min-height: 540px;
  }

  .service-panel {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding: 30px 22px;
  }

  .service-code {
    align-self: auto;
  }

  .service-panel-copy h3 {
    max-width: 100%;
    font-size: clamp(1.75rem, 8vw, 2.6rem);
  }

  .service-panel-copy > p {
    font-size: .96rem;
  }

  .service-symbol {
    display: grid;
    width: 82px;
    height: 82px;
    justify-self: start;
    font-size: 2.2rem;
  }

  .process-line {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .process-progress {
    display: none;
  }

  .process-line article {
    min-height: auto;
    padding: 24px 0;
    border-top: 1px solid #c6d3dc;
    border-right: 0;
  }

  .process-line article > span {
    margin-bottom: 14px;
  }

  .process-line h3 {
    font-size: 1.18rem;
  }

  .process-line p {
    max-width: none;
    font-size: .98rem;
  }

  .form-card-head,
  .contact-form,
  .form-card-intro {
    padding-right: 22px;
    padding-left: 22px;
  }

  .form-message {
    margin-right: 22px;
    margin-left: 22px;
  }

  .service-choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-shell,
  .footer-bottom {
    flex-direction: column;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -.03em;
  }


  .company-value {
    grid-template-columns: 1fr;
  }

  .company-value-number {
    margin-bottom: 2px;
  }

  .service-stage {
    min-height: 600px;
  }

  .service-panel-copy li {
    width: 100%;
  }

  .service-choice-grid {
    grid-template-columns: 1fr;
  }

  .form-card-head {
    align-items: center;
  }

  .form-card-head h3 {
    font-size: 1.7rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .whatsapp-float {
    right: 13px;
    bottom: 13px;
    width: 54px;
    height: 54px;
    border-width: 2px;
  }
}

/* =========================================================
   ACCESIBILIDAD: REDUCIR MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
