/* Morochas Energy Group — paleta tomada del dossier corporativo */
:root {
  --navy: #0A3667;
  --navy-2: #12487f;
  --orange: #F6960E;
  --orange-d: #d97f00;
  --gray: #1f4f8c;
  --sky: #C9D6E5;
  --sky-2: #E7EEF6;
  --paper: #F7F9FC;
  --white: #ffffff;
  --line: #dde5ee;
  --ink: #0b3a78;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10,54,103,.06), 0 12px 32px -12px rgba(10,54,103,.18);
  --shadow-lg: 0 30px 60px -24px rgba(10,54,103,.35);
  --f-head: "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--navy); margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 550; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--lg { width: 34px; height: 34px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .95em 1.5em;
  border-radius: 10px; font: 600 15px/1 var(--f-head); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--accent { background: var(--orange); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(246,150,14,.8); }
.btn--accent:hover { background: #ffa526; transform: translateY(-2px); }
.btn--ghost { border-color: var(--sky); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--sm { padding: .75em 1.15em; font-size: 14px; }

/* ---------- topbar & nav ---------- */
.topbar { background: var(--sky-2); color: var(--gray); font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar__schedule, .topbar__desc { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ic { width: 15px; height: 15px; color: var(--orange-d); flex-shrink: 0; }
.topbar__rif { font-weight: 600; color: var(--navy); }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  font-weight: 600;
  color: var(--navy);
  text-shadow: 0 1px 2px rgba(10, 54, 103, 0.22);
  transition: color .2s, text-shadow .2s;
  white-space: nowrap;
}
.topbar__link:hover {
  text-decoration: none !important;
  color: var(--orange-d);
  text-shadow: 0 1px 4px rgba(246, 150, 14, 0.35);
}

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10,54,103,.4); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { white-space: nowrap; }
.nav__links a:not(.btn) { font: 600 14.5px var(--f-head); text-decoration: none; color: var(--navy); position: relative; padding: 6px 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

/* Drawer head en desktop oculto */
.nav__drawer-head { display: none; }
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 54, 103, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
}
.nav.is-open .nav__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Botón toggle hamburguesa — sin fondo azul y con icono de 4 rayitas o cruz */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0 !important;
  background: transparent !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle:hover { color: var(--orange-d); }
.nav__icon-bars { display: block; width: 26px; height: 26px; }
.nav__icon-close { display: none; width: 26px; height: 26px; }
.nav.is-open .nav__toggle .nav__icon-bars { display: none; }
.nav.is-open .nav__toggle .nav__icon-close { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 60px 0 0; background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--sky-2) 1px, transparent 1px), linear-gradient(90deg, var(--sky-2) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 70% at 30% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 30%, #000 30%, transparent 75%);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: end; }
.hero__copy { padding-bottom: 32px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 13px/1 var(--f-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(10, 54, 103, 0.16), 0 2px 8px rgba(10, 54, 103, 0.08);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(246, 150, 14, 0.85), 0 0 3px rgba(255, 255, 255, 0.8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(246,150,14,.7), 0 0 8px var(--orange); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(246,150,14,0), 0 0 12px var(--orange); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(246,150,14,0), 0 0 8px var(--orange); }
}
.hero__title { font-size: clamp(1.85rem, 3.2vw, 2.75rem); font-weight: 550; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 24px; }
.hero__title em { font-style: normal; color: var(--orange-d); position: relative; white-space: nowrap; }
.hero__lead { font-size: 1.12rem; color: var(--gray); max-width: 34em; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.hero__facts li { padding: 18px 16px 0 0; }
.hero__facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero__facts strong {
  display: block;
  font: 600 1.45rem/1.1 var(--f-head);
  color: var(--navy);
  text-shadow: 0 1px 3px rgba(10, 54, 103, 0.18), 0 2px 6px rgba(10, 54, 103, 0.08);
}
.hero__facts li > span {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.35;
  display: block;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(10, 54, 103, 0.10);
}

/* ---------- Hero SaaS Stage (Técnico sin fondo + Tarjetas Dashboard) ---------- */
.hero__media { position: relative; }
.hero__media--saas {
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Aura de fondo sutil detrás del técnico */
.hero__tech-aura {
  position: absolute;
  width: 440px;
  height: 440px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 150, 14, 0.18) 0%, rgba(10, 54, 103, 0.10) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* Silueta recortada del técnico */
.hero__tech-person {
  position: relative;
  z-index: 2;
  width: 88%;
  max-width: 450px;
  margin-inline: auto;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  line-height: 0;
  margin-bottom: 0;
}
.hero__tech-person picture {
  display: block;
  width: 100%;
  line-height: 0;
}
.hero__tech-person img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
  margin-bottom: 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(10, 37, 69, 0.15));
}

/* Tarjetas Dashboard Flotantes (inspiradas en la referencia) */
.dash-card {
  position: absolute;
  z-index: 5;
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 18px 14px;
  box-shadow:
    0 20px 40px -10px rgba(10, 37, 69, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.95);
  width: 215px;
  cursor: default;
  user-select: none;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
}

.dash-card:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow:
    0 24px 48px -10px rgba(10, 37, 69, 0.22),
    0 0 0 1px rgba(246, 150, 14, 0.3);
  border-color: rgba(246, 150, 14, 0.45);
}

.dash-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.dash-card__label {
  font: 550 12px/1.2 var(--f-head);
  color: #64748b;
  letter-spacing: -0.01em;
}
.dash-card__pill {
  font: 600 11px/1 var(--f-head);
  color: #059669;
  background: #ecfdf5;
  padding: 3px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.dash-card__val {
  font: 600 1.6rem/1.1 var(--f-head);
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

/* Micro charts */
.dash-card__chart {
  margin: 4px 0 8px;
}
.chart-bars {
  width: 100%;
  height: 40px;
  display: block;
}
.chart-line {
  width: 100%;
  height: 36px;
  display: block;
}

.dash-card__foot {
  font-size: 11px;
  line-height: 1.3;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  border-top: 1px dashed rgba(226, 232, 240, 0.8);
  padding-top: 6px;
}
.dash-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a3667;
  flex-shrink: 0;
}
.dash-card__dot--orange {
  background: #f6960e;
}

/* Donut chart layout */
.dash-card__donut-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.chart-donut {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.dash-card__legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 3px;
  font-size: 11px;
  color: #475a72;
}
.dash-card__legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-card__legend span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Posicionamiento de tarjetas flotantes (estáticas, solo animación al hover) */
.dash-card--1 {
  right: -20px;
  top: 10px;
}

.dash-card--2 {
  left: -34px;
  top: 135px;
}

.dash-card--3 {
  right: -24px;
  bottom: 32px;
}



/* ---------- marquee ---------- */
.marquee {
  position: relative;
  z-index: 10;
  margin-top: -1px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 600 14px var(--f-head); text-transform: uppercase; letter-spacing: .12em; padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; }
.marquee span::after { content: ""; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 68px 0; }
.kicker { font: 600 13px var(--f-head); text-transform: uppercase; letter-spacing: .14em; color: var(--orange-d); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.h2 { font-size: clamp(1.45rem, 2.2vw, 2.05rem); font-weight: 550; max-width: 20em; }
.h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 550; margin-bottom: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 36px; }
.sec-head__aside { max-width: 26em; color: var(--gray); margin: 0; }

/* about */
.about { background: var(--white); padding: 68px 0 36px; }
.about__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media { position: relative; padding: 0 0 32px 0; }
.about__a { border-radius: var(--radius); aspect-ratio: 4/3.2; object-fit: cover; width: 88%; box-shadow: var(--shadow); }
.about__b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--white); box-shadow: var(--shadow-lg); }
.about__stamp { position: absolute; left: -16px; top: -24px; background: var(--orange); color: var(--navy); border-radius: var(--radius); padding: 18px 22px; width: 170px; box-shadow: var(--shadow); }
.about__stamp .count { font: 600 3rem/1 var(--f-head); display: block; }
.about__stamp small { font: 500 13px/1.3 var(--f-head); display: block; margin-top: 6px; }
.about__copy > p { color: var(--gray); }
.about__copy .h2 { margin-bottom: 20px; }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; border-left: 2px solid var(--sky); }
.timeline li { position: relative; padding: 0 0 16px 26px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); }
.timeline b { font: 600 1.05rem var(--f-head); color: var(--navy); }
.timeline span { color: var(--gray); font-size: 15px; }

/* electric */
.electric { background: var(--paper); padding: 48px 0 68px; }
.electric__feature {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}
.electric__feature img {
  width: 100%;
  height: clamp(400px, 36vw, 490px);
  object-fit: cover;
  object-position: center 10%;
  border-radius: 24px;
  display: block;
}
.electric__feature-card { position: absolute; right: 28px; bottom: 28px; max-width: 380px; background: rgba(255,255,255,.95); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.electric__feature-card .ic { color: var(--orange-d); margin-bottom: 10px; }
.electric__feature-card p { margin: 0; font: 600 16px/1.5 var(--f-head); color: var(--navy); }
.svc-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; overflow: hidden; }
.svc::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::after { transform: scaleX(1); }
.svc__n { position: absolute; right: 20px; top: 18px; font: 600 14px var(--f-head); color: var(--sky); }
.svc .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--sky-2); color: var(--navy); margin-bottom: 18px; transition: background .3s, color .3s; }
.svc:hover .ic { background: var(--orange); }
.svc h3 { font-size: 15px; font-weight: 550; margin-bottom: 8px; line-height: 1.3; }
.svc p { font-size: 14.5px; color: var(--gray); margin: 0; }
.electric__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.electric__strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.electric__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.electric__strip figure:hover img { transform: scale(1.05); }
.electric__strip figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--white); color: var(--navy); font: 550 13.5px var(--f-head); padding: 8px 12px; border-radius: 10px; }

/* services */
.services { background: var(--white); padding: 56px 0 36px; }
.band { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.band--rev .band__media { order: 2; }
.band__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); image-rendering: -webkit-optimize-contrast; }
.band__media--duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: end; }
.band__media--duo img:first-child { aspect-ratio: 3/3.6; }
.band__media--duo img:last-child { aspect-ratio: 3/3.3; transform: translateY(-40px); }
.band__copy > p { color: var(--gray); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--gray); }
.ticks li b { color: var(--navy); font-weight: 550; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--sky-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97f00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks--sm li { font-size: 14.5px; }
.chips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--sky-2); color: var(--navy); font: 550 13.5px var(--f-head); }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-cards div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--white); }
.mini-cards img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--white); margin-bottom: 10px; image-rendering: -webkit-optimize-contrast; }
.mini-cards p { font-size: 13px; color: var(--gray); margin: 0; line-height: 1.5; }
.mini-cards b { color: var(--navy); font-weight: 550; }

.env { background: var(--paper); border-radius: 28px; padding: 36px; margin-bottom: 56px; }
.env__head { display: block; max-width: 680px; margin-bottom: 32px; }
.env__head p:last-child { color: var(--gray); margin: 0; }
.env__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.env__grid figure {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.env__grid figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(10, 54, 103, 0.12);
}
.env-card__thumb {
  height: 185px;
  width: 100%;
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.env__grid figcaption {
  padding: 18px;
  font-size: 14px;
  color: var(--gray);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.env__grid b { display: block; color: var(--navy); font: 600 15px/1.3 var(--f-head); margin-bottom: 6px; }

/* transformers — Recipe-Style Modern Cards (4 Cards per Row) */
.tx { background: linear-gradient(180deg, var(--sky-2), var(--paper) 40%); padding: 68px 0; }
.tx .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.tx .sec-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.tx .sec-head .h2 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.2rem, 1.95vw, 2.05rem);
  letter-spacing: -0.01em;
}
@media (max-width: 680px) {
  .tx .sec-head .h2 {
    white-space: normal;
    font-size: clamp(1.25rem, 4.8vw, 1.55rem);
  }
}
.tabs { display: inline-flex; padding: 5px; background: var(--white); border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); flex: none; }
.tabs button { border: 0; background: transparent; padding: 12px 24px; border-radius: 999px; font: 600 14.5px var(--f-head); color: var(--gray); cursor: pointer; transition: background .25s, color .25s; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }

/* Grid of 4 Cards per Row */
.tx__panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.tx__panel + .tx__panel { margin-top: 24px; }
.js .tx__panel[hidden] { display: none; }

/* The Modern Card */
.tx-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px -4px rgba(10, 54, 103, 0.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Card hover effects removed as requested */
.tx-card:hover {
  /* Static card */
}

/* Media Box with Optimized Specific Height & Background */
.tx-card__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 230px;
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border: 1px solid rgba(10, 54, 103, 0.08);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

/* Badge Top Left */
.tx-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--navy);
  font: 600 11px/1 var(--f-head);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.tx-card__badge .ic {
  width: 12px;
  height: 12px;
  color: var(--orange);
}

/* Card Body */
.tx-card__body {
  padding: 14px 4px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tx-card__title {
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.tx-card__desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 54px;
}

/* Characteristics with Icons Stacked Vertically */
.tx-card__specs-v {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.tx-spec-v {
  display: grid;
  grid-template-columns: 24px auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.3;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--paper);
  transition: background 0.2s, transform 0.2s;
}
.tx-spec-v:hover {
  background: #edf4fb;
}
.tx-spec-v__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(10, 54, 103, 0.08);
}
.tx-spec-v__icon .ic {
  width: 13px;
  height: 13px;
  color: var(--orange-d);
}
.tx-spec-v__label {
  font-weight: 600;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tx-spec-v__val {
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
}

/* Overlay Vignette on Transformer Media for optimal contrast */
.tx-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(6, 26, 50, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Technical Pills — Positioned bottom-left over the photo */
.tx-card__pills {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  align-items: flex-end;
  z-index: 2;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.tx-pill {
  font: 600 11px/1.2 var(--f-head);
  color: #FFFFFF;
  background: rgba(10, 36, 68, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 1px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
  pointer-events: auto;
}

/* Components Section */
.comp { margin-top: 56px; scroll-margin-top: 96px; }

/* Anclas de navegación con margen superior seguro para navbar sticky */
#nosotros, #electricas, #servicios, #transporte, #ambiental, #diesel, #transformadores, #componentes, #equipos, #partner, #suministros, #contacto {
  scroll-margin-top: 88px;
}
.comp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.comp-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 16px -6px rgba(10, 54, 103, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  transform: translateZ(0);
}
.comp-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px -8px rgba(10, 54, 103, 0.14);
  border-color: rgba(10, 54, 103, 0.18);
}
.comp-item__img {
  height: 220px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background-color: #f1f5f9;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}
.comp-item:hover .comp-item__img {
  transform: scale(1.03) translateZ(0);
}
.comp-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.comp-item p {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

/* equip — Independent Showcase Blocks (Alternating 50/50 Layout) */
.equip { background: var(--white); padding: 72px 0; }
.equip-showcases {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 36px;
}
.equip-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  position: relative;
  box-shadow: 0 4px 20px -8px rgba(10, 54, 103, 0.07);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.equip-item:hover {
  border-color: rgba(10, 54, 103, 0.2);
  box-shadow: 0 12px 32px -10px rgba(10, 54, 103, 0.12);
}
.equip-item--rev {
  grid-template-columns: 1fr 1fr;
}
.equip-item--rev .equip-item__media {
  order: 2;
}
.equip-item--rev .equip-item__content {
  order: 1;
}

/* Media Column (50%) */
.equip-item__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  min-height: 440px;
  box-shadow: var(--shadow);
  background: #ffffff;
}
.equip-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.equip-item__media:hover img {
  transform: scale(1.035);
}
.equip-item__tag {
  position: absolute;
  left: 20px;
  top: 20px;
  background: rgba(10, 54, 103, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font: 600 12px/1 var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Content Column (50%) */
.equip-item__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.equip-item__kicker {
  font: 600 12.5px var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-d);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.equip-item__kicker::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--orange);
}
.equip-item__title {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.equip-item__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 22px;
}

/* Feature Items with Suggestive Icons */
.equip-item__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.equip-feat {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.equip-feat:hover {
  transform: translateX(4px);
  border-color: var(--orange);
  box-shadow: 0 4px 14px -4px rgba(10, 54, 103, 0.12);
}
.equip-feat__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sky-2);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.equip-feat:hover .equip-feat__icon {
  background: var(--orange);
  color: var(--navy);
  transform: scale(1.05);
}
.equip-feat__icon .ic {
  width: 19px;
  height: 19px;
}
.equip-feat__text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--gray);
}
.equip-feat__text b {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
}
.equip-item__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* supply */
.supply { background: var(--paper); padding: 56px 0; }
.supply__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 290px; gap: 18px; }
.tile { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 3; }
.tile > img, .tile__quad { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover > img { transform: scale(1.05); }
.tile__quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); }
.tile__quad img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,.95); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--gray); line-height: 1.45; }
.tile figcaption b { display: block; color: var(--navy); font: 600 15px var(--f-head); margin-bottom: 2px; }
.mat { margin-top: 48px; }
.mat__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.mat__head .h3 { margin: 0; font-weight: 550; }
.mat__head p { margin: 0; color: var(--gray); max-width: 30em; }
.mat__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mat__grid li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; transition: border-color .3s, box-shadow .3s; }
.mat__grid li:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.mat__grid img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--white); margin-bottom: 10px; }
.mat__grid span { font: 550 13px/1.35 var(--f-head); color: var(--navy); display: block; }

/* fabrication */
.fab { background: var(--white); padding: 56px 0; }
.fab__in { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; align-items: stretch; }
.fab__copy { align-self: center; padding-right: 16px; }
.fab__copy > p { color: var(--gray); }
.fab-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.fab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(10, 54, 103, 0.12);
}
.fab-card__thumb {
  height: 240px;
  width: 100%;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-origin: content-box;
  padding: 18px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
}
.fab-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fab-card__body h3 {
  font-size: 16px;
  font-weight: 550;
  margin-bottom: 10px;
  color: var(--navy);
}
.fab-card__body p {
  color: var(--gray);
  margin: 0;
  font-size: 15px;
}
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th { text-align: left; font: 600 13px var(--f-head); color: var(--orange-d); padding: 8px 0; }
.spec td { padding: 8px 0 8px 10px; color: var(--navy); border-top: 1px dashed var(--line); }
.spec th { border-top: 1px dashed var(--line); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }

/* CTA */
.cta { position: relative; padding: 76px 0; overflow: hidden; color: var(--white); text-align: center; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,54,103,.78), rgba(10,54,103,.9)); z-index: 1; }
.cta__in { position: relative; z-index: 2; }
.cta h2 { color: var(--white); font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 550; margin-bottom: 14px; }
.cta p { color: var(--sky); font-size: 1.1rem; margin-bottom: 30px; }

/* contact */
.contact { background: var(--paper); padding: 56px 0; }
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--white); color: var(--orange-d); border: 1px solid var(--line); flex-shrink: 0; }
.contact__list b { display: block; font: 600 14px var(--f-head); color: var(--navy); margin-bottom: 4px; }
.contact__entry { display: flex; flex-direction: column; gap: 5px; }
.contact__line { display: block; color: var(--gray); font-size: 15px; line-height: 1.45; }
.contact__line a { color: var(--navy); text-decoration: none; font-weight: 500; transition: color .2s; }
.contact__line a:hover { color: var(--orange-d); text-decoration: underline; }
.contact__tag { color: var(--gray); font-size: 13.5px; font-weight: 400; margin-left: 4px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 180px; background: var(--sky-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form { background: var(--white); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form h3 { font-size: 18.5px; font-weight: 550; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font: 550 13.5px var(--f-head); color: var(--navy); }
.form input, .form select, .form textarea { font: 400 15px var(--f-body); color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .2s, background .2s; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); background: var(--white); }
.form .is-invalid { border-color: #d64545; }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__note { margin: 0; font-size: 14px; color: var(--gray); min-height: 1.4em; }

/* ==========================================================================
   FOOTER (Inspirado en diseño moderno Nova / Dark Navy Minimalista)
   ========================================================================== */
.footer {
  background: #071527;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 64px;
  position: relative;
  z-index: 10;
}
.footer__in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.25fr 1.4fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer__brand {
  max-width: 320px;
}
.footer__brand-link {
  display: inline-block;
  margin-bottom: 18px;
  line-height: 0;
  text-decoration: none;
}
.footer__brand-logo {
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}
.footer__brand p {
  color: #94A3B8;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 22px;
}

/* Redes sociales */
.footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.social-btn svg {
  width: 17px;
  height: 17px;
}
.social-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* Títulos de columnas */
.footer__title {
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Listas de enlaces */
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__list a {
  text-decoration: none;
  color: #94A3B8;
  font: 450 13.5px var(--f-head);
  transition: color .2s ease, transform .2s ease;
  line-height: 1.45;
  display: inline-block;
}
.footer__list a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

/* Columna de contacto con iconos */
.footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.45;
}
.footer__contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__contact-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__contact-text {
  flex: 1;
}
.footer__contact-text a {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
  display: inline-block;
}
.footer__contact-text a:hover {
  color: #FFFFFF;
}

/* Barra inferior (Base) */
.footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0 28px;
  font-size: 13px;
  color: #64748B;
}
.footer__base-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  margin: 0;
  color: #94A3B8;
  font-size: 13px;
}
.footer__legal {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.footer__legal a,
.btn-cookie-link {
  color: #94A3B8;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.footer__legal a:hover,
.btn-cookie-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.footer__divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  user-select: none;
}

@media (max-width: 1024px) {
  .footer__in {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer__brand p {
    max-width: 440px;
  }
}
@media (max-width: 768px) {
  .footer__in {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 16px !important;
  }
  .footer__brand {
    grid-column: 1 / -1 !important;
    max-width: 100% !important;
    margin-bottom: 4px;
  }
  .footer__brand p {
    max-width: 100%;
    font-size: 13.5px;
  }
  .footer__col {
    min-width: 0;
  }
  .footer__contact-col {
    grid-column: 1 / -1 !important;
  }
  .footer__title {
    font-size: 14.5px;
    margin-bottom: 12px;
  }
  .footer__list a, .footer__contact a, .footer__contact-text {
    font-size: 13.5px;
  }
  .footer__base-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .footer__in {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 12px !important;
  }
  .footer__brand {
    grid-column: 1 / -1 !important;
  }
  .footer__contact-col {
    grid-column: 1 / -1 !important;
  }
}

/* WhatsApp Widget Flotante Personalizado */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

/* Badge de Google reCAPTCHA v3 - Oculto visualmente pero 100% activo en segundo plano */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Texto legal obligatorio al ocultar el badge según términos de Google */
.recaptcha-legal {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  margin-top: 12px;
  margin-bottom: 0;
  text-align: center;
}
.recaptcha-legal a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.recaptcha-legal a:hover {
  color: var(--orange-d);
}

.wa-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.40);
  transition: transform .25s var(--ease), box-shadow .25s;
  animation: waSubtleFloat 3.6s ease-in-out infinite;
}
.wa-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.60);
  animation-play-state: paused;
}
.wa-toggle__icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}
.wa-toggle__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #EF4444;
  color: #ffffff;
  font: 700 9px/15px var(--f-head);
  text-align: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
@keyframes waSubtleFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0 9px 24px rgba(37, 211, 102, 0.6);
  }
}

/* WhatsApp Pop-up Chat Window - Superpuesto fijo sin alterar el ancho del documento */
.wa-popup {
  position: fixed !important;
  bottom: 82px !important;
  right: 24px !important;
  left: auto !important;
  width: 340px !important;
  max-width: calc(100vw - 32px) !important;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 48px -10px rgba(10, 54, 103, 0.35), 0 0 1px rgba(10,54,103,0.2);
  overflow: hidden;
  border: 1px solid rgba(10, 54, 103, 0.1);
  z-index: 10001 !important;
  display: none !important;
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  transform-origin: bottom right;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), opacity .25s ease;
  box-sizing: border-box !important;
}
.wa-popup.is-open {
  display: flex !important;
  flex-direction: column !important;
  transform: scale(1) translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.wa-popup__header {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  padding: 12px 14px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wa-popup__agent {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  flex: 1;
  min-width: 0;
}
.wa-popup__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wa-popup__avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  overflow: hidden;
  flex-shrink: 0;
  padding: 3px;
}
.wa-popup__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.wa-popup__dot,
.wa-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid #075E54;
}
.wa-popup__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}
.wa-popup__title-wrap {
  text-align: left;
  width: 100%;
}
.wa-popup__name,
.wa-popup__header h4 {
  font: 700 13.5px/1.2 var(--f-head);
  margin: 0 0 2px;
  color: #ffffff !important;
  text-align: left !important;
}
.wa-popup__status {
  font-size: 11px;
  line-height: 1.2;
  margin: 0;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
  text-align: left !important;
}
.wa-popup__close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  padding: 4px;
  transition: opacity .2s;
}
.wa-popup__close:hover { opacity: 1; }
.wa-popup__body {
  background: #ECE5DD;
  background-image: radial-gradient(#d3c9be 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 16px;
  max-height: 220px;
}
.wa-popup__date {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.7);
  padding: 2px 8px;
  border-radius: 6px;
  display: table;
  margin-left: auto;
  margin-right: auto;
}
.wa-bubble {
  background: #ffffff;
  border-radius: 12px 12px 12px 2px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  font-size: 13px;
  line-height: 1.45;
  color: #1e293b;
  position: relative;
}
.wa-bubble p { margin: 0 0 6px; }
.wa-bubble p:last-of-type { margin-bottom: 4px; }
.wa-bubble__time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #94a3b8;
}
.wa-popup__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #F0F2F5;
  border-top: 1px solid #E2E8F0;
}
.wa-popup__input {
  flex: 1;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12.5px;
  outline: none;
  background: #ffffff;
  font-family: inherit;
  color: var(--navy);
  transition: border-color .2s;
}
.wa-popup__input:focus {
  border-color: #128C7E;
}
.wa-popup__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.wa-popup__send:hover {
  background: #1EBE5D;
  transform: scale(1.05);
}
.wa-popup__send svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 520px;
  width: calc(100vw - 48px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(10, 54, 103, 0.15);
  border-radius: 20px;
  box-shadow: 0 20px 48px -8px rgba(10, 54, 103, 0.22);
  padding: 22px;
  z-index: 1050;
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1), opacity .45s, visibility .45s;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.cookie-banner__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-banner__header h3 {
  margin: 0;
  font: 600 16px/1.3 var(--f-head);
  color: var(--navy);
}
.cookie-icon { font-size: 20px; }
.cookie-banner p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}
.cookie-banner a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-cookie-config {
  background: transparent;
  border: 0;
  color: #64748b;
  font: 600 13px var(--f-head);
  cursor: pointer;
  padding: 6px 10px;
  text-decoration: underline;
  transition: color .2s;
}
.btn-cookie-config:hover { color: var(--navy); }

/* Modal de Preferencias de Cookies */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.cookie-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 36, 68, 0.6);
  backdrop-filter: blur(4px);
}
.cookie-modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 24px 60px -12px rgba(10, 54, 103, 0.3);
  overflow: hidden;
  z-index: 2;
  transform: scale(0.95);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-modal.is-open .cookie-modal__dialog {
  transform: scale(1);
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cookie-modal__header h3 {
  margin: 0;
  font: 600 17px var(--f-head);
  color: var(--navy);
}
.cookie-modal__close {
  background: transparent;
  border: 0;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.cookie-modal__body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}
.cookie-modal__desc {
  font-size: 13.5px;
  color: #475569;
  margin: 0 0 18px;
  line-height: 1.5;
}
.cookie-pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 14px;
  margin-bottom: 12px;
}
.cookie-pref-item__info b {
  display: block;
  font: 600 14px var(--f-head);
  color: var(--navy);
  margin-bottom: 3px;
}
.cookie-pref-item__info p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}
.cookie-badge-required {
  font: 600 11px var(--f-head);
  background: #e2e8f0;
  color: #475569;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--line);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--navy); }
input:checked + .slider:before { transform: translateX(20px); }

/* ---------- reveal (safe) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .nav__links a:not(.btn) { font-size: 13.5px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .mat__grid { grid-template-columns: repeat(4, 1fr); }
  .fab__in { grid-template-columns: 1fr 1fr; }
  .fab__copy { grid-column: 1 / -1; }
  
  
  .env__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  /* Topbar en móvil: solo horario y teléfono */
  .topbar__desc { display: none !important; }
  .topbar__schedule { display: inline-flex !important; font-size: 12.5px; }
  .topbar__link { display: inline-flex !important; font-size: 12.5px; }
  .topbar__in { justify-content: space-between !important; padding: 7px 0; }

  /* Botón hamburguesa sin fondo azul */
  .nav__toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Drawer móvil: pop up slider desde la derecha altura fix-screen */
  .nav__links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(330px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    background: #ffffff !important;
    z-index: 999 !important;
    padding: 22px 24px 36px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    box-shadow: -12px 0 40px rgba(10, 54, 103, 0.28) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s !important;
  }
  .nav:not(.is-open) .nav__links {
    display: none !important;
  }
  .nav.is-open .nav__links {
    display: flex !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Cabecera interna del drawer móvil con logo y botón cerrar (solo la cruz sin fondo) */
  .nav__drawer-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .nav__drawer-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
  }
  .nav__drawer-close {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--navy);
    padding: 6px;
    margin: -6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: color .2s, transform .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__drawer-close:hover {
    color: var(--orange-d);
    transform: scale(1.1);
  }
  .nav__drawer-close svg {
    display: block;
    width: 28px;
    height: 28px;
  }

  .nav__links a:not(.btn) {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
  }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn {
    margin-top: 24px;
    justify-content: center;
    width: 100%;
  }
  .hero { padding: 36px 0 0; }
  .hero__in, .about__in, .band, .env__head, .contact__in { grid-template-columns: 1fr; gap: 32px; }
  .hero__copy { padding-bottom: 24px; }
  .hero__media { order: 0; }
  .hero__media--saas { min-height: 420px; margin-top: 20px; margin-bottom: 0; }
  .hero__tech-person { max-width: 330px; }
  .hero__tech-aura { width: 340px; height: 340px; }
  .dash-card { width: 190px; padding: 12px 14px 10px; }
  .dash-card__val { font-size: 1.35rem; margin-bottom: 6px; }
  .dash-card--1 { right: 0; top: 0; }
  .dash-card--2 { left: 0; top: 130px; bottom: auto; }
  .dash-card--3 { right: 0; bottom: 16px; display: block; }
  .marquee { margin-top: -1px; }
  .hero__img { aspect-ratio: 4/3; }
  .hero__badge { padding: 10px 14px; border-radius: 14px; }
  .hero__badge strong { font-size: 13px; }
  .hero__badge span { font-size: 11px; }
  .hero__badge .ic { width: 22px; height: 22px; }
  .hero__badge--1 { left: 10px; bottom: 10px; }
  .hero__badge--2 { right: 10px; top: 10px; }
  .hero__badge--3 { display: none; }
  .hero__media::before { inset: -10px -10px 10px 10px; }
  .hero__wire { display: none; }
  .band--rev .band__media { order: 0; }
  .band { margin-bottom: 44px; }
  .section { padding: 48px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .electric__feature img { height: 280px; object-position: center 10%; border-radius: 20px 20px 0 0; }
  .electric__feature-card { position: static; max-width: none; border-radius: 0 0 20px 20px; box-shadow: none; }
  .electric__strip { grid-template-columns: 1fr 1fr; }
    .equip-item,
  .equip-item--rev {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 20px;
  }
  .equip-item--rev .equip-item__media {
    order: 0;
  }
  .equip-item--rev .equip-item__content {
    order: 0;
  }
  .equip-item__media {
    min-height: 280px;
    max-height: 360px;
  }
  .supply__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .tile--wide { grid-column: span 2; }
  .tile--tall { grid-row: span 1; }
  .mat__head { flex-direction: column; align-items: flex-start; }
  .comp__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav__in { height: 68px; }
  .nav__logo img { height: 42px; }
  .hero__media--saas { min-height: 430px; margin-bottom: 0; }
  .hero__tech-person { max-width: 270px; }
  .dash-card { width: 155px; padding: 10px 12px 8px; border-radius: 14px; }
  .dash-card__label { font-size: 11px; }
  .dash-card__pill { font-size: 10px; padding: 2px 5px; }
  .dash-card__val { font-size: 1.2rem; margin-bottom: 4px; }
  .dash-card__foot { display: none; }
  .dash-card--1 { right: -4px; top: -6px; }
  .dash-card--2 { left: -4px; top: 115px; bottom: auto; }
  .dash-card--3 { right: -4px; bottom: 14px; display: block; }
  .chart-donut { width: 36px; height: 36px; }
  .dash-card__legend { font-size: 10px; gap: 2px; }
  .marquee { margin-top: -1px; }
  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  .hero__facts li {
    padding: 0 4px 0 0;
    border-left: 0;
    border-bottom: 0;
    display: block;
  }
  .hero__facts li + li {
    padding-left: 8px;
    border-left: 1px solid var(--line);
    border-bottom: 0;
  }
  .hero__facts strong {
    font-size: 1.22rem;
    min-width: 0;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(10, 54, 103, 0.18), 0 2px 6px rgba(10, 54, 103, 0.08);
  }
  .hero__facts li > span {
    font-size: 11px;
    line-height: 1.25;
    margin-top: 4px;
    display: block;
    text-shadow: 0 1px 2px rgba(10, 54, 103, 0.10);
  }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .svc-grid, .comp__grid, .env__grid, .electric__strip { grid-template-columns: 1fr; }
  .env { padding: 20px; border-radius: 20px; }
  
  
  
  .tabs { width: 100%; }
  .tabs button { flex: 1; }
  .supply__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .tile--wide { grid-column: auto; grid-row: span 1; }
  .tile__quad { grid-template-columns: 1fr 1fr; }
  .mat__grid { grid-template-columns: repeat(2, 1fr); }
  .mini-cards { grid-template-columns: 1fr; }
  .mini-cards div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
  .mini-cards img { margin: 0; }
  .band__media--duo img:last-child { transform: none; }
  .fab__in { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; justify-content: center; }
  .about__in { gap: 32px; }
  .about__media { padding-bottom: 48px; }
  .about__stamp { width: 140px; padding: 14px 16px; left: 0; top: -16px; }
  .about__stamp .count { font-size: 2.3rem; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .credits ul { columns: 1; }

  /* Banner eyebrow en una sola línea en móvil */
  .eyebrow {
    font-size: clamp(9.5px, 2.75vw, 12px) !important;
    letter-spacing: .02em !important;
    gap: 6px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    display: inline-flex !important;
  }
  .eyebrow .dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
  }

  /* Widget de WhatsApp superpuesto en móvil sin deformar el ancho de pantalla */
  .wa-widget {
    bottom: 20px !important;
    right: 20px !important;
  }
  .wa-popup {
    bottom: 74px !important;
    right: 16px !important;
    left: auto !important;
    width: calc(100vw - 32px) !important;
    max-width: 340px !important;
    box-shadow: 0 16px 48px rgba(10, 54, 103, 0.35) !important;
    z-index: 10001 !important;
  }
}

/* ---------- partículas interconectadas (overlay sutil) ---------- */
.fx-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero__in { z-index: 1; }

/* ---------- animaciones adicionales ---------- */
/* Título del hero palabra por palabra */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .wi { display: inline-block; }
.js .hero__title.is-split .wi { transform: translateY(105%); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.js .hero__title.is-split.is-in .wi { transform: none; opacity: 1; }

/* Variantes de aparición */
.js .reveal[data-anim="left"] { transform: translateX(-36px); }
.js .reveal[data-anim="right"] { transform: translateX(36px); }
.js .reveal[data-anim="zoom"] { transform: scale(.94); }
.js .reveal[data-anim="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round 22px); transition: clip-path 1.2s var(--ease); }
.js .reveal[data-anim].is-in { transform: none; }
.js .reveal[data-anim="clip"].is-in { clip-path: inset(0 0 0 0 round 0); }

/* Línea del kicker que crece */
.js .kicker.reveal::before { width: 0; transition: width .8s .25s var(--ease); }
.js .kicker.reveal.is-in::before { width: 22px; }

/* Brillo al pasar sobre los botones */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); z-index: -1; transition: left .7s var(--ease); }
.btn:hover::before { left: 130%; }

/* Inclinación 3D de tarjetas (la aplica el JS) */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt.is-tilting { transition: transform .12s linear, box-shadow .35s; }

/* Parallax */
[data-parallax] { will-change: transform; }

/* Íconos de servicio con giro sutil */
.svc:hover .ic { transform: rotate(-8deg) scale(1.06); }
.svc .ic { transition: background .3s, color .3s, transform .4s var(--ease); }

/* Imágenes de materiales flotan al pasar el cursor */
.mat__grid img { transition: transform .5s var(--ease); }
.mat__grid li:hover img { transform: translateY(-4px) scale(1.04); }

/* Pestañas: indicador deslizante */
.tabs { position: relative; }
.tabs button { position: relative; z-index: 1; }
.tabs__ind { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--navy); transition: transform .45s var(--ease), width .45s var(--ease); z-index: 0; }
.tabs.has-ind button[aria-selected="true"] { background: transparent; }
.tx__panel:not([hidden]) .tx-card { animation: cardIn .6s var(--ease) backwards; }
.tx__panel:not([hidden]) .tx-card:nth-child(2) { animation-delay: .07s; }
.tx__panel:not([hidden]) .tx-card:nth-child(3) { animation-delay: .14s; }
.tx__panel:not([hidden]) .tx-card:nth-child(4) { animation-delay: .21s; }
.tx__panel:not([hidden]) .tx-card:nth-child(n+5) { animation-delay: .28s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--orange), #ffc062); transform-origin: left; transform: scaleX(0); z-index: 60; }

/* Botón flotante WhatsApp */
.btn-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 99;
  transition: transform .25s var(--ease), box-shadow .25s;
  text-decoration: none;
}
.btn-whatsapp:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}
.btn-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width: 1200px) {
  .tx__panel { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tx-card__media { height: clamp(230px, 30vw, 300px); }
}
@media (max-width: 640px) {
  .tx__panel { grid-template-columns: 1fr; gap: 16px; }
  .tx-card__media { height: clamp(230px, 68vw, 320px); }
}

/* ---------- Banner y contenido de páginas legales / secundarias ---------- */
.page-banner.hero {
  position: relative;
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%) !important;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-banner.hero .wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.page-banner__in {
  position: relative;
  z-index: 2;
  text-align: left;
}
.page-banner__eyebrow {
  margin-bottom: 14px;
}
.page-banner__title {
  margin: 0;
  font: 700 clamp(2.1rem, 3.8vw, 2.9rem)/1.15 var(--f-head);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.legal-content {
  background: var(--white);
  padding: 56px 0 96px;
}
.legal-content__in {
  /* hereda .wrap: width: min(1200px, 100% - 40px); margin-inline: auto; */
}
.legal-article {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.legal-article h2 {
  font: 600 clamp(1.25rem, 2.2vw, 1.55rem)/1.3 var(--f-head);
  color: var(--navy);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.legal-article h2:first-of-type {
  margin-top: 24px;
}
.legal-article p,
.legal-article li {
  color: #334155;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 16px;
}
.legal-article ul {
  margin: 12px 0 24px 28px;
  padding: 0;
}
.legal-article li {
  margin-bottom: 10px;
}
.legal-article strong,
.legal-article b {
  color: var(--navy);
  font-weight: 600;
}
.legal-article a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  transition: color .2s;
}
.legal-article a:hover {
  color: var(--orange-d);
}

.cookie-ctrl-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 28px;
  background: var(--sky-2);
  border-left: 4px solid var(--navy);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  margin: 0 0 36px;
}
.cookie-ctrl-bar__title {
  display: block;
  font: 600 15.5px var(--f-head);
  color: var(--navy);
  margin-bottom: 4px;
}
.cookie-ctrl-bar__desc {
  font-size: 14px;
  color: #475569;
}

/* ==========================================================================
   SECCIÓN PARTNER INTERNACIONAL - VPF INVESTMENTS (ESTILOS UNIFICADOS)
   ========================================================================== */
.partner-sec {
  background: #F8FAFC;
  padding-top: 56px;
  padding-bottom: 72px;
}

/* Banner de la Alianza con VPF Investments */
.partner-hero-banner {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 4px 16px rgba(10, 54, 103, 0.04);
  margin-bottom: 32px;
  transition: box-shadow .25s ease;
}
.partner-hero-banner:hover {
  box-shadow: 0 4px 16px rgba(10, 54, 103, 0.06);
}

.partner-hero-banner__top {
  display: flex;
  align-items: center;
  gap: 36px;
}

.partner-hero-banner__brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-hero-logo {
  width: 145px;
  height: auto;
  aspect-ratio: 145 / 135;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(10, 54, 103, 0.08));
  display: block;
}

.partner-hero-banner__copy {
  flex: 1;
}

.partner-hero-banner__desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 18px;
}
.partner-hero-banner__desc strong {
  color: var(--navy);
  font-weight: 700;
}

.partner-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
}

.partner-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.partner-feat-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--navy);
  stroke: var(--navy);
  stroke-width: 2;
  fill: none;
  background: transparent;
}

/* Botón Solicitar Información dentro del banner debajo de las características */
.partner-hero-action {
  margin-top: 24px;
  display: flex;
  align-items: center;
}
.partner-hero-action .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Carrusel de Logos Integrado al final del Banner */
.partner-hero-marquee {
  border-top: 1px solid #F1F5F9;
  padding-top: 22px;
  margin-top: 26px;
}

.partner-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partner-marquee__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: partnerMarqueeScroll 38s linear infinite;
}

.partner-marquee:hover .partner-marquee__track {
  animation-play-state: paused;
}

@keyframes partnerMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 48px;
  padding: 4px 12px;
}

.partner-marquee__item img {
  height: 36px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.88;
  filter: grayscale(15%);
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}

.partner-marquee__item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Sección de 5 Cards Fijas (Sin carrusel, sin flechas) */
.partner-slider-wrap {
  margin-top: 10px;
  margin-bottom: 12px;
}

.partner-slider-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.partner-slider-title {
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.partner-slider-desc {
  font-size: 0.92rem;
  color: #64748B;
  margin: 0;
}

.partner-slider-action {
  display: flex;
  align-items: center;
}

.partner-slider-action .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--f-head);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: all .25s ease;
  cursor: pointer;
  text-decoration: none;
}

.partner-slider-action .btn:hover {
  background: var(--navy);
  color: #FFFFFF;
}

.partner-slider-action .btn .ic {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform .25s ease;
}

.partner-slider-action .btn:hover .ic {
  transform: translateX(4px);
}

/* Grillas de productos: Catálogo e Internacional */
.partner-cards-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  padding: 4px 0 10px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .partner-cards-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .partner-cards-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

/* En tablets y móviles (<= 768px): estrictamente de dos en dos (50% y 50%) */
@media (max-width: 768px) {
  .partner-cards-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .partner-card,
  .catalog-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .partner-card__body {
    padding: 12px 10px 14px;
  }

  .partner-card__brand-pill {
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .partner-card__category {
    font-size: 0.68rem;
    margin-bottom: 4px;
  }

  .partner-card__name {
    font-size: 0.88rem;
    line-height: 1.3;
    min-height: 2.6em;
  }

  .catalog-card__action {
    padding-top: 10px;
  }

  .catalog-card__btn {
    font-size: 0.78rem;
    padding: 7px 10px;
    gap: 4px;
  }
}

/* En móviles pequeños (<= 480px): estrictamente 2 columnas de 50% y 50% sin espacio en blanco */
@media (max-width: 480px) {
  .partner-cards-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .partner-card,
  .catalog-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 10px;
  }

  .partner-card__body {
    padding: 10px 8px 12px;
  }

  .partner-card__brand-pill {
    top: 6px;
    left: 6px;
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .partner-card__category {
    font-size: 0.64rem;
    margin-bottom: 3px;
  }

  .partner-card__name {
    font-size: 0.8rem;
    line-height: 1.25;
    min-height: 2.5em;
  }

  .catalog-card__action {
    padding-top: 8px;
  }

  .catalog-card__btn {
    font-size: 0.72rem;
    padding: 6px 6px;
    border-radius: 6px;
    gap: 3px;
  }

  .catalog-card__btn .ic {
    width: 12px;
    height: 12px;
  }
}

/* Card individual - Sin efecto hover (estático y limpio) */
.partner-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(10, 54, 103, 0.04);
}

/* Deshabilitados todos los efectos hover en las cards */
.partner-card:hover {
  /* Sin transform, sin cambio de borde, sin cambio de sombra */
}

.partner-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 100%;
  overflow: hidden;
  background: #F1F5F9;
}

.partner-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sin zoom en la imagen al hacer hover */
.partner-card:hover .partner-card__media img {
  /* Sin escala */
}

.partner-card__brand-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(10, 54, 103, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.partner-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.partner-card__category {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 5px;
}

.partner-card__name {
  font-family: var(--f-head);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
}

/* MODAL POPUP */
.partner-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.partner-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.partner-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 54, 103, 0.65);
  backdrop-filter: blur(6px);
}

.partner-modal__dialog {
  position: relative;
  z-index: 10;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 36px;
  box-shadow: 0 24px 60px rgba(10, 54, 103, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-modal.is-open .partner-modal__dialog {
  transform: translateY(0) scale(1);
}

.partner-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.partner-modal__pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: rgba(10, 54, 103, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.partner-modal__title {
  font-family: var(--f-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.partner-modal__subtitle {
  font-size: 0.88rem;
  color: #64748B;
  margin: 0;
}

.partner-modal__close {
  background: #F1F5F9;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748B;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}

.partner-modal__close:hover {
  background: #E2E8F0;
  color: var(--navy);
}

/* Formulario */
.partner-form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.partner-form__field {
  margin-bottom: 18px;
}

.partner-form__label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.partner-form__label .req {
  color: #EF4444;
}

.partner-form__input,
.partner-form__select,
.partner-form__textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1E293B;
  background: #FFFFFF;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.partner-form__input:focus,
.partner-form__select:focus,
.partner-form__textarea:focus {
  outline: none;
  border-color: #0A3667;
  box-shadow: 0 0 0 3px rgba(10, 54, 103, 0.12);
}

.partner-form__textarea {
  resize: vertical;
  min-height: 90px;
}

/* Pills de selección múltiple de marcas */
.partner-brands-select-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.brand-pill-check {
  cursor: pointer;
  user-select: none;
}

.brand-pill-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brand-pill-check span {
  display: inline-block;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  transition: all .2s ease;
}

.brand-pill-check input:checked + span {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(10, 54, 103, 0.25);
}

.brand-pill-check:hover span {
  border-color: #94A3B8;
}

.partner-form__legal {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 20px;
}
.partner-form__legal a {
  color: var(--navy);
  text-decoration: underline;
}

.partner-form__actions {
  display: flex;
  justify-content: flex-end;
}

.partner-form__submit {
  min-width: 200px;
}

.partner-form__alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.partner-form__alert--success {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}
.partner-form__alert--error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Responsive */
@media (max-width: 991px) {
  .partner-hero-banner__top {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    gap: 18px;
  }
  .partner-hero-banner__brand {
    align-items: flex-start;
    text-align: left;
    width: auto;
  }
  .partner-hero-logo {
    margin: 0;
    align-self: flex-start;
  }
  .partner-hero-banner__copy {
    text-align: left;
    width: 100%;
  }
  .partner-hero-banner__desc {
    text-align: left;
  }
  .partner-hero-features {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }
  .partner-hero-action {
    justify-content: flex-start;
  }
  .partner-hero-banner {
    padding: 24px;
  }
  .partner-slider-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .partner-slider-action {
    width: 100%;
  }
  .partner-slider-action .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .partner-hero-banner {
    padding: 20px 16px;
  }
  .partner-hero-banner__top {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    gap: 16px;
  }
  .partner-hero-banner__brand {
    align-items: flex-start;
    text-align: left;
    width: auto;
  }
  .partner-hero-logo {
    margin: 0;
    width: 115px;
    align-self: flex-start;
  }
  .partner-hero-banner__copy {
    text-align: left;
    width: 100%;
  }
  .partner-hero-banner__desc {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .partner-form__row--two {
    grid-template-columns: 1fr;
  }
  .partner-modal__dialog {
    padding: 24px 20px;
  }
  .partner-hero-features {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .partner-hero-action {
    justify-content: flex-start;
  }
  .partner-hero-action .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   PÁGINA CATÁLOGO DE PRODUCTOS INTERNACIONALES
   ========================================================================== */

.page-banner--catalog {
  height: auto !important;
  min-height: 330px !important;
  max-height: none !important;
  padding: 56px 0 !important;
}

.page-banner--catalog .page-banner__desc {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #334155;
  margin-top: 10px;
  margin-bottom: 22px;
  max-width: 640px;
}

.page-banner--catalog .page-banner__action {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalog-section {
  background: #F8FAFC;
  padding: 36px 0 80px;
}

/* Toolbar de Filtros y Búsqueda */
.catalog-toolbar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(10, 54, 103, 0.04);
  margin-bottom: 16px;
}

.catalog-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.catalog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: #64748B;
  stroke-width: 2;
  fill: none;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1E293B;
  background: #F8FAFC;
  transition: all .2s ease;
}

.catalog-search-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: #0A3667;
  box-shadow: 0 0 0 3px rgba(10, 54, 103, 0.12);
}

.catalog-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #94A3B8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.catalog-search-clear:hover {
  color: #0A3667;
}

/* Filtros Desktop */
.catalog-filters-desktop {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.catalog-filter-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-filter-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.catalog-select {
  padding: 9px 34px 9px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A3667' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
  transition: all .2s ease;
}

.catalog-select:focus {
  outline: none;
  border-color: #0A3667;
  box-shadow: 0 0 0 3px rgba(10, 54, 103, 0.12);
}

.catalog-reset-btn {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Disparador móvil de filtros */
.catalog-mobile-trigger-wrap {
  display: none;
}

.catalog-mobile-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 8px;
  font-family: var(--f-head);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.catalog-mobile-filter-btn .ic {
  width: 17px;
  height: 17px;
}
.catalog-mobile-filter-btn:hover {
  opacity: 0.95;
}

.catalog-filter-badge {
  background: #10B981;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Barra de metadatos / contador */
.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.catalog-counter {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748B;
  margin: 0;
}

/* Grilla de productos (definida junto a .partner-cards-grid) */
.catalog-grid {
  width: 100%;
}

/* Card del catálogo con botón inferior */
.catalog-card {
  display: flex;
  flex-direction: column;
}

.catalog-card__action {
  margin-top: auto;
  padding-top: 14px;
}

.catalog-card__btn {
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  border-color: #CBD5E1;
  color: var(--navy);
  background: #F8FAFC;
  cursor: pointer;
  transition: all .2s ease;
}

.catalog-card__btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.catalog-card__btn .ic {
  width: 15px;
  height: 15px;
}

/* Botón Cargar Más Productos */
.catalog-load-more {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.catalog-load-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(10, 54, 103, 0.05);
  cursor: pointer;
  transition: all .25s ease;
}

.catalog-load-more__btn:hover {
  background: var(--navy);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 54, 103, 0.12);
}

.catalog-load-more__btn .ic {
  width: 18px;
  height: 18px;
}

/* Estado Vacío */
.catalog-empty {
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  margin: 16px 0 36px;
  box-shadow: 0 4px 14px rgba(10, 54, 103, 0.04);
}

.catalog-empty__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  color: #94A3B8;
}

.catalog-empty__icon svg {
  width: 100%;
  height: 100%;
}

.catalog-empty__title {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.catalog-empty__desc {
  max-width: 520px;
  margin: 0 auto 20px;
  color: #64748B;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* DRAWER SLIDER MÓVIL (DESLIZANTE DESDE LA IZQUIERDA IGUAL AL MENÚ MÓVIL) */
.catalog-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility .3s ease;
}

.catalog-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.catalog-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 54, 103, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}

.catalog-drawer.is-open .catalog-drawer__backdrop {
  opacity: 1;
}

.catalog-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #FFFFFF;
  box-shadow: 10px 0 30px rgba(10, 54, 103, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.catalog-drawer.is-open .catalog-drawer__panel {
  transform: translateX(0);
}

.catalog-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #F1F5F9;
}

.catalog-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-drawer__title-wrap .ic {
  width: 20px;
  height: 20px;
  stroke: var(--navy);
}

.catalog-drawer__title {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.catalog-drawer__close {
  background: #F1F5F9;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748B;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.catalog-drawer__close:hover {
  background: #E2E8F0;
  color: var(--navy);
}

.catalog-drawer__body {
  padding: 24px 22px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.catalog-drawer__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.catalog-drawer__select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  font-size: 0.92rem;
}

.catalog-drawer__footer {
  padding: 18px 22px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* RESPONSIVE CATÁLOGO */
@media (max-width: 991px) {
  .catalog-filters-desktop {
    display: none;
  }
  .catalog-mobile-trigger-wrap {
    display: block;
  }
  .catalog-toolbar {
    padding: 14px 16px;
  }
}

@media (max-width: 768px) {
  .page-banner--catalog {
    min-height: 290px !important;
    padding: 40px 0 !important;
  }
  .page-banner--catalog .page-banner__title {
    font-size: 1.85rem;
  }
  .page-banner--catalog .page-banner__desc {
    font-size: 0.95rem;
  }
  .catalog-section {
    padding: 24px 0 60px;
  }
}


/* HEADER STICKY EN MÓVIL Y DRAWER FIJO */
@media (max-width: 991px) {
  .nav {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  .nav.is-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav.is-open .nav__links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(330px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    z-index: 99999 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
  }

  .nav.is-open .nav__overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99990 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}


/* MODAL PARTNER VPF - MÁXIMA PRIORIDAD Z-INDEX Y POINTER-EVENTS */
.partner-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .25s ease, visibility .25s ease;
}

.partner-modal.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.partner-modal__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(10, 54, 103, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.partner-modal__dialog {
  position: relative !important;
  z-index: 1000000 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 18px !important;
  max-width: 680px !important;
  width: 100% !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  overflow-y: auto !important;
  padding: 32px 36px !important;
  box-shadow: 0 24px 60px rgba(10, 54, 103, 0.25) !important;
}
