/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Modo Diurno */
  --bg-primary: rgba(255, 255, 255, 0.95);
  --bg-secondary: rgba(248, 250, 252, 0.9);
  --bg-tertiary: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-overlay: rgba(0, 0, 0, 0.05);
  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-tertiary: #86868b;
  --accent-blue: #007aff;
  --accent-blue-light: rgba(0, 122, 255, 0.1);
  --accent-orange: #ff9500;
  --accent-orange-light: rgba(255, 149, 0, 0.1);
  --accent-green: #34c759;
  --accent-green-light: rgba(52, 199, 89, 0.1);
  --accent-purple: #af52de;
  --accent-purple-light: rgba(175, 82, 222, 0.1);
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --shadow-heavy: rgba(0, 0, 0, 0.3);
  --blur-amount: blur(20px);
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

[data-theme="dark"] {
  /* Modo Nocturno */
  --bg-primary: rgba(28, 28, 30, 0.95);
  --bg-secondary: rgba(44, 44, 46, 0.9);
  --bg-tertiary: rgba(58, 58, 60, 0.8);
  --bg-glass: rgba(28, 28, 30, 0.7);
  --bg-overlay: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #d1d1d6;
  --text-tertiary: #8e8e93;
  --accent-blue: #0a84ff;
  --accent-blue-light: rgba(10, 132, 255, 0.15);
  --accent-orange: #ff9f0a;
  --accent-orange-light: rgba(255, 159, 10, 0.15);
  --accent-green: #30d158;
  --accent-green-light: rgba(48, 209, 88, 0.15);
  --accent-purple: #bf5af2;
  --accent-purple-light: rgba(191, 90, 242, 0.15);
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-heavy: rgba(0, 0, 0, 0.5);
  --blur-amount: blur(20px);
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
}

/* Theme Switch */
.theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  box-shadow: 0 2px 8px var(--shadow-light);
}

.theme-icon i {
  font-size: 16px !important;
}

.sun-icon {
  color: var(--accent-orange);
}

.moon-icon {
  color: #5E5CE6;
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: flex;
}

.theme-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  box-shadow: 0 4px 16px var(--shadow-light);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .theme-toggle::before {
  transform: translateX(26px);
  background: #1c1c1e;
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

/* Back Button */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--blur-amount);
  text-decoration: none;
  z-index: 1001;
  box-shadow: 0 4px 12px var(--shadow-medium);
}

.back-button:hover {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.2);
}

/* Main Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 20px;
}

/* Main Header */
.main-header {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg-primary);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-amount);
  box-shadow: 0 20px 60px var(--shadow-medium);
  margin-bottom: 30px;
}

.header-content-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.logo {
  max-width: 550px;
  width: 100%;
  height: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px var(--shadow-light));
}

.logo:hover {
  transform: scale(1.05) translateY(-2px);
}

.header-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: -0.02em;
  margin: 0;
}

/* Instructions Header */
.instructions-header {
  text-align: center;
  padding: 30px;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-amount);
  box-shadow: 0 12px 40px var(--shadow-light);
  margin-bottom: 40px;
}

.instructions-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.route-logo {
  width: 60px;
  height: 60px;
  background: #ff6b6b !important;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

[data-theme="dark"] .route-logo {
  background: #ff5722 !important;
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
}

.route-logo i {
  color: white;
  font-size: 24px;
}

.route-description {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.instructions-text h1 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Container */
.container {
  padding: 0 20px;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* Line Cards */
.line-card {
  position: relative;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-amount);
  box-shadow: 0 12px 40px var(--shadow-light);
}

.line-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px var(--shadow-heavy);
}

/* Variant Backgrounds */
.variant-principal {
  background: var(--gradient-1);
}

.variant-combinada {
  background: var(--gradient-2);
}

.variant-toledo {
  background: var(--gradient-3);
}

/* Variant Content */
.variant-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.line-card:hover .variant-content {
  background: rgba(255, 255, 255, 0.05);
}

.variant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.variant-number {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bus-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.bus-icon i {
  color: white;
  font-size: 20px;
}

.variant-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.variant-info p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.variant-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-tag.principal {
  background: rgba(255, 255, 255, 0.2);
}

.feature-tag.combinada {
  background: rgba(255, 255, 255, 0.2);
}

.feature-tag.toledo {
  background: rgba(255, 255, 255, 0.2);
}

/* Line Overlay */
.line-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.line-card:hover .line-overlay {
  opacity: 1;
}

.line-info {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-card:hover .line-info {
  transform: translateY(0);
}

.line-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.line-info p {
  font-size: 1rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.line-info i {
  font-size: 2rem;
  opacity: 0.8;
}

/* Consultation Footer */
.consultation-footer {
  margin-top: 60px;
  padding: 40px 30px;
  background: var(--bg-primary);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-amount);
  box-shadow: 0 12px 40px var(--shadow-light);
  text-align: center;
}

.consulta-text {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  line-height: 1.4;
}

.consulta-text i {
  color: var(--accent-blue);
  font-size: 1.2em;
}

/* Contact Footer */
.contact-footer {
  margin-top: 20px;
  padding: 30px;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-amount);
  box-shadow: 0 8px 30px var(--shadow-light);
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--blur-amount);
}

.contact-item:hover {
  background: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.contact-item i {
  color: var(--accent-blue);
  font-size: 18px;
  width: 20px;
  flex-shrink: 0;
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-location {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-number {
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.email-contact .email-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.email-contact .email-link:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

/* Copyright Footer */
.copyright-footer {
  margin-top: 20px;
  padding: 20px 30px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-amount);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin: 0;
}

/* To Top Button */
#toTop {
  position: fixed;
  bottom: 30px;
  right: 100px;
  width: 56px;
  height: 56px;
  background: var(--accent-blue);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--blur-amount);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
  z-index: 1000;
}

#toTop:hover {
  background: #0056b3;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 122, 255, 0.4);
}

#toTop.show {
  opacity: 1;
}

/* Phone Button */
.phone-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #28a745;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--blur-amount);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  z-index: 1001;
}

.phone-button:hover {
  background: #218838;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.phone-button.active {
  background: #dc3545;
  transform: rotate(45deg);
}

.phone-button.active:hover {
  background: #c82333;
}

/* Phone Numbers */
.phone-numbers {
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 1000;
}

.phone-numbers.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.phone-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: var(--blur-amount);
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-width: 200px;
}

.phone-item:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px) translateX(-4px);
  box-shadow: 0 8px 25px var(--shadow-medium);
  color: var(--accent-blue);
}

.phone-item svg {
  color: var(--accent-blue);
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-item:hover svg {
  transform: scale(1.1);
  color: var(--accent-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 80px 15px 15px;
  }

  .theme-switch {
    top: 15px;
    right: 15px;
    gap: 8px;
  }

  .theme-toggle {
    width: 50px;
    height: 28px;
    border-radius: 14px;
  }

  .theme-toggle::before {
    width: 20px;
    height: 20px;
    top: 3px;
    left: 3px;
  }

  [data-theme="dark"] .theme-toggle::before {
    transform: translateX(20px);
  }

  .back-button {
    top: 15px;
    left: 15px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .main-header {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .header-text h1 {
    font-size: 1.6rem;
  }

  .instructions-header {
    padding: 24px 20px;
    margin-bottom: 30px;
  }

  .logo-section {
    flex-direction: column;
    gap: 12px;
  }

  .route-logo {
    width: 50px;
    height: 50px;
  }

  .route-logo i {
    font-size: 20px;
  }

  .route-description {
    font-size: 1rem;
  }

  .instructions-text h1 {
    font-size: 1.2rem;
  }

  .image-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .line-card {
    height: 250px;
  }

  .variant-content {
    padding: 20px;
  }

  .variant-info h3 {
    font-size: 1.2rem;
  }

  .variant-info p {
    font-size: 0.9rem;
  }

  .consultation-footer {
    margin-top: 40px;
    padding: 30px 20px;
  }

  .contact-footer {
    padding: 24px 20px;
  }

  .footer-contacts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-item {
    padding: 14px 16px;
  }

  .phone-button {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .phone-numbers {
    bottom: 80px;
    right: 20px;
  }

  .phone-item {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 180px;
  }

  #toTop {
    bottom: 20px;
    right: 80px;
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
}

@media (max-width: 400px) {
  .main-container {
    padding: 70px 10px 10px;
  }

  .back-button {
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .theme-switch {
    top: 12px;
    right: 12px;
  }

  .main-header {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .logo {
    max-width: 90%;
  }

  .header-text h1 {
    font-size: 1.4rem;
  }

  .instructions-header {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .route-logo {
    width: 44px;
    height: 44px;
  }

  .route-logo i {
    font-size: 18px;
  }

  .route-description {
    font-size: 0.9rem;
  }

  .instructions-text h1 {
    font-size: 1.1rem;
  }

  .image-grid {
    gap: 16px;
  }

  .line-card {
    height: 220px;
    border-radius: 20px;
  }

  .variant-content {
    padding: 16px;
  }

  .variant-number {
    font-size: 1.6rem;
  }

  .bus-icon {
    width: 40px;
    height: 40px;
  }

  .bus-icon i {
    font-size: 16px;
  }

  .variant-info h3 {
    font-size: 1.1rem;
  }

  .variant-info p {
    font-size: 0.85rem;
  }

  .feature-tag {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .consultation-footer {
    margin-top: 30px;
    padding: 24px 16px;
    border-radius: 16px;
  }

  .consulta-text {
    font-size: 1.1rem;
    flex-direction: column;
    gap: 8px;
  }

  .contact-footer {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .contact-item {
    padding: 12px 14px;
  }

  .contact-location {
    font-size: 0.8rem;
  }

  .contact-number {
    font-size: 1rem;
  }

  .copyright-footer {
    padding: 16px 20px;
    border-radius: 12px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  .phone-button {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .phone-numbers {
    bottom: 70px;
    right: 16px;
  }

  .phone-item {
    padding: 8px 10px;
    font-size: 12px;
    min-width: 160px;
  }

  #toTop {
    bottom: 16px;
    right: 70px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .main-container {
    padding: 60px 20px 20px;
  }

  .main-header {
    padding: 20px 30px;
  }

  .header-text h1 {
    font-size: 1.4rem;
  }

  .instructions-header {
    padding: 16px 30px;
    margin-bottom: 20px;
  }

  .logo-section {
    flex-direction: row;
    gap: 16px;
  }

  .consultation-footer {
    margin-top: 30px;
    padding: 20px 30px;
  }

  .contact-footer {
    padding: 16px 30px;
  }
}

/* High-end animations for modern devices */
@media (prefers-reduced-motion: no-preference) {
  .line-card {
    animation: fadeInUp 0.6s ease-out forwards;
  }

  .line-card:nth-child(1) {
    animation-delay: 0.1s;
  }

  .line-card:nth-child(2) {
    animation-delay: 0.2s;
  }

  .line-card:nth-child(3) {
    animation-delay: 0.3s;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .variant-content {
    animation: slideInLeft 0.8s ease-out forwards;
  }

  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .feature-tag {
    animation: bounceIn 0.6s ease-out forwards;
  }

  .feature-tag:nth-child(1) {
    animation-delay: 0.4s;
  }

  .feature-tag:nth-child(2) {
    animation-delay: 0.5s;
  }

  @keyframes bounceIn {
    0% {
      opacity: 0;
      transform: scale(0.3);
    }
    50% {
      opacity: 1;
      transform: scale(1.05);
    }
    70% {
      transform: scale(0.9);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.line-card:focus,
.back-button:focus,
.theme-toggle:focus,
.phone-button:focus,
.phone-item:focus,
#toTop:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
  }

  [data-theme="dark"] {
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.6);
    --shadow-medium: rgba(0, 0, 0, 0.8);
  }

  .line-card {
    border: 2px solid var(--border-color);
  }

  .variant-content {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* Print styles */
@media print {
  .theme-switch,
  .back-button,
  .phone-button,
  .phone-numbers,
  #toTop {
    display: none !important;
  }

  .main-container {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .line-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .main-header,
  .instructions-header,
  .consultation-footer,
  .contact-footer,
  .copyright-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}