/* ── Variables ── */
:root {
  --color-dark: #2e2e2e;
  --color-dark-deep: #1a1a1a;
  --color-blue: #2b59ff;
  --color-blue-bright: #0047ff;
  --color-orange: #ff6100;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --font: 'Montserrat', sans-serif;
  --header-height: 56px;
  --page-inset: 100px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

/* ── Top bar + version (part of the page, scrolls with content) ── */
.site-chrome {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.version {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(26, 26, 26, 0.55);
  pointer-events: none;
}

.site-header {
  padding: 0 var(--page-inset);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 2rem;
  background: var(--color-dark);
  pointer-events: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Player PNG is full-canvas; don't let the global img cap apply */
.logistics__player-img {
  max-width: none;
  max-height: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__links a {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--color-blue);
  transition: opacity 0.2s;
}

.nav__links a:hover {
  opacity: 0.8;
}

.nav__separator {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  user-select: none;
}

.nav__social {
  color: var(--color-white);
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.nav__social:hover {
  opacity: 0.75;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding-top: var(--header-height);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-color: var(--color-white);
  background-image:
    linear-gradient(
      to right,
      #ffffff 0%,
      #ffffff 30%,
      rgba(255, 255, 255, 0.92) 42%,
      rgba(255, 255, 255, 0.6) 55%,
      rgba(255, 255, 255, 0.15) 72%,
      transparent 88%
    ),
    url('../assets/paddel_stock_01.png');
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
}

.hero__content {
  width: 100%;
  margin: 0 auto;
  padding: 3rem var(--page-inset);
}

.hero__logo {
  width: clamp(480px, 42vw, 520px);
  height: auto;
}

/* ── Intro / bottom transition ── */
.intro {
  position: relative;
  min-height: 120px;
  background: linear-gradient(
    to bottom,
    #4a4a4a 0%,
    var(--color-dark) 50%,
    var(--color-dark-deep) 100%
  );
  padding: 2rem var(--page-inset);
  overflow: hidden;
}

.intro__lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.intro__line {
  flex-shrink: 0;
  height: 0;
  border: none;
  border-top: 3px solid var(--color-blue);
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
}

.intro__line:nth-child(1) { width: 55%; }
.intro__line:nth-child(2) { width: 40%; }
.intro__line:nth-child(3) { width: 30%; }

.intro__accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 8px;
  background: var(--color-blue);
}

/* ── About / ¿Qué es Padel Series? ── */
.about {
  width: 100%;
}

.about__bg {
  position: relative;
  width: 100%;
  min-height: max(520px, 56.25vw);
  max-height: 80vh;
  color: var(--color-white);
  overflow: hidden;
  background-image: url('../assets/fondo_1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1600px;
  min-height: max(520px, 56.25vw);
  max-height: 90vh;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) var(--page-inset);
  padding-right: clamp(260px, 32vw, 420px);
  box-sizing: border-box;
}

.about__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.about__title {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
}

.about__copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 3rem);
  width: 100%;
  max-width: 680px;
  text-align: left;
}

.about__block--left {
  grid-column: 1;
  grid-row: 1;
}

.about__block--right {
  grid-column: 2;
  grid-row: 2;
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
}

.about__text {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.about__accent {
  display: block;
  height: 3px;
  width: clamp(70px, 10vw, 110px);
  margin-top: 1rem;
  background: var(--color-orange);
}

.about__block--right .about__accent {
  width: clamp(90px, 12vw, 130px);
  margin-left: auto;
}

#fechas .about__inner {
  padding-right: var(--page-inset);
}

#fechas .about__content {
  align-items: flex-start;
  width: 100%;
  max-width: none;
  text-align: left;
}

#fechas .fechas__intro {
  max-width: 620px;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

#fechas .fechas__img {
  display: block;
  width: min(1280px, 100%);
  max-width: none;
  height: auto;
}

.about__media {
  position: absolute;
  top: 0;
  left: auto;
  right: 0;
  width: clamp(260px, 32vw, 420px);
  height: 100%;
  z-index: 2;
}

.about__photo {
  display: block;
  width: 150%;
  height: 100%;
  object-fit: cover;
  object-position: right;
  mask-image: linear-gradient(to right, transparent 0%, black 28%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 28%);
}

/* ── Logistics (minimal test layout) ── */
.logistics {
  width: 100%;
}

.logistics__bg {
  position: relative;
  width: 100%;
  min-height: 900px;
  overflow: visible;
  background-color: #e4e4e4;
  background-image: url('../assets/fondo_2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.logistics__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem var(--page-inset) 5rem;
  min-width: 0;
}

.logistics__title {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin-bottom: 2.5rem;
}

#logistica .logistics__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr);
  grid-template-rows: auto auto;
  gap: 1.5rem 2rem;
  align-items: end;
}

#logistica .logistics__cell--player {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: end;
}

#logistica .logistics__cell--fase {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

#logistica .logistics__cell--elim {
  grid-column: 3;
  grid-row: 2;
  align-self: end;
}

#logistica .logistics__cell--schema {
  grid-column: 4;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
}

.logistics__grid-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.logistics__text-box {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
}

.logistics__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}

.logistics__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.5;
  color: #1a1a1a;
}

.logistics__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

#logistica .logistics__grid-img--schema {
  max-height: min(52vh, 420px);
  width: auto;
}

.logistics__player-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(58vh, 480px);
}

/* ── Inscripciones ── */
.inscripciones__content {
  color: #000;
}

.inscripciones__intro {
  max-width: 640px;
  margin-bottom: 2rem;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  color: #000;
}

.inscripciones__columns + .inscripciones__intro {
  margin-top: 2rem;
}

.inscripciones__intro--bold {
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0;
}

.inscripciones__intro a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inscripciones__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  max-width: 720px;
}

#inscripciones .logistics__bg {
  position: relative;
  overflow: hidden;
}

#inscripciones .logistics__inner {
  padding-right: clamp(280px, 34vw, 460px);
}

.inscripciones__media {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(280px, 34vw, 460px);
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.inscripciones__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom right;
  mask-image: linear-gradient(to right, transparent 0%, black 22%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%);
}

.inscripciones__heading {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #000;
}

.inscripciones__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}

.inscripciones__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  color: #000;
}

.inscripciones__list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #000;
}

.inscripciones__button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  background: var(--color-orange);
  border-radius: 4px;
  transition: opacity 0.2s;
}

.inscripciones__button:hover {
  opacity: 0.88;
}

.inscripciones__text {
  max-width: 520px;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  color: #333;
}

.inscripciones__form {
  max-width: 480px;
}

.inscripciones__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.inscripciones__input {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.inscripciones__input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.inscripciones__input:focus {
  outline: none;
  border-color: var(--color-orange);
}

/* ── Footer ── */
.site-footer {
  width: 100%;
  background: #1e1e1e;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem var(--page-inset);
}

.site-footer__col--right {
  text-align: right;
}

.site-footer__text {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --page-inset: 1.25rem;
    --header-height: 52px;
  }

  .version {
    top: 0.65rem;
    left: 0.75rem;
    font-size: 0.7rem;
  }

  .site-header {
    padding: 1.25rem 0.5rem 0;
  }

  .nav {
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 0.5rem;
    gap: 0.35rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav__links {
    flex: 1;
    flex-wrap: nowrap;
    gap: clamp(0.35rem, 2vw, 0.65rem);
    align-items: center;
    min-width: 0;
  }

  .nav__links a {
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
    line-height: 1.2;
    white-space: nowrap;
    padding-bottom: 2px;
    letter-spacing: 0;
  }

  .nav__separator {
    display: none;
  }

  .nav__social {
    flex-shrink: 0;
    align-self: center;
    margin-top: 0;
  }

  .nav__social svg {
    width: 20px;
    height: 20px;
  }

  .hero {
    padding-top: calc(1.25rem + var(--header-height) + 3.5rem);
    min-height: 100vh;
    min-height: 100dvh;
    background-image:
      linear-gradient(
        to bottom,
        #ffffff 0%,
        rgba(255, 255, 255, 0.85) 35%,
        rgba(255, 255, 255, 0.4) 55%,
        transparent 75%
      ),
      url('../assets/paddel_stock_01.png');
    background-position: top center;
    align-items: flex-start;
  }

  .hero__content {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .hero__logo {
    width: min(88vw, 300px);
  }

  .intro {
    padding: 1.75rem 1.25rem;
  }

  .intro__lines {
    gap: 1rem;
  }

  .intro__line:nth-child(1) { width: 50%; }
  .intro__line:nth-child(2) { width: 40%; }
  .intro__line:nth-child(3) { width: 30%; }

  .about__bg {
    min-height: auto;
    max-height: none;
  }

  .about__inner {
    flex-direction: column;
    min-height: auto;
    max-height: none;
    padding: 3rem 1.25rem;
    padding-right: 1.25rem;
  }

  .about__content {
    max-width: 100%;
  }

  .about__title {
    margin-bottom: 2rem;
  }

  .about__copy {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100%;
  }

  .about__block--left,
  .about__block--right {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
  }

  .about__block--right .about__accent {
    margin-left: 0;
  }

  .about__media {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 240px;
    margin-top: 2rem;
  }

  .about__photo {
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
  }

  .logistics__inner {
    padding: 2rem 1.25rem 3.5rem;
  }

  .logistics__title {
    margin-bottom: 1.5rem;
  }

  .inscripciones__columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #inscripciones .logistics__inner {
    padding-right: 1.25rem;
  }

  .inscripciones__media {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 280px;
    margin-top: 2rem;
  }

  .inscripciones__photo {
    object-position: center top;
    mask-image: linear-gradient(to bottom, transparent 0%, black 18%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%);
  }

  #logistica .logistics__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
  }

  #logistica .logistics__cell--player,
  #logistica .logistics__cell--fase,
  #logistica .logistics__cell--elim,
  #logistica .logistics__cell--schema {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  #logistica .logistics__player-img,
  #logistica .logistics__grid-img--schema {
    max-height: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2.5rem 1.25rem;
  }

  .site-footer__col--right {
    text-align: left;
  }
}
