/* ===================================================
   YOROKOBI DŌJŌ — Estilos Principales
   Aikido Aikikai · Tigre, Buenos Aires
   =================================================== */

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

:root {
  --clr-ink:      #1a1a1a;
  --clr-soft:     #f7f5f2;
  --clr-white:    #ffffff;
  --clr-accent:   #6b0f1a;
  --clr-accent2:  #8b1222;
  --clr-muted:    #5c5c5c;
  --clr-divider:  #e0dbd4;
  --clr-dark:     #111111;
  --font:         'Plus Jakarta Sans', sans-serif;
  --header-h:     80px;
  --radius:       8px;
  --shadow:       0 4px 32px rgba(0,0,0,.08);
  --shadow-md:    0 8px 48px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

/* ── SKIP LINK (accesibilidad) ── */
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 3000;
  background: var(--clr-accent); color: #fff;
  padding: 12px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

body {
  font-family: var(--font);
  color: var(--clr-ink);
  background: var(--clr-white);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-divider);
  display: flex; align-items: center; padding: 0 56px; gap: 20px;
  transition: box-shadow .3s;
}
header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.08); }

.logo-wrap { display: flex; align-items: center; text-decoration: none; }
.logo-wrap img { height: 60px; width: auto; }

nav { margin-left: auto; display: flex; gap: 40px; align-items: center; }

nav a {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--clr-ink); transition: color .2s;
  position: relative; padding-bottom: 3px;
}
nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--clr-accent);
  transition: width .25s ease;
}
nav a:hover { color: var(--clr-accent); }
nav a:hover::after { width: 100%; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--clr-ink); border-radius: 2px; transition: all .3s; }

.mobile-menu {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--clr-white); border-bottom: 1px solid var(--clr-divider);
  z-index: 999; flex-direction: column; padding: 28px 40px 36px; gap: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--clr-ink); transition: color .2s;
}
.mobile-menu a:hover { color: var(--clr-accent); }

/* ── SLIDER ── */
#inicio { margin-top: var(--header-h); position: relative; overflow: hidden; }

.slider { position: relative; height: 94vh; min-height: 560px; max-height: 900px; cursor: grab; touch-action: pan-y; user-select: none; }
.slider:active { cursor: grabbing; }

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; justify-content: center; text-align: center; }
.slide.active { opacity: 1; }

.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.38); }

.slide-content { position: relative; z-index: 2; max-width: 860px; padding: 0 36px; }

.slide-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; color: var(--clr-white);
  line-height: 1.1; margin-bottom: 24px; letter-spacing: -.02em;
}

.slide-desc {
  font-size: clamp(15px, 1.8vw, 18px); font-weight: 400; color: rgba(255,255,255,.78);
  line-height: 1.85; max-width: 620px; margin: 0 auto;
}

.slider-dots { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; transition: all .3s; padding: 0; }
.dot.active { background: var(--clr-white); width: 26px; border-radius: 4px; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: white;
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .25s, border-color .25s; font-size: 18px; line-height: 1;
}
.slider-arrow:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); }
.slider-arrow.prev { left: 32px; }
.slider-arrow.next { right: 32px; }

/* ── SECTIONS ── */
section { scroll-margin-top: var(--header-h); }
.section-pad { padding: 96px 40px; }
.container { max-width: 1140px; margin: 0 auto; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--clr-accent); margin-bottom: 14px; display: block;
}
.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800; color: var(--clr-ink); line-height: 1.15; margin-bottom: 32px;
  letter-spacing: -.02em;
}

p { font-size: 16px; color: var(--clr-muted); line-height: 1.9; margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }

.inline-link {
  color: var(--clr-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(107,15,26,.35);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.inline-link:hover { text-decoration-color: var(--clr-accent); }

/* ── EL DOJO ── */
#el-dojo { background: var(--clr-white); }

.dojo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

.dojo-photo {
  border-radius: var(--radius); overflow: hidden; position: relative;
  width: 380px;
  height: 475px;
}
.dojo-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  padding: 40px 22px 20px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75);
}

/* Team cards con foto circular */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }

.team-card {
  padding: 22px 24px;
  background: var(--clr-soft);
  border-radius: var(--radius);
  transition: box-shadow .25s, transform .25s;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--clr-divider);
  background: var(--clr-divider);
  display: flex; align-items: center; justify-content: center;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.team-avatar-initials {
  font-size: 22px; font-weight: 700; color: var(--clr-accent);
  line-height: 1;
}

.team-info { flex: 1; min-width: 0; }
.team-name { font-size: 16px; font-weight: 700; color: var(--clr-ink); margin-bottom: 3px; }
.team-role { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: 10px; }
.team-bio { font-size: 14px; color: var(--clr-muted); line-height: 1.75; margin: 0; word-wrap: break-word; overflow-wrap: break-word; }

/* ── AIKIKAI ── */
#alianza-aikido-argentina { background: var(--clr-soft); padding-top: 0; }

.aikido-hero {
  width: 100vw; position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  overflow: hidden; margin-bottom: 0;
  background: var(--clr-dark);
}
.aikido-hero img { width: 100%; height: auto; object-fit: contain; display: block; }

.two-col-text { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* Logo único de la alianza */
.alianza-logo-single {
  margin-bottom: 28px;
}
.alianza-logo-single img {
  width: 40px; height: 40px; object-fit: contain; display: block;
}

/* ── CLASES ── */
#clases { background: var(--clr-white); }

.clases-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.clases-photo {
  width: 380px;
  height: 507px;
  border-radius: var(--radius);
  overflow: hidden;
}
.clases-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }

.schedule-block { margin-bottom: 16px; }

.schedule-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--clr-divider); gap: 12px;
}
.schedule-item:first-child { border-top: 1px solid var(--clr-divider); }

.si-day { font-size: 16px; font-weight: 700; color: var(--clr-ink); }
.si-time { font-size: 15px; color: var(--clr-muted); text-align: right; font-variant-numeric: tabular-nums; }

.clases-note {
  margin-top: 28px; font-size: 14.5px; color: var(--clr-muted);
  line-height: 1.8; padding: 18px 22px;
  background: var(--clr-soft); border-radius: var(--radius);
  border-left: 3px solid var(--clr-accent);
}

/* ── GALERÍA ── */
#galeria { background: var(--clr-soft); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 340px);
  justify-content: center;
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  width: 340px;
  height: 255px;
  position: relative;
  background: var(--clr-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── CONTACTO ── */
#contactanos { background: var(--clr-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-buttons { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }

.contact-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px;
  background: var(--clr-soft);
  border: 1px solid var(--clr-divider);
  border-radius: 50px;
  text-decoration: none;
  color: var(--clr-ink);
  font-size: 15px; font-weight: 600;
  transition: background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.contact-btn:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(107,15,26,.25);
}
.contact-btn:hover svg { stroke: #fff; }
.contact-btn:hover svg.wa-icon { fill: #fff; stroke: none; }
.contact-btn svg { flex-shrink: 0; transition: stroke .2s, fill .2s; }

.contact-addr {
  display: flex; align-items: flex-start; gap: 14px;
}
.contact-addr svg { flex-shrink: 0; margin-top: 2px; }
.addr-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: 5px; }
.addr-val { font-size: 16px; font-weight: 700; color: var(--clr-ink); }
.addr-sub { font-size: 14px; color: var(--clr-muted); font-weight: 400; }

/* Mapa */
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── FOOTER ── */
footer {
  background: var(--clr-dark); color: rgba(255,255,255,.42);
  text-align: center; padding: 36px 40px;
  font-size: 12.5px; letter-spacing: .04em; line-height: 1.9;
}
footer strong { color: rgba(255,255,255,.72); font-weight: 700; }
.footer-sep { display: inline-block; margin: 0 8px; opacity: .3; }

/* ── WA FLOTANTE ── */
.wa-float {
  position: fixed; right: 28px; bottom: 32px; z-index: 2000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

.wa-bubble {
  background: var(--clr-white); border: 1px solid var(--clr-divider); border-radius: 14px 14px 0 14px;
  padding: 12px 20px; font-size: 13.5px; font-weight: 500; color: var(--clr-ink);
  box-shadow: 0 4px 20px rgba(0,0,0,.12); white-space: nowrap;
  opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .3s, transform .3s; pointer-events: none;
}
.wa-float:hover .wa-bubble { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.wa-btn {
  width: 62px; height: 62px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 10px 36px rgba(37,211,102,.55); }
.wa-btn svg { width: 32px; height: 32px; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  header { padding: 0 24px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 64px 24px; }
  .dojo-layout, .clases-layout, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .two-col-text { grid-template-columns: 1fr; gap: 0; }
  .team-card { flex-wrap: wrap; }
  .team-info { flex-basis: 100%; width: 100%; }
  /* Fotos de El Dōjō y Clases: full-bleed, sin recorte (igual que Alianza) */
  .dojo-photo, .clases-photo {
    max-width: none;
    width: 100vw; height: auto; position: relative;
    left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    border-radius: 0;
    overflow: hidden;
    background: var(--clr-dark);
  }
  .dojo-photo img, .clases-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
  }
  .slider-arrow { display: none; }
  .gallery-grid { gap: 16px; }
  .contact-map { height: 280px; }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
  .gallery-item { width: 100%; height: auto; aspect-ratio: 4/3; }
  .schedule-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .si-time { text-align: left; }
  .alianza-logo-single { display: flex; justify-content: center; }
  .alianza-logo-single img { width: 56px; height: 56px; }
  footer { padding: 28px 20px; }
}
