
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #1e1e1e;
  --color-secondary: #656f77;
  --color-accent: #656f77;
  --color-accent-hover: #4a5259;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-border: #e5e5e5;
  --color-card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-lg: 20px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.hero-guia {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatSubtle 8s ease-in-out infinite;
  opacity: 0;
  box-shadow: var(--shadow-sm);
}

.floating-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
}

.icon-1 { top: 15%; left: 8%; animation-delay: 0s; }
.icon-2 { top: 20%; right: 10%; animation-delay: 2s; }
.icon-3 { bottom: 25%; left: 10%; animation-delay: 4s; }
.icon-4 { bottom: 20%; right: 8%; animation-delay: 6s; }

@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-12px);
    opacity: 0.7;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
  padding: 40px 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-gradient {
  color: rgba(147, 161, 173, 0.95);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 32px;
  font-weight: 400;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.back-home:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(147, 161, 173, 0.2);
}

.back-home svg {
  width: 18px;
  height: 18px;
}

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

.role-selector {
  padding: 80px 0;
  background: var(--color-bg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 48px;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.role-card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  cursor: pointer;
  transition: var(--transition);
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(147, 161, 173, 0.75);
}

.role-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.role-card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-bg-alt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.role-card:hover .role-card-icon {
  background: rgba(147, 161, 173, 0.85);
}

.role-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  transition: color 0.3s;
}

.role-card:hover .role-card-icon svg {
  color: white;
}

.role-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.role-card > p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.role-features {
  list-style: none;
  margin-bottom: 16px;
}

.role-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.role-features svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.role-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  margin-left: auto;
  transition: var(--transition);
}

.role-card:hover .role-arrow {
  background: var(--color-accent);
  transform: translateX(4px);
}

.role-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
  transition: color 0.3s;
}

.role-card:hover .role-arrow svg {
  color: white;
}

.guide-section {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.guide-header {
  text-align: center;
  margin-bottom: 60px;
}

.guide-icon {
  width: 72px;
  height: 72px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.guide-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
}

.guide-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.guide-header p {
  font-size: 1rem;
  color: var(--color-secondary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-left: 90px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.timeline-item:hover .timeline-marker {
  border-color: rgba(147, 161, 173, 0.75);
  box-shadow: var(--shadow-md);
}

.marker-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.timeline-content {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.timeline-content h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.timeline-content h3 svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.timeline-content > p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.step-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.detail-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  transition: var(--transition);
}

.detail-card:hover {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.detail-card svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.detail-card p {
  font-size: 0.85rem;
  color: var(--color-secondary);
  line-height: 1.4;
}

.step-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #fef9e7;
  border-left: 3px solid #f39c12;
  border-radius: 0 12px 12px 0;
  margin-top: 16px;
}

.step-tip svg {
  width: 20px;
  height: 20px;
  color: #f39c12;
  flex-shrink: 0;
}

.step-tip p {
  font-size: 0.9rem;
  color: var(--color-primary);
  line-height: 1.5;
}

.step-tip strong {
  color: #d68910;
  font-weight: 600;
}

.guide-cta {
  text-align: center;
  max-width: 600px;
  margin: 60px auto 0;
  padding: 40px 32px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.guide-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.guide-cta p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: white;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.cta-button:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-button svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .hero-guia {
    min-height: auto;
    padding: 80px 20px 60px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .role-selector {
    padding: 60px 0;
  }

  .role-cards {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .role-card {
    padding: 28px;
  }

  .section-title {
    font-size: 1.75rem;
    padding: 0 20px;
  }

  .section-subtitle {
    padding: 0 20px;
    margin-bottom: 36px;
  }

  .guide-section {
    padding: 60px 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 65px;
    margin-bottom: 36px;
  }

  .timeline-marker {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .marker-number {
    font-size: 1.25rem;
  }

  .step-details {
    grid-template-columns: 1fr;
  }

  .timeline-content {
    padding: 22px;
  }

  .floating-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-guia {
    padding: 70px 16px 50px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .back-home {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .role-selector,
  .guide-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .role-card {
    padding: 24px;
  }

  .role-card h3 {
    font-size: 1.3rem;
  }

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

  .timeline {
    padding: 16px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 55px;
    margin-bottom: 30px;
  }

  .timeline-marker {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .marker-number {
    font-size: 1.1rem;
  }

  .timeline-content {
    padding: 18px;
    border-radius: 14px;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .detail-card {
    padding: 14px;
  }

  .guide-cta {
    margin: 40px 16px 0;
    padding: 30px 20px;
  }

  .guide-cta h3 {
    font-size: 1.3rem;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  .role-card,
  .back-home,
  .cta-button {
    min-height: 44px;
  }

  .role-card:hover,
  .timeline-item:hover .timeline-content,
  .detail-card:hover {
    transform: none;
    box-shadow: none;
  }

  .role-card:active {
    transform: scale(0.98);
  }
}
