:root {
  --bg: #0e0e0f;
  --bg-alt: #17171a;
  --card: #1f1f23;
  --line: #2b2b30;
  --text: #f5f5f5;
  --muted: #a6a6ad;
  --accent: #e3262e;
  --accent-ink: #fff;
  --accent-text: #f2555b;
  --focus: #f2b705;
  --gold: #f2b705;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } .btn:hover { transform: none; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .5px; line-height: 1; margin: 0 0 .4em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.demo-bar { background: #f5b301; color: #111; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; }

header.nav { position: sticky; top: 0; z-index: 10; background: rgba(14,14,15,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: "Bebas Neue", sans-serif; font-size: 1.9rem; text-decoration: none; }
.logo { display:flex; align-items:center; gap:10px; }
.logo img { width:44px; height:44px; border-radius:50%; background:#fff; object-fit:cover; }
.logo span { color: var(--gold); }
.hero-logo { width: 150px; height: 150px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); margin-bottom: 24px; }
.hero h1 em { color: var(--gold); }
td.bjj { color: #ff6b6b; font-weight: 600; } td.mma { color: var(--gold); font-weight: 600; } td.grap { color: #5ec8ff; font-weight: 600; }
.nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav ul a:hover { color: var(--text); }
@media (max-width: 760px) { .nav ul { display: none; } }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-decoration: none; padding: 11px 26px; border-radius: 999px; transition: transform .15s; border: 0; min-height: 44px; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid #3f3f46; }

.hero { position: relative; min-height: 80svh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, rgba(227,38,46,.35), transparent 45%),
    linear-gradient(90deg, rgba(14,14,15,.97) 35%, rgba(14,14,15,.6) 70%, rgba(14,14,15,.35)),
    url("img/instalaciones.jpg") right center/cover no-repeat,
    var(--bg); }
.insta { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.insta-fotos { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.insta-fotos img:first-child { grid-column: 1 / -1; }
.insta-fotos img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.insta img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.insta ul { color: var(--muted); padding-left: 20px; }
.insta li { margin-bottom: 8px; }
@media (max-width: 760px) { .insta { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7rem); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.15rem; color: #d4d4d8; max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.badges span { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: #d4d4d8; }

section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.lead { color: var(--muted); max-width: 680px; margin-bottom: 36px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

table.horario { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.horario th, .horario td { padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.horario th { color: var(--accent-text); font-weight: 800; }
.horario td:first-child { font-weight: 800; text-align: left; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.note { color: var(--muted); font-size: .9rem; margin-top: 14px; }

.precio { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.precio .num { font-family: "Bebas Neue", sans-serif; font-size: 3.4rem; line-height: 1; color: var(--text); }
.precio .num small { font-size: 1.2rem; color: var(--muted); }
.precio.destacado { border: 2px solid var(--gold); }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.muted { color: var(--muted); }
.news { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.news img { width: 100%; border-radius: 10px; display: block; }
.news p { color: #d4d4d8; }
.news h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.news strong { color: var(--text); }
.news ul { color: #d4d4d8; margin: 0 0 1em; padding-left: 0; list-style: none; }
.news li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: 0; }
.news li::before { content: ""; position: absolute; left: 6px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.news > img { align-self: start; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.feature img { width: 100%; border-radius: var(--radius); display: block; border: 1px solid var(--line); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; align-items: start; }
.coach { display: flex; flex-direction: column; padding: 16px; }
.coach img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; border-radius: 10px; margin-bottom: 16px; display: block; }
.coach h3 { margin: 0 0 4px; font-size: 1.8rem; }
.coach .tag { margin-bottom: 10px; }
.coach .bio { max-height: 15.5em; overflow: hidden; position: relative; margin-top: 6px; }
.coach .bio p { margin: 0 0 .7em; font-size: .95rem; }
.coach.recortada .bio::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5em; background: linear-gradient(transparent, var(--card)); }
.coach.abierta .bio { max-height: none; }
.coach.recortada.abierta .bio::after { display: none; }
.leer-mas { align-self: flex-start; margin-top: 8px; background: none; border: 0; padding: 6px 0; color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; }
h3.sub { margin-top: 48px; font-size: 2rem; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 20%; border-radius: 10px; display: block; }
.gallery figcaption { font-size: .75rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) {
  .news, .feature { grid-template-columns: minmax(0, 1fr); }
  .news img { max-width: 360px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.steps { counter-reset: s; }
.steps .card h3::before { counter-increment: s; content: counter(s) ". "; color: var(--accent); }

.coach .avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px; background: var(--line); display: grid; place-items: center; font-family: "Bebas Neue"; font-size: 2.6rem; color: var(--accent-text); }

.contacto { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .contacto { grid-template-columns: minmax(0, 1fr); } }
.map-consent { display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:6px; padding:24px; color: var(--muted); border: 1px dashed #3f3f46; }
.map-consent p { margin:0; }
.map { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); background: var(--card); }
.datos p { margin: 0 0 16px; }
.datos strong { color: var(--accent-text); display: block; font-size: .8rem; text-transform: uppercase; }

.placeholder { background: rgba(245,179,1,.14); border-bottom: 1px dashed #f5b301; padding: 0 3px; }

footer { padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.ropa-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.prenda { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.prenda > img { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #fff; border-radius: 10px; display: block; }
.prenda h3 { margin: 6px 0 0; }
.prenda .precio-prenda { color: var(--gold); font-weight: 800; }
.prenda details summary { cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: .9rem; }
.prenda details img { width: 100%; background: #fff; border-radius: 8px; margin-top: 8px; display: block; }
.opciones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 72px; gap: 8px; margin-top: auto; }
.opciones label, .form-pedido label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.opciones select, .opciones input, .form-pedido input, .form-pedido textarea { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 8px; border: 1px solid #3f3f46; background: #121214; color: var(--text); font: inherit; }
.prenda .btn { width: 100%; cursor: pointer; font: inherit; font-weight: 800; }
.pedido { margin-top: 32px; max-width: 760px; }
.pedido-linea { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pedido-linea span { flex: 1; }
.pedido-linea button { background: none; border: 1px solid #3f3f46; color: #ff7b7b; border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }
.form-pedido { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 20px; }
.form-pedido .ancho { grid-column: 1 / -1; }
.form-pedido .acepto { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-pedido .acepto input { width: 22px; min-height: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.form-pedido .trampa { position: absolute; left: -9999px; }
.form-pedido button { cursor: pointer; font: inherit; font-weight: 800; }
@media (max-width: 560px) { .form-pedido { grid-template-columns: minmax(0, 1fr); } }
#pedido-estado.ok { color: #3ecf6e; font-weight: 700; } #pedido-estado.error { color: #ff7b7b; font-weight: 700; }
.ver-pedido { position: fixed; left: 18px; bottom: 22px; z-index: 20; background: var(--gold); color: #111; font-weight: 800; text-decoration: none; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.aviso-top { background: var(--gold); color: #111; text-align: center; font-weight: 700; padding: 10px 16px; font-size: .95rem; }
.aviso-top a { color: #111; }
.wa { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); z-index: 20; }
.wa svg { width: 30px; height: 30px; fill: #fff; }
.pagina-noticias { padding-top: 48px; min-height: 70vh; }
.pagina-noticias h1 { font-size: clamp(3rem, 8vw, 4.6rem); }
.volver { color: var(--muted); text-decoration: none; font-weight: 600; }
.volver:hover { color: var(--text); }
.nav ul a[aria-current="page"] { color: var(--text); }
.news { scroll-margin-top: 90px; }
