/* The home hero follows the approved Bahía Sports editorial mockup.
   All overrides are local to the home page and its new hero. */
.hero-home {
  --hero-navy: #052750;
  --hero-orange: #ff791f;
  --hero-green: #2dde16;
  --hero-border: #245589;
  --hero-muted: #b9cde5;
}

.hero-home .site-header a:focus-visible,
.hero-home .site-header button:focus-visible,
.hero-editorial a:focus-visible {
  outline: 3px solid var(--hero-orange);
  outline-offset: 5px;
}

.hero-home:not(.hero-past-intro) .floating-wa {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Keep the existing reservation controls visually identical while preventing
   their absolutely positioned, invisible radio inputs from widening the page. */
.hero-home .service-pills input {
  width: 1px;
  height: 1px;
}

.hero-home :is(#club, #padel, #futbol, #gimnasio, #sala-multiuso, #quincho, #tienda, #food-truck, #contacto, #reserva) {
  scroll-margin-top: 108px;
}

.hero-editorial {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-navy, #052750);
  color: #fff;
  scroll-margin-top: 92px;
}

.hero-editorial .hero-court-lines {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #1a508b;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  pointer-events: none;
}

.hero-editorial .hero-editorial-inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 28px 0 24px;
}

.hero-editorial .hero-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  color: #f6f8fc;
  font-size: 12px;
  font-weight: 750;
  line-height: 20px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-editorial .hero-location-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #0abe42;
}

.hero-editorial .hero-title {
  margin: 14px auto 0;
  color: #fff;
  font-family: "Archivo Black", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(76px, 7.291667vw, 112px);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.008em;
  text-align: center;
  text-transform: uppercase;
}

.hero-editorial .hero-title-line {
  display: block;
  height: .85em;
  white-space: nowrap;
  transform: scaleX(.76);
  transform-origin: center;
}

.hero-editorial .hero-title-dot {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--hero-orange, #ff791f);
  font-size: 0;
  vertical-align: baseline;
  transform: scaleX(1.315789) translateY(-26px);
  transform-origin: left bottom;
}

.hero-editorial .hero-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.54fr) minmax(0, 1fr);
  gap: 12px;
  width: min(1600px, calc(100% - 56px));
  height: clamp(230px, 20.703125vw, 318px);
  margin: 0 auto;
}

.hero-editorial .hero-photo {
  position: relative;
  display: block;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #143b5d;
  color: #fff;
  touch-action: manipulation;
}

.hero-editorial .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 20, 37, .03) 45%, rgba(1, 20, 37, .3) 100%);
  pointer-events: none;
}

.hero-editorial .hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 250ms ease-out;
}

.hero-editorial .hero-photo-football img {
  object-position: center 45%;
}

.hero-editorial .hero-photo-padel img {
  object-position: center 58%;
}

.hero-editorial .hero-photo-club img {
  object-position: center 58%;
  transform: scale(1.08);
}

.hero-editorial .hero-photo-label {
  position: absolute;
  z-index: 1;
  left: 23px;
  bottom: 16px;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

.hero-editorial .hero-photo-arrow {
  position: absolute;
  z-index: 1;
  top: 17px;
  right: 18px;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .2));
  transition: transform 200ms ease-out;
}

.hero-editorial .hero-description {
  width: min(1060px, calc(100% - 80px));
  max-width: none;
  margin: 14px auto 0;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-wrap: pretty;
}

.hero-editorial .hero-conversion {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  width: min(1120px, calc(100% - 56px));
  margin: 14px auto 0;
}

.hero-editorial .hero-primary-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-editorial .hero-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 320px;
  min-height: 49px;
  padding: 12px 28px;
  border: 1px solid var(--hero-orange, #ff791f);
  border-radius: 10px;
  background: var(--hero-orange, #ff791f);
  color: #08192b;
  font-size: 17px;
  font-weight: 750;
  line-height: 23px;
  text-align: center;
  touch-action: manipulation;
  transition: background 200ms ease-out, border-color 200ms ease-out;
}

.hero-editorial .hero-primary-btn:hover {
  background: #ff8d40;
  border-color: #ff8d40;
}

.hero-editorial .hero-primary-btn svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
}

.hero-editorial .hero-reservation-note {
  display: block;
  color: #edf2fa;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.hero-editorial .hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 23px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 9px;
  touch-action: manipulation;
  transition: color 200ms ease-out;
}

.hero-editorial .hero-secondary-btn:hover {
  color: #ffd4b6;
}

.hero-editorial .hero-secondary-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.hero-editorial .hero-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1376px, calc(100% - 160px));
  margin: 4px auto 0;
  padding: 13px 14px;
  list-style: none;
  border: 1px solid var(--hero-border, #245589);
  border-radius: 16px;
  background: rgba(2, 28, 62, .32);
}

.hero-editorial .hero-services li {
  min-width: 0;
  margin: 0;
  padding: 0;
  border-right: 1px solid rgba(46, 91, 143, .62);
}

.hero-editorial .hero-services li:nth-child(4n) {
  border-right: 0;
}

.hero-editorial .hero-services li:nth-child(n + 5) {
  border-top: 1px solid rgba(46, 91, 143, .62);
}

.hero-editorial .hero-service {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  height: 100%;
  padding: 8px 28px;
  border-radius: 6px;
  color: #fff;
  touch-action: manipulation;
  transition: background 200ms ease-out;
}

.hero-editorial .hero-service:hover {
  background: rgba(255, 255, 255, .06);
}

.hero-editorial .hero-service-icon {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
  color: var(--hero-green, #2dde16);
  stroke-width: 1.8;
}

.hero-editorial .hero-service-copy {
  display: block;
  min-width: 0;
}

.hero-editorial .hero-service-name {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.hero-editorial .hero-service-status {
  display: block;
  color: var(--hero-muted, #b9cde5);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

@media (hover: hover) and (pointer: fine) {
  .hero-editorial .hero-photo:hover img {
    transform: scale(1.025);
  }

  .hero-editorial .hero-photo:hover .hero-photo-arrow {
    transform: translate(2px, -2px);
  }

  .hero-editorial .hero-photo-club:hover img {
    transform: scale(1.38);
  }
}

@media (max-width: 1200px) {
  .hero-editorial .hero-services {
    width: calc(100% - 56px);
  }

  .hero-editorial .hero-service {
    gap: 16px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-editorial .hero-service-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .hero-editorial .hero-service-name {
    font-size: 14px;
  }

  .hero-editorial .hero-service-status {
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .hero-editorial .hero-editorial-inner {
    padding-top: 28px;
  }

  .hero-editorial .hero-title {
    font-size: clamp(72px, 10vw, 100px);
    line-height: .91;
    margin-top: 16px;
    margin-bottom: 14px;
  }

  .hero-editorial .hero-title-line {
    height: .91em;
  }

  .hero-editorial .hero-description {
    font-size: 18px;
    line-height: 1.55;
    margin-top: 20px;
  }

  .hero-editorial .hero-conversion {
    margin-top: 22px;
  }

  .hero-editorial .hero-services {
    margin-top: 18px;
  }

  .hero-editorial .hero-service {
    gap: 10px;
    padding: 10px;
  }

  .hero-editorial .hero-service-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

@media (max-width: 700px) {
  .hero-editorial .hero-editorial-inner {
    padding: 24px 0 26px;
  }

  .hero-editorial .hero-location {
    gap: 9px;
    font-size: 10px;
    letter-spacing: .16em;
    line-height: 18px;
  }

  .hero-editorial .hero-location-dot {
    width: 9px;
    height: 9px;
    flex-basis: 9px;
  }

  .hero-editorial .hero-title {
    margin: 15px auto 18px;
    font-size: clamp(54px, 14.7vw, 86px);
    line-height: .96;
    letter-spacing: -.01em;
  }

  .hero-editorial .hero-title-line {
    height: .96em;
    transform: scaleX(.83);
  }

  .hero-editorial .hero-title-dot {
    width: .23em;
    height: .23em;
    margin-left: 3px;
    font-size: inherit;
    color: transparent;
    overflow: hidden;
    transform: scaleX(1.204819) translateY(-.23em);
  }

  .hero-editorial .hero-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: clamp(210px, 62vw, 350px) clamp(145px, 39vw, 210px);
    gap: 10px;
    width: calc(100% - 32px);
    height: auto;
  }

  .hero-editorial .hero-photo-padel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hero-editorial .hero-photo-football {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-editorial .hero-photo-club {
    grid-column: 2;
    grid-row: 2;
  }

  .hero-editorial .hero-photo-label {
    left: 14px;
    bottom: 12px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .16em;
  }

  .hero-editorial .hero-photo-arrow {
    top: 12px;
    right: 12px;
    width: 21px;
    height: 21px;
  }

  .hero-editorial .hero-description {
    width: calc(100% - 40px);
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-editorial .hero-conversion {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: calc(100% - 40px);
    margin-top: 22px;
  }

  .hero-editorial .hero-primary-action {
    align-items: stretch;
    gap: 6px;
  }

  .hero-editorial .hero-primary-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 18px;
    gap: 14px;
    font-size: 16px;
  }

  .hero-editorial .hero-reservation-note {
    font-size: 12px;
    line-height: 19px;
  }

  .hero-editorial .hero-secondary-btn {
    align-self: center;
    min-height: 46px;
    font-size: 16px;
    text-underline-offset: 7px;
  }

  .hero-editorial .hero-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 32px);
    margin-top: 20px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .hero-editorial .hero-services li:nth-child(4n) {
    border-right: 1px solid rgba(46, 91, 143, .62);
  }

  .hero-editorial .hero-services li:nth-child(2n) {
    border-right: 0;
  }

  .hero-editorial .hero-services li:nth-child(n + 3) {
    border-top: 1px solid rgba(46, 91, 143, .62);
  }

  .hero-editorial .hero-service {
    gap: 12px;
    min-height: 84px;
    padding: 12px 10px;
  }

  .hero-editorial .hero-service-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero-editorial .hero-service-name {
    font-size: 14px;
    line-height: 20px;
  }

  .hero-editorial .hero-service-status {
    margin-top: 2px;
    font-size: 12px;
    line-height: 18px;
  }
}

@media (max-width: 360px) {
  /* Preserve the original logo and controls; reduce only the empty gaps
     when the original header cannot fit a narrow phone. */
  .hero-home .header-inner {
    gap: 4px;
  }

  .hero-home .header-actions {
    gap: 3px;
  }

  .hero-editorial .hero-title {
    font-size: 15vw;
  }

  .hero-editorial .hero-location {
    font-size: 9px;
    letter-spacing: .13em;
  }

  .hero-editorial .hero-service {
    gap: 9px;
    padding: 12px 6px;
  }

  .hero-editorial .hero-service-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

@media (max-width: 600px) {
  .hero-editorial {
    scroll-margin-top: 78px;
  }

  .hero-home :is(#club, #padel, #futbol, #gimnasio, #sala-multiuso, #quincho, #tienda, #food-truck, #contacto, #reserva) {
    scroll-margin-top: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home .site-header a,
  .hero-home .site-header a::after,
  .hero-editorial .hero-photo img,
  .hero-editorial .hero-photo-arrow,
  .hero-editorial .hero-primary-btn,
  .hero-editorial .hero-secondary-btn,
  .hero-editorial .hero-service {
    transition: none;
  }

  .hero-editorial .hero-photo:hover img,
  .hero-editorial .hero-photo:hover .hero-photo-arrow {
    transform: none;
  }

  .hero-editorial .hero-photo-club:hover img {
    transform: scale(1.35);
  }
}
