:root {
  --green: #00c853;
  --green-dark: #00913d;
  --green-soft: rgba(0, 200, 83, 0.16);
  --ink: #06130b;
  --ink-2: #0b1d12;
  --muted: #5d6c62;
  --line: rgba(6, 19, 11, 0.12);
  --paper: #f7fbf8;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(6, 19, 11, 0.16);
  --topbar-h: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Los anclajes (#id) quedan por debajo de la topbar y el header fijos */
  scroll-padding-top: calc(var(--topbar-h) + 84px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  height: var(--topbar-h);
  padding-inline: clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar-phone svg {
  width: 14px;
  height: 14px;
  fill: var(--green);
}

.topbar-phone:hover {
  color: var(--green);
}

.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(6, 19, 11, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 56px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
  color: var(--green);
}

.nav-cta {
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.mobile-nav {
  position: fixed;
  top: calc(78px + var(--topbar-h));
  left: 20px;
  right: 20px;
  z-index: 19;
  display: none;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--white);
  background: rgba(6, 19, 11, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 13px;
  border-radius: 6px;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--green-soft);
}

.mobile-nav.is-open {
  display: block;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--topbar-h));
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 19, 11, 0.92) 0%, rgba(6, 19, 11, 0.68) 42%, rgba(6, 19, 11, 0.2) 100%),
    radial-gradient(circle at 72% 20%, rgba(0, 200, 83, 0.34), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(720px, 100%);
  min-height: calc(100svh - var(--topbar-h));
  padding: 112px clamp(20px, 5vw, 72px) 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h1 span {
  color: var(--green);
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions,
.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 16px 36px rgba(0, 200, 83, 0.24);
}

.button-primary:hover {
  background: #25df70;
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 650px;
  margin: 28px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  color: var(--green);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.trusted {
  overflow: hidden;
  padding: 40px 0 56px;
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-heading {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto 36px;
}

.section-heading.compact {
  margin-bottom: 22px;
  text-align: center;
}

.section-heading h2,
.proof-copy h2,
.cta h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.heading-whatsapp-link {
  display: inline;
}

.heading-whatsapp-link:hover {
  color: var(--green-dark);
}

.trusted h2 {
  color: var(--white);
  font-size: clamp(1.55rem, 4vw, 2.6rem);
}

.logo-marquee {
  --logo-gap: clamp(2.4rem, 5vw, 4.8rem);
  position: relative;
  display: grid;
  gap: 0.9rem;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee-row {
  overflow: hidden;
}

.logo-marquee-inner {
  display: flex;
  width: max-content;
  animation: scroll-logos-left 42s linear infinite;
  will-change: transform;
}

.logo-marquee-row[data-direction="right"] .logo-marquee-inner {
  animation-name: scroll-logos-right;
}

.logo-marquee.is-js-controlled .logo-marquee-inner {
  animation: none;
}

.logo-track {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--logo-gap);
  min-width: max-content;
  padding-right: var(--logo-gap);
}

.logo-card {
  display: grid;
  place-items: center;
  flex: 0 0 138px;
  width: 138px;
  height: 66px;
  margin: 0;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.logo-card img {
  width: 100%;
  max-width: 100%;
  height: 34px;
  max-height: 34px;
  object-fit: contain;
}

@keyframes scroll-logos-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes scroll-logos-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translateX(0);
  }
}

.challenge,
.services,
.method,
.gallery,
.proof,
.cta {
  padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.challenge {
  background:
    linear-gradient(180deg, var(--paper), var(--white));
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.challenge-grid article,
.method-list article {
  padding: 28px;
  background: var(--white);
}

.challenge-grid span,
.method-list span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.challenge-grid h3,
.method-list h3,
.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.challenge-grid p,
.method-list p,
.service-card p,
.proof-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(6, 19, 11, 0.08);
}

.service-card > img,
.service-carousel {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-carousel {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.service-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 1800ms ease;
}

.service-carousel img.is-active {
  opacity: 1;
  transform: scale(1);
}

.service-carousel-dots {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  gap: 6px;
}

.service-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.service-carousel-dot.is-active {
  width: 20px;
  background: var(--green);
}

.service-card-content {
  padding: 24px;
}

.method {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 200, 83, 0.15), transparent 40%),
    var(--ink-2);
}

.method .section-heading h2 {
  color: var(--white);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.method-list article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.method-list p {
  color: rgba(255, 255, 255, 0.72);
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  background: var(--paper);
}

.proof-media > img,
.proof-carousel {
  width: 100%;
  max-height: 620px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.proof-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink);
}

.proof-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 1800ms ease;
}

.proof-carousel img.is-active {
  opacity: 1;
  transform: scale(1);
}

.proof-copy {
  max-width: 660px;
}

blockquote {
  margin: 34px 0 22px;
  padding-left: 22px;
  border-left: 4px solid var(--green);
  color: var(--ink);
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}

.testimonials {
  padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 16% 8%, rgba(0, 200, 83, 0.22), transparent 32%),
    linear-gradient(180deg, var(--ink), var(--ink-2));
}

.testimonials .section-heading h2 {
  color: var(--white);
}

.testimonial-carousel {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.testimonial-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.testimonial-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 calc((100% - 36px) / 3);
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(0, 200, 83, 0.14), rgba(255, 255, 255, 0.055) 44%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  scroll-snap-align: start;
}

.testimonial-card::before {
  content: "“";
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--green);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.06;
  text-align: center;
}

.testimonial-card p {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
}

.testimonial-card footer {
  display: grid;
  gap: 4px;
}

.testimonial-card strong {
  color: var(--white);
  font-size: 1rem;
}

.testimonial-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.carousel-controls {
  position: absolute;
  top: -88px;
  right: 0;
  display: flex;
  gap: 10px;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.carousel-button:hover {
  border-color: rgba(0, 200, 83, 0.5);
  color: var(--green);
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 28px;
  background: var(--green);
}

.video-testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 34px auto 0;
}

.video-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 16px 40px rgba(6, 19, 11, 0.12);
}

.video-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 220ms ease, opacity 220ms ease;
}

.video-card:hover img {
  transform: scale(1.04);
  opacity: 0.86;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 19, 11, 0.08), rgba(6, 19, 11, 0.78));
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 14px 36px rgba(0, 200, 83, 0.34);
  transform: translate(-50%, -50%);
}

.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--ink);
}

.video-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.video-copy strong {
  font-size: 1.2rem;
}

.video-copy span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.info,
.faq {
  padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
  background: var(--white);
}

.faq {
  background: var(--paper);
}

.info-content,
.faq-list {
  width: min(880px, 100%);
  margin: 0 auto;
}

.info-content h3 {
  margin: 40px 0 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
}

.info-content h3:first-child {
  margin-top: 0;
}

.info-content h4 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: -0.005em;
}

.info-content p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.info-content a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-content a:hover {
  color: var(--green);
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.info-list strong {
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-item + .faq-item {
  margin-top: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item p {
  margin: 0;
  padding: 4px 22px 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.cta {
  justify-content: space-between;
  gap: 28px;
  color: var(--white);
  background: var(--ink);
}

.cta > div {
  max-width: 860px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #020804;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.footer-brand img {
  width: 48px;
  flex: 0 0 auto;
}

.footer strong {
  display: block;
  color: var(--white);
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--green);
  font-weight: 800;
}

.footer-phone {
  grid-column: 2;
  justify-self: center;
  white-space: nowrap;
}

.footer-sitemap {
  grid-column: 3;
  justify-self: end;
  white-space: nowrap;
}

.service-card {
  color: inherit;
  cursor: pointer;
}

.service-card:hover {
  border-color: rgba(0, 200, 83, 0.42);
  transform: translateY(-3px);
}

.whatsapp-float.whatsapp-float-btn {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 30;
  display: grid;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.34), 0 10px 26px rgba(6, 19, 11, 0.18);
  appearance: none;
  box-sizing: border-box;
  line-height: 1;
  transform: none;
  transition: background-color 180ms ease, filter 180ms ease;
}

.whatsapp-float.whatsapp-float-btn:hover {
  background: #20c75a;
  filter: brightness(1.03);
  transform: none;
}

.whatsapp-float.whatsapp-float-btn:active {
  transform: none;
}

.whatsapp-float svg {
  display: block;
  width: 29px;
  height: 29px;
  fill: #fff;
  flex: 0 0 auto;
  pointer-events: none;
}

.whatsapp-float > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
}

.video-modal.is-open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 4, 0.82);
  backdrop-filter: blur(10px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.video-modal-close {
  position: absolute;
  top: -54px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.video-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Galeria BXQ: fotos y video reales de las dinamicas, agrupados por servicio */
.gallery {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 200, 83, 0.15), transparent 40%),
    var(--ink-2);
}

.gallery .section-heading h2 {
  color: var(--white);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(1180px, 100%);
  margin: 0 auto 32px;
}

.gallery-tab {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-tab[aria-selected="true"] {
  color: var(--ink);
  border-color: transparent;
  background: var(--green);
  box-shadow: 0 16px 36px rgba(0, 200, 83, 0.24);
}

.gallery-group {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: rgba(0, 200, 83, 0.42);
  transform: translateY(-3px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-video {
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(150deg, var(--green-dark), var(--ink-2));
}

.gallery-video-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.gallery-video-thumb svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 4, 0.82);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.gallery-lightbox-close {
  position: absolute;
  top: -54px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 8, 4, 0.55);
  cursor: pointer;
}

.gallery-lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.gallery-lightbox-prev {
  left: -22px;
}

.gallery-lightbox-next {
  right: -22px;
}

.gallery-lightbox-media {
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-media img,
.gallery-lightbox-media video {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

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

  .menu-toggle {
    display: block;
  }

  .challenge-grid,
  .service-grid,
  .method-list,
  .proof {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .hero-content {
    width: min(700px, 100%);
  }

  .gallery-lightbox-prev {
    left: 0;
  }

  .gallery-lightbox-next {
    right: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 20px;
  }

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

  .brand img {
    width: 48px;
  }

  .hero {
    height: 790px;
    min-height: 790px;
  }

  .hero-video {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6, 19, 11, 0.68) 0%, rgba(6, 19, 11, 0.72) 42%, rgba(6, 19, 11, 0.9) 100%),
      radial-gradient(circle at 72% 24%, rgba(0, 200, 83, 0.26), transparent 38%);
  }

  .hero-content {
    justify-content: flex-start;
    min-height: 790px;
    padding-top: 116px;
    padding-bottom: 34px;
  }

  h1 {
    max-width: 370px;
    margin-bottom: 14px;
    font-size: clamp(2.78rem, 11.8vw, 3.55rem);
    line-height: 0.97;
  }

  .hero-copy {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.42;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .button {
    min-height: 56px;
    padding: 14px 26px;
  }

  .hero-actions .button-primary {
    min-width: min(360px, 100%);
  }

  .hero-actions .button-secondary {
    order: -1;
    min-width: 230px;
    color: var(--ink);
    background: var(--white);
  }

  .hero-actions {
    margin-bottom: 0;
  }

  .hero-stats,
  .challenge-grid,
  .service-grid,
  .method-list,
  .proof {
    grid-template-columns: 1fr;
  }

  .carousel-controls {
    position: static;
    justify-content: flex-end;
    margin: -14px 0 18px;
  }

  .testimonial-card {
    flex-basis: 100%;
  }

  .video-testimonials {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    max-width: none;
    margin-top: 76px;
    padding-top: 0;
  }

  .hero-stats div {
    min-height: 104px;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .hero-stats div:last-child {
    border-right: 0;
  }

  .hero-stats dt {
    font-size: clamp(1.9rem, 9.4vw, 2.55rem);
  }

  .hero-stats dd {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .logo-card {
    flex-basis: 112px;
    width: 112px;
    height: 58px;
    padding: 10px 12px;
  }

  .logo-card img {
    height: 30px;
    max-height: 30px;
  }

  .logo-marquee {
    --logo-gap: 1.75rem;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  }

  .logo-marquee-inner {
    animation-duration: 32s;
  }

  .challenge,
  .services,
  .method,
  .testimonials,
  .proof,
  .cta {
    padding-inline: 20px;
  }

  .footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-phone,
  .footer-sitemap {
    grid-column: auto;
    justify-self: auto;
  }

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

  .video-modal {
    padding: 18px;
  }

  .video-modal-close {
    top: -52px;
  }
}

@media (max-width: 460px) and (min-height: 880px) {
  .hero {
    height: 790px;
    min-height: 790px;
  }

  .hero-content {
    min-height: 790px;
    padding-top: 106px;
  }
}

/* El scroll suave de los anclajes se mantiene activo aunque el sistema pida reducir movimiento,
   por decisión del proyecto (igual que el brillo y el carrusel de logos). */

/* Formulario de contacto compartido (Contacto y Hero del Home) */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}
.form-group textarea {
  height: 120px;
  resize: none;
}

/* TRAMPA HONEYPOT OCULTA */
.hp-field {
  display: none !important;
  visibility: hidden !important;
}

.btn-submit-form {
  background: #000;
  color: #fff;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit-form:hover {
  background: #333;
}

/* Mensaje de error del formulario (compartido por Contacto y Hero) */
.form-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #f5c2c0;
  border-radius: 8px;
  background: #fdecea;
  color: #8a1f17;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-submit-form:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Formulario dentro del Hero del Home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(320px, 430px);
  justify-content: space-between;
  align-items: center;
  padding-right: clamp(20px, 5vw, 72px);
}

.hero-form-card {
  position: relative;
  z-index: 1;
  padding: 28px;
  margin-top: 72px;
  border-radius: 16px;
  color: #000;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-form-card h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-form-card > p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-form-card .form-group {
  margin-bottom: 14px;
}

.hero-form-card .form-group textarea {
  height: 84px;
}

@media (max-width: 980px) {
  .hero,
  .hero-content {
    min-height: 0;
    height: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 0;
  }

  .hero-form-card {
    margin: 0 clamp(20px, 5vw, 72px) 36px;
    padding: 22px;
  }
}

/* Mapa del sitio */
.sitemap-hero {
  padding: 136px clamp(20px, 5vw, 72px) 64px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 200, 83, 0.15), transparent 40%),
    var(--ink-2);
}

.sitemap-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
}

.sitemap-hero .hero-copy {
  margin-bottom: 0;
}

.sitemap {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.sitemap-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease;
}

.sitemap-card:hover,
.sitemap-card:focus-visible {
  border-color: rgba(0, 200, 83, 0.42);
  transform: translateY(-3px);
}

.sitemap-card-title {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.sitemap-card-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.sitemap-card-path {
  margin-top: auto;
  padding-top: 6px;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.sitemap-status {
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
}

.sitemap-status[hidden] {
  display: none;
}

/* Brillo perimetral: un arco de luz recorre el contorno (solo CSS). Se anima siempre, incluso con
   prefers-reduced-motion, por decisión del proyecto (igual que el carrusel de logos). */
@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes glow-orbit {
  to {
    --glow-angle: 360deg;
  }
}

.hero-stats div,
.testimonial-card,
.method-list article,
.btn-submit-form {
  position: relative;
}

.hero-stats div::after,
.testimonial-card::after,
.method-list article::after,
.btn-submit-form::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    transparent 0deg 225deg,
    rgba(0, 200, 83, 0.16) 265deg,
    var(--green) 338deg,
    #25df70 356deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: glow-orbit 6s linear infinite;
}

/* Estos elementos tienen borde de 1px: el arco se dibuja sobre él */
.hero-stats div::after,
.testimonial-card::after,
.method-list article::after {
  inset: -1px;
}

:is(.hero-stats div, .testimonial-card, .method-list article, .btn-submit-form)[data-glow-paused]::after {
  animation-play-state: paused;
}

.hero-stats div:nth-child(2n)::after,
.testimonial-card:nth-child(2n)::after,
.method-list article:nth-child(2n)::after {
  animation-delay: -2s;
}

.hero-stats div:nth-child(3n)::after,
.testimonial-card:nth-child(3n)::after,
.method-list article:nth-child(3n)::after {
  animation-delay: -4s;
}

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

}

/* En móvil las estadísticas son una franja sin borde: el arco va en el límite de cada bloque */
@media (max-width: 680px) {
  .hero-stats div::after {
    inset: 0;
  }
}

/* Destinos de anclaje enfocados por JavaScript: sin anillo, no son controles */
[tabindex="-1"]:focus {
  outline: none;
}
