/* =========================================================
   ATLANTIC SPORTSMEN CLUB - estilos del sitio
   Verde Ingles y Blanco. El verde sale de Ajustes (--verde)
   y es provisorio hasta confirmar el manual de marca.
   body.club = institucional · body.bq = portal Basquet
   ========================================================= */

:root {
  --verde: #0B4A2F;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --texto: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.club {
  --fondo: #F5F3EC; --sup: #FFFFFF; --tinta: #16211B; --tenue: #55615A;
  --linea: #DAD6C9; --acento: var(--verde); --btn: var(--verde); --btn-txt: #FFFFFF;
  --pend-f: #FFF3C9; --pend-t: #5E4700; --pend-b: #C9A227;
}
body.bq {
  --fondo: #08170F; --sup: #0F2619; --tinta: #F2F5F0; --tenue: #A9B8AE;
  --linea: #27493A; --acento: #8FE3B0; --btn: #FFFFFF; --btn-txt: #08170F;
  --pend-f: transparent; --pend-t: #F2DB8C; --pend-b: #C9A227;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--texto);
  /* El pie siempre termina la pagina: sin espacio vacio debajo en paginas cortas */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acento); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .5em; text-wrap: balance; }
body.bq h1, body.bq h2 { font-style: italic; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; letter-spacing: .02em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.ancho { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: 1.1rem; }
@media (min-width: 48rem) { .ancho { padding-inline: 2rem; } }
.saltar { position: absolute; left: -999px; top: 0; background: var(--sup); color: var(--tinta); padding: .7rem 1rem; z-index: 50; }
.saltar:focus { left: .5rem; top: .5rem; }
.chico, .meta { font-size: .9rem; color: var(--tenue); }
.meta { margin-bottom: .35em; }

/* Dato o material que el Club todavia no confirmo */
.pend {
  display: inline-block; padding: .05em .55em; border: 1px dashed var(--pend-b); border-radius: 3px;
  background: var(--pend-f); color: var(--pend-t); font-size: .88em; font-weight: 500; font-style: normal;
  text-transform: none; letter-spacing: 0; font-family: var(--texto); line-height: 1.5;
}

/* ---------------- Cabecera ---------------- */
.cab { background: var(--sup); border-bottom: 1px solid var(--linea); border-top: 5px solid var(--verde); position: relative; z-index: 20; }
.cab-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .6rem; }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--tinta); min-height: 48px; }
.marca-txt { font: 700 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.marca-txt b { display: block; font-weight: 600; font-size: .82em; color: var(--tenue); letter-spacing: .08em; }
body.bq .marca-txt { font-style: italic; }
body.bq .marca-txt b { display: inline; font-size: 1em; font-weight: 700; color: var(--acento); letter-spacing: .03em; }
.escudo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.escudo.chico { width: 56px; height: 56px; }
.escudo-pend {
  display: grid; place-items: center; text-align: center; border: 1px dashed var(--pend-b); border-radius: 50%;
  font: 500 .5rem/1.15 var(--texto); color: var(--pend-t); background: var(--pend-f); text-transform: none; letter-spacing: 0;
}
.pie .escudo-pend { color: #F2DB8C; background: transparent; }

.menu-btn {
  min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--tinta); border-radius: 4px; background: transparent;
  color: var(--tinta); font: 600 1rem var(--texto); cursor: pointer; display: none;
}
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .2rem; align-items: center; }
.menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 .7rem; color: var(--tinta); text-decoration: none;
  font-weight: 500; font-size: .98rem; border-radius: 4px;
}
.menu a:hover { background: color-mix(in srgb, var(--acento) 12%, transparent); }
.menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--acento); border-radius: 0; }
.menu a.resalta { background: var(--btn); color: var(--btn-txt); font-weight: 600; }
.menu a.resalta:hover { filter: brightness(1.12); }
.menu .volver a { color: var(--tenue); font-size: .9rem; }
@media (max-width: 61.99rem) {
  .js .menu-btn { display: block; }
  .js .menu { display: none; width: 100%; }
  .js .menu.abierto { display: block; }
  .menu ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: .5rem; }
  .menu a { min-height: 48px; border-bottom: 1px solid var(--linea); border-radius: 0; font-size: 1.05rem; }
  .menu a.resalta { border-radius: 4px; margin-top: .5rem; justify-content: center; border: 0; }
}

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .55rem 1.3rem;
  background: var(--btn); color: var(--btn-txt); border: 2px solid var(--btn); border-radius: 4px;
  font: 600 1.02rem var(--texto); text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { filter: brightness(1.12); }
.btn.sec { background: transparent; color: var(--tinta); border-color: currentColor; }
.btn.clara { background: #FFFFFF; color: #10301F; border-color: #FFFFFF; }
.btn.clara.sec { background: transparent; color: #FFFFFF; }
.btn.chica { min-height: 44px; padding: .3rem .9rem; font-size: .95rem; }
.btn[aria-disabled="true"], .btn-off {
  display: inline-flex; align-items: center; min-height: 48px; padding: .55rem 1rem; border: 1.5px dashed var(--pend-b);
  border-radius: 4px; color: var(--pend-t); background: var(--pend-f); font-weight: 500; font-size: .95rem;
}
.botones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* ---------------- Portada ---------------- */
.hero { background: var(--verde); color: #FFFFFF; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 22, 13, .82), rgba(4, 22, 13, .35)); }
.hero:not(.con-foto)::before { background: none; }
.hero-in { position: relative; padding-block: clamp(3.5rem, 11vw, 8rem); }
.hero h1 { font-size: clamp(3rem, 10.5vw, 7.2rem); line-height: .9; margin-bottom: .25em; max-width: 9em; }
.hero .desde { font: 600 clamp(1.05rem, 2.4vw, 1.4rem)/1.2 var(--display); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; opacity: .92; }
.hero .intro { max-width: 34rem; font-size: 1.15rem; }
.hero .anio {
  position: absolute; right: -.04em; bottom: -.2em; font: 700 clamp(9rem, 30vw, 24rem)/1 var(--display); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .16); pointer-events: none; user-select: none;
}
.hero.con-foto .anio { display: none; }
.hero .nota-foto { position: relative; margin-top: 2rem; }
.hero .pend, .franja .pend { background: transparent; color: #F2DB8C; }
body.bq .hero { background-color: #0C2A1B; border-bottom: 1px solid var(--linea); }
body.bq .hero h1 { font-style: italic; }
body.bq .hero .anio { right: auto; left: 52%; bottom: -.28em; font-style: italic; }

/* ---------------- Secciones ---------------- */
.seccion { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.seccion + .seccion { border-top: 1px solid var(--linea); }
.seccion.sup { background: var(--sup); }
.sec-tit { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sec-tit h2 { margin: 0; }
.sec-tit h2::before { content: ""; display: block; width: 2.6rem; height: 5px; background: var(--acento); margin-bottom: .7rem; }
.sec-tit a { font-weight: 600; white-space: nowrap; }
.encabezado { background: var(--sup); border-bottom: 1px solid var(--linea); padding-block: clamp(1.6rem, 4vw, 2.8rem); }
.encabezado h1 { margin: 0; }
.encabezado .bajada { margin: .7rem 0 0; max-width: 44rem; color: var(--tenue); font-size: 1.12rem; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 .8rem; font-size: .9rem; color: var(--tenue); }
.migas li + li::before { content: "›"; margin-right: .3rem; }
.migas a { color: var(--tenue); }
.prosa { max-width: 44rem; }
.prosa h2 { margin-top: 1.4em; }

.grilla { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.grilla.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grilla.g4 { grid-template-columns: repeat(auto-fill, minmax(min(46%, 13rem), 1fr)); }
.cols { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 54rem) { .cols { grid-template-columns: 1fr 1fr; } .cols.c21 { grid-template-columns: 1.5fr 1fr; } }

/* ---------------- Tarjetas ---------------- */
.tarjeta { background: var(--sup); border: 1px solid var(--linea); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.tarjeta-foto { display: block; position: relative; }
.tarjeta-cuerpo { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.tarjeta-cuerpo > p:last-child { margin-bottom: 0; }
.tarjeta h3 { margin-bottom: .3em; }
.tarjeta h3 a { color: var(--tinta); text-decoration: none; }
.tarjeta h3 a:hover { text-decoration: underline; }
.foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foto.ancha { aspect-ratio: 16 / 9; }
.foto.retrato { aspect-ratio: 1; }
.foto-pend {
  display: grid; place-items: center; color: var(--pend-t); font-size: .85rem; font-weight: 500;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--acento) 9%, var(--sup)) 0 14px, color-mix(in srgb, var(--acento) 4%, var(--sup)) 14px 28px);
}
.foto-pend span { border: 1px dashed var(--pend-b); border-radius: 3px; padding: .1em .6em; background: var(--sup); }

/* Disciplinas: tarjeta-enlace completa */
.disc { position: relative; }
.disc h3 { font-size: 1.5rem; margin: 0; }
.disc h3 a::after { content: ""; position: absolute; inset: 0; }
.disc .ir { margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--acento); }
.disc:hover { border-color: var(--acento); }
.disc:focus-within { outline: 3px solid var(--acento); outline-offset: 2px; }
.disc h3 a:focus-visible { outline: none; }

/* Accesos rapidos */
.accesos { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(46%, 10rem), 1fr)); }
.accesos a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 64px; padding: .7rem 1rem;
  background: var(--sup); border: 1px solid var(--linea); border-radius: 6px; color: var(--tinta); text-decoration: none;
  font: 700 1.3rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em;
}
.accesos a::after { content: "→"; color: var(--acento); font-family: var(--texto); font-weight: 400; }
.accesos a:hover { border-color: var(--acento); }
.accesos a.fuerte { background: var(--btn); color: var(--btn-txt); border-color: var(--btn); }
.accesos a.fuerte::after { color: inherit; }

/* Franja Basquet en la home del Club */
.franja { background: #08170F; color: #F2F5F0; background-size: cover; background-position: center; position: relative; }
.franja::before { content: ""; position: absolute; inset: 0; background: rgba(8, 23, 15, .78); }
.franja:not(.con-foto)::before { background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(143, 227, 176, .06) 46px 50px); }
.franja-in { position: relative; padding-block: clamp(2.8rem, 7vw, 5rem); display: grid; gap: 1.5rem; align-items: center; }
.franja h2 { font-style: italic; font-size: clamp(2.6rem, 8vw, 5rem); line-height: .92; margin: 0; }
.franja h2 b { color: #8FE3B0; font-weight: 700; }
.franja p { max-width: 32rem; margin: 0; color: #C9D6CD; }
@media (min-width: 54rem) { .franja-in { grid-template-columns: 1.2fr 1fr; } }

/* Eventos */
.eventos { list-style: none; margin: 0; padding: 0; }
.evento { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.evento:first-child { padding-top: 0; }
.evento .dia { flex: none; width: 3.6rem; text-align: center; font-family: var(--display); text-transform: uppercase; line-height: 1; padding-top: .1rem; }
.evento .dia b { display: block; font-size: 2.4rem; color: var(--acento); }
.evento .dia span { font-weight: 600; letter-spacing: .08em; color: var(--tenue); }
.evento h3 { margin-bottom: .2em; }
.evento h3 a { color: var(--tinta); text-decoration: none; }
.evento h3 a:hover { text-decoration: underline; }
.evento p:last-child { margin: 0; }
.vacio { border: 1px dashed var(--linea); border-radius: 6px; padding: 1.2rem; color: var(--tenue); background: var(--sup); }
.vacio p:last-child { margin: 0; }

/* Datos en lista */
.datos { margin: 0; display: grid; gap: .1rem; }
.datos div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); }
.datos dt { color: var(--tenue); font-size: .92rem; }
.datos dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .datos div { grid-template-columns: 1fr; gap: 0; } }

/* Tablas */
.tabla-caja { overflow-x: auto; border: 1px solid var(--linea); border-radius: 6px; background: var(--sup); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--linea); vertical-align: top; }
th { font: 600 .82rem var(--texto); text-transform: uppercase; letter-spacing: .08em; color: var(--tenue); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* Partidos */
.partidos { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.partido { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: .9rem; align-items: center; background: var(--sup); border: 1px solid var(--linea); border-radius: 6px; padding: .8rem 1rem; }
.partido .dia { text-align: center; font-family: var(--display); text-transform: uppercase; line-height: 1; }
.partido .dia b { display: block; font-size: 2rem; color: var(--acento); }
.partido .dia span { font-weight: 600; letter-spacing: .08em; color: var(--tenue); font-size: .95rem; }
.partido .rival { font: 700 1.35rem/1.1 var(--display); text-transform: uppercase; }
.partido p { margin: 0; }
.partido .tanteador { font: 700 2rem/1 var(--display); white-space: nowrap; text-align: right; }
.partido .tanteador small { display: block; font: 600 .75rem var(--texto); letter-spacing: .08em; text-transform: uppercase; color: var(--tenue); margin-top: .2rem; }
.partido .tanteador .g { color: var(--acento); }
.chip { display: inline-block; padding: .05rem .55rem; border: 1px solid var(--linea); border-radius: 99px; font-size: .82rem; font-weight: 600; color: var(--tenue); }

/* Pagos */
.pagos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.pago { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--linea); }
.pago h3 { margin: 0 0 .15em; font-size: 1.5rem; }
.pago p { margin: 0; }
.pago .instr { flex-basis: 100%; color: var(--tenue); }
.caja { background: var(--sup); border: 1px solid var(--linea); border-radius: 6px; padding: clamp(1.1rem, 3vw, 1.8rem); }
.caja > :last-child { margin-bottom: 0; }
.caja h2 { font-size: 1.7rem; }
.futuro { border-style: dashed; color: var(--tenue); }

/* Productos */
.producto .precio { font: 700 1.5rem/1.1 var(--display); color: var(--acento); margin-bottom: .3rem; }
.producto.vendido .foto { opacity: .45; }
.sello { position: absolute; left: .7rem; top: .7rem; background: var(--tinta); color: var(--fondo); padding: .15rem .6rem; font: 700 1rem var(--display); text-transform: uppercase; letter-spacing: .06em; border-radius: 3px; }

/* ---------------- Formularios ---------------- */
.form { max-width: 40rem; scroll-margin-top: 1rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem; font: inherit; color: var(--tinta); background: var(--sup);
  border: 1.5px solid var(--tenue); border-radius: 4px;
}
.form textarea { resize: vertical; }
.form .dos { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .form .dos { grid-template-columns: 1fr 1fr; } }
.form-pie { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso { border: 1.5px solid; border-radius: 6px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.aviso ul { margin: .4rem 0 0; }
body.club .aviso.ok { background: #E4F3EA; border-color: #1B6B45; color: #0E3F28; }
body.club .aviso.error { background: #FCE9E6; border-color: #A3271A; color: #6E160D; }
body.bq .aviso.ok { border-color: #8FE3B0; color: #C8F2D9; }
body.bq .aviso.error { border-color: #FF9E92; color: #FFD3CD; }

/* ---------------- Pie ---------------- */
.pie { background: #08170F; color: #C9D6CD; margin-top: 0; font-size: .97rem; }
body.bq .pie { border-top: 1px solid var(--linea); }
.pie a { color: #FFFFFF; }
.pie-in { display: grid; gap: 2rem; padding-block: 3rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.pie-marca { display: flex; gap: 1rem; align-items: center; align-self: start; }
.pie-marca .escudo.chico { width: 64px; height: 64px; }
.pie-marca { grid-column: 1 / -1; }
.pie-nombre { color: #FFFFFF; font: 700 1.25rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .35rem; white-space: nowrap; }
.pie-bajada { font-size: .9rem; line-height: 1.45; white-space: nowrap; }
.pie h2 { font-size: 1.1rem; letter-spacing: .1em; color: #8FE3B0; font-style: normal; margin-bottom: .7rem; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.pie li a { display: inline-block; padding: .3rem 0; }
.pie li { padding: .1rem 0; }
/* Datos de contacto: icono en su columna, texto alineado al lado */
.pie .dato { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: .75rem; align-items: start; padding: .42rem 0; line-height: 1.45; }
.pie .dato .ico { width: 18px; height: 18px; color: #8FE3B0; margin-top: .18rem; }
.pie .dato > span, .pie .dato > a { padding: 0; overflow-wrap: anywhere; min-width: 0; }
.pie .dato a { display: inline; text-decoration: none; }
.pie .dato a:hover { text-decoration: underline; }
/* Pantallas anchas: 4 columnas. Mas angosto: el bloque del escudo ocupa su propia fila */
@media (min-width: 78rem) {
  .pie-in { grid-template-columns: 1.6fr 1fr 1.2fr 1.5fr; column-gap: 2rem; }
  .pie-marca { grid-column: auto; }
}
.pie-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.1rem; border-top: 1px solid #27493A; font-size: .88rem; }
.pie-base a { color: #A9B8AE; }
.pie-firma { padding: 6px 1rem 8px; text-align: center; background: #FFFFFF; border-bottom: 1px solid #D5DCD7; }
.pie-firma a { min-height: 40px; }

/* Barra fija de Basquet en el celular: Horarios, Partidos y Pagos siempre a mano */
.barra-rapida { display: none; }
@media (max-width: 47.99rem) {
  .barra-rapida {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #FFFFFF; border-top: 1px solid #27493A; padding-bottom: env(safe-area-inset-bottom);
  }
  .barra-rapida a {
    display: flex; align-items: center; justify-content: center; min-height: 54px; color: #08170F; text-decoration: none;
    font: 700 1.2rem var(--display); text-transform: uppercase; letter-spacing: .04em; border-left: 1px solid #D5DCD7;
  }
  .barra-rapida a:first-child { border-left: 0; }
  .barra-rapida a:last-child { background: #0B4A2F; color: #FFFFFF; }
  body.bq .pie { padding-bottom: calc(54px + env(safe-area-inset-bottom)); background: #FFFFFF; }
  body.bq .pie-in { background: #08170F; max-width: none; }
}
