/* =====================================================================
   Polgroup — hoja de estilos única
   Réplica en código de polgroup.com.ec (WordPress + Elementor, jul. 2026).
   Los valores (tamaños, colores, espaciados) salen de los widgets y del
   CSS de Elementor de la web original.
   ===================================================================== */

/* Registra --start como número para que el ángulo del brillo se interpole */
@property --start {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --bg: #000000;
  --card: #0b0b0f;
  --card-hover: #101014;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #ffffff;
  --gray: #8f8f8f;
  --gray-soft: #b5b5b5;
  --gray-muted: #b8b8b8;
  --accent: #7546C7;
  --accent-hover: #452A75;
  --accent-text: #A78BFA;

  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Bai Jamjuree', 'Poppins', system-ui, sans-serif;

  --wrap: 90vw;

  /* Curvas tipo Apple: la entrada desacelera largo, la salida acelera corta */
  --ease-in: cubic-bezier(.28, .11, .32, 1);
  --ease-out: cubic-bezier(.4, 0, .6, 1);

  /* Brillo de las tarjetas: morado de marca con derivas frías */
  --glow-gradient: conic-gradient(from 180deg at 50% 70%,
      #ffffff 0deg, #7546C7 72deg, #c084fc 144deg, #4d7cff 216deg, #9333ea 288deg, #ffffff 360deg);
}

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

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
/* destinos de "Saltar al contenido" y anclas: reciben el foco sin dibujar un marco enorme */
[tabindex="-1"]:focus-visible { outline: none; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Titulares de sección (en Elementor eran "heading" con Bai Jamjuree 32/600) */
.title-lg {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  color: var(--text);
}

.lead {
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
}

/* ---------- Cabecera ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background-color: transparent;
  transform: translateY(0);
  opacity: 1;
  transition:
    transform .72s var(--ease-in),
    opacity .72s var(--ease-in),
    background-color .35s ease;
  will-change: transform, opacity;
}

/* Al subir el scroll reaparece con fondo negro */
.site-header.is-solid { background-color: #000000; }

/* Al bajar el scroll se oculta */
.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform .42s var(--ease-out),
    opacity .42s var(--ease-out),
    background-color .35s ease;
}

.site-header__inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-header__logo {
  flex-shrink: 0;
  width: 150px;
  display: block;
  line-height: 0;
  color: #ffffff;
}
.site-header__logo svg { width: 100%; height: auto; }

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-left: auto;
}

.site-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1.75rem 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: color .25s ease;
}
.site-header__link:hover,
.site-header__link:focus-visible { color: var(--gray); }

.site-header__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition: transform .3s ease, opacity .3s ease;
}
.site-header.is-open .site-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .site-header__toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .site-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .site-header__nav { gap: 2rem; }
}

@media (max-width: 900px) {
  .site-header__inner { padding: .9rem 0; flex-wrap: wrap; }
  .site-header__logo { width: 140px; }
  .site-header__toggle { display: flex; }
  .site-header.is-open { background-color: #000000; }

  .site-header__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-left: 0;
    padding: .5rem 0 1rem;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .site-header.is-open .site-header__nav { display: flex; }

  .site-header__link {
    width: 100%;
    padding: .9rem .25rem;
    border-bottom: 1px solid var(--line);
  }
}

/* Sin JavaScript: la cabecera no puede volverse sólida al bajar, así que se queda arriba
   (no flota sobre el texto) y en móvil el menú se muestra abierto porque la hamburguesa no funciona */
html:not(.js) .site-header { position: absolute; }
@media (max-width: 900px) {
  html:not(.js) .site-header__toggle { display: none; }
  html:not(.js) .site-header__nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; padding: .25rem 0 0; }
  html:not(.js) .site-header__link { width: auto; padding: .5rem 0; border-bottom: 0; }
}

/* ---------- Hero con video de fondo ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 75vh;
  overflow: hidden;
  background: #000;
}
.hero--short { min-height: 70vh; }
/* En Contáctanos el hero arranca debajo de la barra, que queda sobre negro */
.hero--offset { margin-top: 60px; }

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  width: var(--wrap);
  margin-inline: auto;
  padding-inline: 10px;
}

.hero__eyebrow {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.2;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
}

.hero__sub {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.3;
}

.hero--contact .hero__title {
  font-family: var(--font-body);
  font-size: 40px;
  line-height: 1.1;
}
.hero--contact .hero__sub {
  max-width: 28em;
  font-size: 18px;
  line-height: 1.1;
  color: var(--gray-muted);
}

@media (max-width: 767px) {
  .hero, .hero--short { min-height: 70vh; }
  .hero__title { font-size: 28px; }
  .hero--contact .hero__title { font-size: 34px; }
}

/* ---------- Home: intro centrada ---------- */

.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 315px;
}
.intro__inner {
  width: var(--wrap);
  padding-inline: 75px;
  text-align: center;
}
.intro__inner .lead { margin-top: 20px; }

@media (max-width: 767px) {
  .intro { padding-block: 3.5rem; min-height: 0; }
  .intro__inner { padding-inline: 10px; }
  .intro .title-lg { font-size: 26px; }
  .intro .lead { font-size: 16px; }
}

/* ---------- Banda de imagen a todo el ancho ---------- */

.band {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .band { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Marquesina de logos ---------- */

.logos-title {
  padding-top: 59px;
  text-align: center;
}

.logos {
  --size: 220px;
  --gap: 20px;
  --duration: 45s;
  --logo-cutout: var(--card);
  padding: 3rem 0;
  margin-bottom: 15px;
}

.marquee {
  display: flex;
  gap: var(--gap);
  padding: 34px 0; /* aire para que el desenfoque del brillo no se recorte */
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  /* va de izquierda a derecha */
  animation: marquee var(--duration) linear infinite reverse;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--gap))); }
}

@media (hover: hover) {
  .marquee:hover .marquee__group { animation-play-state: paused; }
}

.brand-card {
  --active: 0;
  --start: 0;
  --spread: 90;
  --blur: 20;
  position: relative;
  flex-shrink: 0;
  width: var(--size);
  aspect-ratio: 16 / 9;
  padding: 26px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.brand-card { color: #ffffff; text-decoration: none; }

.brand-card > svg,
.brand-card__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  color: #ffffff;
  fill: currentColor;
  object-fit: contain;
}

.brand-card__name {
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .logos { --size: 160px; --duration: 28s; padding: 2rem 0; }
  .brand-card { padding: 18px; }
  .brand-card__name { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__group { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Brillo de proximidad (tarjetas) ----------
   El borde se enciende cuando el cursor está a menos de 90 px de la tarjeta
   y el arco de luz gira siguiendo el ángulo del puntero (assets/js/site.js). */

.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 2px solid transparent;
  border-radius: inherit;
  background: var(--glow-gradient);
  background-attachment: fixed;
  -webkit-mask:
    linear-gradient(#0000, #0000),
    conic-gradient(from calc(((var(--start) + (var(--spread) * .25)) - (var(--spread) * .5)) * 1deg),
      transparent 0deg, white, transparent calc(var(--spread) * .5deg));
          mask:
    linear-gradient(#0000, #0000),
    conic-gradient(from calc(((var(--start) + (var(--spread) * .25)) - (var(--spread) * .5)) * 1deg),
      transparent 0deg, white, transparent calc(var(--spread) * .5deg));
  -webkit-mask-clip: padding-box, border-box;
          mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  filter: brightness(1.5);
  opacity: var(--active);
  transition: opacity .4s ease;
}

.glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  filter: blur(calc(var(--blur) * 1px));
}

.glows::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 10px solid transparent;
  border-radius: inherit;
  background: var(--glow-gradient);
  background-attachment: fixed;
  -webkit-mask:
    linear-gradient(#0000, #0000),
    conic-gradient(from calc((var(--start) - (var(--spread) * .5)) * 1deg),
      black 0deg, white, transparent calc(var(--spread) * 1deg));
          mask:
    linear-gradient(#0000, #0000),
    conic-gradient(from calc((var(--start) - (var(--spread) * .5)) * 1deg),
      black 0deg, white, transparent calc(var(--spread) * 1deg));
  -webkit-mask-clip: padding-box, border-box;
          mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  opacity: var(--active);
  transition: opacity .4s ease;
}

/* En táctil no hay cursor: borde tenue fijo */
@media (hover: none) {
  .brand-card { --active: .4; --start: 200; }
  .pillar, .op-card { --active: .35; --start: 200; }
}

/* ---------- Home: tres pilares ---------- */

.pillars { padding: 6rem 0; }

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pillar {
  --active: 0;
  --start: 0;
  --spread: 90;
  --blur: 22;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.5rem 2.25rem;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: background-color .35s ease, transform .35s var(--ease-in);
}

.pillar > *:not(.glows),
.op-card > *:not(.glows) { position: relative; z-index: 2; }

.pillar__label,
.op-card__eyebrow {
  margin-bottom: 1.75rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
}
.pillar__label span { color: var(--accent); }

.pillar__title {
  margin-bottom: 1.25rem;
  min-height: calc(2 * 1.2em);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.15rem + .9vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.pillar__body {
  margin-bottom: 2.5rem;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

.pillar__foot,
.op-card__foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
}

.pillar__arrow,
.op-card__arrow {
  display: inline-block;
  margin: 0 .35em;
  color: var(--accent);
  transition: transform .35s var(--ease-in);
}

@media (hover: hover) {
  .pillar:hover { background-color: var(--card-hover); transform: translateY(-4px); }
  .pillar:hover .pillar__arrow,
  .op-card:hover .op-card__arrow { transform: translateX(4px); }
}

@media (max-width: 1024px) {
  .pillars { padding: 4.5rem 0; }
  .pillars__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .pillar { padding: 2.25rem 1.75rem; }
  .pillar__title { min-height: 0; }
}

@media (max-width: 600px) {
  .pillars { padding: 3.5rem 0; }
  .pillar { padding: 2rem 1.5rem; border-radius: 16px; }
  .pillar__body { margin-bottom: 2rem; }
}

/* ---------- Home: texto + pieza gráfica ---------- */

/* A todo el ancho como en Elementor: el texto arranca a 85 px del borde y la
   pieza queda centrada en la mitad derecha. */
.split {
  padding-inline: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 500px;
}
.split__text { padding-inline: 75px; }
.split__text .lead { margin-top: 20px; }
.split__media { padding-inline: 75px; }
.split__media img {
  width: auto;
  height: 500px;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 1rem 3rem; }
  .split__text, .split__media { padding-inline: 10px; }
  .split__media img { height: auto; width: 100%; max-width: 420px; }
  .split .title-lg { font-size: 26px; }
  .split .lead { font-size: 16px; }
}

/* ---------- Nosotros ---------- */

.about-intro {
  padding-top: 50px;
}
.about-intro p {
  width: calc(var(--wrap) * .75);
  margin-inline: auto;
  padding-inline: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  text-align: center;
}

@media (max-width: 767px) {
  .about-intro { padding: 20px; }
  .about-intro p { width: auto; font-size: 18px; }
}

/* Cifras de la empresa */
.about-stats { padding-top: 70px; }

.about-stats__eyebrow {
  margin-bottom: 1.5rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat {
  --active: 0;
  --start: 0;
  --spread: 90;
  --blur: 20;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 190px;
  padding: 1.75rem 1.75rem 1.6rem;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.stat > *:not(.glows) { position: relative; z-index: 2; }
.stat { container-type: inline-size; }

.stat__num {
  display: flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-weight: 600;
  /* nunca más ancho que su tarjeta: +25.000 cabe en 320 px y entre 1025 y 1200 px */
  font-size: min(clamp(2.6rem, 1.6rem + 2.2vw, 3.9rem), 25cqi);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.stat__prefix { color: var(--accent-text); margin-right: .04em; }

/* El número final reserva su ancho; el que cuenta se dibuja encima (nada se mueve al contar) */
.count { display: inline-grid; }
.count > span { grid-area: 1 / 1; }
.count__ghost { visibility: hidden; }
.count__live { font-variant-numeric: tabular-nums; }

.stat__label {
  max-width: 22ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-soft);
}

@media (hover: none) { .stat { --active: .35; --start: 200; } }

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .about-stats { padding-top: 40px; }
  .stats { gap: 12px; }
  .stat { min-height: 160px; padding: 1.25rem; gap: 1rem; border-radius: 16px; }
  .stat__num { font-size: min(2.3rem, 25cqi); }
  .stat__label { font-size: 13.5px; }
}

.team { padding: 50px 0; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card__photo {
  position: relative;
  min-height: 55vh;
  overflow: hidden;
  background: #111;
}
.team-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card__name {
  padding-top: 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
}

.team-card__role {
  padding: 10px 0 20px;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team__grid { grid-template-columns: 1fr; }
  .team-card__photo { min-height: 0; aspect-ratio: 4 / 5; }
  .team-card__name { font-size: 1.6rem; }
}

.clients { padding: 50px 0 0; }
.clients .logos { margin-bottom: 0; }

/* Tres operaciones (tarjetas con barra de color arriba) */

.ops { padding: 6rem 0; }

.ops__inner {
  width: var(--wrap);
  max-width: 1360px;
  margin-inline: auto;
}

.ops__head {
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

.ops__eyebrow {
  margin-bottom: 1rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.ops__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.ops__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.op-card {
  --active: 0;
  --start: 0;
  --spread: 90;
  --blur: 20;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.5rem 2.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  /* La barra de acento va como fondo: el radio la recorta solo */
  background-color: var(--card);
  background-image: linear-gradient(var(--op-accent), var(--op-accent));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: top center;
  transition: background-color .3s ease, border-color .3s ease, transform .7s var(--ease-in), opacity .7s var(--ease-in);
}

@media (hover: hover) {
  .op-card:hover {
    background-color: #111116;
    border-color: var(--line-strong);
    transform: translateY(-4px);
  }
}

/* Un acento decorativo (barra y brillo) y otro legible (texto, AA sobre negro) */
.op-card--tech {
  --op-accent: #7546C7;
  --op-text: #A78BFA;
  --glow-gradient: conic-gradient(from 180deg at 50% 70%, #ffffff 0deg, #7546C7 72deg, #c084fc 144deg, #4d7cff 216deg, #9333ea 288deg, #ffffff 360deg);
}
.op-card--cobranzas {
  --op-accent: #4FD1E8;
  --op-text: #7DDDEF;
  --glow-gradient: conic-gradient(from 180deg at 50% 70%, #ffffff 0deg, #4FD1E8 72deg, #67e8f9 144deg, #3b82f6 216deg, #22d3ee 288deg, #ffffff 360deg);
}
.op-card--ventas {
  --op-accent: #F2A65A;
  --op-text: #F5BC82;
  --glow-gradient: conic-gradient(from 180deg at 50% 70%, #ffffff 0deg, #F2A65A 72deg, #fbbf24 144deg, #fb7185 216deg, #f97316 288deg, #ffffff 360deg);
}

.op-card__eyebrow { margin-bottom: 2rem; color: #9a9a9a; }
.op-card__eyebrow span { color: var(--op-text); }

.op-card__title {
  margin-bottom: .75rem;
  min-height: calc(2 * 1.2em);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + .85vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.op-card__tagline {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--op-text);
}

.op-card__desc {
  margin-bottom: 1.5rem;
  font-size: 15px;
  line-height: 1.75;
  color: #9a9a9a;
}

.op-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.25rem;
  border: 1px solid var(--op-text);
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  color: var(--op-text);
  touch-action: manipulation;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.op-card__cta svg { flex-shrink: 0; }
.op-card__cta:active { transform: scale(.985); }

@media (hover: hover) {
  .op-card__cta:hover { background-color: var(--op-text); color: #000000; }
}

.op-card__foot { margin-top: 1.5rem; padding-top: 1.25rem; }
.op-card__arrow { color: var(--op-text); }

@media (max-width: 1100px) {
  .ops { padding: 4.5rem 0; }
  .ops__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .op-card { padding: 2.25rem 1.75rem; }
  .op-card__title { min-height: 0; }
}

@media (max-width: 600px) {
  .ops { padding: 3.5rem 0; }
  .op-card { padding: 2rem 1.5rem; border-radius: 16px; }
}

/* ---------- Empresas ---------- */

.companies {
  --logo-cutout: #000000;
  padding: 5rem 0;
}

.companies__inner {
  width: var(--wrap);
  max-width: 1200px;
  margin-inline: auto;
}

.companies__intro {
  max-width: 640px;
  margin-bottom: 4.5rem;
}

.companies__title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.companies__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-soft);
}

.company {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.company:first-of-type { border-top: 0; }

.company--reverse .company__visual { order: 2; }
.company--reverse .company__content { order: 1; }

.company__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.company__logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  color: #ffffff;
  fill: currentColor;
}
.company__logo--tall { max-width: 220px; }

.company__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.company__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.company__eyebrow--tech { color: #38bdf8; }
.company__eyebrow--sales { color: #7ed957; }
.company__eyebrow--collections { color: #5b8def; }
.company__eyebrow--corp { color: #a78bfa; }

.company__name {
  margin-bottom: .5rem;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.company__headline {
  margin-bottom: 1rem;
  font-size: 17px;
  color: #e9e9e9;
}

.company__desc {
  max-width: 480px;
  margin-bottom: 1.4rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-soft);
}

.company__list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.company__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 14px;
  color: #dedede;
}
.company__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

@media (max-width: 900px) {
  .companies { padding: 3.5rem 0; }
  .company { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.6rem 0; }
  .company--reverse .company__visual,
  .company--reverse .company__content { order: initial; }
  .company__logo { max-width: 240px; margin: 0 auto; }
  .company__logo--tall { max-width: 170px; }
  .company__desc { max-width: none; }
}

@media (max-width: 560px) {
  .company__logo { max-width: 200px; }
  .company__logo--tall { max-width: 150px; }
}

/* ---------- Contáctanos ---------- */

.contact {
  width: var(--wrap);
  margin: 51px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.contact-form { padding-inline: 10px; }

.contact-form__field { margin-bottom: 15px; }

.contact-form__label {
  display: block;
  padding-bottom: 10px;
  font-size: 16px;
  line-height: 1;
}

.contact-form__input {
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  background-color: rgba(124, 124, 124, .26);
  border: 0;
  border-radius: 20px;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.contact-form__input::placeholder { color: rgba(255, 255, 255, .55); }
.contact-form__input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); background-color: rgba(124, 124, 124, .34); }
textarea.contact-form__input { resize: vertical; min-height: 94px; }
.contact-form__input[aria-invalid="true"] { box-shadow: 0 0 0 2px #f87171; }

.contact-form__error {
  min-height: 0;
  margin-top: 6px;
  font-size: 13px;
  color: #fca5a5;
}
.contact-form__error:empty { display: none; }

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

.contact-form__submit {
  width: 100%;
  min-height: 40px;
  padding: 10px 20px;
  background-color: var(--accent);
  border: 0;
  border-radius: 100px;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s ease;
}
.contact-form__submit:hover { background-color: var(--accent-hover); }
.contact-form__submit:disabled { opacity: .6; cursor: progress; }

.contact-form__status {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.contact-form__status:empty { display: none; }
.contact-form__status[data-state="ok"] { color: #86efac; }
.contact-form__status[data-state="error"] { color: #fca5a5; }
.contact-form__status a { color: inherit; }

.contact-map { padding-inline: 10px; display: flex; }
.contact-map__frame {
  display: block;
  width: 100%;
  min-height: 300px;
  height: 100%;
  border: 0;
}

.contact-info {
  width: var(--wrap);
  margin: 55px auto 35px;
  padding-inline: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-info__card {
  padding: 20px;
  background-color: rgba(92, 92, 92, .36);
  border: 1px solid #858585;
  border-radius: 20px;
}

.contact-info__label {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1;
  color: var(--gray-muted);
}

.contact-info__value {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.contact-info__value:hover { color: var(--gray-muted); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .contact-info { grid-template-columns: 1fr; }
}

/* ---------- Pie ---------- */

.site-footer {
  padding-top: 4.5rem;
  background-color: #000000;
  color: #ffffff;
}

.site-footer__inner {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.site-footer__logo {
  display: block;
  width: 190px;
  margin-bottom: 1.25rem;
  color: #ffffff;
}
.site-footer__logo svg { width: 100%; height: auto; }

.site-footer__tagline {
  max-width: 34ch;
  margin-bottom: 1.75rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.site-footer__social { display: flex; gap: .75rem; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #ffffff;
  transition: color .25s ease, border-color .25s ease;
}
.site-footer__social a:hover { color: var(--gray); border-color: rgba(255, 255, 255, .35); }

.site-footer__col { display: flex; flex-direction: column; }

.site-footer__title {
  margin-bottom: 1.25rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.site-footer__link {
  padding: .45rem 0;
  font-size: 15px;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  transition: color .25s ease;
}
.site-footer__link:hover { color: var(--gray); }

.site-footer__text {
  margin: .45rem 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
}

.site-footer__bottom {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.site-footer__inner--bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__copy { font-size: 13px; color: var(--gray); }

.site-footer__legal { display: flex; gap: 2rem; }
.site-footer__legal .site-footer__link { padding: 0; font-size: 13px; color: var(--gray); }
.site-footer__legal .site-footer__link:hover { color: #ffffff; }

@media (max-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .site-footer { padding-top: 3rem; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .site-footer__logo { width: 165px; }
  .site-footer__tagline { max-width: none; }
  .site-footer__bottom { margin-top: 2.5rem; }
  .site-footer__inner--bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__legal { flex-direction: column; gap: .5rem; }
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
}
.not-found .lead { margin: 20px 0 32px; color: var(--gray-muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  background: var(--accent);
  border-radius: 100px;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .25s ease;
}
.button:hover { background: var(--accent-hover); }

/* ---------- Entradas al hacer scroll ----------
   Solo se ocultan si el JS está activo (html.js); sin JS todo se ve. */

/* Los estados ocultos solo aplican antes de entrar (:not(.is-visible)), así no
   pisan el transform del hover de las tarjetas una vez visibles. */
:where(.js) [data-reveal] {
  transition: opacity .9s var(--ease-in), transform .9s var(--ease-in);
  transition-delay: var(--reveal-delay, 0ms);
}
:where(.js) [data-reveal]:not(.is-visible) { opacity: 0; }
:where(.js) [data-reveal="up"]:not(.is-visible) { transform: translateY(40px); }
:where(.js) [data-reveal="left"]:not(.is-visible) { transform: translateX(-60px); }
:where(.js) [data-reveal="right"]:not(.is-visible) { transform: translateX(60px); }
:where(.js) [data-reveal="rise"]:not(.is-visible) { transform: translateY(18px); }

/* Las tarjetas de operaciones conservan sus transiciones de hover */
:where(.js) .op-card[data-reveal] {
  transition:
    opacity .7s var(--ease-in),
    transform .7s var(--ease-in),
    background-color .3s ease,
    border-color .3s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header.is-hidden { transition-duration: .01ms; }
  :where(.js) [data-reveal],
  :where(.js) [data-reveal]:not(.is-visible) { opacity: 1; transform: none; transition: none; }
  .pillar, .pillar__arrow, .op-card, .op-card__arrow { transition-duration: .01ms; }
}

/* ---------- Botón flotante de WhatsApp (partials/footer.html) ---------- */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 250; /* por encima de la cabecera, por debajo de la pantalla de carga */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  animation: wa-in .5s 1.2s both cubic-bezier(.22, 1, .36, 1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float svg { flex: none; }
.wa-float__label { display: none; padding-right: 4px; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .55); }
.wa-float:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 901px) and (hover: hover) {
  .wa-float__label { display: inline; }
}
@media (max-width: 560px) {
  .wa-float { height: 52px; padding: 0 12px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
}
@keyframes wa-in { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
@media print { .wa-float { display: none; } }
