:root {
  --black: #090909;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --ticker-bg: #303030;
  --ticker-h: 68px;

  /* Fotografía principal. El archivo fuente no se recorta: el encuadre
     se controla de forma no destructiva con background-position. */
  --hero-background: url("assets/fondo-principal.webp");
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr var(--ticker-h);
}

.hero__background,
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__background {
  z-index: -3;
  background: var(--hero-background);
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.hero__overlay {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0,0,0,.44) 0%, rgba(0,0,0,.22) 35%, rgba(0,0,0,.38) 100%),
    linear-gradient(90deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.30) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(24px, 4vw, 54px) 28px 0;
}

.brand__logo {
  display: block;
  width: clamp(150px, 16vw, 250px);
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,.32));
}


.hero__mobile-logo {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(1180px, calc(100% - 56px));
  text-align: center;
  padding: clamp(30px, 4vh, 46px) 0 clamp(44px, 6vh, 72px);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: clamp(.68rem, .85vw, .86rem);
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .74;
}

h1 {
  margin: 0;
  font-family: "Arial Black", Impact, Haettenschweiler, Arial, sans-serif;
  font-size: clamp(3.1rem, 6.9vw, 7.95rem);
  line-height: .82;
  letter-spacing: -.055em;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(0,0,0,.35);
}

h1 span {
  display: block;
}

.subline {
  margin: clamp(18px, 3vw, 28px) 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(.9rem, 1.25vw, 1.15rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ticker {
  position: relative;
  z-index: 4;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ticker-bg);
  border-top: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 -12px 32px rgba(0,0,0,.16);
}

.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker-scroll 18s linear infinite;
}

.ticker__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(28px, 3.5vw, 64px);
  padding-right: clamp(28px, 3.5vw, 64px);
}

.ticker span {
  white-space: nowrap;
  color: #ffffff;
  font-family: "Arial Black", Impact, Haettenschweiler, Arial, sans-serif;
  font-size: clamp(1.15rem, 1.9vw, 1.85rem);
  line-height: 1;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.025em;
}

.ticker b {
  font-size: .8rem;
  opacity: .55;
}

@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 720px) {
  :root {
    --ticker-h: 58px;
  }

  /* Móvil: el contenido ocupa toda la zona superior y la barra queda
     exclusivamente en la última fila, pegada al borde inferior. */
  .hero {
    grid-template-rows: 1fr var(--ticker-h);
  }

  .hero__content {
    grid-row: 1;
    align-self: center;
    justify-self: center;
    text-align: center;
  }

  .ticker {
    grid-row: 2;
    align-self: stretch;
  }

  .hero__background {
    /* En móvil el formato vertical obliga a un recorte visual.
       Conservamos el archivo completo y movemos únicamente el encuadre. */
    background-position: 50% 43%;
  }

  .brand {
    display: none;
  }

  .hero__mobile-logo {
    display: block;
    width: min(30vw, 128px);
    height: auto;
    margin: 0 auto 12px;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,.28));
  }

  .hero__content {
    width: calc(100% - 34px);
    padding: 34px 0 38px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: .62rem;
  }

  h1 {
    font-size: clamp(2.7rem, 13.1vw, 4.75rem);
    line-height: .84;
    letter-spacing: -.06em;
  }

  .subline {
    margin-top: 18px;
    font-size: .86rem;
  }

  .ticker__track {
    animation-duration: 14s;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: clamp(2.6rem, 13.4vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation-play-state: paused;
  }
}
