/* ============================================================
   BigLobster — Infografía: Automatización para PYMES
   Mobile-first responsive design with DESIGN.md tokens
   ============================================================ */

:root {
  --animation-speed: 0.6s;
  --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles */
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
}

.infografia-container {
  max-width: 100vw;
  overflow: hidden;
  background-color: var(--bg-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ===== Sections ===== */
.infografia-section {
  width: 100%;
  min-height: 100vh;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn var(--animation-speed) var(--animation-easing) forwards;
}

.infografia-section.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Section Hero */
.section-hero {
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Section Numbers */
.section-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* Section Titles */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Text */
.section-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.section-annotation {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  margin-top: 2rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--accent-hover);
}

/* ===== Progress Indicator ===== */
.progress-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 300px;
  z-index: 100;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--bg-surface);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ===== Accessibility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== Tablet Breakpoint ===== */
@media (min-width: 768px) {
  .infografia-section {
    padding: 6rem 3rem;
  }

  .section-hero {
    max-width: 1000px;
  }

  .section-text {
    font-size: 1.15rem;
  }

  .progress-indicator {
    width: auto;
  }
}

/* ===== Desktop Breakpoint ===== */
@media (min-width: 1024px) {
  .infografia-section {
    padding: 8rem 4rem;
  }

  .section-number {
    margin-bottom: 3rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .section-text {
    font-size: 1.2rem;
  }
}
