:root {
  color-scheme: light;
  --ink: #18202f;
  --muted: #657085;
  --line: #dbe2ec;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --dark: #111827;
  --accent: #f5b301;
  --accent-dark: #c88900;
  --blue: #185c9f;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(20px, calc((100vw - 1160px) / 2));
  background: var(--dark);
  color: #ffffff;
  font-size: 0.88rem;
}

.navbar {
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  place-items: center;
  gap: 4px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.selector-hero {
  min-height: calc(100vh - 118px);
  display: grid;
  align-content: center;
  gap: 32px;
  padding: 58px 0;
}

.selector-hero .section-heading {
  max-width: 920px;
  margin-bottom: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.choice-card {
  position: relative;
  min-height: 240px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background-color: #223248;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.22), rgba(16, 24, 40, 0.72));
}

.choice-card > * {
  position: relative;
  z-index: 1;
}

.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  outline: none;
}

.choice-number {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.choice-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  overflow-wrap: anywhere;
}

.choice-arts {
  background-image:
    linear-gradient(135deg, rgba(24, 92, 159, 0.78), rgba(17, 24, 39, 0.86));
}

.choice-lavidaesagua {
  background-image:
    linear-gradient(135deg, rgba(16, 24, 40, 0.25), rgba(16, 24, 40, 0.76)),
    url("../images/lavidaesagua.jpg");
}

.choice-clinica {
  background-image:
    linear-gradient(135deg, rgba(16, 24, 40, 0.28), rgba(16, 24, 40, 0.78)),
    url("../images/logo-clinica.jpg");
}

.project-hero {
  min-height: calc(72vh - 70px);
  margin-top: 24px;
  margin-bottom: 18px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-overlay {
  min-height: inherit;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: 38px;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.22), rgba(16, 24, 40, 0.82));
}

.project-overlay .eyebrow,
.project-overlay h1,
.project-overlay p {
  color: #ffffff;
}

.project-overlay h1 {
  font-size: clamp(2.1rem, 5.2vw, 4.7rem);
  line-height: 0.98;
  max-width: 980px;
}

.project-arts {
  background-image:
    linear-gradient(135deg, rgba(24, 92, 159, 0.7), rgba(17, 24, 39, 0.85));
}

.project-lavida {
  background-image:
    linear-gradient(135deg, rgba(16, 24, 40, 0.2), rgba(16, 24, 40, 0.8)),
    url("../images/lavidaesagua.jpg");
}

.project-clinica {
  background-image:
    linear-gradient(135deg, rgba(16, 24, 40, 0.28), rgba(16, 24, 40, 0.82)),
    url("../images/logo-clinica.jpg");
}

.hero {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 32px;
  padding: 58px 0;
}

.hero-content {
  display: grid;
  gap: 20px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.92;
  color: var(--dark);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.06;
}

h3 {
  font-size: 1.22rem;
}

.hero-text {
  max-width: 660px;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  border: 2px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: var(--dark);
}

.button.primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
}

.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-panel {
  min-height: 360px;
  border-radius: 8px;
  padding: 28px;
  display: grid;
  align-content: end;
  gap: 18px;
  background:
    linear-gradient(140deg, rgba(24, 92, 159, 0.86), rgba(17, 24, 39, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 14px);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 2.3rem;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.84);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 34px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.category-strip span {
  padding: 22px;
  background: var(--paper);
  font-weight: 800;
  text-align: center;
}

.section {
  padding: 62px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.07);
}

.card-number {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f3ff;
  color: var(--blue);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 28px;
  align-items: start;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list .card {
  min-height: 0;
}

.cta {
  margin: 42px 0 70px;
  padding: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.cta h2,
.cta p {
  color: #ffffff;
}

.cta .eyebrow {
  color: var(--accent);
}

.footer {
  padding: 28px 16px;
  background: var(--dark);
  text-align: center;
}

.footer p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 820px) {
  .topbar {
    display: none;
  }

  .navbar {
    min-height: 68px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero,
  .selector-hero,
  .split {
    grid-template-columns: 1fr;
  }

  .selector-hero {
    min-height: auto;
    padding: 42px 0;
  }

  .project-hero {
    min-height: 56vh;
  }

  .project-overlay {
    padding: 24px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0;
  }

  .hero-panel {
    min-height: 280px;
  }

  .category-strip,
  .choice-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    align-items: stretch;
    flex-direction: column;
  }
}
