/* ==========================================================================
   Kick Boxing Boedo — hoja de estilos principal
   Sistema de diseño: oscuro/urbano, acentos naranja. Anton (display) + Barlow (texto).
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --panel: #131314;
  --panel-2: #1b1b1d;
  --line: #2a2a2c;
  --text: #f5f1ec;
  --muted: #a6a19b;
  --accent: #e8641c;
  --accent-strong: #e8641c;
  --accent-dark: #14110d;
  --akibo-navy: #12274f;
  --akibo-red: #a32127;
  --akibo-gold: #e9b949;

  --font-display: "Anton", sans-serif;
  --font-body: "Barlow", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --container: 1280px;
  --gutter: 64px;
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

p { margin: 0; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

/* Foco visible accesible en toda la navegación por teclado */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent-strong);
  color: var(--accent-dark);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus {
  left: var(--gutter);
  top: 12px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-strong);
  color: var(--accent-dark);
}
.btn-primary:hover { background: #ffb74d; }

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent-strong); color: var(--accent-strong); }

.btn-ghost {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  background: transparent;
}
.btn-ghost:hover { background: var(--accent-strong); color: var(--accent-dark); }

.btn-sm { padding: 13px 22px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(245, 166, 35, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 1;
}
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}
.brand-logo-sm {
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.main-nav a:not(.btn):hover { color: var(--accent-strong); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  padding: 24px var(--gutter);
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.mobile-nav a:not(.btn) {
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 24px; justify-content: center; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px var(--gutter) 70px;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(232, 100, 28, 0.22), transparent),
    var(--bg);
  overflow: hidden;
}
.hero-logo {
  position: absolute;
  top: 50%;
  right: 4%;
  height: 90%;
  aspect-ratio: 1556 / 2000;
  transform: translateY(-50%);
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-logo-img {
  opacity: 0.5;
  animation: hero-logo-fill 1300ms ease 1300ms both;
}
@keyframes hero-logo-fill {
  from { opacity: 0; }
}
.hero > *:not(.hero-logo) { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .hero-logo { height: 62%; right: -14%; top: 56%; }
  .hero-logo-img { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-img { animation: none; }
  .hero-logo-lines { display: none; }
}
.eyebrow {
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-strong);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  line-height: 0.96;
  max-width: 900px;
  margin-bottom: 28px;
}
.hero-lead {
  font-size: 20px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
/* ---------- Entrada del hero (un solo momento orquestado) ---------- */
.hero-in {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-in-1 { animation-delay: 60ms; }
.hero-in-2 { animation-delay: 160ms; }
.hero-in-3 { animation-delay: 320ms; }
.hero-in-4 { animation-delay: 440ms; }
.hero-in-5 { animation-delay: 560ms; }
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; opacity: 1; transform: none; }
}

/* ---------- Ticker (cinta continua de la sede) ---------- */
.ticker {
  margin-top: 56px;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 90s linear infinite;
}
.ticker-track span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  white-space: nowrap;
  text-transform: uppercase;
  padding-right: 20px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Secciones genéricas ---------- */
.section {
  padding: 96px var(--gutter);
}
.section-tight { padding-top: 16px; }
.section-divider {
  border-top: 1px solid rgba(245, 166, 35, 0.35);
  border-bottom: 1px solid rgba(245, 166, 35, 0.35);
}
.section-panel { background: var(--panel); }
.section-black { background: #000; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head-copy { max-width: 620px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.6; margin-top: 12px; }

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--accent-strong);
  padding-bottom: 4px;
  color: var(--text);
}
.inline-link:hover { color: var(--accent-strong); }

/* ---------- Clases ---------- */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 760px) {
  .classes-grid { grid-template-columns: 1fr; }
}
.class-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.class-card:hover { border-color: rgba(245, 166, 35, 0.5); transform: translateY(-4px); }
.class-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
.class-card h3 { font-size: 30px; }
.class-card .desc { color: var(--muted); font-size: 16px; line-height: 1.6; }
.class-schedule {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.class-schedule .slot { font-size: 15px; }
.class-schedule .pending {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.class-card .btn { margin-top: auto; align-self: flex-start; padding-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.faq-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 26px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .icon {
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 700;
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.faq-item[open] .icon { transform: rotate(45deg); }
.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 22px;
  max-width: 640px;
}

/* ---------- Lo que hacemos (reels) ---------- */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 860px) {
  .reels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.reel {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0c;
  border: 1px solid var(--line);
}
.reel img, .reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.reel:hover img, .reel:hover video { transform: scale(1.04); }
.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.reel-overlay span {
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Frase ---------- */
.quote {
  padding: 120px var(--gutter);
  display: flex;
  justify-content: center;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  line-height: 1.25;
  max-width: 920px;
  text-align: center;
  margin: 0;
}
.quote .highlight { color: var(--accent-strong); }

/* ---------- Sede AKIBO ---------- */
.akibo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.akibo-copy {
  max-width: 560px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.akibo-copy h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); color: #fff; margin-top: 14px; }
.akibo-copy p { color: #c9c7c4; font-size: 17px; line-height: 1.6; margin-top: 18px; }
.akibo-copy .btn { margin-top: 22px; }
.btn-akibo { color: #fff; }
.btn-akibo:hover { color: var(--accent-dark); }

/* ---------- Contacto / Footer ---------- */
.contact-grid {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.contact-copy { max-width: 480px; }
.contact-copy h2 { font-size: clamp(2.2rem, 5vw, 2.75rem); }
.contact-copy p { color: var(--muted); font-size: 17px; line-height: 1.6; margin-top: 18px; }
.contact-copy .btn { margin-top: 22px; }
.contact-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.contact-col h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
.contact-col ul { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.contact-col a, .contact-col span { font-size: 16px; font-weight: 600; }
.contact-col .muted { color: var(--muted); font-weight: 500; }

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 166, 35, 0.35);
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-hero {
  padding: 150px var(--gutter) 60px;
}
.blog-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); max-width: 760px; }
.blog-hero p { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 560px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}
.post-card:hover { border-color: rgba(245, 166, 35, 0.5); transform: translateY(-4px); }
.post-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--panel-2);
  overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.post-card .date {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-strong);
  text-transform: uppercase;
}
.post-card h2 { font-family: var(--font-body); font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.post-card .excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; flex-grow: 1; }
.post-card .read-more { font-size: 14px; font-weight: 700; color: var(--accent-strong); margin-top: 6px; }

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 60px 40px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Post individual ---------- */
.post-header { padding: 150px var(--gutter) 40px; }
.post-header .back-link { margin-bottom: 28px; }
.post-header .date {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-strong);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.post-header h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); max-width: 860px; }
.post-cover {
  margin: 0 var(--gutter) 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--panel);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-body {
  max-width: 720px;
  margin: 60px auto 0;
  padding: 0 var(--gutter);
  font-size: 18px;
  line-height: 1.75;
  color: #ddd9d3;
}
.post-body h2 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text);
}
.post-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 21px;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text);
}
.post-body p { margin-bottom: 20px; }
.post-body ul, .post-body ol { margin: 0 0 20px 1.2em; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.post-body img { border-radius: var(--radius-sm); margin: 28px 0; }
.post-body blockquote {
  border-left: 3px solid var(--accent-strong);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--muted);
  font-style: italic;
}

.post-cta {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0 var(--gutter);
}
.post-cta-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
}
.post-cta-box h3 { font-size: 24px; margin-bottom: 12px; }
.post-cta-box p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Reveal al hacer scroll ---------- */
/* Usa `animation`, no `transition`, para no pisar la transición de hover
   que .class-card/.reel ya declaran en la propiedad `transform`. */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
}
.reveal-item.is-visible {
  animation: reveal-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item { opacity: 1; transform: none; }
  .reveal-item.is-visible { animation: none; }
}

/* ==========================================================================
   Utilidades
   ========================================================================== */
.mt-0 { margin-top: 0 !important; }
.nowrap { white-space: nowrap; }
