:root {
  --bg: #0b0d0d;
  --surface: #111414;
  --surface-2: #171b1b;
  --text: #f5f7f7;
  --muted: #b7c0c0;
  --primary: #0ec2b0;
  --primary-strong: #67f0e6;
  --outline: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 14px;
  --space: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(14, 194, 176, 0.10), transparent 36%),
    linear-gradient(180deg, #111313 0%, var(--bg) 100%);
  font: 400 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 28px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
  transition: box-shadow 160ms ease, padding 160ms ease, background 160ms ease;
}

.topbar--scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  background: rgba(11, 13, 13, 0.98);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: auto;
  height: 56px;
  display: block;
}

.brand span {
  white-space: nowrap;
  color: var(--primary);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.nav a[aria-current="page"] {
  background: rgba(0, 106, 103, 0.12);
  color: var(--primary-strong);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.lang-switch a {
  color: inherit;
  font-weight: 500;
}

.lang-switch a.is-active {
  color: var(--primary-strong);
  font-weight: 700;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-media {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.hero-copy {
  max-width: 720px;
  padding: 20px;
  border-radius: 18px;
}

.hero-copy h1,
.hero-copy p {
  color: #f4f7f7;
}

.stack {
  display: grid;
  gap: 14px;
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.contact-grid .card {
  gap: 12px;
  align-content: start;
  align-self: start;
}

.contact-grid .button {
  min-height: 44px;
  padding: 0 18px;
  line-height: 1;
  width: auto;
  align-self: flex-start;
}

.contact-grid p {
  line-height: 1.45;
}

.contact-grid address {
  font-style: normal;
}

.contact-grid a[href^="https://wa.me/"],
.contact-grid a[href^="tel:"],
.contact-grid a[href^="https://www.google.com/maps/"] {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-grid a.button[href^="https://www.google.com/maps/"] {
  text-decoration: none;
}

.card,
.placeholder {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 20px;
}

.section#servicios .card,
.section#actividades .card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-figure {
  margin: -20px -20px 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--outline);
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.service-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card h3 {
  min-height: 2.5em;
}

.hero-media.card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

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

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--primary);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--primary);
}

p,
.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.button--soft {
  background: var(--primary);
  color: #fff;
}

.button--submit {
  margin-block: 4px;
}

.form {
  max-width: 640px;
  display: grid;
  gap: 9px;
}

.notice {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  position: relative;
  padding-right: 48px;
}

.notice strong {
  color: var(--text);
}

.notice__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: #000;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.notice--success {
  background: linear-gradient(180deg, rgba(214, 255, 252, 0.96), rgba(183, 251, 245, 0.92));
  border-color: rgba(103, 240, 230, 0.36);
  color: #000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.notice--success strong {
  color: #000;
}

label {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 8px 10px;
  background: #000000;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus,
.button:focus,
.nav a:focus {
  outline: 2px solid rgba(0, 106, 103, 0.35);
  outline-offset: 2px;
}

.footer {
  margin-top: 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--outline);
  background: #0f1111;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-left: auto;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  display: grid;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(0, 106, 103, 0.10), transparent 34%),
    var(--surface);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.menu-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.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: 900px) {
  .grid,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: sticky;
    top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section#inici {
    padding: 0 0 24px;
    margin-top: -1px;
  }

  .section#inici .container {
    width: 100vw;
    margin: 0;
    margin-left: calc(50% - 50vw);
    padding: 0;
  }

  .section#inici .hero-media {
    margin-top: 0;
  }

  .row {
    min-height: 72px;
    padding: 8px 0 10px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
    margin-right: 0;
    order: 3;
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    width: 100vw;
    height: 100vh;
    padding: 84px 20px 24px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: rgba(11, 13, 13, 0.98);
    backdrop-filter: blur(12px);
    overflow-y: auto;
  }

  .lang-switch {
    width: auto;
    margin-left: auto;
    margin-top: 0;
    padding-bottom: 0;
    justify-content: flex-end;
    flex: 0 1 auto;
    overflow: visible;
    white-space: nowrap;
    order: 2;
  }

  .brand {
    order: 1;
    min-width: 0;
  }

  .brand img {
    height: 48px;
  }

  .nav.nav--open {
    display: flex;
  }

  .nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    border: 1px solid #111111;
    background: var(--primary);
    color: #ffffff;
  }

  .menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.nav-open {
    overflow: hidden;
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .cta .actions {
    width: 100%;
  }

  .cta .button {
    width: 100%;
  }

  .hero-media,
  .hero-media img {
    min-height: 260px;
  }

  .hero {
    gap: 18px;
  }

  .section#inici .hero {
    gap: 0;
  }

  .section#inici .hero-media {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .hero-overlay {
    padding: 16px;
    align-items: end;
    justify-items: stretch;
  }

  .hero-copy {
    padding: 12px;
    gap: 10px;
    max-width: 720px;
    width: auto;
  }

  .hero-copy h1 {
    font-size: clamp(1.35rem, 5.8vw, 1.9rem);
    line-height: 1.05;
    max-width: none;
    width: auto;
    text-wrap: balance;
  }
}
