/* ===========================================================
   AIKIDO SHOJIKI — estilos
   Identidad: fondo negro / rojo, texto principal blanco,
   acento rosa-coral para subtítulos y detalles.
=========================================================== */

:root {
  --black: #0a0a0a;
  --near-black: #121212;
  --ink: #050505;

  --red-950: #2a0a0f;
  --red-900: #3a0e15;
  --red-800: #521019;
  --red-700: #7a1620;
  --red-500: #b8283a;
  --red-400: #d33a4a;

  --coral: #ff6f61;
  --coral-soft: #ffb3a7;

  --white: #ffffff;
  --gray-300: #d6d0cf;
  --gray-400: #b3adac;
  --gray-500: #8f8887;
  --gray-700: #5c5655;

  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);

  --font-display: "Oswald", "Inter", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1180px;
  --transition: 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

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

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

ul {
  list-style: none;
}

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

/* Grano de fondo sutil */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--coral);
  flex-shrink: 0;
}

.brand-text b {
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--white);
}

.nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--coral);
  transition: width 0.3s ease;
}

.nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  border: 1px solid var(--coral);
  color: var(--coral);
  padding: 8px 18px !important;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--coral);
  color: var(--black);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: var(--transition);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(122, 22, 32, 0.55) 0%, transparent 55%),
    linear-gradient(100deg, rgba(6, 5, 5, 0.96) 0%, rgba(10, 8, 8, 0.88) 42%, rgba(10, 8, 8, 0.55) 100%),
    url("../assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  overflow: hidden;
}

.hero-enso {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 60vw;
  max-width: 780px;
  opacity: 0.14;
  color: var(--red-500);
  animation: rotate-slow 90s linear infinite;
}

@keyframes rotate-slow {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 90px;
}

.hero-kanji {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  color: var(--coral);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 700;
  display: flex;
  flex-direction: column;
}

.hero-title-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}

.hero-subtitle {
  margin-top: 28px;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--gray-300);
}

.hero-subtitle strong {
  font-weight: 600;
  color: var(--white);
}

.hero-tagline {
  margin-top: 10px;
  max-width: 540px;
  color: var(--gray-400);
  font-size: 0.95rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-300);
  background: rgba(255, 255, 255, 0.03);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  background: var(--coral);
  border-radius: 2px;
  animation: scroll-cue 1.8s ease infinite;
}

@keyframes scroll-cue {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--coral);
  color: var(--black);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.btn-red {
  background: var(--red-500);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-400);
}

/* ===================== SECCIONES ===================== */
.section {
  padding: 130px 0;
  background: var(--black);
  color: var(--white);
}

.section--red {
  background: linear-gradient(180deg, var(--red-950) 0%, var(--near-black) 100%);
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.section-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--gray-500);
  font-style: italic;
}

/* Split layout (El Dojo) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-text p {
  color: var(--gray-300);
  margin-bottom: 18px;
}

.checklist {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
  color: var(--white);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 1px;
  background: var(--coral);
}

.media-frame {
  border: 1px solid var(--line);
  overflow: hidden;
}

.media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Grid 3 (Qué es el Aikido) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--black);
  padding: 44px 34px;
}

.card-num {
  font-family: var(--font-jp);
  font-size: 2.4rem;
  color: var(--coral);
  display: block;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.card p {
  color: var(--gray-400);
  font-size: 0.95rem;
}

/* Horarios */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.schedule-card {
  border: 1px solid var(--line);
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
}

.schedule-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schedule-table th {
  text-align: left;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--coral);
  padding-bottom: 10px;
}

.schedule-table td {
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--gray-300);
}

.schedule-card p {
  color: var(--gray-300);
  font-size: 0.95rem;
}

.schedule-card .schedule-phone {
  display: inline-block;
  margin-top: 14px;
  color: var(--coral);
  font-weight: 600;
}

.offer-banner {
  margin-top: 40px;
  padding: 30px 40px;
  border: 1px solid var(--red-700);
  background: linear-gradient(120deg, var(--red-900), var(--red-950));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.offer-banner h3 {
  font-size: 1.4rem;
  color: var(--white);
}

.offer-banner p {
  color: var(--coral-soft);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.instructor-photo {
  border: 1px solid var(--line);
  overflow: hidden;
}

.instructor-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.instructor-info h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.instructor-grade {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}

.instructor-info p:not(.instructor-grade) {
  color: var(--gray-300);
  max-width: 560px;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.contact-list span,
.contact-list a {
  font-size: 1rem;
  color: var(--white);
}

.contact-list a:hover {
  color: var(--coral);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 2px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-500);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.contact-form button {
  justify-self: start;
  margin-top: 6px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-style: italic;
}

.contact-map {
  border: 1px solid var(--line);
  min-height: 360px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(0.6) invert(0.92) contrast(0.9);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--black);
  color: var(--gray-500);
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.footer-brand .brand-mark {
  width: 20px;
  height: 20px;
}

.back-top {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.back-top:hover {
  color: var(--coral);
}

.footer-credit {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-700);
}

.footer-credit a {
  color: var(--gray-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--coral);
}

/* ===================== ANIMACIONES DE ENTRADA ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-title .reveal:nth-child(2) { transition-delay: 0.18s; }
.hero-subtitle { transition-delay: 0.3s; }
.hero-tagline { transition-delay: 0.4s; }
.hero-badges { transition-delay: 0.48s; }
.hero-actions { transition-delay: 0.56s; }

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .instructor {
    grid-template-columns: 1fr;
  }

  .instructor-photo {
    max-width: 320px;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    background: var(--black);
    padding: 40px;
    transform: translateX(100%);
    transition: var(--transition);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.1rem;
  }

  .burger {
    display: flex;
  }

  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section {
    padding: 90px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .offer-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
