:root {
  --ds-primary: #C6AE6D;
  --ds-primary-dark: #A8914A;
  --ds-primary-light: #E8D9B0;
  --ds-neutral-dark: #1C1C1C;
  --ds-neutral-medium: #4A4A4A;
  --ds-neutral-light: #F7F4EF;
  --ds-accent: #2C4A52;
  --ds-accent-dark: #223840;
  --ds-error: #B85C38;
  --ds-surface: #FFFFFF;
  --ds-border: rgba(28, 28, 28, 0.12);
  --ds-shadow: 0 18px 45px rgba(28, 28, 28, 0.08);
  --ds-shadow-strong: 0 20px 60px rgba(15, 20, 22, 0.2);
  --ds-radius: 1.25rem;
  --bs-primary: var(--ds-primary);
  --bs-primary-rgb: 198, 174, 109;
  --bs-secondary: var(--ds-accent);
  --bs-secondary-rgb: 44, 74, 82;
  --bs-dark: var(--ds-neutral-dark);
  --bs-dark-rgb: 28, 28, 28;
  --bs-body-bg: var(--ds-neutral-light);
  --bs-body-color: var(--ds-neutral-dark);
  --bs-border-color: var(--ds-border);
  --bs-link-color: var(--ds-accent);
  --bs-link-hover-color: var(--ds-accent-dark);
  --bs-font-sans-serif: 'DM Sans', sans-serif;
  --bs-body-font-family: 'DM Sans', sans-serif;
  --bs-body-line-height: 1.7;
  --bs-heading-color: var(--ds-neutral-dark);
  --navbar-h: 92px;
}

/* SECCIÓN: base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ds-neutral-dark);
  background:
    radial-gradient(circle at top left, rgba(198, 174, 109, 0.12), transparent 35%),
    linear-gradient(180deg, #fbfaf7 0%, var(--ds-neutral-light) 100%);
  padding-top: var(--navbar-h);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section__title,
.hero__title,
.brand-text,
.brand-eyebrow,
.cta-band__title {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a,
button,
input,
select,
textarea {
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--ds-primary);
  outline-offset: 2px;
  box-shadow: none;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: var(--ds-neutral-light);
  color: var(--ds-neutral-dark);
  box-shadow: var(--ds-shadow);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section {
  padding: 5.5rem 0;
}

.section__eyebrow,
.hero__panel-label,
.cta-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section__eyebrow::before,
.hero__panel-label::before,
.cta-band__eyebrow::before {
  content: '';
  width: 2.75rem;
  height: 1px;
  background: currentColor;
}

.section__title {
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.section__subtitle {
  max-width: 52rem;
  margin: 0 auto;
  color: var(--ds-neutral-medium);
  font-size: 1.05rem;
}

.section__subtitle--left {
  margin-left: 0;
}

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* SECCIÓN: botones */
.btn {
  --bs-btn-border-radius: 999px;
  --bs-btn-font-weight: 700;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-padding-x: 1.5rem;
}

.btn-primary {
  --bs-btn-color: var(--ds-neutral-dark);
  --bs-btn-bg: var(--ds-primary);
  --bs-btn-border-color: var(--ds-primary);
  --bs-btn-hover-color: var(--ds-neutral-dark);
  --bs-btn-hover-bg: var(--ds-primary-dark);
  --bs-btn-hover-border-color: var(--ds-primary-dark);
  --bs-btn-active-color: var(--ds-neutral-dark);
  --bs-btn-active-bg: var(--ds-primary-dark);
  --bs-btn-active-border-color: var(--ds-primary-dark);
}

.btn-outline-light {
  --bs-btn-color: #fdfbf7;
  --bs-btn-border-color: rgba(255, 255, 255, 0.58);
  --bs-btn-hover-color: var(--ds-neutral-dark);
  --bs-btn-hover-bg: #fdfbf7;
  --bs-btn-hover-border-color: #fdfbf7;
}

.btn-light {
  --bs-btn-color: var(--ds-accent);
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #ffffff;
  --bs-btn-hover-color: var(--ds-accent-dark);
  --bs-btn-hover-bg: #f5efe2;
  --bs-btn-hover-border-color: #f5efe2;
}

/* SECCIÓN: navbar */
.site-header {
  position: relative;
  z-index: 1000;
}

.navbar--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  min-height: var(--navbar-h);
  border-bottom: 2px solid var(--ds-primary);
  background: rgba(28, 28, 28, 0.88);
  backdrop-filter: blur(14px);
}

.navbar--fixed.scrolled,
.navbar--solid {
  background: rgba(28, 28, 28, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  gap: 0.9rem;
  min-width: 0;
}

.logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.95rem;
  height: 2.95rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ds-primary) 0%, #e4d3a3 100%);
  color: var(--ds-neutral-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-lockup {
  display: grid;
  line-height: 1;
}

.brand-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.78);
}

.brand-text {
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  color: #ffffff;
}

.translate-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.translate-switcher__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.2rem;
  padding: 0.25rem 0.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
}

.translate-switcher__flag {
  display: block;
  width: 1.45rem;
  height: auto;
  border-radius: 0.22rem;
  box-shadow: 0 0 0 1px rgba(28, 28, 28, 0.08);
}

.translate-switcher__btn:hover,
.translate-switcher__btn:focus-visible,
.translate-switcher__btn.active {
  background: var(--ds-primary);
  color: var(--ds-neutral-dark);
}

.translate-switcher__btn.active .translate-switcher__flag,
.translate-switcher__btn:hover .translate-switcher__flag,
.translate-switcher__btn:focus-visible .translate-switcher__flag {
  box-shadow: 0 0 0 1px rgba(28, 28, 28, 0.16);
}

#siteNavbar .nav-link {
  position: relative;
  padding: 0.6rem 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

#siteNavbar .nav-link:hover,
#siteNavbar .nav-link:focus,
#siteNavbar .nav-link.active {
  color: #ffffff;
}

#siteNavbar .nav-link.active::after,
#siteNavbar .nav-link:hover::after,
#siteNavbar .nav-link:focus::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--ds-primary);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.28);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(198, 174, 109, 0.35);
}

/* SECCIÓN: hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(4.5rem, 7vw, 7rem);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(18, 18, 18, 0.86) 0%, rgba(28, 42, 46, 0.8) 58%, rgba(44, 74, 82, 0.72) 100%),
    linear-gradient(90deg, rgba(28, 28, 28, 0.55) 0%, rgba(28, 28, 28, 0.2) 45%, rgba(28, 28, 28, 0.58) 100%),
    url('../img/hero-legal-bg.webp');
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover;
}

.hero__texture,
.hero::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
}

.hero__texture {
  opacity: 0.17;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.17) 1px, transparent 0),
    linear-gradient(125deg, transparent 20%, rgba(198, 174, 109, 0.18) 20.5%, transparent 21%);
  background-size: 16px 16px, cover;
}

.hero::after {
  top: auto;
  bottom: 12%;
  left: auto;
  right: 7%;
  width: 26rem;
  height: 1px;
  transform: rotate(-24deg);
  background: linear-gradient(90deg, transparent 0%, rgba(198, 174, 109, 0.85) 45%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(232, 217, 176, 0.28);
  border-radius: 999px;
  background: rgba(232, 217, 176, 0.12);
  color: #f5ecd2;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero__title {
  color: #ffffff;
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

.hero__subtitle {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: rgba(247, 244, 239, 0.86);
  font-size: 1.1rem;
}

.hero__aside {
  position: relative;
}

.hero__seal {
  max-width: 18rem;
  margin-left: auto;
  margin-bottom: 1.5rem;
  color: rgba(198, 174, 109, 0.74);
}

.hero__seal svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.hero__panel {
  max-width: 25rem;
  margin-left: auto;
  padding: 1.7rem;
  border: 1px solid rgba(232, 217, 176, 0.18);
  border-radius: var(--ds-radius);
  background: rgba(15, 19, 21, 0.42);
  box-shadow: var(--ds-shadow-strong);
}

.hero__panel-text {
  margin: 0;
  color: rgba(247, 244, 239, 0.84);
}

/* SECCIÓN: servicios */
.services-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.service-card {
  border-top: 3px solid var(--ds-primary) !important;
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border: 1px solid rgba(198, 174, 109, 0.7) !important;
  box-shadow: 0 20px 48px rgba(28, 28, 28, 0.12);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1.3rem;
  border-radius: 1rem;
  background: var(--ds-primary-light);
  color: var(--ds-neutral-dark);
}

.service-card__icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: currentColor;
}

.service-card__list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ds-neutral-medium);
}

.service-card__list li + li {
  margin-top: 0.35rem;
}

/* SECCIÓN: ventajas */
.section--highlight {
  background: linear-gradient(180deg, rgba(232, 217, 176, 0.68) 0%, rgba(232, 217, 176, 0.9) 100%);
}

.feature-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 1.15rem 1.2rem 1.15rem 4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(28, 28, 28, 0.06);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ds-accent);
}

.feature-list li::after {
  content: '';
  position: absolute;
  left: 1.72rem;
  top: 1.62rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.feature-quote {
  margin-top: 2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--ds-accent);
  color: var(--ds-accent-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-style: italic;
}

/* SECCIÓN: cta intermedio */
.cta-band {
  padding: 2rem 0;
  background: var(--ds-accent);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band__eyebrow,
.cta-band__title {
  color: #ffffff;
}

.cta-band__button {
  min-width: 15rem;
}

/* SECCIÓN: contacto */
.contact-section {
  background: transparent;
}

.contact-form-card,
.contact-card-dark {
  border-radius: var(--ds-radius);
}

.contact-form-card {
  box-shadow: var(--ds-shadow);
}

.contact-form-card .form-label {
  font-weight: 700;
  color: var(--ds-neutral-dark);
}

.form-control,
.form-select {
  min-height: 3.25rem;
  border-radius: 0.95rem;
  border-color: rgba(28, 28, 28, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(168, 145, 74, 0.7);
  box-shadow: 0 0 0 0.22rem rgba(198, 174, 109, 0.22);
}

textarea.form-control {
  min-height: 9rem;
}

.privacy-check .form-check-input {
  margin-top: 0.3rem;
}

.form-disclaimer {
  color: var(--ds-neutral-medium);
  text-align: center;
}

.contact-card-dark {
  height: 100%;
  color: rgba(247, 244, 239, 0.88);
  background: linear-gradient(180deg, #20363c 0%, var(--ds-accent-dark) 100%);
}

.contact-card-dark a {
  color: #ffffff;
}

.contact-card-dark__lead {
  margin-bottom: 1.75rem;
  color: rgba(247, 244, 239, 0.8);
}

.contact-card-dark__note {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.contact-card-dark__note ul {
  padding-left: 1rem;
}

.contact-icon {
  color: var(--ds-primary-light);
}

/* SECCIÓN: footer */
.footer {
  background: var(--ds-neutral-dark) !important;
}

.footer-brand__logo {
  height: 140px;
  max-width: 100%;
}

.footer-brand__text {
  color: #ffffff;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-link--nav {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 244, 239, 0.88);
  font-size: 1rem;
}

.social-link--footer {
  color: rgba(247, 244, 239, 0.84);
  font-weight: 500;
}

.social-link--footer i {
  font-size: 1.1rem;
}

.social-link--nav:hover,
.social-link--nav:focus,
.social-link--footer:hover,
.social-link--footer:focus {
  color: var(--ds-primary-light);
}

.social-link--nav:hover,
.social-link--nav:focus {
  border-color: rgba(198, 174, 109, 0.6);
  background: rgba(198, 174, 109, 0.12);
  transform: translateY(-1px);
}

.footer-links a,
.footer .text-leo-link,
.footer ul a {
  color: rgba(247, 244, 239, 0.84);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus,
.footer ul a:hover,
.footer ul a:focus {
  color: var(--ds-primary-light);
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--ds-primary);
  color: var(--ds-neutral-dark);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* SECCIÓN: responsive */
@media (max-width: 991.98px) {
  :root {
    --navbar-h: 84px;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(28, 28, 28, 0.98);
  }

  .navbar-actions {
    justify-items: start;
  }

  .translate-switcher {
    margin-bottom: 0.25rem;
  }

  #siteNavbar .nav-link.active::after,
  #siteNavbar .nav-link:hover::after,
  #siteNavbar .nav-link:focus::after {
    left: 0.9rem;
    right: calc(100% - 3.75rem);
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero__title {
    max-width: none;
  }

  .hero::after {
    width: 12rem;
  }

  .hero__panel,
  .hero__seal {
    margin-left: 0;
  }

  .brand-eyebrow {
    display: none;
  }

  .logo-img {
    height: 2.9rem;
    max-width: 3.8rem;
  }

  .footer-brand__logo {
    height: 2.7rem;
    max-width: 3.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-up,
  .reveal-up.is-visible {
    opacity: 1;
    transform: none;
  }
}