/* ============================================
   FKM TRAINING CENTER — MINIMAL DESIGN SYSTEM
============================================ */
:root{
  --black: #0b0b0a;
  --black-2: #141412;
  --white: #f6f6f2;
  --grey: #86867e;
  --green: #2fdf6e;
  --line: rgba(246,246,242,.12);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.65,0,.35,1);
}

*, *::before, *::after{ box-sizing: border-box; }
body{
  margin:0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; background:none; border:none; color:inherit; }

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

/* ============ SCROLL PROGRESS ============ */
.progress-bar{
  position: fixed; top:0; left:0;
  height: 2px; width:0%;
  background: var(--green);
  z-index: 9997;
  transition: width .1s linear;
}

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring{
  position: fixed; top:0; left:0;
  pointer-events:none;
  z-index: 9999;
  border-radius:50%;
  transform: translate(-50%,-50%);
}
.cursor-dot{ width:4px; height:4px; background: var(--green); }
.cursor-ring{
  width:28px; height:28px;
  border: 1px solid rgba(47,223,110,.5);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cursor-ring.hover{ width:52px; height:52px; background: rgba(47,223,110,.08); border-color: var(--green); }
@media (hover:none), (pointer:coarse){ .cursor-dot, .cursor-ring{ display:none; } }

/* ============ PRELOADER ============ */
.preloader{
  position: fixed; inset:0;
  background: var(--black);
  z-index: 10000;
  display:flex; align-items:center; justify-content:center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader-logo{ width: 120px; animation: pulse-fade 1.4s ease-in-out infinite; }
@keyframes pulse-fade{ 0%,100%{ opacity:.35; } 50%{ opacity:1; } }
.preloader.done{ opacity:0; visibility:hidden; }

/* ============ HEADER ============ */
.site-header{
  position: fixed; top:0; left:0; right:0;
  z-index: 500;
  padding: 24px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  padding: 14px 0;
  background: rgba(11,11,10,.85);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.header-inner{ position:relative; z-index: 600; display:flex; align-items:center; justify-content: space-between; gap: 24px; }
.brand-logo{ height: 30px; width:auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand-logo{ height: 26px; }

.main-nav{ position:relative; display:flex; }
.main-nav ul{ display:flex; gap: 8px; }
.nav-link{
  position:relative;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 16px;
  opacity: .6;
  transition: opacity .25s;
}
.nav-link:hover, .nav-link.active{ opacity:1; }
.nav-indicator{
  position:absolute; bottom:0; left:0;
  height:1px; background: var(--green);
  transform: translateX(0);
  transition: transform .4s var(--ease), width .4s var(--ease);
}

.nav-cta{
  font-size: 13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .3s, color .3s, background .3s;
}
.nav-cta:hover{ border-color: var(--green); color: var(--green); }

.burger{
  display:none;
  width: 34px; height: 34px;
  flex-direction:column; gap:6px;
  align-items:center; justify-content:center;
}
.burger span{ display:block; width: 20px; height: 1px; background: var(--white); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.burger.active span:nth-child(1){ transform: translateY(3.5px) rotate(45deg); }
.burger.active span:nth-child(2){ transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav{
  position: fixed; inset:0;
  background: var(--black);
  z-index: 400;
  display:flex; flex-direction:column; justify-content:center;
  padding: 90px 32px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform .6s var(--ease), visibility 0s linear .6s;
}
.mobile-nav.open{ visibility: visible; transform: translateY(0); transition: transform .6s var(--ease); }
.mobile-nav ul{ display:flex; flex-direction:column; flex-shrink:0; }
.mobile-link{
  display:flex; align-items:baseline; gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 44px);
  letter-spacing: .01em;
  text-transform:uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-link span{ font-family: var(--font-body); font-size:13px; color: var(--green); }
.mobile-foot{ margin-top: 32px; display:flex; gap: 24px; font-size:13px; opacity:.6; flex-shrink:0; }

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 13px; font-weight:500;
  letter-spacing:.04em; text-transform:uppercase;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.btn-solid{ background: var(--green); color: var(--black); }
.btn-solid:hover{ background: var(--white); }
.btn-text{ opacity:.75; }
.btn-text span{ display:inline-block; transition: transform .3s var(--ease); }
.btn-text:hover{ opacity:1; }
.btn-text:hover span{ transform: translateX(4px); }

.btn-arrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 13px; letter-spacing:.04em; text-transform:uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.btn-arrow span{ transition: transform .3s var(--ease); }
.btn-arrow:hover{ border-color: var(--green); color: var(--green); }
.btn-arrow:hover span{ transform: translateX(4px); }

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  padding-top: 90px;
}
.hero-media{ position:absolute; inset:0; z-index:0; will-change: transform; }
.hero-media img{ width:100%; height:110%; object-fit:cover; filter: grayscale(.15) brightness(.85); }
.hero-video{
  position:absolute; inset:0;
  width:100%; height:110%; object-fit:cover;
  filter: grayscale(.15) brightness(.85);
  opacity:0;
  transition: opacity 1s var(--ease);
}
.hero-video.ready{ opacity:1; }
.hero-overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,11,10,.3) 0%, rgba(11,11,10,.15) 45%, rgba(11,11,10,.85) 100%); }

.hero-content{ position:relative; z-index:2; text-align:center; }
.eyebrow{
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--green); margin-bottom: 26px; font-weight: 500;
}
.hero-title{
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(46px, 9vw, 118px);
  line-height: .98;
  letter-spacing: .01em;
  margin: 0;
}
.hero-title .word{ display:inline-block; white-space:nowrap; }
.hero-title .char{
  display:inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: char-up .8s var(--ease) forwards;
  animation-delay: calc(var(--i) * 22ms + .1s);
}
@keyframes char-up{ to{ transform: translateY(0); opacity:1; } }

.hero-sub{
  max-width: 460px; margin: 26px auto 0;
  font-size: 16px; line-height: 1.6;
  color: rgba(246,246,242,.65);
}
.hero-actions{ margin-top: 38px; display:flex; gap: 16px; justify-content:center; flex-wrap:wrap; }

.scroll-cue{
  position:absolute; bottom: 40px; left:50%;
  transform: translateX(-50%);
  z-index:2;
}
.scroll-cue-line{
  display:block; width:1px; height: 46px;
  background: var(--line);
  position:relative; overflow:hidden;
}
.scroll-cue-line::after{
  content:''; position:absolute; top:-46px; left:0; width:100%; height:46px;
  background: var(--green);
  animation: cue-drop 2s ease-in-out infinite;
}
@keyframes cue-drop{ 0%{ top:-46px; } 100%{ top: 46px; } }

/* ============ REVEALS ============ */
.reveal-up, .reveal-fade{ opacity:0; }
.reveal-up{ transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in-view{ opacity:1; transform: translateY(0); }
.reveal-fade{ transition: opacity 1s var(--ease); transition-delay:.15s; }
.reveal-fade.in-view{ opacity:1; }

/* ============ TICKER ============ */
.ticker{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow:hidden;
  padding: 16px 0;
}
.ticker-track{ display:flex; width: max-content; animation: ticker-scroll 24s linear infinite; }
.ticker-track span{
  font-size: 13px; letter-spacing:.15em; text-transform:uppercase;
  color: var(--grey);
  padding: 0 24px;
  white-space:nowrap;
  position:relative;
}
.ticker-track span::after{
  content:'·'; position:absolute; right:-4px; color: var(--green);
}
@keyframes ticker-scroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
section{ position:relative; padding: 130px 0; }
.section-tag{
  font-size: 12px; letter-spacing:.22em; text-transform:uppercase;
  color: var(--green); font-weight:500; margin-bottom: 16px;
}
.section-title{
  font-family: var(--font-display);
  text-transform: uppercase; font-weight:400;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: .01em;
  margin: 0 0 20px;
  max-width: 720px;
}

/* ============ ABOUT ============ */
.about-grid{ display:grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items:center; }
.about-media{ border-radius: 4px; overflow:hidden; will-change: transform; }
.about-media img{ width:100%; height: 560px; object-fit:cover; filter: grayscale(.3) brightness(.85); }
.about-text{ font-size: 16px; line-height:1.7; color: rgba(246,246,242,.65); max-width: 460px; }
.about-quote{
  margin: 30px 0; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing:.01em;
}
.feature-list{ margin-top: 8px; }
.feature-list li{
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  letter-spacing:.02em;
}
.feature-list li:last-child{ border-bottom: 1px solid var(--line); }

/* ============ SERVICES ============ */
.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin: 50px 0 60px; border: 1px solid var(--line); }
.service-card{ background: var(--black); padding: 40px 32px; transition: background .35s; }
.service-card:hover{ background: var(--black-2); }
.service-num{ display:block; font-family: var(--font-display); font-size: 15px; color: var(--green); margin-bottom: 20px; }
.service-card h3{ font-family: var(--font-display); text-transform:uppercase; font-size: 24px; font-weight:400; margin: 0 0 8px; letter-spacing:.01em; }
.service-card p{ color: rgba(246,246,242,.55); font-size:14px; margin:0; }

.tarifas{ margin-bottom: 90px; }
.tabs{ position:relative; display:flex; gap: 4px; margin: 24px 0 0; border-bottom: 1px solid var(--line); }
.tab-btn{ padding: 12px 22px; font-size:13px; letter-spacing:.06em; text-transform:uppercase; opacity:.5; transition: opacity .25s, color .25s; }
.tab-btn:hover{ opacity:.85; }
.tab-btn.active{ opacity:1; color: var(--green); }
.tab-indicator{ position:absolute; bottom:-1px; left:0; height:2px; background: var(--green); transition: transform .4s var(--ease), width .4s var(--ease); }

.price-table-wrap{ margin-top: 36px; max-width: 640px; overflow-x:auto; }
.price-table{ width:100%; border-collapse: collapse; display:none; }
.price-table.active{ display:table; }
.price-table th{ text-align:left; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: var(--grey); font-weight:400; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.price-table th:not(:first-child), .price-table td:not(:first-child){ text-align:right; }
.price-table td{ padding: 15px 10px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 20px; letter-spacing:.01em; }
.price-table td:first-child{ font-family: var(--font-body); font-size:14px; color: var(--grey); }
.price-table tbody tr{ transition: background .25s; }
.price-table tbody tr:hover{ background: rgba(47,223,110,.05); }
.price-note{ margin-top: 16px; font-size:13px; color: var(--grey); min-height: 18px; }

/* FAQ */
.faq{ max-width: 760px; }
.faq-item{ border-top: 1px solid var(--line); }
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-question{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap: 20px;
  padding: 22px 2px; text-align:left; font-size: 16px; font-weight:400;
}
.faq-question span:first-child{ transition: color .3s; }
.faq-item.open .faq-question span:first-child{ color: var(--green); }
.faq-icon{ flex-shrink:0; font-size: 16px; color: var(--grey); transition: transform .35s var(--ease), color .3s; }
.faq-item.open .faq-icon{ transform: rotate(135deg); color: var(--green); }
.faq-answer{ max-height:0; overflow:hidden; transition: max-height .5s var(--ease); }
.faq-answer p{ margin:0; padding: 0 2px 22px; color: rgba(246,246,242,.55); line-height:1.6; font-size:14px; max-width: 600px; }

/* ============ GALLERY ============ */
.gallery-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 50px; }
.gallery-item{ position:relative; overflow:hidden; cursor: pointer; aspect-ratio: 3/4; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease), filter .6s; filter: grayscale(.5) brightness(.75); }
.gallery-item:hover img{ transform: scale(1.05); filter: grayscale(0) brightness(1); }

/* ============ TEAM ============ */
.team-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 50px; }
.team-photo{ aspect-ratio: 4/3.4; overflow:hidden; }
.team-photo img{ width:100%; height:100%; object-fit:cover; filter: grayscale(.5) brightness(.8); transition: transform .6s var(--ease), filter .6s; }
.team-card:hover .team-photo img{ transform: scale(1.04); filter: grayscale(0) brightness(1); }
.team-info{ padding: 20px 4px; display:flex; align-items:baseline; justify-content:space-between; }
.team-info h3{ font-family: var(--font-display); text-transform:uppercase; font-size: 22px; font-weight:400; margin:0; }
.team-info span{ font-size: 12px; letter-spacing:.08em; text-transform:uppercase; color: var(--green); }

/* ============ HOURS ============ */
.hours-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items:center; }
.hours-status{
  display:inline-flex; align-items:center; gap:10px;
  margin-top: 28px;
  font-size: 13px; letter-spacing:.04em;
}
.status-dot{ width:7px; height:7px; border-radius:50%; background: var(--grey); }
.status-dot.open{ background: var(--green); box-shadow: 0 0 0 0 rgba(47,223,110,.5); animation: status-pulse 1.8s infinite; }
@keyframes status-pulse{ 0%{ box-shadow: 0 0 0 0 rgba(47,223,110,.45); } 70%{ box-shadow: 0 0 0 8px rgba(47,223,110,0); } 100%{ box-shadow: 0 0 0 0 rgba(47,223,110,0); } }

.hours-right{ border-top: 1px solid var(--line); }
.hours-row{ display:flex; justify-content:space-between; padding: 22px 4px; border-bottom: 1px solid var(--line); font-size:14px; letter-spacing:.02em; }
.hours-row .hours-time{ font-family: var(--font-display); font-size: 20px; color: var(--green); letter-spacing:.01em; }
.hours-row.muted .hours-time{ color: var(--grey); }
.hours-row.muted{ opacity:.55; }

/* ============ CONTACT ============ */
.contact-list{ margin-top: 50px; }
.contact-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 26px 4px;
  border-top: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.contact-list a:last-child{ border-bottom: 1px solid var(--line); }
.contact-row span{ font-size: 12px; letter-spacing:.15em; text-transform:uppercase; color: var(--grey); }
.contact-row strong{
  font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); font-weight:400;
  letter-spacing:.01em; display:flex; align-items:center; gap:12px;
}
.contact-row strong em{ font-style:normal; color: var(--green); transition: transform .3s var(--ease); }
.contact-row:hover{ padding-left: 14px; }
.contact-row:hover strong em{ transform: translateX(6px); }

/* ============ FOOTER ============ */
.site-footer{ 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; }
.footer-logo{ height: 24px; opacity:.8; }
.footer-line{ font-size:13px; color: var(--grey); }
.footer-year{ font-size:12px; color: var(--grey); letter-spacing:.04em; }
.footer-credit{
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--grey); opacity:.6; text-align:center;
}

/* ============ LIGHTBOX ============ */
.lightbox{
  position: fixed; inset:0; background: rgba(11,11,10,.97);
  z-index: 5000; display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
  padding: 40px;
}
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{ max-width: 90vw; max-height: 86vh; transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.open img{ transform: scale(1); }
.lightbox-close{ position:absolute; top: 28px; right: 34px; font-size: 32px; line-height:1; color: var(--white); }
.lightbox-close:hover{ color: var(--green); }

.magnetic{ will-change: transform; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .main-nav, .nav-cta{ display:none; }
  .burger{ display:flex; }
  .about-grid{ grid-template-columns: 1fr; gap: 46px; }
  .about-media img{ height: 380px; }
  .services-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .team-grid{ grid-template-columns: 1fr; }
  .hours-grid{ grid-template-columns: 1fr; gap: 46px; }
  .footer-inner{ flex-direction:column; align-items:flex-start; }
  .price-table th, .price-table td{ font-size: 13px; padding: 12px 6px; }
  .price-table td{ font-size: 17px; }
}
@media (max-width: 560px){
  section{ padding: 90px 0; }
  .hero{ padding-top: 110px; }
  .eyebrow{ font-size: 11px; letter-spacing: .2em; margin-bottom: 18px; }
  .hero-title{ font-size: clamp(34px, 11vw, 56px); }
  .hero-sub{ font-size: 15px; margin-top: 20px; }
  .hero-actions{ margin-top: 30px; gap: 12px; }
  .btn{ padding: 13px 24px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
