/* Home + páginas internas — Expo Transporte 2027 */

.wrap {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, 760px);
  text-align: center;
}

.wrap--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-intense);
  margin-bottom: 0.75rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  color: var(--ink);
  background: #fff;
}

.section--alt {
  background: var(--surface);
}

.section__head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 40rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head h2,
.section h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.section__dek {
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.55;
}

.section p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ——— Placeholders de media ——— */

.media-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(4, 30, 66, 0.04), rgba(0, 200, 255, 0.08)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(4, 30, 66, 0.03) 8px,
      rgba(4, 30, 66, 0.03) 16px
    );
  border: 1.5px dashed rgba(4, 30, 66, 0.22);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-height: 160px;
  padding: 1rem;
}

.media-ph span {
  max-width: 14rem;
  line-height: 1.35;
}

.media-ph::after {
  /* ruta sugerida visible en title/tooltip via data-label */
  content: none;
}

.media-ph[data-label] {
  position: relative;
}

.media-ph--datos { min-height: 160px; aspect-ratio: 4 / 3; }
.media-ph--tall { min-height: 420px; height: 100%; }
.media-ph--wide { min-height: 240px; margin-top: 2rem; aspect-ratio: 21 / 9; }
.media-ph--galeria { min-width: min(72vw, 320px); aspect-ratio: 4 / 3; flex: 0 0 auto; }
.media-ph--logo { min-height: 88px; aspect-ratio: 3 / 2; }
.media-ph--video { min-height: 280px; aspect-ratio: 16 / 9; }
.media-ph--map { min-height: 280px; aspect-ratio: 4 / 3; }
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-deep);
  background-size: cover;
  background-position: center;
}

.media-ph--page-hero {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.55);
}

.media-ph--on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

/* ——— Botones ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #0a2a55;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(4, 30, 66, 0.25);
}

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

.btn--ghost-on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost-on-dark:hover {
  border-color: #fff;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* ——— Datos del evento (full-bleed) ——— */

.datos {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: stretch;
  color: var(--white);
  overflow: hidden;
}

.datos__scenes {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.datos__scene {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.8s ease;
}

.datos__scene.is-default {
  opacity: 1;
  transform: scale(1);
}

/* Crossfade de fondos al hover/focus de cada dato */
.datos:has(.datos__item:hover) .datos__scene.is-default,
.datos:has(.datos__item:focus-visible) .datos__scene.is-default,
.datos:has(.datos__item:focus-within) .datos__scene.is-default {
  opacity: 0;
}

.datos:has(.datos__item[data-bg="donde"]:hover) .datos__scene[data-bg="donde"],
.datos:has(.datos__item[data-bg="donde"]:focus-visible) .datos__scene[data-bg="donde"],
.datos:has(.datos__item[data-bg="donde"]:focus-within) .datos__scene[data-bg="donde"] {
  opacity: 1;
  transform: scale(1);
}

.datos:has(.datos__item[data-bg="cuando"]:hover) .datos__scene[data-bg="cuando"],
.datos:has(.datos__item[data-bg="cuando"]:focus-visible) .datos__scene[data-bg="cuando"],
.datos:has(.datos__item[data-bg="cuando"]:focus-within) .datos__scene[data-bg="cuando"] {
  opacity: 1;
  transform: scale(1);
}

.datos:has(.datos__item[data-bg="hora"]:hover) .datos__scene[data-bg="hora"],
.datos:has(.datos__item[data-bg="hora"]:focus-visible) .datos__scene[data-bg="hora"],
.datos:has(.datos__item[data-bg="hora"]:focus-within) .datos__scene[data-bg="hora"] {
  opacity: 1;
  transform: scale(1);
}

.datos__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(4, 6, 12, 0.55) 0%,
      rgba(11, 44, 74, 0.62) 48%,
      rgba(4, 6, 12, 0.78) 100%
    );
  pointer-events: none;
}

.datos__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.5rem, 8vh, 5rem);
  flex: 1;
}

.datos__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.55rem;
}

.datos__head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
}

.datos__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.datos__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 1.85rem) clamp(0.85rem, 2vw, 1.5rem);
  color: #fff;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
  outline: none;
}

.datos__item + .datos__item {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.datos__item:hover,
.datos__item:focus-visible {
  background: rgba(43, 188, 219, 0.18);
}

.datos__icon {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(43, 188, 219, 0.12);
  border: 1px solid rgba(43, 188, 219, 0.45);
}

.datos__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.datos__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.datos__value {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}

@media (max-width: 800px) {
  .datos {
    min-height: 0;
  }

  .datos__items {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .datos__item {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .datos__item + .datos__item {
    border-left: 0;
  }

  .datos__content {
    gap: 2rem;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .datos__head h2 {
    font-size: 1.65rem;
  }

  .datos__value {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .datos__scene {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

/* ——— Bienvenida ——— */

.bienvenida__lead {
  font-size: 1.1rem !important;
  font-weight: 600;
  color: var(--ink) !important;
}

.bienvenida__cta-line {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  margin-top: 1.25rem !important;
}

/* ——— Stats ——— */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stats__item {
  background: var(--surface);
  border-radius: 6px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.stats__value {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stats__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.transportando__note {
  font-weight: 700 !important;
  color: var(--ink) !important;
  text-align: center;
  margin: 1.5rem 0 !important;
}

.transportando .wrap > p {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

/* ——— Galería ——— */

.galeria {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.galeria__shell {
  position: relative;
}

.galeria__track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0 max(1rem, calc((100% - 1120px) / 2)) 0.75rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 44, 74, 0.35) transparent;
}

.galeria__track:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.galeria__item {
  flex: 0 0 auto;
  width: min(78vw, 420px);
  margin: 0;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3 / 2;
  display: block;
}

.galeria__item picture,
.galeria__item img {
  width: 100%;
  height: 100%;
  display: block;
}

.galeria__item img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .galeria__item:hover img {
    transform: scale(1.04);
  }
}

.galeria__nav {
  position: absolute;
  top: 50%;
  translate: 0 -55%;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 6, 12, 0.72);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.galeria__nav:hover {
  background: var(--bg-deep);
}

.galeria__nav--prev { left: max(0.5rem, calc((100% - 1120px) / 2 - 0.5rem)); }
.galeria__nav--next { right: max(0.5rem, calc((100% - 1120px) / 2 - 0.5rem)); }

.galeria__empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem 1rem;
}

/* ——— Lightbox ——— */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 12, 0.92);
  display: grid;
  place-items: center;
  padding: 3.5rem 1rem 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: calc(100dvh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox__nav:hover {
  background: rgba(43, 188, 219, 0.35);
}

.lightbox__nav--prev { left: 0.75rem; }
.lightbox__nav--next { right: 0.75rem; }

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .galeria__nav {
    display: none;
  }

  .galeria__item {
    width: min(85vw, 320px);
  }

  .lightbox__nav--prev { left: 0.25rem; }
  .lightbox__nav--next { right: 0.25rem; }
}

/* ——— Marcas ——— */

.marcas__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.marca {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.marca:hover {
  border-color: rgba(43, 188, 219, 0.45);
  box-shadow: 0 8px 20px rgba(11, 44, 74, 0.06);
}

.marca img {
  width: 100%;
  max-width: 140px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

/* ——— Impulsando ——— */

.impulsando__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
}

/* ——— Cierre ——— */

.cierre {
  background: var(--ink);
  color: #fff;
}

.cierre .eyebrow {
  color: var(--cyan);
}

.cierre h2,
.cierre p {
  color: rgba(255, 255, 255, 0.9);
}

.cierre h2 {
  color: #fff;
}

.cierre__question {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 1.5rem 0 !important;
}

.cierre .btn--primary {
  background: #fff;
  color: var(--ink);
}

/* ——— Cards razones ——— */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cards--stack {
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem;
}

.section--alt .card {
  background: #fff;
}

.card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
}

/* ——— Page hero (internas) ——— */

.page-hero {
  position: relative;
  min-height: clamp(240px, 36vh, 380px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) 0 2.5rem;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.page-main {
  background: #fff;
}

/* ——— Contacto ——— */

.contact-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-list span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.contact-list a,
.contact-list p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}

.contact-list a:hover {
  color: var(--cyan-intense);
}

/* ——— Footer ——— */

.site-footer {
  background: var(--bg);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
}

.site-footer__inner {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__brand img {
  width: min(200px, 100%);
  height: auto;
  margin-bottom: 0.85rem;
  filter: brightness(0) invert(1);
}

.site-footer__brand p {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 16rem;
}

.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--cyan);
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.site-footer__social img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.site-footer__social a:hover img {
  opacity: 1;
}

.site-footer__bottom {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

/* ——— Nav active + solid ——— */

.site-nav__menu a.is-active {
  color: var(--cyan);
}

.site-nav.is-scrolled .site-nav__menu a.is-active {
  color: var(--cyan-intense);
}

.site-nav.is-solid {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(4, 30, 66, 0.06);
}

/* ——— Responsive ——— */

@media (max-width: 900px) {
  .wrap--split,
  .impulsando__grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .media-ph--tall {
    min-height: 260px;
  }
}

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

  .marca {
    min-height: 80px;
    padding: 0.65rem 0.75rem;
  }

  .marca img {
    max-height: 52px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .section__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
