:root {
  --bg: #0f172a;
  --bg-alt: #111827;
  --surface: #1f2937;
  --card: #111827;
  --text: #f9fafb;
  --text-muted: #cbd5f5;
  --accent: #38bdf8;
  --accent-dark: #0284c7;
  --pill-bg: rgba(56, 189, 248, 0.18);
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 16px 50px rgba(15, 23, 42, 0.35);
  --max-width: 1080px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  background: linear-gradient(160deg, var(--bg), var(--bg-alt));
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  position: relative;
  padding: 2.5rem 0 4rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.hero-kicker {
  display: inline-block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-content figure {
  justify-self: center;
}

.hero-content img {
  width: min(240px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.5);
  outline-offset: 2px;
}

.btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.6rem;
}

.btn .icon svg {
  display: block;
}

.btn.primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 10px 40px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.social {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.4);
}

.btn.social:hover {
  background: rgba(56, 189, 248, 0.22);
  color: var(--text);
}

.btn.linkedin {
  border-color: rgba(10, 102, 194, 0.6);
  color: #0a66c2;
}

.btn.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #f8fafc;
}

.btn.whatsapp {
  border-color: rgba(52, 211, 153, 0.5);
  color: #34d399;
}

.btn.whatsapp:hover {
  background: #059669;
  border-color: #059669;
  color: #ecfdf5;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: rgba(15, 23, 42, 0.36);
}

.ai-focus {
  position: relative;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 55%),
    rgba(15, 23, 42, 0.6);
}

.ai-highlight {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 2.75rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.82));
  box-shadow: 0 40px 80px rgba(8, 16, 31, 0.45);
}

.ai-highlight::before {
  content: "";
  position: absolute;
  inset: -120px;
  background: conic-gradient(
    from 30deg,
    rgba(56, 189, 248, 0.3),
    rgba(8, 47, 73, 0.05),
    rgba(56, 189, 248, 0.45),
    rgba(8, 47, 73, 0.1)
  );
  filter: blur(80px);
  opacity: 0.7;
  animation: aiGlow 18s linear infinite;
}

.ai-highlight > * {
  position: relative;
  z-index: 1;
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
}

.ai-highlight h2 {
  flex: 1;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.ai-highlight p {
  max-width: 720px;
  margin-bottom: 2rem;
}

.ai-rotator {
  position: relative;
  min-height: 3.8rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.rotator-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeCycle 15s infinite;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.rotator-item:nth-child(2) {
  animation-delay: 5s;
}

.rotator-item:nth-child(3) {
  animation-delay: 10s;
}

.ai-rotator::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, transparent 35%, transparent 65%, rgba(15, 23, 42, 0.95) 100%);
  pointer-events: none;
}

@keyframes fadeCycle {
  0%,
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  25% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .ai-highlight::before {
    animation: none;
  }
  .rotator-item {
    position: static;
    opacity: 1;
    transform: none;
    animation: none;
  }
  .ai-rotator {
    min-height: auto;
    flex-direction: column;
    gap: 0.75rem;
  }
  .ai-rotator::after {
    display: none;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  border-color: rgba(56, 189, 248, 0.35);
}

.card ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-date {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pill-list li {
  background: var(--pill-bg);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.cards-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.text-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent-dark);
}

.contact {
  background: rgba(15, 23, 42, 0.5);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

label {
  display: grid;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1rem;
}

input,
textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  outline: none;
}

.contact-info ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--accent-dark);
}

.small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer {
  padding: 2rem 0;
  text-align: center;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--border);
}

.footer p {
  color: rgba(148, 163, 184, 0.6);
}

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

@media (max-width: 820px) {
  .top-nav {
    position: relative;
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 2.8rem;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.92);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform-origin: top right;
    transform: scale(0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ai-highlight {
    padding: 2.1rem;
  }

  .ai-header {
    gap: 0.75rem;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 1.5rem;
  }

  .hero-content {
    margin-top: 2.2rem;
    gap: 2rem;
  }

  .hero-content img {
    width: 180px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .ai-highlight {
    padding: 1.75rem;
  }

  .ai-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-rotator {
    min-height: 5rem;
  }
}
