:root {
  color-scheme: dark;
  --vertex-black: #070707;
  --vertex-surface: #101010;
  --vertex-text: #f6f4ee;
  --vertex-muted: #e2ded6;
  --vertex-accent: #c5a64d;
  --vertex-accent-light: #f1ce80;
  --vertex-accent-deep: #745b23;
  --vertex-border: #c5a64d40;
  --vertex-card-bg: linear-gradient(155deg, #090909, #24211c);
  --vertex-footer-bg:
    linear-gradient(135deg, #18181866 0 8%, transparent 8% 12%, #18181842 12% 16%, transparent 16%),
    radial-gradient(ellipse at 44% 0, #18140e 0%, var(--vertex-black) 55%);
  --vertex-heading: Garamond, "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --gold: var(--vertex-accent);
  --gold-light: var(--vertex-accent-light);
  --serif: var(--vertex-heading);
}

body {
  background: var(--vertex-black);
  color: var(--vertex-text);
  font-family: var(--sans);
}

h1,
h2 {
  font-family: var(--vertex-heading);
}

h1 em,
h2 em {
  color: var(--vertex-accent-light);
}

:is(a, button, summary):focus-visible {
  outline: 3px solid var(--vertex-accent);
  outline-offset: 4px;
}

.site-header {
  min-height: 76px;
  padding-inline: max(5%, calc((100% - 1190px) / 2));
  border-bottom: 1px solid var(--vertex-border);
  background: var(--vertex-black);
}

.brand img {
  height: 60px;
}

.skip-link {
  background: var(--vertex-surface);
  color: var(--vertex-text);
}

.button {
  border-radius: .65rem;
}

.button-gold {
  background: linear-gradient(110deg, var(--vertex-accent), var(--vertex-accent-light));
  color: #181307;
}

.button-gold:hover {
  background: var(--vertex-accent-light);
}

.button-outline-light {
  border-color: var(--vertex-border);
  color: var(--vertex-text);
}

.button-outline-light:hover {
  color: #181307;
}

.closing-cta {
  border-top: 1px solid var(--vertex-border);
  background: linear-gradient(135deg, #1b160e, var(--vertex-black) 73%);
}

.closing-cta p:not(.eyebrow) {
  color: var(--vertex-muted);
}

.site-footer {
  border-top: 1px solid var(--vertex-border);
  background: var(--vertex-footer-bg);
  color: var(--vertex-text);
}

/* These components are shared by the four service pages. */
body:not([data-page="inicio"]) {
  --ink: var(--vertex-text);
  --muted: var(--vertex-muted);
  --line: var(--vertex-border);
}

.page-hero {
  background: radial-gradient(ellipse at 83% 30%, #1a1510, var(--vertex-black) 63%);
  color: var(--vertex-text);
}

.page-hero-copy h1 {
  font-size: clamp(3rem, 5.15vw, 5.05rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.page-hero-copy h1 em {
  display: block;
}

.page-hero-copy .hero-lead {
  padding-top: 1.05rem;
  border-top: 1px solid var(--vertex-border);
  color: var(--vertex-muted);
}

.page-hero-image img,
.split-image {
  border-color: var(--vertex-border);
  border-radius: 1rem;
}

.page-hero-image img {
  box-shadow: 12px 12px 0 #c5a64d19;
}

.page-hero-image::after,
.split-image::after {
  background: linear-gradient(180deg, transparent 52%, #0707075e);
}

.floating-bubble,
.split-image .image-stamp {
  background: #111111ed;
}

.section-light,
.section-dark {
  background: var(--vertex-black);
  color: var(--vertex-text);
}

.section-cream {
  border-block: 1px solid var(--vertex-border);
  background: var(--vertex-surface);
  color: var(--vertex-text);
}

body:not([data-page="inicio"]) :is(.eyebrow-dark, .card-index, .document-grid article > span) {
  color: var(--vertex-accent-light);
}

body:not([data-page="inicio"]) .text-link {
  color: var(--vertex-accent-light);
  border-color: var(--vertex-border);
}

body:not([data-page="inicio"]) .text-link:hover {
  color: var(--vertex-text);
  border-color: currentColor;
}

body:not([data-page="inicio"]) .service-grid {
  gap: 1rem;
  border: 0;
  background: transparent;
}

body:not([data-page="inicio"]) :is(.service-card, .audience-grid article, .document-grid article, .notice-card) {
  border: 1px solid var(--vertex-border);
  border-radius: 1.15rem;
  background: var(--vertex-card-bg);
  color: var(--vertex-text);
}

body:not([data-page="inicio"]) .service-card:hover {
  border-color: var(--vertex-accent);
}

body:not([data-page="inicio"]) :is(.card-icon, .audience-symbol, .notice-mark) {
  background: #3a2e16;
  color: var(--vertex-accent-light);
}

.vertex-feature-section {
  background: var(--vertex-black);
}

body .vertex-feature-section .vertex-feature-card {
  border: 1px solid var(--vertex-border);
  border-radius: 1.25rem;
  background: var(--vertex-card-bg);
  box-shadow: 0 -.7rem 1.5rem #07070752;
}

body .vertex-feature-section .vertex-feature-card__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0 1.1rem;
  place-items: center;
  border-radius: .7rem;
  background: linear-gradient(130deg, var(--vertex-accent), var(--vertex-accent-light));
  color: #181307;
  font-size: 1.15rem;
}

.vertex-feature-card h3 {
  color: var(--vertex-accent-light);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.22;
}

.vertex-feature-card p {
  color: var(--vertex-muted);
}

.vertex-stack-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: start;
  gap: clamp(1.7rem, 6vw, 5rem);
  width: min(100%, 1190px);
  margin-inline: auto;
}

.vertex-stack-layout > .section-heading {
  margin-bottom: 0;
}

.vertex-scroll-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vertex-scroll-stack > .vertex-feature-card {
  position: relative;
  display: flex;
  min-height: clamp(250px, 25vw, 350px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.45rem, 3.5vw, 2.6rem);
}

.vertex-scroll-stack > .vertex-feature-card h3 {
  margin: 0 0 .6rem;
}

.vertex-scroll-stack > .vertex-feature-card p {
  max-width: 32rem;
  margin: 0;
}

.vertex-scroll-stack > .vertex-feature-card .text-link {
  margin-top: .85rem;
}

@media (min-width: 781px) and (min-height: 660px) and (prefers-reduced-motion: no-preference) {
  .vertex-stack-layout > .section-heading,
  .vertex-scroll-stack > .vertex-feature-card {
    position: sticky;
    top: calc(6.2rem + var(--stack-order, 0) * .46rem);
  }

  .vertex-scroll-stack > .vertex-feature-card {
    z-index: var(--stack-order);
  }

  .vertex-scroll-stack > .vertex-feature-card:focus-within {
    z-index: 12;
  }
}

@media (max-width: 780px) {
  .vertex-stack-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .vertex-scroll-stack > .vertex-feature-card {
    min-height: 0;
  }
}

.notice-card p,
.small-note {
  color: var(--vertex-muted);
}

.faq-list,
.faq-list details {
  border-color: var(--vertex-border);
}

.faq-list summary::after {
  border-color: var(--vertex-accent-light);
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  color: var(--vertex-muted);
}

.whatsapp-float {
  min-height: 54px;
  padding: .7rem 1.15rem .7rem .9rem;
  background: #087a54;
  color: #fff;
}

.whatsapp-float .whatsapp-brand-icon {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--vertex-border);
    padding: .65rem 5% 1rem;
    background: var(--vertex-surface);
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    background: var(--vertex-surface);
  }

  .site-nav > a:not(.button) {
    padding: .8rem 0;
  }

  .site-nav > a[aria-current="page"]::after {
    display: none;
  }

  .site-nav .button {
    margin-top: .7rem;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 780px) {
  .page-hero-copy h1 {
    font-size: clamp(2.65rem, 8vw, 4.5rem);
  }

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

  .whatsapp-float {
    right: .75rem;
    bottom: .75rem;
    min-height: 48px;
    font-size: .76rem;
  }

  .whatsapp-float .whatsapp-brand-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
}
