/* GALD PERFECTO */

:root {
  --rd: #d7192b;
  --rd2: #b01020;
  --ink: #0f1115;
  --tx: #3a3e47;
  --mu: #6b7080;
  --bg: #fff;
  --soft: #f5f6f8;
  --ln: #e6e8ec;
  --e: cubic-bezier(.16,.8,.24,1);
}

@view-transition {
  navigation: auto;
}

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

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

body {
  margin: 0;
  font: 16px/1.65 Inter, system-ui, sans-serif;
  color: var(--tx);
  background: var(--bg);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: Sora, sans-serif;
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.02em;
}

:focus-visible {
  outline: 2px solid var(--rd);
  outline-offset: 3px;
  border-radius: 4px;
}

.w {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 36px);
}

section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.soft {
  background: var(--soft);
}

.eb {
  font: 700 .78rem Inter;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rd);
}

h2.t {
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  font-weight: 800;
  margin: 10px 0 0;
}

.sub {
  color: var(--mu);
  font-size: 1.08rem;
  max-width: 62ch;
  margin-top: 14px;
}

.sh {
  margin-bottom: 44px;
}

.sh.c {
  text-align: center;
}

.sh.c .sub {
  margin-inline: auto;
}

/* barra superior + header */

.ub {
  background: var(--ink);
  color: #c9ccd4;
  font-size: .82rem;
}

.ub .w {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.ub a:hover {
  color: #fff;
}

.ub span {
  margin-right: 20px;
}

.hd {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ln);
  backdrop-filter: blur(8px);
}

.hd .w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.hd img {
  height: 44px;
  width: auto;
}

.hd ul {
  display: flex;
  gap: 4px;
}

.hd li a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink);
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.hd li a:hover {
  background: var(--soft);
}

.hd li a[aria-current] {
  color: var(--rd);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  background: var(--rd);
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform .25s var(--e), box-shadow .25s, background .2s;
}

.btn:hover {
  background: var(--rd2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(215, 25, 43, .28);
}

.btn.o {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ln);
}

.btn.o:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
  background: #fff;
}

.btn.sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: .9rem;
}

.mt {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ln);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

/* hero */

.hero {
  padding: clamp(40px, 6vw, 80px) 0 0;
  background: radial-gradient(900px 400px at 85% 0, #fdeceb, transparent 70%);
}

.hg {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  margin: 14px 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--rd);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.qa {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  align-items: center;
}

.qa small {
  font-weight: 600;
  color: var(--mu);
  margin-right: 4px;
}

.qa a {
  padding: 8px 14px;
  border: 1px solid var(--ln);
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  background: #fff;
  transition: all .25s;
}

.qa a:hover {
  border-color: var(--rd);
  color: var(--rd);
  transform: translateY(-2px);
}

.hv {
  position: relative;
}

.hv video {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(15, 17, 21, .2);
}

.fc {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 14px 34px rgba(15, 17, 21, .18);
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: center;
  animation: fl 5s ease-in-out infinite;
}

.fc i {
  color: var(--rd);
}

.fc.a {
  left: -22px;
  top: 12%;
}

.fc.b {
  right: -14px;
  bottom: 22%;
  animation-delay: -2s;
}

.fc.c {
  left: 10%;
  bottom: -18px;
  animation-delay: -3.5s;
}

@keyframes fl {
  50% {
    transform: translateY(-9px);
  }
}

.trust {
  margin-top: 64px;
  border-top: 1px solid var(--ln);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}

.trust p {
  display: inline-block;
  animation: mq 40s linear infinite;
  font: 700 .95rem Sora;
  color: #a3a7b3;
  text-transform: uppercase;
}

.trust span {
  margin: 0 28px;
}

.trust span::after {
  content: "•";
  margin-left: 56px;
  color: var(--rd);
}

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* nosotros */

.ng {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ng p+p {
  margin-top: 14px;
}

.col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.col img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  cursor: zoom-in;
  transition: transform .5s var(--e);
}

.col img:hover {
  transform: scale(1.03);
}

.col img:nth-child(2) {
  margin-top: 28px;
}

.col img:nth-child(3) {
  margin-top: -28px;
}

.g4,
.g3 {
  display: grid;
  gap: 18px;
}

.g4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.cd {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 18px;
  padding: 28px;
  transition: transform .4s var(--e), box-shadow .4s, border-color .3s;
}

.cd:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(15, 17, 21, .08);
  border-color: #f0b9be;
}

.cd .ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fdeceb;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.cd h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cd p {
  font-size: .95rem;
  color: var(--mu);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--ink);
  border-radius: 22px;
  margin-top: 56px;
  overflow: hidden;
}

.stat {
  padding: 30px 24px;
  border-right: 1px solid #272b33;
}

.stat:last-child {
  border: 0;
}

.stat b {
  display: block;
  font: 800 2.6rem Sora;
  color: #fff;
}

.stat b i {
  font-style: normal;
  color: var(--rd);
}

.stat p {
  color: #a9adb8;
  font-size: .85rem;
  margin-top: 6px;
}

/* soluciones (tabs por necesidad) */

.tl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.tb {
  padding: 18px;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--ln);
  border-radius: 14px;
  font: 700 .98rem Sora;
  color: var(--ink);
  cursor: pointer;
  transition: all .3s var(--e);
}

.tb small {
  display: block;
  font: 500 .8rem Inter;
  color: var(--mu);
  margin-top: 4px;
}

.tb:hover {
  border-color: #e9a0a7;
}

.tb[aria-selected=true] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tb[aria-selected=true] small {
  color: #b8bcc7;
}

.tp {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  animation: pin .5s var(--e);
}

.tp[hidden] {
  display: none;
}

@keyframes pin {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.tp h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.tp li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ln);
}

.tp li::before {
  content: "✓";
  color: #fff;
  background: var(--rd);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  flex: none;
  margin-top: 2px;
}

.tp aside {
  background: var(--soft);
  border-radius: 14px;
  padding: 24px;
}

.tp aside h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 12px;
}

.tp aside a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--ln);
  font-weight: 600;
  font-size: .92rem;
}

.tp aside a:hover {
  color: var(--rd);
}

/* servicios / proceso */

.sv {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--e), box-shadow .4s;
}

.sv:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 17, 21, .1);
}

.sv img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.sv div {
  padding: 26px;
}

.sv h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.sv p {
  color: var(--mu);
  font-size: .95rem;
}

.sv a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--rd);
}

.zr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--ln);
}

.zr:nth-of-type(even) .zi {
  order: 2;
}

.zr h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 8px 0 12px;
}

.zr li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--ln);
}

.zr li::before {
  content: "✓";
  color: var(--rd);
  font-weight: 800;
}

.mos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform .5s var(--e);
}

.mos img:hover {
  transform: scale(1.03);
}

.pr {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  counter-reset: s;
}

.pr::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--ln);
}

.ps {
  position: relative;
  text-align: center;
  padding: 0 6px;
}

.ps::before {
  counter-increment: s;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rd);
  color: var(--rd);
  font: 800 1.2rem Sora;
  position: relative;
  transition: all .3s;
}

.ps:hover::before {
  background: var(--rd);
  color: #fff;
}

.ps h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.ps p {
  font-size: .88rem;
  color: var(--mu);
}

.vid {
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(15, 17, 21, .18);
}

.vid iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* proyectos */

.fl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.fl b {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mu);
  margin-right: 6px;
  min-width: 46px;
}

.chip {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--ln);
  background: #fff;
  font: 600 .85rem Inter;
  cursor: pointer;
  transition: all .25s;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed=true] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.cnt {
  margin: 18px 0 22px;
  font-weight: 600;
  color: var(--mu);
  font-size: .9rem;
}

.pg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.pc {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s var(--e), box-shadow .4s;
}

.pc:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(15, 17, 21, .1);
}

.pc[hidden] {
  display: none;
}

.pc .im {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--soft);
}

.pc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--e);
}

.pc:hover img {
  transform: scale(1.06);
}

.pc .yr {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  font: 700 .75rem Inter;
  padding: 5px 11px;
  border-radius: 99px;
}

.pc .bd {
  padding: 18px 20px 22px;
}

.pc .tg {
  font: 700 .72rem Inter;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rd);
}

.pc h3 {
  font-size: 1.02rem;
  margin: 6px 0;
}

.pc p {
  font-size: .86rem;
  color: var(--mu);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 11, 14, .95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 70px 24px;
  text-align: center;
}

.modal.activo {
  display: flex;
}

#modal-img {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity .25s;
}

.modal h3 {
  color: #fff;
}

.modal p {
  color: #b9bcc6;
  max-width: 80ch;
  font-size: .9rem;
}

.cerrar,
.prev,
.next {
  position: absolute;
  color: #fff;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
}

.cerrar:hover,
.prev:hover,
.next:hover {
  background: var(--rd);
}

.cerrar {
  top: 16px;
  right: 16px;
  font-size: 1.8rem;
}

.prev {
  left: 14px;
  top: 50%;
}

.next {
  right: 14px;
  top: 50%;
}

/* testimonios / certificaciones (espacios reservados) */

.ph {
  border: 2px dashed #d3d6de;
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  color: var(--mu);
}

.ph b {
  display: block;
  color: var(--ink);
  font-family: Sora;
  margin-bottom: 6px;
}

.ph small {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: #fff4d6;
  color: #8a6100;
  border-radius: 99px;
  font-weight: 700;
  font-size: .72rem;
}

.lg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lg .ph {
  text-align: center;
  padding: 24px 10px;
  font-weight: 600;
}

/* faq */

.fq details {
  border: 1px solid var(--ln);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  transition: border-color .3s;
}

.fq details[open] {
  border-color: var(--rd);
}

.fq summary {
  padding: 20px 24px;
  font: 700 1.02rem Sora;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.fq summary::after {
  content: "+";
  color: var(--rd);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .3s;
}

.fq details[open] summary::after {
  transform: rotate(45deg);
}

.fq details p {
  padding: 0 24px 22px;
  color: var(--mu);
  animation: pin .4s var(--e);
}

.band {
  background: var(--ink);
  border-radius: 26px;
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  color: #c9ccd4;
  position: relative;
  overflow: hidden;
}

.band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(215, 25, 43, .4);
  box-shadow: 0 0 0 40px rgba(215, 25, 43, .08), 0 0 0 80px rgba(215, 25, 43, .05);
}

.band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.band .cta {
  margin: 0;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* contacto */

.cg {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}

.fm {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 12px;
  align-content: start;
  box-shadow: 0 20px 50px rgba(15, 17, 21, .06);
}

.fm h3 {
  font-size: 1.4rem;
}

.fm input,
.fm textarea,
.fm select {
  width: 100%;
  padding: 15px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--soft);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: all .2s;
}

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

.fm input:focus,
.fm textarea:focus,
.fm select:focus {
  outline: 0;
  background: #fff;
  border-color: var(--rd);
  box-shadow: 0 0 0 4px rgba(215, 25, 43, .1);
}

.fm :user-invalid {
  border-color: #e0707b;
}

#mensaje-exito {
  padding: 14px;
  border-radius: 12px;
  background: #eaf8f0;
  color: #146c3f;
  font-weight: 600;
  font-size: .9rem;
}

.ci a,
.ci p {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--ln);
  border-radius: 14px;
  margin-bottom: 10px;
  font-weight: 600;
  background: #fff;
  transition: all .3s var(--e);
}

.ci a:hover {
  border-color: var(--rd);
  transform: translateX(6px);
}

.ci i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fdeceb;
  color: var(--rd);
}

.ci small {
  display: block;
  font-weight: 500;
  color: var(--mu);
  font-size: .78rem;
}

.rs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.rs a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  transition: background .25s;
}

.rs a:hover {
  background: var(--rd);
}

.mp {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 16px;
}

.ft {
  background: var(--ink);
  color: #a9adb8;
  padding: 60px 0 22px;
}

.fg {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.fg h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  margin-bottom: 14px;
  font-family: Inter;
}

.fg li {
  padding: 4px 0;
}

.fg a:hover {
  color: #fff;
}

.fg img {
  height: 44px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
  margin-bottom: 14px;
}

.bt {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #272b33;
  font-size: .82rem;
}

.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 14px;
  border-radius: 99px;
  background: #128c4a;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  transition: transform .25s var(--e);
}

.wa:hover {
  transform: translateY(-3px);
}

.wa img {
  width: 30px;
  height: 30px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 11, 14, .95);
  display: none;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.activo {
  display: grid;
}

.lightbox img {
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}

.pgh {
  padding: clamp(48px, 7vw, 84px) 0 clamp(32px, 4vw, 48px);
  background: var(--soft);
}

.pgh h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  margin-top: 10px;
}

html.js .rv {
  opacity: 0;
  transform: translateY(26px);
}

html.js .rv.in {
  opacity: 1;
  transform: none;
  transition: opacity .65s var(--e), transform .65s var(--e);
  transition-delay: var(--d, 0s);
}

html.js .hi {
  opacity: 0;
}

@media (max-width:1000px) {
  .hg,
  .ng,
  .tp,
  .zr,
  .cg,
  .band {
    grid-template-columns: 1fr;
  }

  .zr:nth-of-type(even) .zi {
    order: 0;
  }

  .g4,
  .stats,
  .tl {
    grid-template-columns: 1fr 1fr;
  }

  .g3,
  .fg {
    grid-template-columns: 1fr 1fr;
  }

  .pr {
    grid-template-columns: 1fr;
    padding-left: 14px;
  }

  .pr::before {
    left: 40px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .ps {
    text-align: left;
    padding-left: 72px;
  }

  .ps::before {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .band .cta {
    justify-content: flex-start;
  }

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

  .fc.a {
    left: 8px;
  }

  .fc.b {
    right: 8px;
  }
}

@media (max-width:860px) {
  .mt {
    display: block;
  }

  .hd .btn {
    display: none;
  }

  .hd nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--ln);
    display: none;
    padding: 8px 18px 18px;
  }

  .hd nav.open {
    display: block;
  }

  .hd ul {
    flex-direction: column;
  }

  .hd li a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--ln);
    border-radius: 0;
  }

  .ub .w>div:last-child {
    display: none;
  }

  .modal {
    padding: 64px 12px 16px;
  }

  .prev,
  .next {
    top: auto;
    bottom: 14px;
  }

  .wa span {
    display: none;
  }

  .wa {
    padding: 0 12px;
  }
}

@media (max-width:560px) {
  .g4,
  .g3,
  .stats,
  .tl,
  .fg,
  .lg {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid #272b33;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
  }

  html.js .rv,
  html.js .hi {
    opacity: 1;
    transform: none;
  }
}

main {
  overflow-x: clip;
}

.hg>* {
  min-width: 0;
}

/* v5 ajustes */

.ng {
  align-items: stretch;
}

.col {
  grid-template-rows: 1fr 1fr;
  align-content: stretch;
}

.col img {
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

.col img:nth-child(2),
.col img:nth-child(3) {
  margin-top: 0;
}

.ci .rs a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-size: 1.05rem;
}

.ci .rs a:hover {
  transform: none;
  background: var(--rd);
}

.sn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sn a {
  padding: 8px 16px;
  border: 1.5px solid var(--ln);
  border-radius: 99px;
  font: 600 .85rem Inter;
  background: #fff;
  transition: all .25s;
}

.sn a small {
  color: var(--mu);
  font-weight: 500;
}

.sn a:hover {
  border-color: var(--rd);
  color: var(--rd);
}

.sv-s {
  font: 700 .95rem Sora;
  color: var(--rd);
  margin-bottom: 10px;
}

.zr {
  scroll-margin-top: 100px;
}

.cert figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--ln);
  cursor: zoom-in;
  transition: transform .4s var(--e);
}

.cert img:hover {
  transform: scale(1.02);
}

.cert h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.cert p {
  font-size: .88rem;
  color: var(--mu);
}

.case h3 {
  font-size: 1.1rem;
}

.case:hover h3 {
  color: var(--rd);
}

.dm {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 11, 14, .8);
  overflow-y: auto;
  padding: clamp(12px, 4vw, 48px);
}

.dm[hidden] {
  display: none;
}

.dm-in {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  animation: pin .45s var(--e);
}

.dm-x {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.dm-x:hover {
  background: var(--rd);
  color: #fff;
}

.pd .mi {
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  object-fit: cover;
}

.pdb {
  padding: clamp(22px, 4vw, 44px);
}

.pdb h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 8px 0 4px;
}

.pdb h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

.mm {
  color: var(--mu);
  font-weight: 600;
  margin-bottom: 14px;
}

.ds {
  color: var(--tx);
  font-size: 1rem;
}

.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ck li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--ln);
}

.ck li::before {
  content: "✓";
  color: var(--rd);
  font-weight: 800;
}

.stp {
  counter-reset: k;
  padding: 0;
}

.stp li {
  counter-increment: k;
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--ln);
}

.stp li::before {
  content: counter(k);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rd);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 .85rem Sora;
}

.ths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.th {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: .7;
  transition: all .25s;
}

.th img {
  width: 112px;
  height: 76px;
  object-fit: cover;
}

.th[aria-pressed=true],
.th:hover {
  opacity: 1;
  border-color: var(--rd);
}

@media (max-width:1000px) {
  .col img {
    aspect-ratio: 4/3;
    height: auto;
  }

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

/* v6 */

.ng {
  align-items: center;
}

.col {
  grid-template-rows: none;
  align-content: start;
  gap: 12px;
}

.col img {
  height: auto;
  min-height: 0;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin: 0!important;
}

.sg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.sg .cd {
  padding: 22px;
}

.sg .cd h3 {
  font-size: 1.02rem;
}

.sg .ic {
  font-size: 1.2rem;
  color: var(--rd);
}

.pd .mi {
  transition: opacity .22s;
}

.ap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 7px 14px;
  border: 1.5px solid var(--ln);
  border-radius: 99px;
  background: #fff;
  font: 600 .8rem Inter;
  cursor: pointer;
}

.ap:hover {
  border-color: var(--rd);
  color: var(--rd);
}

/* ============================================================
   MODO OSCURO
   ============================================================ */
.hd-r {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tm {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ln);
  border-radius: 10px;
  background: var(--card, #fff);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s var(--e);
}

.tm:hover {
  border-color: var(--rd);
  color: var(--rd);
}

.tm:active {
  transform: scale(.92);
}

.tm svg {
  display: block;
}

.tm .i-sun {
  display: none;
}

html[data-theme="dark"] .tm .i-sun {
  display: block;
}

html[data-theme="dark"] .tm .i-moon {
  display: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f13;
  --soft: #14171d;
  --ln: #262b34;
  --ink: #f1f3f6;
  --tx: #c5c9d3;
  --mu: #9aa0ae;
  --rd: #e5303f;
  --rd2: #c92230;
  --card: #171a21;
  --pale: rgba(229, 48, 63, .14);
  --dk: #08090c;
}

/* superficies que eran blancas */
html[data-theme="dark"] .hd {
  background: rgba(13, 15, 19, .92);
}

html[data-theme="dark"] .hd img {
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}

html[data-theme="dark"] .mt,
html[data-theme="dark"] .btn.o,
html[data-theme="dark"] .btn.o:hover,
html[data-theme="dark"] .qa a,
html[data-theme="dark"] .fc,
html[data-theme="dark"] .cd,
html[data-theme="dark"] .tb,
html[data-theme="dark"] .tp,
html[data-theme="dark"] .sv,
html[data-theme="dark"] .pc,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .ph,
html[data-theme="dark"] .fq details,
html[data-theme="dark"] .fm,
html[data-theme="dark"] .ci a,
html[data-theme="dark"] .ci p,
html[data-theme="dark"] .ap,
html[data-theme="dark"] .sn a,
html[data-theme="dark"] .dm-in,
html[data-theme="dark"] .ps::before {
  background: var(--card);
}

html[data-theme="dark"] .mt,
html[data-theme="dark"] .dm-x {
  color: var(--ink);
}

html[data-theme="dark"] .dm-x {
  background: var(--card);
}

html[data-theme="dark"] .fm input:focus,
html[data-theme="dark"] .fm textarea:focus,
html[data-theme="dark"] .fm select:focus {
  background: var(--card);
}

/* bloques que eran oscuros (antes usaban --ink como fondo) */
html[data-theme="dark"] .ub,
html[data-theme="dark"] .stats,
html[data-theme="dark"] .band,
html[data-theme="dark"] .ft,
html[data-theme="dark"] .pc .yr,
html[data-theme="dark"] .rs a,
html[data-theme="dark"] .ci .rs a {
  background: var(--dk);
}

html[data-theme="dark"] .tb[aria-selected="true"],
html[data-theme="dark"] .chip[aria-pressed="true"] {
  background: var(--rd);
  border-color: var(--rd);
  color: #fff;
}

html[data-theme="dark"] .tb[aria-selected="true"] small {
  color: #fde6e8;
}

html[data-theme="dark"] .chip:hover {
  border-color: var(--mu);
}

/* detalles de color */
html[data-theme="dark"] .hero {
  background: radial-gradient(900px 400px at 85% 0, rgba(229, 48, 63, .16), transparent 70%);
}

html[data-theme="dark"] .cd .ic,
html[data-theme="dark"] .ci i {
  background: var(--pale);
}

html[data-theme="dark"] .cd:hover {
  border-color: rgba(229, 48, 63, .55);
}

html[data-theme="dark"] #mensaje-exito {
  background: #112a1b;
  color: #8be8ae;
}

@media (max-width: 860px) {
  html[data-theme="dark"] .hd nav {
    background: var(--card);
  }
}

/* transición suave solo al pulsar el botón */
@media (prefers-reduced-motion: no-preference) {
  html.theme-anim *,
  html.theme-anim *::before,
  html.theme-anim *::after {
    transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s !important;
  }
}

/* ============================================================
   HERO: video grande al fondo, texto por encima (legible)
   ============================================================ */
.hero {
  position: relative;
  padding: 0;
  background: none;
  overflow: hidden;
}

.hero .hg {
  position: relative;
  grid-template-columns: 1fr;
  min-height: clamp(560px, 78vh, 760px);
  padding: clamp(56px, 8vw, 110px) 0;
  align-items: center;
}

.hero .hg > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* El video ocupa todo el ancho de la pantalla, detrás del texto */
.hero .hv {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: 0;
  overflow: hidden;
}

.hero .hv video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* Capa oscura para que las letras se lean sobre el video */
.hero .hv::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 12, 18, .86) 0%, rgba(10, 12, 18, .68) 45%, rgba(10, 12, 18, .35) 100%),
    linear-gradient(0deg, rgba(10, 12, 18, .35), transparent 40%);
}

.hero .fc {
  z-index: 2;
}

.hero .fc.a { left: auto; right: 9%; top: 16%; }
.hero .fc.b { right: 4%; bottom: 30%; }
.hero .fc.c { left: auto; right: 22%; bottom: 12%; }

/* Texto en blanco */
.hero .eb {
  color: #ff8a93;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.hero h1 em {
  color: #ff6b76;
}

.hero .sub {
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}

.hero .qa small {
  color: rgba(255, 255, 255, .85);
}

.hero .qa a {
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  border-color: transparent;
}

.hero .btn.o {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85);
}

.hero .btn.o:hover {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #fff;
}

.hero .trust {
  margin-top: 0;
}

html[data-theme="dark"] .hero {
  background: none;
}

@media (max-width: 1000px) {
  .hero .fc {
    display: none;
  }

  .hero .hv::after {
    background: linear-gradient(0deg, rgba(10, 12, 18, .8), rgba(10, 12, 18, .7));
  }
}
