/* =========================================================
   ÓNIX · Base global (Home + About + Join)
   ========================================================= */

/* ===================== Tokens ===================== */
:root{
  --nav-px: clamp(18px, 6vw, 100px);
  --nav-py-top: 32px;
  --nav-py-bottom: 26px;

  --header-offset: 170px;
  --anchor-offset: 110px;

  --sec-py: 72px;
  --sec-py-lg: 96px;

  --bg-main: #000;

  --text-main: #fff;
  --text-muted: rgba(255,255,255,.70);

  --primary: #ED7325;

  --radius: 14px;

  --shadow: 0 12px 34px rgba(0,0,0,.45);

  --hover-border: rgba(240,124,36,.92);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: 320ms;
  --t-slow: 460ms;

  --svc-stroke: 5;
  --quote-stroke: 2;

  --onx-hero-image: none;

  --section-sep-dark: rgba(255,255,255,.06);
  --section-sep-light: rgba(0,0,0,.08);

  --hero-min: 100svh;
}

@media (min-width: 992px){
  :root{
    --header-offset: 220px;
    --anchor-offset: 130px;
    --sec-py: var(--sec-py-lg);
  }
}

/* ===================== Base ===================== */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{ margin: 0; }

.onx-body{
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Scroll lock para drawer: evita rebote y salto por scrollbar */
html.onx-noscroll{
  overscroll-behavior: none;
  scrollbar-gutter: stable;
}

body.onx-noscroll{
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: clip;
}

/* Offset para navegación por anchors con header fijo */
:where(section[id]){
  scroll-margin-top: var(--anchor-offset);
}

/* SVG sprite (oculto) */
.onx-sprite{
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  left: -9999px;
  top: -9999px;
}

/* ===================== Header ===================== */
.onx-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;

  transform: translate3d(0,0,0);
  opacity: 1;

  will-change: transform, opacity, background, box-shadow, border-color, backdrop-filter;

  transition:
    transform 650ms var(--ease),
    opacity   650ms var(--ease),
    background 650ms var(--ease),
    box-shadow 650ms var(--ease),
    border-color 650ms var(--ease),
    backdrop-filter 650ms var(--ease);
}

.onx-header .container{
  padding-left: var(--nav-px) !important;
  padding-right: var(--nav-px) !important;
}

.onx-header__inner{
  padding-top: var(--nav-py-top);
  padding-bottom: var(--nav-py-bottom);
}

.onx-header.is-sticky{
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(240,124,36,.10), transparent 55%),
    rgba(10,10,10,.68);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
}

.onx-header.is-hidden{
  transform: translate3d(0,-115%,0);
  opacity: 0;
}

html.onx-noscroll .onx-header,
body.onx-noscroll .onx-header{
  opacity: 0;
  transform: translate3d(0,-115%,0);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce){
  .onx-header{ transition: none !important; }
}

/* ===================== Logo ===================== */
.onx-logo__img{
  display: block;
  height: 44px;
  width: auto;
}

@media (min-width: 992px){
  .onx-logo__img{ height: 60px; }
}

.onx-logo__swap{
  position: relative;
  display: inline-block;
  height: 44px;
  width: 44px;
}

@media (min-width: 992px){
  .onx-logo__swap{
    height: 48px;
    width: 48px;
  }
}

.onx-logo__swap .onx-logo__img{
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  transform: translateZ(0);
  transition: opacity 420ms var(--ease);
  will-change: opacity;
}

.onx-logo__img--dark{ opacity: 1; }
.onx-logo__img--light{ opacity: 0; }

.onx-header.is-sticky .onx-logo__img--dark{ opacity: 0; }
.onx-header.is-sticky .onx-logo__img--light{ opacity: 1; }

@media (prefers-reduced-motion: reduce){
  .onx-logo__swap .onx-logo__img{ transition: none !important; }
}

/* ===================== Desktop nav ===================== */
.onx-nav__link{
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,.90);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 6px 0;
}

.onx-nav__link::after{
  content:"";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
  border-radius: 999px;
}

.onx-nav__link:hover{ color: #fff; }
.onx-nav__link:hover::after{ transform: scaleX(1); }

.onx-nav__link:focus-visible{
  outline: none;
}
.onx-nav__link:focus-visible::after{ transform: scaleX(1); }

/* ===================== Icon buttons ===================== */
.onx-iconbtn{
  border: 0 !important;
  background: transparent !important;
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: none !important;
}

.onx-iconbtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(240,124,36,.14);
}

.onx-ioni{
  font-size: 28px;
  color: rgba(255,255,255,.92);
  line-height: 1;
  display: block;
}

/* Burger */
.onx-burger{
  display: inline-block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}

.onx-burger::before,
.onx-burger::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}

.onx-burger::before{ top: -6px; }
.onx-burger::after{ top: 6px; }

/* ===================== Mobile drawer ===================== */
.onx-mnav{
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.onx-mnav__backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      1200px 600px at 80% 10%,
      rgba(237,115,37,.08),
      rgba(0,0,0,.55)
    );
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.onx-mnav__panel{
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;

  width: min(92vw, 420px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);

  background:
    radial-gradient(900px 520px at 20% 0%, rgba(240,124,36,.14), transparent 55%),
    linear-gradient(180deg, rgba(18,18,18,.96), rgba(10,10,10,.94));

  box-shadow:
    0 30px 90px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.06);

  backdrop-filter: blur(12px);

  transform: translateX(calc(100% + 28px));
  transition: transform var(--t) var(--ease);

  display: grid;
  grid-template-rows: auto 1fr auto;
}

.onx-mnav__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.onx-mnav__title{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  font-weight: 900;
}

.onx-mnav__close-ic{
  font-size: 22px;
  line-height: 1;
  color: #fff;
  display: block;
}

.onx-mnav__links{
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.onx-mnav__link{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 6px;
  border-radius: 10px;

  text-decoration: none;
  color: rgba(255,255,255,.88);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .01em;

  background: transparent;
  border: 1px solid transparent;

  transition:
    background var(--t) var(--ease),
    border-color var(--t) var(--ease),
    padding var(--t) var(--ease);
}

.onx-mnav__link + .onx-mnav__link{
  border-top: 1px solid rgba(255,255,255,.06);
}

.onx-mnav__link::after{
  content: "›";
  opacity: 0;
  font-size: 18px;
  line-height: 1;
  transform: translateX(-2px);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.onx-mnav__link:hover,
.onx-mnav__link:focus-visible,
.onx-mnav__link:active{
  outline: none;
  background: rgba(255,255,255,.06);
  border-color: rgba(240,124,36,.30);
  padding: 8px 10px;
}

.onx-mnav__link:hover::after,
.onx-mnav__link:focus-visible::after,
.onx-mnav__link:active::after{
  opacity: .90;
  transform: translateX(2px);
}

@media (hover: none){
  .onx-mnav__link:hover{
    background: transparent;
    border-color: transparent;
    padding: 8px 6px;
  }
  .onx-mnav__link:hover::after{
    opacity: 0;
    transform: translateX(-2px);
  }
}

.onx-mnav__footer{
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.22));
}

.onx-mnav__login{
  display: block;
  text-align: center;
  text-decoration: none;

  border-radius: 14px;
  padding: 13px 14px;
  background: linear-gradient(90deg, var(--primary), #d56a17);
  color: #fff;

  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;

  box-shadow:
    0 14px 28px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.10) inset;

  transition: transform var(--t) var(--ease), filter var(--t) var(--ease);
}

.onx-mnav__login:hover{
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.onx-mnav.is-open{ pointer-events: auto; }
.onx-mnav.is-open .onx-mnav__backdrop{ opacity: 1; }
.onx-mnav.is-open .onx-mnav__panel{ transform: translateX(0); }

@media (min-width: 992px){
  .onx-mnav{ display: none; }
}

@media (max-width: 991.98px){
  .onx-header .onx-iconbtn--login{
    display: none !important;
  }
}

/* ===================== Hero ===================== */
.onx-hero{
  position: relative;
  min-height: 86vh;
  padding-top: var(--header-offset);
  padding-bottom: clamp(42px, 6vw, 90px);
  overflow: hidden;
}

.onx-hero__bg{
  position: absolute;
  inset: 0;
  background: var(--onx-hero-image) center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
}

.onx-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.onx-hero__fade{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 320px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg-main));
}

.onx-eyebrow{
  color: var(--primary);
  font-size: 12px;
  letter-spacing: .12em;
}

.onx-hero__title{
  font-weight: 900;
  line-height: 1.06;
  font-size: clamp(34px, 4vw, 54px);
  margin: 0;
}

.onx-hero__lead{
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.onx-hero__copy{
  padding-top: clamp(8px, 1.5vw, 18px);
}

.onx-hero__copy > .onx-hero__lead{
  max-width: 540px;
}

.onx-hero__stack{
  display: grid;
  gap: 18px;
  margin-top: 18px;
  max-width: 540px;
  margin-left: auto;
}

/* ===================== Cards ===================== */
.onx-card{
  background: rgba(20,20,20,.82);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.onx-card--primary{
  background: linear-gradient(180deg, #ED7325 0%, #AA4D12 100%);
}

.onx-card__title{
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 900;
}

.onx-card__text{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}

.onx-card--primary .onx-card__text{
  color: rgba(255,255,255,.82);
}

/* ===================== Sections base ===================== */
.onx-section,
.onx-partners,
.onx-why,
.onx-testis,
.onx-contact{
  padding-block: var(--sec-py);
}

.onx-section + .onx-partners,
.onx-partners + .onx-why,
.onx-why + .onx-testis,
.onx-testis + .onx-contact{
  border-top: 1px solid var(--section-sep-dark);
}

.onx-section__title{
  font-size: 34px;
  font-weight: 900;
}

.onx-section__subtitle{
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
}

/* ===================== Hover compartido ===================== */
.onx-svc,
.onx-whycard{
  border: 1px solid rgba(255,255,255,.08);
  transition:
    transform var(--t) var(--ease),
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease);
  will-change: transform;
}

.onx-svc:hover,
.onx-svc:focus-visible,
.onx-whycard:hover,
.onx-whycard:focus-visible{
  transform: translateY(-2px);
  border-color: var(--hover-border);
  outline: none;
}

/* ===================== Servicios ===================== */
.onx-svc{
  background: #1a1a1a;
  border-color: #3C3939;
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.40);
  min-height: 240px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onx-svc__icon{
  width: 78px;
  height: 78px;
  margin: 0 auto 14px auto;
  border-radius: 16px;

  display: grid;
  place-items: center;
}

.onx-ic--svc{
  width: 56px;
  height: 56px;
  display: block;
}

.onx-svc__title{
  font-size: 16px;
  font-weight: 900;
  margin: 6px 0 10px 0;
  color: rgba(255,255,255,.92);
}

.onx-svc__text{
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,.62);
  max-width: 250px;
  margin-inline: auto;
}

@media (min-width: 992px){
  .onx-svc{
    min-height: 260px;
    padding: 34px 22px;
  }
}

/* ===================== Partners / Marquee ===================== */
.onx-partners{
  background: #fff;
  color: #111;
}

.onx-partners + .onx-why{
  border-top-color: var(--section-sep-light);
}

.onx-partners__title{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  padding-bottom: 40px;
}

.onx-partners__logo{
  height: 30px;
  width: auto;
  display: block;
  opacity: .95;
  filter: saturate(1.1);
  flex: 0 0 auto;
}

@media (min-width: 992px){
  .onx-partners__logo{ height: 58px; }
}

@media (max-width: 575.98px){
  .onx-partners__title{ font-size: 24px; }
  .onx-partners__logo{ height: 28px; }
}

.onx-marquee{
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.onx-marquee__track{
  display: flex;
  width: max-content;
  gap: 28px;
  animation: onx-marquee-scroll 26s linear infinite;
  will-change: transform;
}

.onx-marquee__group{
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 6px 0;
}

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

@media (prefers-reduced-motion: reduce){
  .onx-marquee__track{ animation: none; }
}

/* ===================== Why / Timeline ===================== */
.onx-why{ background: var(--bg-main); }

.onx-why__title{
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.onx-why__lead{
  color: rgba(255,255,255,.72);
  font-size: 13px;
  max-width: 420px;
  line-height: 1.75;
}

.onx-timeline{
  position: relative;
  display: grid;
  gap: 16px;

  --tl-col: 34px;
  --tl-x: calc(var(--tl-col) / 2);
}

.onx-timeline__line{
  position: absolute;
  left: var(--tl-x);
  top: 10px;
  bottom: 10px;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;

  background: linear-gradient(
    to bottom,
    rgba(240,124,36,.92) 0%,
    rgba(240,124,36,.78) 72%,
    rgba(240,124,36,0) 100%
  );
  box-shadow:
    0 0 0 6px rgba(240,124,36,.06),
    0 0 24px rgba(240,124,36,.12);

  z-index: 0;
}

.onx-timeline__item{
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-col) 1fr;
  gap: 12px;
  align-items: center;
  z-index: 1;
}

.onx-timeline__dot{
  grid-column: 1;
  justify-self: center;

  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;

  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  border-radius: 6px;

  box-shadow:
    0 10px 22px rgba(0,0,0,.45),
    0 0 0 4px rgba(240,124,36,.10);

  z-index: 2;
}

.onx-whycard{
  grid-column: 2;
  background: #1a1a1a;
  border-color: #3C3939;
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.onx-whycard__title{
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
}

.onx-whycard__text{
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,.62);
}

@media (max-width: 575.98px){
  .onx-timeline{
    gap: 14px;
    --tl-col: 28px;
  }

  .onx-timeline__item{ gap: 10px; }
  .onx-whycard{ padding: 18px 16px; }
}

/* ===================== Testimonials ===================== */
.onx-testis{
  background: #fff;
  color: #111;
}

.onx-why + .onx-testis{
  border-top: 1px solid var(--section-sep-light);
}

.onx-testis__title{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.onx-testis__line{
  display: inline-block;
  width: 340px;
  max-width: 70%;
  height: 2px;
  background: rgba(240,124,36,.9);
  border-radius: 999px;
}

.onx-quote{
  position: relative;
  overflow: hidden;

  border-radius: var(--radius);
  padding: 24px 22px;
  min-height: 160px;

  background: #1a1a1a;
  border: 1px solid #3C3939;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);

  transition:
    transform var(--t) var(--ease),
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
  will-change: transform;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.onx-quote__mark{
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.onx-ic--quote{
  width: 34px;
  height: 34px;
  display: block;
  color: var(--primary);
}

.onx-quote__text{
  margin: 0 0 18px 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  transition: color var(--t-slow) var(--ease) 60ms;
}

.onx-quote__who{
  font-size: 12px;
  color: rgba(255,255,255,.65);
  transition: color var(--t-slow) var(--ease) 80ms;
  margin-top: auto;
}

.onx-quote::before,
.onx-quote::after{
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow) var(--ease);
}

.onx-quote::before{ background: rgba(255,255,255,.55); }

.onx-quote::after{
  background: #fff;
  transition-delay: 90ms;
}

.onx-quote > *{ position: relative; z-index: 1; }

.onx-quote:hover,
.onx-quote:focus-visible{
  transform: translateY(-2px);
  border-color: var(--hover-border);
  outline: none;
}

.onx-quote:hover::before,
.onx-quote:focus-visible::before,
.onx-quote:hover::after,
.onx-quote:focus-visible::after{
  opacity: 1;
}

.onx-quote:hover .onx-quote__text,
.onx-quote:focus-visible .onx-quote__text{
  color: rgba(17,17,17,.82);
}

.onx-quote:hover .onx-quote__who,
.onx-quote:focus-visible .onx-quote__who{
  color: rgba(17,17,17,.70);
}

/* ===================== Contact ===================== */
.onx-contact{ background: #1a1a1a; }

.onx-contact__title{
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
}

.onx-form{ max-width: 520px; }

/* =====================
   Mensajes de formulario
   ===================== */

.onx-form-message,
.onx-apply-message{
  /* heredan el estilo desde .onx-msg */
}

/* ===== Base component ===== */
.onx-msg{
  margin: 0 0 14px 0;
  padding: 12px 14px 12px 46px;
  border-radius: 14px;
  position: relative;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,10,10,.55);
  box-shadow:
    0 16px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);

  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.55;

  animation: onx-msg-in 380ms var(--ease) both;

  word-break: break-word;
}

@keyframes onx-msg-in{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Icon bubble */
.onx-msg::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);

  width: 22px;
  height: 22px;
  border-radius: 8px;

  display: grid;
  place-items: center;

  font-weight: 900;
  font-size: 13px;
  color: #0b0b0b;
  background: rgba(255,255,255,.85);
}

/* Left accent bar */
.onx-msg::after{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.20);
}

/* ===== SUCCESS ===== */
.onx-msg.is-success{
  border-color: rgba(46, 213, 115, .28);
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(46, 213, 115, .12), transparent 60%),
    rgba(10,10,10,.55);
  box-shadow:
    0 16px 44px rgba(0,0,0,.35),
    0 0 0 4px rgba(46, 213, 115, .08),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.onx-msg.is-success::before{
  content: "✓";
  background: rgba(46, 213, 115, .92);
  color: #06140c;
}
.onx-msg.is-success::after{
  background: linear-gradient(
    to bottom,
    rgba(46, 213, 115, .95),
    rgba(46, 213, 115, .20)
  );
}

/* ===== ERROR ===== */
.onx-msg.is-error{
  border-color: rgba(255, 71, 87, .30);
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(255, 71, 87, .12), transparent 60%),
    rgba(10,10,10,.55);
  box-shadow:
    0 16px 44px rgba(0,0,0,.35),
    0 0 0 4px rgba(255, 71, 87, .08),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.onx-msg.is-error::before{
  content: "!";
  background: rgba(255, 71, 87, .92);
  color: #1a0508;
}
.onx-msg.is-error::after{
  background: linear-gradient(
    to bottom,
    rgba(255, 71, 87, .95),
    rgba(255, 71, 87, .20)
  );
}

/* Optional: tighter on mobile */
@media (max-width: 575.98px){
  .onx-msg{
    padding: 12px 12px 12px 44px;
    border-radius: 12px;
  }
  .onx-msg::before{ left: 12px; }
}

/* ===== Form message list (bullets) ===== */
.onx-msg strong{
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
  letter-spacing: .01em;
}

.onx-msg ul{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.onx-msg li{
  margin: 0;
  color: rgba(255,255,255,.82);
}

/* Optional: highlight fields with error */
.onx-input.is-invalid{
  border-color: rgba(255,71,87,.55) !important;
  box-shadow: 0 0 0 4px rgba(255,71,87,.10) !important;
  background: rgba(255,255,255,.03);
}

.onx-input{
  width: 100%;
  background: transparent;
  border: 1px solid #474343;
  border-radius: 10px;
  padding: 12px 14px;
  color: rgba(255,255,255,.88);
  outline: none;

  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease);

  font-size: 13px;
}

.onx-input::placeholder{ color: rgba(255,255,255,.40); }

.onx-input:focus{
  border-color: rgba(240,124,36,.55);
  box-shadow: 0 0 0 4px rgba(240,124,36,.12);
  background: rgba(255,255,255,.05);
}

.onx-textarea{
  resize: none;
  min-height: 150px;
}

.onx-btn{
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
  transition: transform var(--t) var(--ease), filter var(--t) var(--ease);
}

.onx-btn:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.onx-visit{
  background: transparent;
  border: 1px solid #474343;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,.40);
}

.onx-visit__title{
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}

.onx-visit__meta{
  display: grid;
  gap: 10px;
}

.onx-visit__row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.55;
}

.onx-visit__label{
  color: var(--primary);
  font-weight: 900;
}

.onx-visit__value{
  color: rgba(255,255,255,.85);
}

.onx-map{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}

.onx-map iframe{
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

@media (min-width: 992px){
  .onx-map iframe{ height: 300px; }
}

/* ===================== Footer ===================== */
.onx-footer{
  background: #000;
  color: rgba(255,255,255,.85);
  border-top: 1px solid rgba(255,255,255,.08);
}

.onx-footer__title{
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin-bottom: 10px;
}

.onx-footer__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.onx-footer__list a{
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,.70);
  text-decoration: none;
  font-size: 12px;
  padding: 2px 0;
}

.onx-footer__list a::after{
  content:"";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
  border-radius: 999px;
}

.onx-footer__list a:hover{ color: #fff; }
.onx-footer__list a:hover::after{ transform: scaleX(1); }

.onx-footer__text{
  font-size: 12px;
  color: rgba(255,255,255,.70);
  line-height: 1.55;
}

.onx-social{
  display: flex;
  gap: 10px;
  align-items: center;
}

.onx-social__btn{
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.85);
  text-decoration: none;

  transition:
    transform var(--t) var(--ease),
    color var(--t) var(--ease);
}

.onx-social__btn:hover{
  transform: translateY(-1px);
  color: var(--primary);
}

.onx-footer__bottom{
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}

.onx-footer__copy{
  text-align: center;
  color: #111;
  font-size: 12px;
  padding: 10px 0;
}

/* ===================== Hero full-screen + centrado ===================== */
.onx-hero.is-full{
  min-height: var(--hero-min);
  display: flex;
  align-items: center;
  padding-top: var(--header-offset);
  padding-bottom: 0;
}

.onx-hero.is-full > .container{
  width: 100%;
}

/* Lift del contenido del hero por página */
.onx-page--home,
.onx-page--about,
.onx-page--join{
  --hero-lift: -10px;
}

@media (min-width: 992px){
  .onx-page--home,
  .onx-page--about,
  .onx-page--join{
    --hero-lift: -52px;
  }
}

@media (max-width: 991.98px){
  .onx-page--home,
  .onx-page--about,
  .onx-page--join{
    --hero-lift: -6px;
  }
}

@media (max-width: 575.98px){
  .onx-page--home,
  .onx-page--about,
  .onx-page--join{
    --hero-lift: 0px;
  }
}

.onx-page--home .onx-hero.is-full .onx-hero__copy,
.onx-page--about .onx-hero.is-full .onx-hero__copy,
.onx-page--home .onx-hero.is-full .onx-hero__stack,
.onx-page--about .onx-hero.is-full .onx-hero__stack,
.onx-page--join .onx-hero.is-full .onx-joinhero{
  transform: translateY(var(--hero-lift));
}