/* ══════════════════════════════════════════════
   ORBIT Fall Protection Systems — Rediseño 2026
   Paleta basada en la marca: rojo #db1a20
   ══════════════════════════════════════════════ */

:root {
  --red: #db1a20;
  --red-dark: #a31217;
  --red-glow: rgba(219, 26, 32, .35);
  --bg: #0d1015;
  --bg-2: #12161d;
  --bg-3: #1a1f28;
  --line: rgba(255, 255, 255, .08);
  --text: #f2f4f8;
  --text-dim: #9aa3b2;
  --radius: 18px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--text); }

/* Los anclajes (#nosotros, #contacto…) aterrizan debajo del navbar fijo */
[id] { scroll-margin-top: 86px; }

h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h2 em, h1 em { font-style: normal; color: var(--red); }

/* ── Utilidades ── */
.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-glow);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
  background: rgba(219, 26, 32, .07);
}

.glass {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; margin-bottom: 3rem; }
.section__sub { color: var(--text-dim); margin-top: .8rem; }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 8px 24px var(--red-glow);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px var(--red-glow); }
.btn--ghost {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .13); transform: translateY(-3px); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--red);
}
.btn--outline:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.btn--sm { padding: .55rem 1.2rem; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ══════════ NAVBAR ══════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(13, 16, 21, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: .6rem 0;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .45);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo { display: flex; align-items: center; gap: .9rem; }
.nav__logo img { height: 44px; width: auto; }
.nav__divider { width: 1px; height: 30px; background: rgba(255, 255, 255, .22); flex-shrink: 0; }
[data-theme="light"] .nav__divider { background: rgba(15, 20, 30, .18); }
.nav__logo img.nav__wj { height: 27px; }
@media (max-width: 700px) {
  /* En móvil ambos logos se muestran más pequeños para que quepan juntos */
  .nav__logo { gap: .55rem; }
  .nav__logo img { height: 36px; }
  .nav__logo img.nav__wj { height: 21px; }
  .nav__divider { height: 22px; }
}
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  position: relative;
  padding: .3rem 0;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s;
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav__burger span { width: 26px; height: 2.5px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ══════════ HERO ══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 60% at 85% 15%, rgba(219, 26, 32, .18), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(219, 26, 32, .10), transparent 60%),
    linear-gradient(180deg, #0d1015 0%, #10141b 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}
.kicker {
  display: flex;
  gap: .7rem;
  align-items: center;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}
.kicker i { color: var(--red); font-style: normal; }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero h1 em {
  background: linear-gradient(120deg, #ff4a51, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 1.4rem 0 2.2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__badges {
  display: flex;
  gap: .8rem;
  list-style: none;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.hero__badges li {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .4rem .8rem;
  background: rgba(255, 255, 255, .03);
}
.hero__visual { position: relative; }
.hero__photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 120px rgba(219, 26, 32, .12);
  transform: rotate(1.5deg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute;
  left: -1.5rem;
  bottom: -1.6rem;
  max-width: 300px;
  padding: 1.1rem 1.3rem;
  display: grid;
  gap: .2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.hero__card strong { font-family: var(--font-head); font-size: .95rem; }
.hero__card span { font-size: .8rem; color: var(--text-dim); }

/* ══════════ STATS ══════════ */
.stats {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2.6rem 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__num, .stat__plus {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--red);
}
.stat p { color: var(--text-dim); font-size: .88rem; margin-top: .2rem; }

/* ══════════ PRODUCTOS ══════════ */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.pcard {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 50% 0%, rgba(219, 26, 32, .12), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--red-glow); box-shadow: 0 22px 44px rgba(0,0,0,.4); }
.pcard:hover::before { opacity: 1; }
.pcard__icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--red);
  background: rgba(219, 26, 32, .1);
  border: 1px solid var(--red-glow);
  margin-bottom: 1.3rem;
}
.pcard h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.pcard p { color: var(--text-dim); font-size: .93rem; margin-bottom: 1.2rem; }
.pcard__link { color: var(--red); font-weight: 600; font-size: .9rem; }

/* Portada: tarjetas de categoría con foto de producto */
.home-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.hcat {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.hcat:hover { transform: translateY(-6px); border-color: var(--red-glow); box-shadow: 0 22px 44px rgba(0,0,0,.35); }
.hcat .prod__img { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 12%; }
.hcat .prod__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.hcat:hover .prod__img img { transform: scale(1.06); }
.hcat__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.1rem 1.2rem 1.2rem;
}
.hcat__body h3 { font-size: 1.02rem; }
.hcat__body span { color: var(--red); font-weight: 600; font-size: .82rem; white-space: nowrap; }
.home-cats__cta { text-align: center; margin-top: 2.2rem; }

@media (max-width: 960px) {
  .home-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .home-cats { grid-template-columns: 1fr; }
}

/* ══════════ NOSOTROS ══════════ */
.about__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}
.about__photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.about__photo img { width: 100%; object-fit: cover; }
.about__photo figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: .6rem 1rem;
  font-size: .82rem;
  font-weight: 600;
}
.about__content h2 { margin-bottom: 1.2rem; }
.about__content p { color: var(--text-dim); margin-bottom: 1rem; }
.about__content strong { color: var(--text); }
.about__quote {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  padding-left: 1.1rem;
  border-left: 3px solid var(--red);
  margin: 1.6rem 0;
}
.about__quote em { font-style: normal; color: var(--red); }
.about__stats { display: grid; gap: 1rem; margin: 1.6rem 0; }
.about__stats > div { display: flex; align-items: baseline; gap: .9rem; }
.about__stats strong {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--red);
  min-width: 3.2rem;
}
.about__stats span { color: var(--text-dim); font-size: .93rem; }
.brand-note {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}
.brand-note img {
  height: 54px;
  width: auto;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  padding: .45rem .7rem;
}
.brand-note p { color: var(--text-dim); font-size: .88rem; margin: 0; }
.brand-note strong { color: var(--text); }
.checklist { list-style: none; display: flex; gap: 1.6rem; margin: 1.4rem 0 2rem; flex-wrap: wrap; }
.checklist li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.checklist li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: .75rem;
  color: #fff;
  background: var(--red);
}

/* ══════════ SOLUCIONES ══════════ */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.solcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.solcard:hover { transform: translateY(-6px); border-color: var(--red-glow); box-shadow: 0 22px 44px rgba(0,0,0,.35); }
.solcard__img { aspect-ratio: 16 / 7; overflow: hidden; }
.solcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.solcard:hover .solcard__img img { transform: scale(1.06); }
.solcard__body {
  display: grid;
  gap: .7rem;
  align-content: start;
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
}
.solcard__body h3 { font-size: 1.15rem; }
.solcard__body > p { color: var(--text-dim); font-size: .92rem; }
.solcard__feats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .2rem;
}
.solcard__feats li {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .75rem;
  background: rgba(255, 255, 255, .03);
}
[data-theme="light"] .solcard__feats li { background: rgba(20, 24, 31, .04); }
.solcard__link {
  margin-top: auto;
  padding-top: .6rem;
  color: var(--red);
  font-weight: 600;
  font-size: .88rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: .3s;
}
.solcard:hover .solcard__link { opacity: 1; transform: none; }

/* ══════════ PÁGINA SOLUCIONES (detalle) ══════════ */
.sdetail__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}
.sdetail__grid--flip .sdetail__photo { order: 2; }
.sdetail__photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
[data-theme="light"] .sdetail__photo { box-shadow: 0 18px 48px rgba(20, 24, 31, .18); }
.sdetail__photo img { width: 100%; height: 100%; object-fit: cover; }
.sdetail__content h2 { margin-bottom: 1.1rem; }
.sdetail__content > p { color: var(--text-dim); margin-bottom: 1.2rem; }
.sdetail__content strong { color: var(--text); }
.checklist--col { flex-direction: column; gap: .8rem; align-items: flex-start; }
.sdetail__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.addl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
@media (max-width: 960px) {
  .sdetail__grid { grid-template-columns: 1fr; gap: 2rem; }
  .sdetail__grid--flip .sdetail__photo { order: 0; }
  .addl-grid { grid-template-columns: 1fr; }
}

/* ══════════ FORMACIÓN ══════════ */
.train-feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.tfeat {
  display: grid;
  gap: .15rem;
  padding: 1.1rem 1.3rem;
}
.tfeat strong { font-family: var(--font-head); font-size: .95rem; }
.tfeat span { color: var(--text-dim); font-size: .82rem; }
.courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.ccard {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform .3s, border-color .3s;
}
.ccard:hover { transform: translateY(-5px); border-color: var(--red-glow); }
.ccard__chip {
  justify-self: start;
  align-self: start;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(219, 26, 32, .08);
  border: 1px solid var(--red-glow);
  border-radius: 999px;
  padding: .25rem .7rem;
}
.ccard h3 { font-size: 1.1rem; }
.ccard p { color: var(--text-dim); font-size: .91rem; flex: 1; }
.ccard .btn { align-self: start; }
.courses__cta {
  margin-top: 2.4rem;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.courses__cta p { color: var(--text-dim); }
.courses__cta strong { color: var(--text); }

/* ══════════ CTA FORMACIÓN ══════════ */
.cta {
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(219, 26, 32, .16), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
  padding: 4.5rem 0;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta p { color: var(--text-dim); margin-top: .7rem; max-width: 52ch; }
.cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ══════════ CLIENTES ══════════ */
/* Franja blanca en ambos modos: respeta los colores de las marcas de los clientes */
.clients { padding-bottom: 5rem; }
.marquee {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-block: 1px solid var(--line);
  padding: 1.4rem 0;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 110px;
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: scroll 32s linear infinite;
  padding: .4rem 0;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 68px;
  width: auto;
  object-fit: contain;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ══════════ CONTACTO ══════════ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact__list { list-style: none; margin-top: 2rem; display: grid; gap: 1.4rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  font-size: 1.2rem;
  border-radius: 12px;
  background: rgba(219, 26, 32, .1);
  border: 1px solid var(--red-glow);
  flex-shrink: 0;
}
.contact__list strong { display: block; font-family: var(--font-head); font-size: .92rem; margin-bottom: .15rem; }
.contact__list a { color: var(--text-dim); text-decoration: none; }
.contact__list a:hover { color: var(--red); }
.contact__stack a { display: block; padding: .1rem 0; }
.contact__maplinks { display: block; font-size: .78rem; padding-top: .15rem; }
.contact__maplinks a { display: inline; padding: 0; color: var(--red); font-weight: 600; }
.contact__form { padding: 2rem; display: grid; gap: 1.1rem; }
.contact__form label {
  display: grid;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-head);
}
.contact__form input:not([type="submit"]):not([type="checkbox"]),
.contact__form textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  outline: none;
  transition: border-color .25s, background .25s;
  resize: vertical;
}
.contact__form input:not([type="submit"]):not([type="checkbox"]):focus,
.contact__form textarea:focus { border-color: var(--red); background: rgba(219, 26, 32, .05); }
.contact__note { font-size: .75rem; color: var(--text-dim); text-align: center; }
.contact__status { font-size: .88rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.contact__status--ok { color: #2ecc71; }
.contact__status--error { color: var(--red); }
[data-theme="light"] .contact__status--ok { color: #1a7a43; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact__form .opt { color: var(--text-dim); font-weight: 400; font-size: .78rem; }
.contact__consent {
  display: flex !important;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 400 !important;
  font-family: var(--font-body) !important;
  color: var(--text-dim);
  font-size: .82rem !important;
  cursor: pointer;
}
.contact__consent input {
  width: 17px; height: 17px;
  margin-top: .15rem;
  accent-color: var(--red);
  flex-shrink: 0;
  cursor: pointer;
}
@media (max-width: 560px) {
  .contact__row { grid-template-columns: 1fr; }
}

/* ── Contact Form 7: adapta su markup al diseño del formulario ── */
.contact__form .wpcf7-form { display: grid; gap: 1.1rem; }
.contact__form .wpcf7-form p { margin: 0; display: grid; gap: 1.1rem; }
.contact__form .wpcf7-form-control-wrap { display: block; }
.contact__form .wpcf7-form-control-wrap input,
.contact__form .wpcf7-form-control-wrap textarea { width: 100%; }
.contact__form .wpcf7-not-valid-tip {
  display: block;
  color: var(--red);
  font-size: .75rem;
  font-weight: 400;
  font-family: var(--font-body);
  margin-top: .3rem;
}
/* Consentimiento (acceptance): replica .contact__consent */
.contact__form .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0; }
.contact__form .wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: .82rem;
  cursor: pointer;
}
.contact__form .wpcf7-acceptance input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: .15rem;
  accent-color: var(--red);
  flex-shrink: 0;
  cursor: pointer;
}
/* Estado del envío */
.contact__form .wpcf7-response-output {
  margin: 0;
  padding: 0;
  border: none !important;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
}
.wpcf7 form.sent .wpcf7-response-output { color: #2ecc71; }
[data-theme="light"] .wpcf7 form.sent .wpcf7-response-output { color: #1a7a43; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { color: var(--red); }
.contact__form .wpcf7-spinner { margin: 0 auto; }

/* ══════════ FOOTER ══════════ */
/* El footer es oscuro en AMBOS modos: colores fijos, no variables del tema,
   para que en modo claro no quede texto oscuro sobre fondo oscuro. */
.footer { background: #0a0c10; border-top: 1px solid rgba(255, 255, 255, .08); color: #f2f4f8; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer img { height: 42px; width: auto; margin-bottom: 1rem; }
.footer p { color: #98a2b3; font-size: .9rem; max-width: 32ch; }
.footer h4 { color: #f2f4f8; }
.footer__brandnote { margin-top: .7rem; font-size: .8rem !important; }
.footer__brandnote strong { color: #cfd6e2; }
.footer h4 { font-size: .95rem; margin-bottom: 1rem; }
.footer nav { display: grid; gap: .55rem; align-content: start; }
.footer nav a, .footer__social a {
  color: #98a2b3;
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.footer nav a:hover, .footer__social a:hover { color: var(--red); }
.footer__social { display: grid; gap: .55rem; }
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.2rem 0;
  font-size: .8rem;
  color: #98a2b3;
}

/* ══════════ WHATSAPP FLOTANTE ══════════ */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.1); }

/* ══════════ ANIMACIONES REVEAL ══════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
}

/* ══════════ MODO CLARO ══════════ */
[data-theme="light"] {
  --bg: #f4f5f8;
  --bg-2: #ffffff;
  --bg-3: #e9ebf0;
  --line: rgba(15, 20, 30, .1);
  --text: #14181f;
  --text-dim: #5b6474;
}
[data-theme="light"] .nav.scrolled { background: rgba(244, 245, 248, .85); box-shadow: 0 6px 30px rgba(20, 24, 31, .12); }
[data-theme="light"] .nav__logo img,
[data-theme="light"] .nav__links.open ~ * {} /* noop */
[data-theme="light"] .nav__logo img:not(.nav__wj) { filter: invert(1) hue-rotate(180deg); }
[data-theme="light"] .nav__links { }
[data-theme="light"] .hero__bg {
  background:
    radial-gradient(55% 60% at 85% 15%, rgba(219, 26, 32, .10), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(219, 26, 32, .06), transparent 60%),
    linear-gradient(180deg, #f4f5f8 0%, #eceef3 100%);
}
[data-theme="light"] .hero__bg::after {
  background-image:
    linear-gradient(rgba(20, 24, 31, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 31, .05) 1px, transparent 1px);
}
[data-theme="light"] .glass { background: rgba(255, 255, 255, .75); }
[data-theme="light"] .hero__badges li { background: rgba(20, 24, 31, .04); }
[data-theme="light"] .btn--ghost { background: rgba(20, 24, 31, .05); }
[data-theme="light"] .btn--ghost:hover { background: rgba(20, 24, 31, .1); }
[data-theme="light"] .contact__form input:not([type="submit"]):not([type="checkbox"]),
[data-theme="light"] .contact__form textarea { background: rgba(20, 24, 31, .04); }
[data-theme="light"] .prod,
[data-theme="light"] .hcat,
[data-theme="light"] .solcard,
[data-theme="light"] .bcard,
[data-theme="light"] .ccard { box-shadow: 0 6px 20px rgba(20, 24, 31, .07); }
[data-theme="light"] .hero__photo { box-shadow: 0 24px 60px rgba(20, 24, 31, .22); }
[data-theme="light"] .about__photo { box-shadow: 0 18px 48px rgba(20, 24, 31, .18); }
[data-theme="light"] .nav__links a:not(.btn) { color: var(--text); }
@media (max-width: 960px) {
  [data-theme="light"] .nav__links { background: rgba(244, 245, 248, .97); }
}
/* El pie de página permanece oscuro en ambos modos (el logo es blanco) */

/* Botón de tema */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .25s, transform .25s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--red); transform: rotate(18deg); }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
[data-theme="light"] .theme-toggle .ico-sun { display: block; }
[data-theme="light"] .theme-toggle .ico-moon { display: none; }

/* ══════════ PROCESO ══════════ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: paso;
}
.step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem 1.8rem;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.step:hover { transform: translateY(-5px); border-color: var(--red-glow); }
.step::before {
  counter-increment: paso;
  content: "0" counter(paso);
  position: absolute;
  top: .6rem; right: 1rem;
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-glow);
  line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: .55rem; padding-right: 3rem; }
.step p { color: var(--text-dim); font-size: .89rem; }

/* ══════════ FAQ ══════════ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: .9rem; }
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s;
}
.faq details[open] { border-color: var(--red-glow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-dim);
  font-size: .93rem;
}

/* ══════════ PÁGINA CERTIFICADOS ══════════ */
.cert-hero { padding: 9rem 0 3rem; text-align: center; position: relative; }
.cert-hero .tag { margin-bottom: 1.2rem; }
.cert-hero p { color: var(--text-dim); max-width: 54ch; margin: 1rem auto 0; }
.demo-banner {
  background: rgba(255, 176, 32, .12);
  border: 1px solid rgba(255, 176, 32, .4);
  color: #ffb020;
  border-radius: 12px;
  padding: .8rem 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  max-width: 640px;
  margin: 1.6rem auto 0;
}
[data-theme="light"] .demo-banner { color: #8a5a00; background: rgba(255, 176, 32, .15); }
.cert-search {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  display: grid;
  gap: 1rem;
}
.cert-search label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; text-align: left; display: grid; gap: .5rem; }
.cert-search input {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  outline: none;
  transition: border-color .25s;
}
[data-theme="light"] .cert-search input { background: rgba(20, 24, 31, .04); }
.cert-search input:focus { border-color: var(--red); }
.cert-results { max-width: 640px; margin: 2rem auto 0; display: grid; gap: 1rem; text-align: left; }
.cert-item {
  padding: 1.4rem 1.6rem;
  display: grid;
  gap: .35rem;
  animation: certIn .45s ease both;
}
@keyframes certIn { from { opacity: 0; transform: translateY(14px); } }
.cert-item h3 { font-size: 1.05rem; }
.cert-item .meta { color: var(--text-dim); font-size: .88rem; }
.cert-badge {
  justify-self: start;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: .3rem;
}
.cert-badge--ok { background: rgba(46, 204, 113, .15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, .4); }
.cert-badge--no { background: rgba(219, 26, 32, .12); color: var(--red); border: 1px solid var(--red-glow); }
[data-theme="light"] .cert-badge--ok { color: #1a7a43; }
.cert-empty {
  padding: 1.4rem 1.6rem;
  color: var(--text-dim);
  font-size: .95rem;
  text-align: center;
}

/* ══════════ CATÁLOGO DE PRODUCTOS ══════════ */
.catalog { padding-top: 1.5rem; }
.catalog__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: .9rem 1.2rem;
  margin-bottom: 1.2rem;
}
.catalog__search {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: 1 1 320px;
  color: var(--text-dim);
}
.catalog__search input {
  flex: 1;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}
.catalog__search input::placeholder { color: var(--text-dim); }
.catalog__count { color: var(--text-dim); font-size: .85rem; white-space: nowrap; }
.catalog__chips {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.chip {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.chip:hover { color: var(--text); border-color: var(--red-glow); transform: translateY(-2px); }
.chip--active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
  box-shadow: 0 6px 18px var(--red-glow);
}
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.prod {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.prod:hover { transform: translateY(-6px); border-color: var(--red-glow); box-shadow: 0 22px 44px rgba(0,0,0,.35); }
.prod__img {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12%;
}
.prod__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.prod:hover .prod__img img { transform: scale(1.06); }
.prod__body {
  display: grid;
  gap: .45rem;
  align-content: start;
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
}
.prod__cat {
  font-family: var(--font-head);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.prod__cat a { color: inherit; text-decoration: none; }
.prod__cat a:hover { text-decoration: underline; }
.prod__body h3 {
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod__link {
  margin-top: auto;
  color: var(--red);
  font-weight: 600;
  font-size: .84rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: .3s;
}
.prod:hover .prod__link { opacity: 1; transform: none; }
.catalog__empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-dim);
  display: grid;
  gap: .8rem;
  justify-items: center;
}
.catalog__empty strong { color: var(--text); font-family: var(--font-head); font-size: 1.1rem; }
.catalog__empty[hidden] { display: none; }

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

/* ══════════ QUICKVIEW DE PRODUCTO ══════════ */
.qv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.qv[hidden] { display: none; }
.qv__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qv__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  width: min(860px, 100%);
  max-height: min(600px, 92svh);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  animation: qvIn .3s ease both;
}
@keyframes qvIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.qv__close {
  position: absolute;
  top: .9rem; right: .9rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 24, 31, .55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.qv__close:hover { background: var(--red); transform: rotate(90deg); }
.qv__img { background: #fff; display: grid; place-items: center; padding: 9%; min-height: 320px; }
.qv__img img { width: 100%; height: 100%; max-height: 480px; object-fit: contain; }
.qv__info {
  display: grid;
  gap: .9rem;
  align-content: center;
  padding: 2.2rem 2.2rem 2rem;
  overflow-y: auto;
}
.qv__info h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.2; }
.qv__desc { color: var(--text-dim); font-size: .95rem; }
.qv__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.qv__note { color: var(--text-dim); font-size: .74rem; }
@media (max-width: 720px) {
  .qv__panel { grid-template-columns: 1fr; max-height: 92svh; overflow-y: auto; }
  .qv__img { min-height: 0; padding: 1.6rem; }
  .qv__img img { max-height: 240px; }
  .qv__info { padding: 1.6rem; }
}

/* ══════════ FICHA DE PRODUCTO (single-product del tema WP) ══════════ */
.pdp { padding-top: 7.5rem; }
.pdp__back { display: inline-block; color: var(--text-dim); text-decoration: none; font-size: .88rem; margin-bottom: 1.6rem; }
.pdp__back:hover { color: var(--red); }
.pdp__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}
.pdp__img {
  background: #fff;
  border-radius: 22px;
  padding: 9%;
  display: grid;
  place-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.pdp__img img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.pdp__info { display: grid; gap: 1rem; align-content: start; }
.pdp__info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.15; }
.pdp__desc { color: var(--text-dim); }
.pdp__desc p, .pdp__desc li { color: var(--text-dim); margin-bottom: .8rem; }
.pdp__desc strong { color: var(--text); }
.pdp__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .4rem; }
.pdp__meta { color: var(--text-dim); font-size: .84rem; border-top: 1px solid var(--line); padding-top: 1rem; }
/* Sellos de certificación (ANSI, ICONTEC…) incrustados en la descripción:
   son tiras verticales (~150x429); se limitan por ANCHO y en fila.
   height:auto !important anula los style="height:…px" inline del contenido. */
.single-product .pdp__desc img,
.single-product .article img {
  display: inline-block;
  vertical-align: top;
  width: auto !important;
  height: auto !important;
  max-width: 120px;
  margin: .4rem .8rem .4rem 0;
}
@media (max-width: 560px) {
  .single-product .pdp__desc img,
  .single-product .article img { max-width: 96px; }
}
.pdp-related { padding-top: 0; }
.pdp-related h2 { margin-bottom: 1.8rem; }
@media (max-width: 960px) {
  .pdp__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ══════════ BLOG / ACTUALIDAD ══════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.bcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.bcard:hover { transform: translateY(-6px); border-color: var(--red-glow); box-shadow: 0 22px 44px rgba(0,0,0,.35); }
.bcard__img { aspect-ratio: 16 / 9; overflow: hidden; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bcard:hover .bcard__img img { transform: scale(1.05); }
.bcard__body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .6rem; align-content: start; }
.bcard__chip {
  justify-self: start;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(219, 26, 32, .08);
  border: 1px solid var(--red-glow);
  border-radius: 999px;
  padding: .25rem .7rem;
}
.bcard h3 { font-size: 1.08rem; line-height: 1.35; }
.bcard p { color: var(--text-dim); font-size: .89rem; }
.bcard time { color: var(--text-dim); font-size: .78rem; }
.bcard__link { color: var(--red); font-weight: 600; font-size: .88rem; margin-top: .2rem; }

/* Página de artículos */
.article {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding-top: 2rem;
}
.article + .article { border-top: 1px solid var(--line); padding-top: 4rem; }
.article .bcard__chip { margin-bottom: 1rem; }
.article h2 { margin-bottom: .6rem; }
.article .art-meta { color: var(--text-dim); font-size: .85rem; margin-bottom: 1.6rem; }
.article p, .article li { color: var(--text-dim); margin-bottom: 1rem; font-size: .98rem; }
.article strong { color: var(--text); }
.article h3 { font-size: 1.15rem; margin: 1.8rem 0 .8rem; }
.article ul { padding-left: 1.3rem; }
.article .art-cta {
  margin-top: 1.5rem;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.article .art-cta p { margin: 0; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 960px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; }
  .hero__visual { max-width: 560px; }
  .hero__card { left: 1rem; bottom: -1.2rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .sol-grid { grid-template-columns: 1fr; }
  .train-feats { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  .nav__burger { display: flex; }
  /* El panel usa position:absolute anclado al .nav (que ya es fixed a la
     pantalla): con fixed, el backdrop-filter de .nav.scrolled convierte al
     header en el contenedor y el panel se rompe al abrir con scroll. */
  .nav__links {
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 80vw);
    flex-direction: column;
    justify-content: center;
    background: rgba(13, 16, 21, .97);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,.5);
  }
  .nav__links.open { transform: none; }
  .nav__links a:not(.btn) { font-size: 1.15rem; }
  .nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .train-feats { grid-template-columns: 1fr; }
}

/* ══════════ CONSULTA DE CERTIFICADOS (buscador JetEngine en vivo) ══════════ */
/* La página de producción renderiza el contenido Elementor viejo dentro de
   .cert-live: se oculta su decoración (títulos duplicados, contacto con la
   dirección vieja, mapas, espaciadores) y se viste el buscador + resultados
   con el diseño del tema. El funcionamiento de JetEngine no se toca. */
.cert-live .elementor-widget-heading,
.cert-live .elementor-spacer,
.cert-live .elementor-widget-google_maps,
.cert-live .elementor-widget-image,
.cert-live section:has(form.elementor-form) { display: none !important; }
.cert-live .elementor-section { background: transparent !important; }
.cert-live > .elementor { margin-top: 1rem; }

.cert-live .jet-search-filter { display: flex; gap: .8rem; align-items: stretch; flex-wrap: wrap; }
.cert-live .jet-search-filter > * { flex: 1 1 auto; }

.cert-live .jet-search-filter__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  outline: none;
  transition: border-color .25s, background .25s;
}
.cert-live .jet-search-filter__input:focus { border-color: var(--red); background: rgba(219, 26, 32, .05); }
[data-theme="light"] .cert-live .jet-search-filter__input { background: rgba(20, 24, 31, .04); }

.cert-live .jet-search-filter__submit {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: none;
  border-radius: 999px;
  padding: .85rem 1.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--red-glow);
  transition: transform .25s, box-shadow .25s;
}
.cert-live .jet-search-filter__submit:hover { transform: translateY(-2px); box-shadow: 0 14px 34px var(--red-glow); }

.cert-live .jet-listing-grid__item {
  background: var(--bg-2) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  color: var(--text);
}
.cert-live .jet-listing-grid__item * { color: inherit; }
.cert-live .jet-listing-grid__items { gap: 1rem; }

/* Certificados: anula los márgenes negativos del layout Elementor viejo
   (montaban el buscador sobre el hero) y oculta los iconos sociales viejos. */
.cert-live [class*="elementor-element-"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.cert-live .elementor-widget { margin-bottom: 1.1rem !important; }
.cert-live .elementor-widget-social-icons { display: none !important; }
