:root {
  color-scheme: light dark;
  --ink: #151410;
  --muted: #6b665d;
  --paper: #fbfaf6;
  --paper-deep: #f0ece3;
  --line: #ded8ca;
  --panel: #ffffff;
  --gold: #9b743a;
  --olive: #596453;
  --nav-bg: rgba(251, 250, 246, 0.86);
  --nav-border: rgba(21, 20, 16, 0.12);
  --nav-shadow: rgba(21, 20, 16, 0.1);
  --soft-control: rgba(255, 255, 255, 0.38);
  --soft-control-border: rgba(21, 20, 16, 0.2);
  --soft-divider: rgba(21, 20, 16, 0.14);
  --flag-bg: rgba(21, 20, 16, 0.06);
  --flag-border: rgba(21, 20, 16, 0.1);
  --whatsapp-green: #25d366;
  --sans: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Allura", "Brush Script MT", cursive;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f0e8;
    --muted: #c0b8aa;
    --paper: #11100e;
    --paper-deep: #1b1915;
    --line: #39352d;
    --panel: #1c1a16;
    --gold: #d2a85d;
    --olive: #9ead92;
    --nav-bg: rgba(17, 16, 14, 0.86);
    --nav-border: rgba(245, 240, 232, 0.12);
    --nav-shadow: rgba(0, 0, 0, 0.36);
    --soft-control: rgba(245, 240, 232, 0.06);
    --soft-control-border: rgba(245, 240, 232, 0.18);
    --soft-divider: rgba(245, 240, 232, 0.14);
    --flag-bg: rgba(245, 240, 232, 0.07);
    --flag-border: rgba(245, 240, 232, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.drop-nav {
  position: fixed;
  z-index: 10;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(960px, calc(100% - 28px));
  min-height: 62px;
  padding: 10px 12px 10px 20px;
  color: var(--ink);
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 8px;
  box-shadow: 0 18px 48px var(--nav-shadow);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, -92px);
  transition: opacity 520ms ease, transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
}

.drop-nav.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.drop-name {
  font-weight: 800;
}

.drop-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.flag-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--flag-bg);
  border: 1px solid var(--flag-border);
  border-radius: 999px;
}

.flag-option {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.flag-option:hover,
.flag-option.is-active {
  background: var(--paper-deep);
  transform: translateY(-1px);
}

.card-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(12px, 2.4vh, 20px);
  padding: clamp(22px, 5vw, 48px);
  text-align: center;
  background: var(--paper);
}

.identity {
  width: min(100%, 420px);
}

.section-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 4.2vw, 3.05rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

.signature {
  margin-top: clamp(1px, 0.45vw, 5px);
  color: var(--olive);
  font-family: var(--script);
  font-size: clamp(1.05rem, 2.5vw, 1.82rem);
  line-height: 0.82;
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(36px, 9vw, 42px);
  width: min(100%, 292px);
  gap: 6px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  min-height: clamp(34px, 8.8vw, 38px);
  overflow: hidden;
  background: var(--soft-control);
  border: 1px solid var(--soft-control-border);
  border-radius: 6px;
}

.language-option {
  min-width: 0;
  min-height: clamp(32px, 8.2vw, 36px);
  padding: 0 clamp(5px, 1.8vw, 10px);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--soft-divider);
  cursor: pointer;
  font-size: clamp(0.66rem, 2.65vw, 0.78rem);
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.language-option:last-child {
  border-right: 0;
}

.language-option:hover,
.language-option.is-active {
  color: var(--paper);
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: clamp(34px, 8.8vw, 38px);
  padding: 0 22px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
}

.button-primary:hover {
  background: var(--gold);
}

.whatsapp-button {
  min-width: 0;
  width: auto;
  color: var(--whatsapp-green);
  background: #050505;
  border: 1px solid var(--soft-control-border);
  padding: 0;
}

.whatsapp-button svg {
  width: clamp(18px, 4.6vw, 22px);
  height: clamp(18px, 4.6vw, 22px);
}

.whatsapp-button:hover {
  background: #050505;
  border-color: var(--ink);
}

.site-details {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.site-details.is-switching {
  opacity: 0;
  transform: translateY(12px);
}

.site-is-open .site-details {
  opacity: 1;
  transform: translateY(0);
}

.site-is-open .card-hero {
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.profile h2 {
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  padding-bottom: 0.04em;
  text-wrap: balance;
}

.section-pad {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 108px) 0;
  border-top: 1px solid var(--line);
}

.solutions {
  text-align: center;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 46px);
  text-align: center;
}

.section-heading h2 {
  max-width: 760px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.solution-grid article {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 280px;
  padding: clamp(22px, 2.5vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.solution-grid span {
  display: block;
  margin-bottom: clamp(34px, 5vw, 52px);
  color: var(--gold);
  font-weight: 800;
}

.solution-grid h3 {
  max-width: 310px;
  margin-bottom: 12px;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.12;
  text-wrap: balance;
}

.solution-grid p,
.profile-copy p {
  color: var(--muted);
  text-wrap: pretty;
}

.solution-grid p {
  max-width: 340px;
}

.profile {
  display: grid;
  justify-items: center;
  gap: clamp(24px, 4vw, 42px);
  text-align: center;
}

.profile-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 860px) {
  .section-heading,
  .solution-grid,
  .profile {
    grid-template-columns: 1fr;
  }

  .solution-grid article {
    min-height: auto;
  }

  .solution-grid span {
    margin-bottom: 42px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .drop-nav {
    top: 10px;
    width: min(100% - 20px, 960px);
    min-height: 56px;
    gap: 8px;
    padding: 8px;
  }

  .drop-contact {
    min-height: 40px;
    padding: 0 12px;
  }

  .drop-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .flag-switch {
    gap: 2px;
    padding: 3px;
  }

  .flag-option {
    width: 30px;
    height: 30px;
  }

  .card-hero {
    padding: 24px 12px;
  }

  .hero-actions {
    width: min(100%, 280px);
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 6px;
  }

  .section-pad,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }
}
