/* ============================================================
   WayGo — Consejos WayGo Section
   Tips para conductores y pasajeros · Glassmorphism · Premium
   ============================================================ */

/* ---------- Section Container ---------- */
.tips {
  background: var(--bg-surface);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Subtle teal glow orb for depth */
.tips::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.06);
  filter: blur(160px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Gold accent orb */
.tips::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.04);
  filter: blur(140px);
  top: 20%;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.tips .container {
  position: relative;
  z-index: 1;
}

/* ---------- Section Header ---------- */
.tips .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.tips .section-header .section-label {
  margin-bottom: 20px;
}

.tips .section-header .heading-1 {
  margin-bottom: 16px;
}

.tips .section-header .body-large {
  max-width: 620px;
  margin-inline: auto;
}

/* ---------- Tips Grid ---------- */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Tip Card Base ---------- */
.tip-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px 36px;
  position: relative;
  transition:
    transform var(--duration-slow) var(--ease-out-expo),
    border-color var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) var(--ease-out-expo);
  overflow: hidden;
}

/* Top accent bar on hover */
.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  transition: width var(--duration-base) var(--ease-out-expo);
}

.tip-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.tip-card:hover::before {
  width: 60%;
}

/* Surface shine on hover */
.tip-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out-expo);
  pointer-events: none;
}

.tip-card:hover::after {
  opacity: 1;
}

/* ---------- Driver Card Accent ---------- */
.tip-card--driver::before {
  background: var(--gradient-brand);
}

.tip-card--driver:hover {
  box-shadow:
    0 8px 40px rgba(13, 148, 136, 0.2),
    0 0 0 1px rgba(13, 148, 136, 0.15);
}

/* ---------- Passenger Card Accent ---------- */
.tip-card--passenger::before {
  background: var(--gradient-gold);
}

.tip-card--passenger:hover {
  box-shadow:
    0 8px 40px rgba(245, 158, 11, 0.2),
    0 0 0 1px rgba(245, 158, 11, 0.15);
}

/* ---------- Card Header ---------- */
.tip-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.tip-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.tip-card-icon svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
}

/* Driver icon */
.tip-card--driver .tip-card-icon {
  background: rgba(13, 148, 136, 0.12);
  color: var(--brand-teal-light);
  box-shadow: 0 0 24px rgba(13, 148, 136, 0.15);
}

/* Passenger icon */
.tip-card--passenger .tip-card-icon {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold-light);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.15);
}

.tip-card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
}

.tip-card-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}

/* ---------- Tips List ---------- */
.tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  transition:
    background var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo);
  cursor: default;
}

.tip-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

/* Checkmark icon */
.tip-item-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

.tip-card--driver .tip-item-check {
  background: rgba(13, 148, 136, 0.15);
  color: var(--brand-teal-light);
}

.tip-card--passenger .tip-item-check {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
}

.tip-item-check svg {
  width: 12px;
  height: 12px;
}

.tip-item-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.tip-item:hover .tip-item-text {
  color: var(--text-primary);
}

/* ---------- Stagger Animation for Tip Items ---------- */
.tip-item {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.5s var(--ease-out-expo),
    transform 0.5s var(--ease-out-expo),
    background var(--duration-fast) var(--ease-out-expo);
}

.tip-card--passenger .tip-item {
  transform: translateX(12px);
}

.tip-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay loop — 10 items max, 70ms each */
.tip-item:nth-child(1)  { transition-delay: 0ms, 0ms, 0ms; }
.tip-item:nth-child(2)  { transition-delay: 70ms, 70ms, 0ms; }
.tip-item:nth-child(3)  { transition-delay: 140ms, 140ms, 0ms; }
.tip-item:nth-child(4)  { transition-delay: 210ms, 210ms, 0ms; }
.tip-item:nth-child(5)  { transition-delay: 280ms, 280ms, 0ms; }
.tip-item:nth-child(6)  { transition-delay: 350ms, 350ms, 0ms; }
.tip-item:nth-child(7)  { transition-delay: 420ms, 420ms, 0ms; }
.tip-item:nth-child(8)  { transition-delay: 490ms, 490ms, 0ms; }
.tip-item:nth-child(9)  { transition-delay: 560ms, 560ms, 0ms; }
.tip-item:nth-child(10) { transition-delay: 630ms, 630ms, 0ms; }

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1024px) {
  .tips-grid {
    gap: 24px;
  }

  .tip-card {
    padding: 32px 28px 28px;
  }

  .tip-card-title {
    font-size: 1.25rem;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 768px) {
  .tips-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .tips .section-header {
    margin-bottom: 48px;
  }

  .tip-card {
    padding: 28px 22px 24px;
  }

  .tip-card-title {
    font-size: 1.125rem;
  }

  .tip-card-subtitle {
    font-size: 0.875rem;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .tip-item {
    padding: 9px 10px;
    gap: 10px;
  }

  .tip-item-text {
    font-size: 0.875rem;
  }

  .tip-card-icon {
    width: 48px;
    height: 48px;
  }

  .tip-card-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ---------- Responsive: Small Mobile ---------- */
@media (max-width: 480px) {
  .tips .section-header {
    margin-bottom: 36px;
  }

  .tip-card {
    padding: 24px 18px 20px;
    border-radius: var(--radius-lg);
  }

  .tip-card-title {
    font-size: 1.0625rem;
  }

  .tip-card-header {
    gap: 12px;
  }

  .tip-card-subtitle {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
}
