/* ================= FONTS ================= */

@font-face {
  font-family: 'Glacial Indifference';
  src: url('../fonts/GlacialIndifference-Regular.otf') format('opentype');
  font-weight: normal;
}

@font-face {
  font-family: 'Glacial Indifference';
  src: url('../fonts/GlacialIndifference-Bold.otf') format('opentype');
  font-weight: bold;
}

/* ================= THEME - CF MONTRÉAL ================= */

:root {
  --bg: #000000;
  --panel: #0a0a0a;
  --border: #1a1a1a;
  --text: #ffffff;
  --muted: #b8c5d6;
  --cfm-blue: #00205B;
  --cfm-light-blue: #8DC8E8;
  --accent: #8DC8E8;
  --accent-dark: #00205B;
  --accent-secondary: #FF6B35;
}

/* ================= BASE ================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: 'Glacial Indifference', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Tipografía para títulos - Proxima Nova Extrabold */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 30px;
}

/* ================= HEADER ================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.header-logo {
  height: 60px;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.powered-by img {
  height: 30px;
}

/* ================= LANGUAGE TOGGLE ================= */

.lang-toggle {
  display: flex;
  gap: 10px;
  background: var(--panel);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-toggle button.active {
  background: var(--accent);
  color: var(--bg);
  font-weight: bold;
}

.lang-toggle button:hover:not(.active) {
  color: var(--text);
}

/* ================= HERO ================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  min-height: 55vh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cfm-blue) 0%, var(--bg) 100%);
}

.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 32, 91, 0.75) 0%,
    rgba(0, 32, 91, 0.85) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero h1 {
  font-size: clamp(1rem, 8.6vw, 5.6rem);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.3s backwards;
  line-height: 1.4;
}

.hero .subheadline {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 0.8s ease 0.5s backwards;
}

.hero .cta-primary {
  display: inline-block;
  padding: 18px 48px;
  background: var(--cfm-light-blue);
  color: var(--cfm-blue);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease 0.9s backwards;
  border: none;
  cursor: pointer;
}

.hero .cta-primary:hover {
  background: #b0d9f1;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(141, 200, 232, 0.3);
}

/* ================= CONTENT SECTIONS ================= */

main {
  position: relative;
}

section.content-section {
  padding: 60px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

section.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

section.content-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 40px;
  text-align: center;
  color: var(--accent);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.2s ease 0.1s;
}

section.content-section.visible h2 {
  opacity: 1;
  transform: translateY(0);
}

section.content-section h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--text);
}

section.content-section p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 15px;
}

/* ================= STEPS ================= */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 30px;
  margin-top: 40px;
}

.step {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 35px 30px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.4s; }

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.step > * {
  position: relative;
  z-index: 1;
}

.step:nth-child(1)::before { background-image: url('../img/step-1.jpg'); }
.step:nth-child(2)::before { background-image: url('../img/step-2.jpg'); }
.step:nth-child(3)::before { background-image: url('../img/step-3.jpg'); }

.step:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(141, 200, 232, 0.2);
  border-color: var(--cfm-light-blue);
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--cfm-blue) 0%, #003580 100%);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 8px 16px rgba(0, 32, 91, 0.4);
  transition: all 0.3s ease;
}

.step h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--text);
}

.step p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.8;
}

/* ================= INFO BLOCKS ================= */

.info-block {
  background: linear-gradient(135deg, #00205B 0%, #003580 100%);
  border-left: 4px solid var(--accent);
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.info-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.info-block > * {
  position: relative;
  z-index: 1;
}

.info-block h3 {
  margin-top: 0;
  color: var(--accent);
}

.info-block ul {
  margin: 15px 0;
  padding-left: 20px;
  color: var(--muted);
}

.info-block li {
  margin: 8px 0;
  line-height: 1.9;
}

.info-block-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

/* ================= TIMELINE ================= */

.timeline {
  border: 1px solid var(--cfm-light-blue);
  padding: 30px;
  border-radius: 16px;
  margin: 30px 0;
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  transform: translateX(-30px);
  transition: all 0.4s ease;
}

.timeline.visible .timeline-item:nth-child(1) { animation: slideInLeft 0.6s ease 0.2s forwards; }
.timeline.visible .timeline-item:nth-child(2) { animation: slideInLeft 0.6s ease 0.4s forwards; }
.timeline.visible .timeline-item:nth-child(3) { animation: slideInLeft 0.6s ease 0.6s forwards; }

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.timeline-content h4 {
  color: var(--text);
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.timeline-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ================= FAQ ================= */

.faq {
  max-width: 900px;
  margin: 40px auto;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  transform: translateX(0);
}

.faq-item:hover {
  border-color: var(--accent);
  transform: translateX(8px);
  background: rgba(141, 200, 232, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

.faq-toggle {
  color: var(--accent);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.2, 0, 0.1, 1), opacity 0.2s ease, padding-top 0.2s ease;
  color: var(--muted);
  padding-top: 0;
  opacity: 0;
  line-height: 1.85;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 15px;
  opacity: 1;
}

/* ================= VISION SECTION ================= */

.vision-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.vision-content p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 25px;
  color: var(--muted);
}

.vision-content p strong {
  color: var(--text);
  font-weight: 700;
}

/* ================= ANIMATIONS ================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

/* ================= FOOTER ================= */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 40px;
  background: var(--bg);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  color: #666;
  font-size: 0.9rem;
}

/* ================= LANGUAGE SWITCHING ================= */

.lang-fr {
  display: none;
}

.lang-en {
  display: block;
}

body.french .lang-fr {
  display: block;
}

body.french .lang-en {
  display: none;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-content {
    padding: 0 20px;
  }

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

  section.content-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
}
