:root {
  --bg: #0b1021;
  --card: #0f172a;
  --muted: #9fb3c8;
  --text: #e8efff;
  --accent: #22c55e;
  --accent-2: #60a5fa;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.08), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(34, 197, 94, 0.07), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.page {
  position: relative;
  z-index: 1;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin: -16px -20px 24px;
  background: rgba(11, 16, 33, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(2) {
  margin: 6px 0;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-toggle::after {
  content: "MENU";
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #60a5fa);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-link {
  display: inline-flex;
  text-decoration: none;
}

.logo--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  gap: 20px;
}

.nav[data-nav] {
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(96, 165, 250, 0.12));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero__content h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 8px 0 12px;
}

.hero__content .lede {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
}

.metric {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.portrait {
  width: min(320px, 80%);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(145deg, #121c36, #0c1327);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.15), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.14), transparent 40%);
}

.portrait__initials {
  position: relative;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.badge {
  position: absolute;
  top: 12%;
  right: 8%;
  background: rgba(15, 23, 42, 0.9);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.badge--secondary {
  top: auto;
  bottom: 10%;
  left: 6%;
  right: auto;
}

.photo-legend {
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.slider {
  overflow: hidden;
}

.slider__viewport {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(11, 16, 33, 0.75);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.slider__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: min(650px, 75vw);
  background-size: cover;
  background-position: center;
  position: relative;
  opacity: 0;
  transform: scale(0.95) translateZ(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.85) blur(2px);
  will-change: opacity, transform, filter;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1) translateZ(0);
  filter: brightness(1) blur(0);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(15, 23, 42, 0.3), transparent 55%),
    linear-gradient(to top, rgba(15, 23, 42, 0.35), transparent 40%);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.slide.is-active::after {
  opacity: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(96, 165, 250, 0.05));
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.slide.is-active::before {
  opacity: 1;
}

.slider__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.slider__control:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.slider__control:active {
  transform: translateY(-50%) scale(0.95);
}

.slider__control.prev {
  left: 12px;
}

.slider__control.next {
  right: 12px;
}

.slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider__dots button:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.5);
}

.slider__dots button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}
.panel__header h2 {
  margin: 4px 0 8px;
}

.panel__header .muted {
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.highlight {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11, 16, 33, 0.9);
}

.list {
  padding-left: 18px;
  color: var(--text);
}

.list li + li {
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #22c55e, #16a34a);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

.btn.secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.btn.ghost {
  border-color: var(--border);
  padding: 10px 14px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-select {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-weight: 600;
}

.lang-switch .flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.timeline {
  position: relative;
  padding-left: 18px;
  display: grid;
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.6), rgba(34, 197, 94, 0.6));
}

.timeline-item {
  position: relative;
  padding: 14px 16px 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 16, 33, 0.85);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  background: #0b1021;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  color: #cfe2ff;
  font-weight: 600;
  font-size: 0.9rem;
}

.cta {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
}

.cta__card {
  border: 1px solid var(--border);
  background: rgba(11, 16, 33, 0.9);
  border-radius: 14px;
  padding: 18px;
}

.cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.footer {
  margin-top: 32px;
  padding: 24px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border);
  background: rgba(11, 16, 33, 0.92);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  position: relative;
  z-index: 1;
}

.footer__brand p {
  margin-top: 8px;
  color: var(--muted);
}

.footer__links,
.footer__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  color: var(--text);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__cta p {
  margin: 0;
  color: var(--muted);
}

.footer .btn {
  width: fit-content;
}

.whatsapp {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #25d366;
  color: #0b1021;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
}

.whatsapp .wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero,
  .cta {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
  }
  .header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo lang menu"
      "nav  nav  nav";
    align-items: center;
    gap: 8px;
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
    grid-area: menu;
    justify-self: end;
  }
  .nav[data-nav] {
    width: 100%;
    grid-area: nav;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(11, 16, 33, 0.95);
    padding: 0;
  }
  .nav[data-nav].is-open {
    max-height: 320px;
    opacity: 1;
    padding: 10px;
    border-color: var(--border);
  }
  .nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .lang-switch {
    grid-area: lang;
    justify-self: center;
  }
  .logo-link {
    grid-area: logo;
  }
  .hero__visual .portrait__initials,
  .hero__visual .badge {
    display: none;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 20px 16px 100px;
  }
  .hero,
  .panel {
    padding: 20px;
  }
  .header {
    position: static;
    margin: 0 0 18px;
  }
  .whatsapp {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    z-index: 100;
  }
  .whatsapp .wa-label {
    font-size: 0.95rem;
  }
  .slide {
    height: min(500px, 85vh);
  }
  #contact {
    margin-bottom: 20px;
  }
  .cta__actions {
    margin-bottom: 12px;
  }
  .footer {
    padding-bottom: 120px;
  }
  .footer__cta {
    margin-top: 8px;
  }
  .footer .btn {
    width: 100%;
    justify-content: center;
  }
}

