/* ========================================
  RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #E0E1DD;
  line-height: 1.6;
  overflow-x: hidden;
  background: #1B263B;
}

body.menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
  NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease;
}

.navbar.scrolled {
  background: rgba(27, 38, 59, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .navbar.scrolled {
    background: rgba(27, 38, 59, 0.88);
  }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: #E0E1DD;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links > li > a {
  font-family: 'Poppins', sans-serif;
  color: rgba(224, 225, 221, 0.85);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #778DA9;
  transition: width 0.3s ease;
}

.nav-links > li > a:hover {
  color: #E0E1DD;
}

.nav-links > li > a:hover::after {
  width: 100%;
}

.arrow {
  font-size: 0.55rem;
  margin-left: 4px;
  opacity: 0.7;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  background: rgba(27, 38, 59, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  min-width: 260px;
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(119, 141, 169, 0.15);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  font-family: 'Poppins', sans-serif;
  display: block;
  padding: 10px 28px;
  color: #778DA9;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s, padding-left 0.2s;
}

.dropdown-menu li a:hover {
  color: #E0E1DD;
  padding-left: 36px;
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  transition: opacity 0.2s;
  opacity: 0.55;
}

.lang-option:hover,
.lang-option.active {
  opacity: 1;
}

.lang-option .lang-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.lang-option .lang-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.5rem;
  font-weight: 500;
  color: #E0E1DD;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-cta {
  font-family: 'Poppins', sans-serif;
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid rgba(224, 225, 221, 0.5);
  color: #E0E1DD;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #E0E1DD;
  color: #1B263B;
  border-color: #E0E1DD;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: #E0E1DD;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/prism.webp') repeat, #1B263B;
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 38, 59, 0.5) 0%,
    rgba(27, 38, 59, 0.3) 50%,
    rgba(27, 38, 59, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
  padding: 0 24px;
}

.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #E0E1DD;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #778DA9;
  font-weight: 300;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
  letter-spacing: 0.3px;
}

/* ========================================
   PHILOSOPHY
   ======================================== */
.philosophy {
  padding: 80px 0 60px;
  background: #1B263B;
}

.philosophy .container {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.philosophy h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: #E0E1DD;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.philosophy p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #778DA9;
  line-height: 1.9;
  font-weight: 300;
  flex: 1;
}

/* ========================================
   TRAINERS
   ======================================== */
.trainers {
  padding: 40px 0 100px;
  background: #1B263B;
}

.trainers h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 50px;
  color: #E0E1DD;
  letter-spacing: 0.5px;
}

.trainers-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.trainer-card {
  max-width: 360px;
  width: 100%;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.4s ease;
}

.trainer-card:hover {
  transform: translateY(-4px);
}

.trainer-photo {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.trainer-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.trainer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.6s ease;
}

.trainer-card:hover .trainer-photo img {
  transform: scale(1.03);
}

.trainer-card h3 {
  font-family: 'Poppins', sans-serif;
  padding: 20px 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #E0E1DD;
  letter-spacing: 0.5px;
}

/* Accordion */
.accordion {
  border-top: 1px solid #415A77;
}

.accordion-toggle {
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #778DA9;
  transition: color 0.3s;
}

.accordion-toggle:hover {
  color: #E0E1DD;
}

.accordion-icon {
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.3s;
}

.accordion-toggle[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content ul {
  padding: 0 0 16px;
}

.accordion-content li {
  padding: 5px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: #778DA9;
  font-weight: 300;
  border-bottom: 1px solid rgba(65, 90, 119, 0.3);
}

.accordion-content li:last-child {
  border-bottom: none;
}

/* ========================================
   PILARES
   ======================================== */
.pilares {
  padding: 100px 0;
  background: #1B263B;
}

.pilares-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #E0E1DD;
  margin-bottom: 60px;
  letter-spacing: 0.5px;
}

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

.pilar-card {
  background: rgba(65, 90, 119, 0.12);
  border: 1px solid rgba(119, 141, 169, 0.15);
  border-radius: 6px;
  padding: 50px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.pilar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(119, 141, 169, 0.35);
}

.pilar-letter {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #415A77;
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.pilar-card:hover .pilar-letter {
  color: #778DA9;
}

.pilar-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #E0E1DD;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pilar-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #778DA9;
  font-weight: 300;
  line-height: 1.8;
  max-width: 280px;
}

/* ========================================
   TRAINING SYSTEM
   ======================================== */
.training-system-header {
  padding: 80px 0 40px;
  background: #E0E1DD;
  text-align: center;
}

.training-system-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: 0.5px;
}

.training-system-body {
  padding: 60px 0 100px;
  background: #0D1B2A;
}

.system-step {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr;
  grid-template-rows: auto auto;
  column-gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid rgba(65, 90, 119, 0.25);
  transition: background 0.3s ease;
}

.system-step:last-child {
  border-bottom: none;
}

.system-step:hover {
  background: rgba(27, 38, 59, 0.5);
}

.step-number {
  grid-row: 1 / 3;
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #E0E1DD;
  line-height: 1;
}

.step-accent {
  display: none;
}

.system-step h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #E0E1DD;
  letter-spacing: 0.3px;
  padding-top: 6px;
  position: relative;
}

.system-step h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #415A77;
  margin-top: 12px;
}

.system-step p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #778DA9;
  font-weight: 300;
  line-height: 1.8;
  padding-top: 6px;
}

/* ========================================
   SYSTEM KEYS
   ======================================== */
.system-keys {
  padding: 100px 0;
  background: #E0E1DD;
}

.system-keys-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 50px;
  letter-spacing: 0.5px;
}

.keys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.key-card {
  border-radius: 16px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.key-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13, 27, 42, 0.12);
}

.key-card--blue {
  background: #c8d8e8;
}

.key-card--green {
  background: #c8e0d0;
}

.key-card--teal {
  background: #bcd8db;
}

.key-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0D1B2A;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.key-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #1B263B;
  font-weight: 400;
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 32px;
}

.key-card-footer {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: auto;
}

/* ========================================
   MEMBERSHIP CTA
   ======================================== */
.membership-cta {
  padding: 100px 0;
  background: #1B263B;
  text-align: center;
}

.membership-cta p {
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 1rem;
  color: #778DA9;
  font-weight: 300;
  line-height: 1.8;
}

.membership-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #E0E1DD;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: #E0E1DD;
  color: #1B263B;
  border: 2px solid #E0E1DD;
}

.btn-primary:hover {
  background: transparent;
  color: #E0E1DD;
}

.btn-outline {
  background: transparent;
  color: #E0E1DD;
  border: 2px solid #415A77;
}

.btn-outline:hover {
  background: #415A77;
  color: #E0E1DD;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #0D1B2A;
  color: #778DA9;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #E0E1DD;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  font-weight: 300;
  font-style: italic;
  color: #778DA9;
  margin-bottom: 20px;
}

.footer address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #778DA9;
  margin-bottom: 16px;
}

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #778DA9;
}

.footer-contact a {
  color: #E0E1DD;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.footer-socials a {
  color: #778DA9;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.footer-socials a:hover {
  color: #E0E1DD;
  transform: scale(1.1);
}

.footer-contact-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E0E1DD;
  margin-bottom: 20px;
}

.footer-contact-info p {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: #778DA9;
}

.footer-contact-info a {
  color: #778DA9;
  transition: color 0.2s;
}

.footer-contact-info a:hover {
  color: #E0E1DD;
}

.footer-hours h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E0E1DD;
  margin-bottom: 20px;
}

.hours-group {
  margin-bottom: 16px;
}

.hours-group h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #778DA9;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hours-group p {
  font-size: 0.8rem;
  color: #415A77;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E0E1DD;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  font-size: 0.8rem;
  color: #415A77;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #E0E1DD;
}

.footer-cta {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #415A77;
  border-bottom: 1px solid #415A77;
  margin-bottom: 30px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.7rem;
  color: #415A77;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #E0E1DD;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

/* Touch targets — all screen sizes */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tablet 768-1024 */
@media (max-width: 1024px) {
  .pilares-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .philosophy .container {
    gap: 40px;
  }

  .system-step {
    grid-template-columns: 80px 1fr 1.2fr;
    column-gap: 24px;
  }

  .step-number {
    font-size: 2.8rem;
  }

  .nav-container {
    padding: 0 24px;
  }

  .nav-links {
    gap: 24px;
  }
}

/* Mobile <=768 */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    background: #1B263B;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid #415A77;
  }

  .nav-links > li > a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    min-height: 44px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    background: transparent;
    padding: 0 0 8px 16px;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .lang-selector {
    position: absolute;
    top: 24px;
    right: 60px;
  }

  .hamburger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* Philosophy */
  .philosophy .container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .philosophy h2 {
    white-space: normal;
  }

  /* Pilares */
  .pilares-grid {
    grid-template-columns: 1fr;
  }

  .pilar-card {
    padding: 36px 24px;
  }

  /* System Keys */
  .keys-grid {
    grid-template-columns: 1fr;
  }

  /* Training System */
  .system-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }

  .step-number {
    grid-row: auto;
    font-size: 2.5rem;
  }

  /* Trainers */
  .trainers-grid {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-legal {
    gap: 12px;
  }
}

/* Small phones <=375 */
@media (max-width: 375px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .pilares-title {
    font-size: 1.4rem;
  }

  .pilar-card {
    padding: 28px 20px;
  }

  .pilar-letter {
    font-size: 2.5rem;
  }

  .pilar-card h3 {
    font-size: 1rem;
  }

  .key-card {
    padding: 36px 24px;
    min-height: auto;
  }

  .key-card h3 {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .philosophy h2 {
    font-size: 1.3rem;
  }

  .system-step h3 {
    font-size: 1rem;
  }

  .step-number {
    font-size: 2rem;
  }
}
