/* ==========================================
   BANK - Encuesta Anchor
   Colores: #2a6a8a (primary), #a7d5f3 (accent)
   Diseño moderno independiente
   ========================================== */

/* === VARIABLES === */
:root {
  --bg: #f7fbff;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-light: #64748b;
  --primary: #2a6a8a;
  --primary-dark: #1e5366;
  --accent: #a7d5f3;
  --success: #10b981;
  --error: #ef4444;
  --border: rgba(42, 106, 138, 0.15);
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --shadow: 0 10px 40px rgba(42, 106, 138, 0.12);
  --shadow-lg: 0 20px 60px rgba(42, 106, 138, 0.18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === HEADER === */
.survey-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gradient);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateX(-3px);
}

.back-link svg {
  transition: transform 0.3s ease;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-logo img {
  height: 60px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* === HERO PEQUEÑO === */
.survey-hero {
  position: relative;
  padding: 10rem 2rem 3rem;
  overflow: hidden;
  background: linear-gradient(180deg, #e1f0f7 0%, var(--bg) 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary), transparent);
  top: -150px;
  left: -100px;
}

.hero-glow-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent), transparent);
  bottom: -100px;
  right: -80px;
  animation-delay: -4s;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(42, 106, 138, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(42, 106, 138, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(42, 106, 138, 0.1);
  border: 1px solid rgba(42, 106, 138, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-content h1 {
  font-family: "Montserrat", Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0;
}

/* === PROGRESS BAR === */
.progress-container {
  position: sticky;
  top: 73px;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-bar {
  height: 4px;
  background: rgba(42, 106, 138, 0.1);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-text {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* === MAIN CONTAINER === */
.survey-main {
  flex: 1;
  padding: 3rem 0;
}

.survey-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === STEPS === */
.step {
  display: none;
  animation: fadeInUp 0.6s ease;
}

.step.active {
  display: block;
}

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

/* === STEP CARD === */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover::before {
  opacity: 1;
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].in {
  opacity: 1;
  transform: translateY(0);
}

/* === STEP HEADER === */
.step-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(42, 106, 138, 0.3);
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.step-header h2 {
  font-family: "Montserrat", Inter, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.step-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
}

/* === QUESTION GROUP === */
.question-group {
  margin-bottom: 2rem;
}

.question-label {
  display: block;
}

.question-text {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.required {
  color: var(--error);
  font-weight: 700;
}

/* === INPUTS === */
.input-select,
.input-text,
.input-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  transition: all 0.3s ease;
  outline: none;
}

.input-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232a6a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px;
  padding-right: 3rem;
}

.input-select:hover,
.input-text:hover,
.input-textarea:hover {
  border-color: var(--primary);
}

.input-select:focus,
.input-text:focus,
.input-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 106, 138, 0.1);
}

.input-textarea {
  resize: vertical;
  min-height: 120px;
}

/* === RADIO BUTTONS === */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-card);
  position: relative;
}

.radio-option:hover {
  border-color: var(--primary);
  background: rgba(42, 106, 138, 0.03);
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
  border-color: var(--primary);
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.radio-option input[type="radio"]:checked ~ .radio-label {
  color: var(--primary);
  font-weight: 600;
}

.radio-label {
  font-size: 1rem;
  color: var(--text);
  transition: all 0.3s ease;
}

/* === CHECKBOX === */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-card);
  position: relative;
}

.checkbox-option:hover {
  border-color: var(--primary);
  background: rgba(42, 106, 138, 0.03);
}

.checkbox-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(45deg);
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-custom::after {
  transform: translate(-50%, -60%) scale(1) rotate(45deg);
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-label {
  color: var(--primary);
  font-weight: 600;
}

.checkbox-label {
  font-size: 1rem;
  color: var(--text);
  transition: all 0.3s ease;
}

/* === MATRIZ === */
.matrix-info {
  text-align: center;
  padding: 1rem;
  background: rgba(42, 106, 138, 0.05);
  border-radius: 12px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.matrix-question {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.matrix-row {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.matrix-row:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(42, 106, 138, 0.1);
}

.matrix-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: block;
}

.matrix-options {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.matrix-options label {
  position: relative;
  cursor: pointer;
}

.matrix-options input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.matrix-options label span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.3s ease;
  background: var(--bg-card);
}

.matrix-options label:hover span {
  border-color: var(--primary);
  background: rgba(42, 106, 138, 0.05);
}

.matrix-options input[type="radio"]:checked + span {
  background: var(--gradient);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(42, 106, 138, 0.3);
}

/* === STEP ACTIONS === */
.step-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 5px 20px rgba(42, 106, 138, 0.3);
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42, 106, 138, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(42, 106, 138, 0.05);
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(42, 106, 138, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-primary:hover svg,
.btn-success:hover svg {
  transform: translateX(3px);
}

.btn-secondary:hover svg {
  transform: translateX(-3px);
}

.btn span {
  position: relative;
  z-index: 1;
}

/* === FINAL MESSAGE === */
.final-message {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(42, 106, 138, 0.05),
    rgba(167, 213, 243, 0.1)
  );
  border-radius: 16px;
  margin: 2rem 0;
}

.final-icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient);
  color: #fff;
  font-size: 3rem;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(42, 106, 138, 0.3);
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.final-message h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.final-message p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
}

/* === FOOTER === */
.survey-footer {
  background: linear-gradient(135deg, #0a1929, #1e3a5f);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-content p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(167, 213, 243, 0.9);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
  }

  .header-logo img {
    height: 50px;
  }

  .back-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  .survey-hero {
    padding: 3rem 1rem 2rem;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .survey-container {
    padding: 0 1rem;
  }

  .step-card {
    padding: 2rem 1.5rem;
  }

  .step-header {
    margin-bottom: 2rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.25rem;
  }

  .step-header h2 {
    font-size: 1.5rem;
  }

  .step-header p {
    font-size: 1rem;
  }

  .question-text {
    font-size: 1rem;
  }

  .matrix-options {
    gap: 0.5rem;
  }

  .matrix-options label span {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .step-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    min-width: auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .step-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .step-header h2 {
    font-size: 1.35rem;
  }

  .input-select,
  .input-text,
  .input-textarea {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .radio-option,
  .checkbox-option {
    padding: 0.875rem 1rem;
  }

  .matrix-row {
    padding: 1rem;
  }

  .matrix-label {
    font-size: 0.95rem;
  }

  .matrix-options label span {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .final-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 2rem;
  }

  .final-message h3 {
    font-size: 1.5rem;
  }
}

/* === LOADING STATE === */
.btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ========================================
   BANK/ANCHOR - MENÚ (basado en index.html)
   Color: #2a6a8a (Azul Anchor)
   ======================================== */

:root {
  --anchor-primary: #2a6a8a;
  --anchor-accent: #a7d5f3;
  --anchor-dark: #1e4f6a;
}

/* ========================================
   HEADER / NAVBAR - Bank/Anchor Colors
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(42, 106, 138, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  padding: 1rem 2rem;
  background: rgba(42, 106, 138, 0.95);
}

.brand img {
  height: 42px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover img {
  transform: scale(1.05);
}

.desktop-nav {
  display: none;
  gap: 2.5rem;
}

.desktop-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  color: rgba(249, 250, 251, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f9fafb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #f9fafb;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle .bar {
  width: 28px;
  height: 2px;
  background: #f9fafb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 79, 106, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__list {
  list-style: none;
  text-align: center;
}

.menu-overlay__list li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay[aria-hidden="false"] .menu-overlay__list li {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay__list li:nth-child(1) {
  transition-delay: 0.1s;
}
.menu-overlay__list li:nth-child(2) {
  transition-delay: 0.2s;
}
.menu-overlay__list li:nth-child(3) {
  transition-delay: 0.3s;
}
.menu-overlay__list li:nth-child(4) {
  transition-delay: 0.4s;
}

.menu-overlay__list a {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(249, 250, 251, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay__list a:hover,
.menu-overlay__list a.active {
  color: #f9fafb;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}
