:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #111111;
  --border-subtle: color-mix(in srgb, var(--fg) 12%, transparent);
  --panel-bg: color-mix(in srgb, var(--bg) 92%, transparent);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --text: var(--fg);
  --text-muted: color-mix(in srgb, var(--fg) 68%, transparent);
}

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

html,
body {
  margin: 0;
  padding: 0;
  scrollbar-gutter: auto;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(148, 163, 184, 0.08), transparent 45%),
    radial-gradient(circle at 12% 18%, rgba(203, 213, 225, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 52%, #e5e7eb 100%);
  color: color-mix(in srgb, var(--fg) 85%, transparent);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  text-align: left;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

a:hover {
  opacity: 0.9;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  letter-spacing: -0.03em;
  color: var(--fg);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--fg);
  margin: 0 0 1.15rem;
  font-weight: 600;
}

p {
  line-height: 1.55;
}

.page-shell {
  max-width: 876px;
  min-height: calc(100vh - 75px);
  padding: 110px 1.5rem 2.5rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.landing-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  background: color-mix(in srgb, var(--bg) 25%, transparent);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  z-index: 2000;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.landing-topbar.is-hidden {
  transform: translateY(calc(-100% - 2px));
  opacity: 0.96;
}

.landing-topbar-inner {
  height: 100%;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.landing-topbar-logo {
  height: 52px;
  width: auto;
  opacity: 0.9;
}

.landing-topbar-name {
  font-size: 0.8rem;
}

.utility-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button {
  margin: 0;
  min-width: 52px;
  height: 36px;
  padding: 0 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  opacity: 0.9;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  -webkit-tap-highlight-color: transparent;
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
  opacity: 1;
  border-color: color-mix(in srgb, var(--fg) 32%, transparent);
}

.icon-button:focus-visible,
.lang-option:focus-visible,
.scroll-top-button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.icon-button .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.lang-picker {
  position: relative;
}

.lang-label {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  padding: 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  z-index: 3000;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.legal-doc {
  max-width: 876px;
}

.legal-copy:not([hidden]) {
  flex: 1 0 auto;
}

.legal-copy h1 {
  margin-top: 0.5rem;
  margin-bottom: 1.1rem;
}

.legal-copy h1 + .ls-about-people {
  margin-top: 2.35rem;
}

.ls-about-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.85rem 0 2.5rem;
}

.ls-about-person {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  align-items: start;
  gap: 0.95rem;
}

.ls-about-person-media {
  width: 125px;
  height: 125px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 125px;
  border: 1px solid var(--border-subtle);
  display: block;
  color: inherit;
}

.ls-about-person-media:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.ls-about-person-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ls-about-person-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ls-about-person-copy strong {
  font-size: 1rem;
  color: var(--fg);
}

.ls-about-person-copy span,
.ls-about-person-copy em,
.ls-about-person-meta {
  color: var(--text-muted);
}

.ls-about-person-copy em,
.ls-about-person-meta {
  margin-top: 0.2rem;
  line-height: 1.45;
}

.ls-about-person-copy em {
  font-style: italic;
}

.ls-about-person-links {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  grid-column: 2;
  width: 100%;
}

.ls-about-social-inline {
  display: inline-flex;
  margin: 0;
  vertical-align: middle;
}

.ls-about-social {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  text-decoration: none;
}

.ls-about-social svg {
  width: 1.104rem;
  height: 1.104rem;
  display: block;
}

.ls-about-social:hover {
  opacity: 0.9;
}

.page-section + .page-section {
  margin-top: 1.1rem;
}

.page-section p + p {
  margin-top: 0.8rem;
}

body.landing-contact-page .page-shell {
  max-width: 800px;
}

body.landing-contact-page .contacto {
  display: grid;
  gap: 1.1rem;
}

.card {
  padding: 1.3rem 1.4rem;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: var(--panel-bg);
  text-align: left;
}

.contact-info {
  margin-top: 0.4rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.contact-info-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--fg);
}

.contact-info-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.contact-form {
  margin-top: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: color-mix(in srgb, var(--fg) 90%, transparent);
}

.field {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
}

select.field {
  min-height: 2.75rem;
  padding-right: 2.4rem;
  line-height: 1.2;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) 50%,
    calc(100% - 0.72rem) 50%;
  background-size: 0.36rem 0.36rem, 0.36rem 0.36rem;
  background-repeat: no-repeat;
}

.field:focus {
  outline: none;
  border-color: var(--fg);
  background: var(--bg);
}

textarea.field {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.btn-pill {
  margin-top: 0;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.btn-pill-solid {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-pill:hover {
  opacity: 0.92;
}

.btn-pill:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.form-status {
  margin-top: 0.75rem;
  min-height: 1.6em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--fg) 85%, transparent);
}

.form-status[hidden] {
  display: flex !important;
  visibility: hidden;
}

.form-status[data-state="success"] {
  color: #16a34a;
}

.form-status[data-state="error"] {
  color: #dc2626;
}

#page-nav-mount {
  margin-top: auto;
}

.scroll-top-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
}

.scroll-top-button {
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top-button[hidden] {
  display: none !important;
}

.scroll-top-button:hover {
  opacity: 0.9;
}

.legal-footer {
  margin-top: 4.5rem;
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.7;
}

.footer-nav-links {
  margin-top: 0.15rem;
  margin-bottom: 1.35rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.footer-nav-links a {
  color: var(--fg);
  text-decoration: none;
  opacity: 0.82;
}

.footer-nav-links a:hover,
.footer-nav-links a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.footer-link {
  margin-top: 0.1rem;
  text-align: center;
  font-size: 0.75rem;
}

.footer-link a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .ls-about-people {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ls-about-person {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .ls-about-person-copy {
    width: 100%;
  }

  .ls-about-person-links {
    margin-top: 0.55rem;
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding: 92px 1.25rem 2.5rem;
  }

  .landing-topbar-inner {
    padding: 0 0.75rem;
  }

  .landing-topbar-name {
    display: none;
  }

  .icon-button {
    width: 42px;
    height: 34px;
  }
}
