/* M4RTIAL V105 · unificación visual, animación y compactación responsive */

.v105 {
  --v105-black: #090908;
  --v105-ink: #151411;
  --v105-gold: #d5a936;
  --v105-gold-light: #efd77e;
  --v105-paper: #f7f3ea;
  --v105-muted: #77736b;
  --v105-line: rgba(20, 19, 16, .13);
  --v105-ease: cubic-bezier(.22, .76, .24, 1);
}

/* Cabecera coherente con la portada */
.b2b-page .site-header,
.b2b-page .site-header.scrolled,
.b2b-page.menu-open .site-header {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(90deg, rgba(213, 169, 54, .06), transparent 32%),
    rgba(9, 9, 8, .94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .13);
  backdrop-filter: blur(18px);
}

.b2b-page .brand {
  color: #fff;
}

.b2b-page .brand small {
  color: #aaa69f;
}

.b2b-page .nav a {
  color: #d8d4ca;
}

.b2b-page .nav a:hover,
.b2b-page .nav a:focus-visible,
.b2b-page .nav a[aria-current="page"] {
  color: var(--v105-gold-light);
}

.b2b-page .nav-login {
  color: var(--v105-black) !important;
  background: var(--v105-gold-light);
}

.b2b-page .seo-language-links {
  flex-wrap: nowrap;
}

.b2b-page .site-header .seo-language-links a {
  min-width: 34px;
  padding: 7px 9px;
  border-color: rgba(255, 255, 255, .18);
  color: #d8d4ca;
  text-align: center;
}

.b2b-page .site-header .seo-language-links a:hover,
.b2b-page .site-header .seo-language-links a:focus-visible {
  border-color: rgba(239, 215, 126, .66);
  color: #fff;
}

.b2b-page .site-header .seo-language-links a[aria-current="page"] {
  border-color: var(--v105-gold-light);
  color: var(--v105-black);
  background: var(--v105-gold-light);
}

/* Páginas para empresas, instituciones y educación */
.b2b-page {
  background: var(--v105-paper);
}

.b2b-page .b2b-hero {
  position: relative;
  padding: clamp(118px, 12vw, 154px) 0 clamp(58px, 7vw, 88px);
  isolation: isolate;
  background:
    radial-gradient(circle at 83% 20%, rgba(213, 169, 54, .19), transparent 28%),
    linear-gradient(138deg, #090908 0%, #12110e 58%, #211b0e 100%);
}

.b2b-page .b2b-hero::before {
  position: absolute;
  z-index: -1;
  right: -2vw;
  bottom: -4vw;
  content: "M4";
  color: rgba(255, 255, 255, .018);
  font-family: var(--display);
  font-size: clamp(210px, 31vw, 490px);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.08em;
  pointer-events: none;
}

.b2b-page .b2b-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
  gap: clamp(34px, 5.4vw, 78px);
}

.b2b-page .b2b-hero h1,
.b2b-page .b2b-heading h2,
.b2b-page .b2b-audience h2,
.b2b-page .b2b-cta h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}

.b2b-page .b2b-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.7rem, 7vw, 6.35rem);
  line-height: .82;
  letter-spacing: -.028em;
}

.b2b-page .b2b-hero h1 em {
  display: block;
  color: var(--v105-gold-light);
}

.b2b-page .b2b-hero-copy > p:not(.b2b-kicker) {
  max-width: 57ch;
  margin-top: 22px;
  color: #aaa69f;
  font-size: 15px;
  line-height: 1.68;
}

.b2b-page .b2b-kicker {
  color: var(--v105-gold-light);
  font-size: 10px;
  letter-spacing: .17em;
}

.b2b-page .b2b-actions {
  margin-top: 25px;
}

.b2b-page .b2b-actions .button {
  border-radius: 2px;
}

.b2b-page .b2b-hero-visual {
  min-height: 430px;
  border: 1px solid rgba(239, 215, 126, .24);
  border-radius: 0;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .38);
}

.b2b-page .b2b-hero-visual::before {
  position: absolute;
  z-index: 2;
  inset: 16px;
  content: "";
  border: 1px solid rgba(239, 215, 126, .28);
  pointer-events: none;
}

.b2b-page .b2b-hero-visual img {
  filter: saturate(.84) contrast(1.08);
  transition: transform .9s var(--v105-ease), filter .4s ease;
}

.b2b-page .b2b-hero-visual:hover img {
  filter: saturate(1) contrast(1.08);
  transform: scale(1.035);
}

.b2b-page .b2b-proof {
  color: #fff;
  border: 0;
  background: #11110f;
}

.b2b-page .b2b-proof-grid div {
  border-color: rgba(255, 255, 255, .1);
}

.b2b-page .b2b-proof-grid strong {
  color: var(--v105-gold-light);
  font-family: var(--display);
  font-size: 1.32rem;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.b2b-page .b2b-proof-grid span {
  color: #8f8b83;
  font-size: .78rem;
}

.b2b-page .b2b-section {
  padding: clamp(68px, 8vw, 104px) 0;
  background: var(--v105-paper);
}

.b2b-page .b2b-section.soft {
  border-block: 1px solid var(--v105-line);
  background: #ece5d7;
}

.b2b-page .b2b-heading {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.b2b-page .b2b-heading h2 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: .86;
  letter-spacing: -.022em;
}

.b2b-page .b2b-heading p {
  color: var(--v105-muted);
  font-size: .92rem;
  line-height: 1.7;
}

.b2b-page .b2b-cards {
  gap: 12px;
}

.b2b-page .b2b-card {
  min-height: 274px;
  padding: clamp(23px, 2.7vw, 34px);
  border-color: var(--v105-line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 16px 38px rgba(25, 22, 15, .04);
  transition:
    transform .38s var(--v105-ease),
    border-color .28s ease,
    box-shadow .38s var(--v105-ease);
}

.b2b-page .b2b-card::before {
  width: 34px;
  height: 2px;
  margin-bottom: 18px;
  content: "";
  background: var(--v105-gold);
  transition: width .35s var(--v105-ease);
}

.b2b-page .b2b-card:hover,
.b2b-page .b2b-card:focus-within {
  border-color: rgba(213, 169, 54, .62);
  box-shadow: 0 22px 48px rgba(25, 22, 15, .09);
  transform: translateY(-6px);
}

.b2b-page .b2b-card:hover::before,
.b2b-page .b2b-card:focus-within::before {
  width: 70px;
}

.b2b-page .b2b-card > span {
  color: #886516;
  font-size: .66rem;
}

.b2b-page .b2b-card h2,
.b2b-page .b2b-card h3 {
  margin: 18px 0 10px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  line-height: .92;
  text-transform: uppercase;
}

.b2b-page .b2b-card p,
.b2b-page .b2b-card ul {
  color: var(--v105-muted);
  font-size: .88rem;
  line-height: 1.62;
}

.b2b-page .b2b-card a {
  margin-top: auto;
  padding-top: 18px;
}

.b2b-page .b2b-audiences {
  gap: 12px;
}

.b2b-page .b2b-audience {
  min-height: 330px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.b2b-page .b2b-audience::before {
  position: absolute;
  right: -20px;
  top: -36px;
  content: "M4";
  color: rgba(255, 255, 255, .035);
  font-family: var(--display);
  font-size: 180px;
  line-height: 1;
}

.b2b-page .b2b-audience:nth-child(2)::before {
  color: rgba(0, 0, 0, .055);
}

.b2b-page .b2b-audience h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.25rem, 4.1vw, 4rem);
  line-height: .88;
}

.b2b-page .b2b-process {
  gap: 10px;
}

.b2b-page .b2b-process article {
  min-height: 215px;
  border-top-color: var(--v105-gold);
  background: var(--v105-ink);
  transition: transform .34s var(--v105-ease), background .28s ease;
}

.b2b-page .b2b-process article:hover {
  background: #211d13;
  transform: translateY(-5px);
}

.b2b-page .b2b-process h3 {
  font-family: var(--display);
  font-size: 1.9rem;
  text-transform: uppercase;
}

.b2b-page .b2b-faq details {
  background: transparent;
  transition: padding .25s var(--v105-ease), background .25s ease;
}

.b2b-page .b2b-faq details[open] {
  padding-inline: 18px;
  background: rgba(255, 255, 255, .66);
}

.b2b-page .b2b-faq summary {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.b2b-page .b2b-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(213, 169, 54, .22), transparent 27%),
    var(--v105-black);
}

.b2b-page .b2b-cta::after {
  position: absolute;
  right: -20px;
  bottom: -60px;
  content: "M4RTIAL";
  color: rgba(255, 255, 255, .022);
  font-family: var(--display);
  font-size: clamp(100px, 17vw, 250px);
  line-height: .8;
  pointer-events: none;
}

.b2b-page .b2b-cta-grid {
  position: relative;
  z-index: 1;
}

.b2b-page .b2b-cta h2 {
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  line-height: .84;
}

.b2b-page .site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Las nuevas vías de la portada forman parte del mismo sistema visual */
.v105 .b2b-home {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-color: rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 8% 15%, rgba(213, 169, 54, .16), transparent 25%),
    #0b0b0a;
}

.v105 .b2b-home::after {
  position: absolute;
  right: -24px;
  bottom: -58px;
  content: "TEAM";
  color: rgba(255, 255, 255, .022);
  font-family: var(--display);
  font-size: clamp(120px, 20vw, 280px);
  line-height: .75;
  pointer-events: none;
}

.v105 .b2b-home-grid {
  position: relative;
  z-index: 1;
}

.v105 .b2b-home-copy h2 {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.9rem);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.v105 .b2b-home-copy > p:not(.eyebrow) {
  color: #9f9b93;
}

.v105 .b2b-home-copy .text-link,
.v105 .b2b-home-links b {
  color: var(--v105-gold-light);
}

.v105 .b2b-home-links a {
  border-color: rgba(255, 255, 255, .12);
  border-radius: 2px;
  color: #fff;
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(8px);
}

.v105 .b2b-home-links a:hover,
.v105 .b2b-home-links a:focus-visible {
  border-color: rgba(239, 215, 126, .64);
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.v105 .b2b-home-links small {
  color: var(--v105-gold-light);
}

.v105 .b2b-home-links span {
  color: #9f9b93;
}

.v105 .visitor-strip-media,
.v105 .dropin-card,
.v105 .dropin-hero-facts,
.v105 .dropin-schedule-table,
.v105 .dropin-steps {
  border-radius: 2px;
}

.v105.is-ready .dropin-hero-media img {
  animation: v105-dropin-image 1.25s var(--v105-ease) both;
}

/* Animaciones recuperadas para las páginas que habían quedado estáticas */
.v105-motion .v105-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .72s var(--v105-ease),
    transform .72s var(--v105-ease);
  transition-delay: calc(var(--v105-order, 0) * 58ms);
  will-change: opacity, transform;
}

.v105-motion .v105-reveal[data-v105-direction="left"] {
  transform: translate3d(-28px, 14px, 0);
}

.v105-motion .v105-reveal[data-v105-direction="right"] {
  transform: translate3d(28px, 14px, 0);
}

.v105-motion .v105-reveal[data-v105-direction="scale"] {
  transform: scale(.965);
}

.v105-motion .v105-reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.v105-motion.v105-hero-ready .b2b-hero-copy {
  animation: v105-hero-copy .88s var(--v105-ease) both;
}

.v105-motion.v105-hero-ready .b2b-hero-visual {
  animation: v105-hero-visual 1.04s .08s var(--v105-ease) both;
}

@keyframes v105-hero-copy {
  from {
    opacity: 0;
    transform: translate3d(-34px, 16px, 0);
  }
}

@keyframes v105-hero-visual {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0) scale(.98);
  }
}

@keyframes v105-dropin-image {
  from {
    opacity: .7;
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 960px) {
  .b2b-page .b2b-hero-grid {
    grid-template-columns: 1fr;
  }

  .b2b-page .b2b-hero-copy {
    max-width: 760px;
  }

  .b2b-page .b2b-hero-visual {
    width: min(100%, 720px);
    min-height: 380px;
  }
}

@media (max-width: 700px) {
  .b2b-page .site-header,
  .b2b-page .site-header.scrolled {
    background: rgba(9, 9, 8, .96);
  }

  .b2b-page .site-header .seo-language-links {
    gap: 4px;
  }

  .b2b-page .site-header .seo-language-links a {
    min-width: 30px;
    padding: 6px 7px;
    font-size: .65rem;
  }

  .b2b-page .b2b-hero {
    padding: 94px 0 46px;
  }

  .b2b-page .b2b-hero-grid {
    gap: 26px;
  }

  .b2b-page .b2b-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.25rem, 15vw, 4.4rem);
    line-height: .82;
  }

  .b2b-page .b2b-hero-copy > p:not(.b2b-kicker) {
    margin-top: 17px;
    font-size: 13px;
    line-height: 1.6;
  }

  .b2b-page .b2b-actions {
    display: grid;
    margin-top: 21px;
  }

  .b2b-page .b2b-actions .button {
    width: 100%;
    min-height: 45px;
  }

  .b2b-page .b2b-hero-visual {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .b2b-page .b2b-hero-visual::before {
    inset: 10px;
  }

  .b2b-page .b2b-proof-grid div {
    min-height: 78px;
    padding: 14px 12px;
  }

  .b2b-page .b2b-proof-grid strong {
    font-size: 1rem;
  }

  .b2b-page .b2b-proof-grid span {
    margin-top: 3px;
    font-size: .66rem;
    line-height: 1.35;
  }

  .b2b-page .b2b-section {
    padding: 54px 0;
  }

  .b2b-page .b2b-heading {
    gap: 14px;
    margin-bottom: 24px;
  }

  .b2b-page .b2b-heading h2 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 12vw, 3.5rem);
    line-height: .87;
  }

  .b2b-page .b2b-heading p {
    font-size: .78rem;
    line-height: 1.58;
  }

  .b2b-page .b2b-cards,
  .b2b-page .b2b-audiences,
  .b2b-page .b2b-process,
  .v105 .b2b-home-links {
    width: calc(100vw - 12px);
    margin-right: -12px;
    padding-right: 12px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 328px);
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .b2b-page .b2b-cards::-webkit-scrollbar,
  .b2b-page .b2b-audiences::-webkit-scrollbar,
  .b2b-page .b2b-process::-webkit-scrollbar,
  .v105 .b2b-home-links::-webkit-scrollbar {
    display: none;
  }

  .b2b-page .b2b-card,
  .b2b-page .b2b-audience,
  .b2b-page .b2b-process article,
  .v105 .b2b-home-links a {
    scroll-snap-align: start;
  }

  .b2b-page .b2b-card {
    min-height: 286px;
  }

  .b2b-page .b2b-audience {
    min-height: 300px;
    padding: 26px;
  }

  .b2b-page .b2b-process article {
    min-height: 225px;
  }

  .b2b-page .b2b-faq summary {
    padding-block: 18px;
    font-size: 1.12rem;
  }

  .b2b-page .b2b-cta {
    padding: 58px 0;
  }

  .b2b-page .b2b-cta h2 {
    font-size: clamp(2.75rem, 13vw, 3.7rem);
  }

  .v105 .b2b-home-grid {
    gap: 28px;
  }

  .v105 .b2b-home-copy h2 {
    font-size: clamp(2.8rem, 12vw, 3.7rem);
  }

  .v105 .b2b-home-links a {
    min-height: 184px;
  }

  .v105 .visitor-strip-media,
  .v105 .visitor-strip-media img {
    min-height: 320px;
  }

  .v105 .visitor-strip-media {
    border-radius: 2px;
  }
}

@media (max-width: 430px) {
  .b2b-page .brand small {
    display: none;
  }

  .b2b-page .brand strong {
    font-size: 13px;
  }
}

/* V106 · experiencia para viajeros y navegación móvil más compacta */
.v105 .visitor-strip-badge-free {
  border-color: rgba(240, 212, 122, .78);
  background:
    linear-gradient(135deg, rgba(240, 212, 122, .98), rgba(194, 142, 25, .96));
  box-shadow: 0 18px 42px rgba(18, 12, 2, .32);
}

.v105 .visitor-strip-badge-free span,
.v105 .visitor-strip-badge-free strong {
  color: #090908;
}

.v105 .visitor-strip-badge-free strong {
  font-size: clamp(18px, 2.1vw, 28px);
  letter-spacing: -.02em;
}

@media (max-width: 850px) {
  .v105 .nav {
    padding-top: 7px;
    padding-bottom: 12px;
  }

  .v105 .nav > a {
    min-height: 40px;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .v105 .nav-login {
    min-height: 40px !important;
    margin-top: 5px;
  }
}

@media (hover: none), (pointer: coarse) {
  .b2b-page .b2b-card:hover,
  .b2b-page .b2b-process article:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v105 *,
  .v105 *::before,
  .v105 *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .v105-motion .v105-reveal {
    opacity: 1;
    transform: none;
  }
}
