/* ==========================================================================
   Favipret — main.css
   Zero-build stylesheet. Layer order controls the cascade explicitly.
   ========================================================================== */

@layer tokens, base, layout, components, utilities;

/* Native cross-document page transitions (Chromium; no-op elsewhere). */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: ease;
}

/* ==========================================================================
   TOKENS — design values only, no selectors beyond :root
   ========================================================================== */
@layer tokens {
  :root {
    /* Color palette — matches gematesteo.com/favipret (Elementor global kit) */
    --color-brand: #e20613;
    --color-brand-dark: #a80410;
    --color-ink: #54595f;
    --color-ink-soft: #4a4a4a;
    --color-surface: #ffffff;
    --color-surface-alt: #f1f1f1;
    --color-muted: #767676;
    --color-border: #e0e0e0;

    /* Type scale — fluid via clamp() */
    --fs-100: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --fs-200: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
    --fs-300: clamp(1rem, 0.96rem + 0.25vw, 1.0625rem);
    --fs-400: clamp(1.125rem, 1.06rem + 0.35vw, 1.25rem);
    --fs-500: clamp(1.375rem, 1.28rem + 0.5vw, 1.625rem);
    --fs-600: clamp(1.75rem, 1.58rem + 0.85vw, 2.25rem);
    --fs-700: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
    --fs-800: clamp(2.75rem, 2.3rem + 2.25vw, 4rem);

    /* Fonts — matches gematesteo.com/favipret (Figtree headings, Montserrat body, Rubik labels) */
    --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-heading: "Figtree", var(--font-body);
    --font-label: "Rubik", var(--font-body);
    --line-height-body: 1.55;
    --line-height-heading: 1.15;

    /* Spacing — 4px base */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 5rem;
    --space-10: 6rem;
    --space-11: 8rem;
    --space-12: 10rem;

    /* Shape */
    --radius: 0.5rem;
    --radius-sm: 0.25rem;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);

    --container: 1200px;
  }
}

/* ==========================================================================
   BASE — element defaults, no classes
   ========================================================================== */
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-300);
    line-height: var(--line-height-body);
    color: var(--color-ink);
    background: var(--color-surface);
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    margin: 0 0 var(--space-4);
    font-weight: 700;
    color: var(--color-ink);
  }

  h1 {
    font-size: var(--fs-800);
  }

  h2 {
    font-size: var(--fs-700);
  }

  h3 {
    font-size: var(--fs-500);
  }

  h4 {
    font-size: var(--fs-400);
  }

  p {
    margin: 0 0 var(--space-4);
  }

  a {
    color: var(--color-brand);
    text-decoration-thickness: 1px;
  }

  a:hover {
    color: var(--color-brand-dark);
  }

  img,
  video {
    max-width: 100%;
    height: auto;
    display: block;
  }

  ul,
  ol {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-5);
  }

  table {
    border-collapse: collapse;
    width: 100%;
  }

  :focus-visible {
    outline: 3px solid var(--color-brand);
    outline-offset: 2px;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* ==========================================================================
   LAYOUT — structural primitives
   ========================================================================== */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-5);
  }

  .section {
    padding-block: var(--space-8);
  }

  .section--tight {
    padding-block: var(--space-6);
  }

  .section--alt {
    background: var(--color-surface-alt);
  }

  .section--brand {
    background: var(--color-brand);
    color: var(--color-surface);
  }

  .section--brand h2 {
    color: var(--color-surface);
  }

  .section--brand p {
    font-size: var(--fs-400);
  }

  .grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  }

  .stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  .stack--row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
@layer components {
  /* Header / Nav */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #0d0d0f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding-block: var(--space-5);
  }

  .site-header__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-400);
    color: var(--color-surface);
    text-decoration: none;
  }

  .site-header__brand img {
    display: block;
    height: 2rem;
    width: auto;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    z-index: 60;
    transition: border-color 0.2s ease;
  }

  .nav__toggle-icon,
  .nav__toggle-icon::before,
  .nav__toggle-icon::after {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: var(--color-surface);
    position: relative;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.2s ease;
  }

  .nav__toggle-icon::before,
  .nav__toggle-icon::after {
    content: "";
    position: absolute;
  }

  .nav__toggle-icon::before {
    top: -6px;
  }

  .nav__toggle-icon::after {
    top: 6px;
  }

  .nav__toggle[aria-expanded="true"] {
    border-color: var(--color-brand);
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-icon {
    background: transparent;
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--color-surface);
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--color-surface);
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-9) var(--space-5) var(--space-6);
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 55;
    background: var(--color-brand);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }

  .nav.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .nav__list--categories {
    gap: var(--space-2);
  }

  .nav__link {
    display: inline-block;
    position: relative;
    padding: var(--space-2) var(--space-1);
    color: var(--color-ink);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: var(--space-1);
    right: var(--space-1);
    bottom: 0;
    height: 2px;
    background: var(--color-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .nav__link[aria-current="page"] {
    color: var(--color-brand);
    font-weight: 700;
  }

  /* Mobile full-screen overlay styling */
  .nav .nav__list--primary .nav__link {
    color: var(--color-surface);
    font-family: var(--font-heading);
    font-size: var(--fs-500);
    font-weight: 600;
    padding: var(--space-2) 0;
  }

  .nav .nav__list--primary .nav__link::after {
    left: 0;
    right: 0;
  }

  .nav .nav__list--primary .nav__link:hover,
  .nav .nav__list--primary .nav__link[aria-current="page"] {
    color: var(--color-surface);
  }

  .nav .nav__link--category,
  .nav .nav__dropdown-toggle {
    color: var(--color-surface);
    font-weight: 400;
    font-size: var(--fs-300);
    padding: var(--space-1) 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-align: left;
    width: 100%;
  }

  .nav__chevron {
    color: var(--color-surface);
    font-weight: 400;
  }

  .nav__dropdown {
    border: none;
  }

  .nav__dropdown > summary {
    list-style: none;
  }

  .nav__dropdown-link {
    color: inherit;
    text-decoration: none;
  }

  .nav__dropdown-link:hover {
    color: inherit;
  }

  .nav__dropdown-link[aria-current="page"] {
    color: var(--color-brand);
    font-weight: 700;
  }

  .nav__dropdown > summary::-webkit-details-marker,
  .nav__dropdown > summary::marker {
    display: none;
    content: "";
  }

  .nav__submenu {
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0 0 0 var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .nav .nav__link--sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-200);
    padding: var(--space-1) 0;
  }

  .nav .nav__link--sub:hover,
  .nav .nav__link--sub[aria-current="page"] {
    color: var(--color-surface);
    background: transparent;
    text-decoration: underline;
  }

  .nav__legal {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-100);
    letter-spacing: 0.02em;
  }

  @media (min-width: 48rem) {
    .nav__toggle {
      display: none;
    }

    .nav {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center;
      position: static;
      inset: auto;
      z-index: auto;
      background: transparent;
      padding: 0;
      opacity: 1;
      transform: none;
      pointer-events: auto;
      gap: var(--space-2) var(--space-5);
      overflow: visible;
    }

    .nav__list {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: var(--space-1) var(--space-4);
    }

    .nav .nav__list--primary .nav__link {
      color: var(--color-surface);
      font-family: var(--font-body);
      font-size: var(--fs-100);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .nav .nav__list--primary .nav__link:hover,
    .nav .nav__list--primary .nav__link[aria-current="page"] {
      color: var(--color-surface);
      text-decoration: none;
    }

    .nav .nav__link--category,
    .nav .nav__dropdown-toggle {
      color: var(--color-surface);
      font-size: var(--fs-100);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      width: auto;
    }

    .nav__chevron {
      color: rgba(255, 255, 255, 0.6);
    }

    .nav .nav__link--category:hover,
    .nav .nav__dropdown-toggle:hover {
      color: var(--color-brand);
    }

    .nav .nav__dropdown-toggle {
      background: transparent;
    }

    .nav__dropdown[open] .nav__dropdown-toggle {
      color: var(--color-brand);
    }

    .nav__item--dropdown {
      position: relative;
    }

    .nav__submenu {
      position: absolute;
      top: calc(100% + 0.75rem);
      left: 50%;
      transform: translate(-50%, -0.25rem);
      margin: 0;
      padding: var(--space-2);
      min-width: 14rem;
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius);
      box-shadow: var(--shadow-md);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav__dropdown[open] .nav__submenu,
    .nav__dropdown:hover .nav__submenu,
    .nav__dropdown:focus-within .nav__submenu {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, 0);
    }

    .nav .nav__link--sub {
      color: var(--color-ink);
    }

    .nav .nav__link--sub:hover,
    .nav .nav__link--sub[aria-current="page"] {
      color: var(--color-brand);
      background: var(--color-surface-alt);
      text-decoration: none;
    }

    .nav__legal {
      display: none;
    }
  }

  /* Hero */
  .hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 45vh;
    padding-block: var(--space-11) var(--space-9);
    background:
      linear-gradient(100deg, rgba(13, 13, 15, 0.94) 0%, rgba(13, 13, 15, 0.82) 40%, rgba(13, 13, 15, 0.62) 70%, rgba(13, 13, 15, 0.42) 100%),
      var(--hero-image, none) center/cover no-repeat;
    text-align: left;
    color: var(--color-surface);
  }

  .hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
  }

  /* Background video (hero cover or a hero-slider slide). Sits above the
     element's own background-image (used as an instant-paint fallback
     before the video has a frame ready) and below the gradient overlay,
     which is re-declared as a sibling layer so the video doesn't wash it
     out the way it would if the gradient stayed baked into `background`. */
  .hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(13, 13, 15, 0.94) 0%, rgba(13, 13, 15, 0.82) 40%, rgba(13, 13, 15, 0.62) 70%, rgba(13, 13, 15, 0.42) 100%);
  }

  .hero-media--slide::after {
    background: linear-gradient(100deg, rgba(13, 13, 15, 0.75) 0%, rgba(13, 13, 15, 0.55) 48%, rgba(13, 13, 15, 0.32) 100%);
  }

  .hero--photo {
    --hero-image: url("../img/planta/planta-real-01.webp");
    min-height: 82vh;
    padding-block: var(--space-12) var(--space-10);
  }

  .hero--viguetas {
    --hero-image: url("../img/viguetas_portada_imagen1.webp");
  }

  .hero--losa30 {
    --hero-image: url("../img/losas/losa-30-banner.webp");
  }

  .hero--losa60 {
    --hero-image: url("../img/losas/losa-60-banner.webp");
  }

  .hero--losa120 {
    --hero-image: url("../img/losas/losa-120-banner.webp");
  }

  .hero--cerramiento {
    --hero-image: url("../img/losas/losa-cerramiento-banner.webp");
  }

  .hero--mallas {
    --hero-image: url("../img/mallas/mallas-06.webp");
  }

  .hero--planta {
    --hero-image: url("../img/planta/planta-real-01.webp");
  }

  .hero__title {
    max-width: 40ch;
    position: relative;
    padding-left: var(--space-4);
    border-left: 4px solid var(--color-brand);
    color: var(--color-surface);
  }

  .hero--photo .hero__title,
  .hero--photo .hero__subtitle {
    color: var(--color-surface);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  }

  .hero:not(.hero--photo) {
    background:
      radial-gradient(60rem 30rem at 100% -10%, rgba(226, 6, 19, 0.08), transparent),
      linear-gradient(180deg, var(--color-surface-alt), var(--color-surface));
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-border);
  }

  .hero:not(.hero--photo) .hero__title {
    color: var(--color-ink);
  }

  .hero__subtitle {
    font-size: var(--fs-400);
    color: inherit;
    max-width: 55ch;
    opacity: 0.92;
  }

  .hero:not(.hero--photo) .hero__subtitle {
    color: var(--color-ink-soft);
    opacity: 1;
  }

  /* Hero slider */
  .hero-slider {
    position: relative;
    min-height: 82vh;
    overflow: hidden;
  }

  .hero-slider__track {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 82vh;
    min-height: 82vh;
    position: relative;
  }

  .hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    background:
      linear-gradient(100deg, rgba(13, 13, 15, 0.75) 0%, rgba(13, 13, 15, 0.55) 48%, rgba(13, 13, 15, 0.32) 100%),
      var(--slide-image) center/cover no-repeat;
  }

  .hero-slide--plant {
    background: linear-gradient(135deg, #4a4e54 0%, #2e3135 55%, #1a1c1f 100%);
  }

  .hero-slide__content--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-8);
  }

  .hero-slide__video {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  }

  .hero-slide__video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }

  @media (max-width: 56rem) {
    .hero-slide__content--split {
      grid-template-columns: 1fr;
      gap: var(--space-5);
    }
  }

  .hero-slide--viguetas {
    --slide-image: url("../img/viguetas_portada_imagen1.webp");
  }

  .hero-slide--losas {
    --slide-image: url("../img/losas/losa-30-banner.webp");
  }

  .hero-slide--corte {
    --slide-image: url("../img/corte_y_doblado_imagen1.webp");
  }

  .hero-slide--mallas {
    --slide-image: url("../img/mallas_imagen1.webp");
  }

  .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
  }

  .hero-slide__content {
    position: relative;
    z-index: 1;
    color: var(--color-surface);
  }

  .hero-slide .hero__title,
  .hero-slide .hero__subtitle {
    color: var(--color-surface);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  }

  .hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: var(--color-surface);
    font-size: var(--fs-600);
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .hero-slider__arrow:hover {
    background: var(--color-brand);
  }

  .hero-slider__arrow--prev {
    left: var(--space-4);
  }

  .hero-slider__arrow--next {
    right: var(--space-4);
  }

  .hero-slider__dots {
    position: absolute;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: var(--space-2);
  }

  .hero-slider__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    border: 2px solid var(--color-surface);
    background: transparent;
    padding: 0;
    cursor: pointer;
  }

  .hero-slider__dot.is-active {
    background: var(--color-brand);
    border-color: var(--color-brand);
  }

  @media (max-width: 47.99rem) {
    .hero-slider__arrow {
      display: none;
    }
  }

  /* Card */
  .card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .card:hover,
  .card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-brand);
  }

  .card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(226, 6, 19, 0.1);
    color: var(--color-brand);
  }

  .card__icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }

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

  @media (max-width: 56rem) {
    .grid--3col {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 36rem) {
    .grid--3col {
      grid-template-columns: 1fr;
    }
  }

  .card__media {
    margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) 0;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background: var(--color-surface-alt);
  }

  .card__media img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
  }

  .card__title {
    font-size: var(--fs-400);
    margin: 0;
    color: var(--color-ink);
  }

  .card:hover .card__title {
    color: var(--color-brand);
  }

  .card__text {
    color: var(--color-ink-soft);
    margin: 0;
  }

  /* Product card (image + short blurb) */
  .product-card {
    padding: 0;
    overflow: hidden;
  }

  .product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .product-card .card__title,
  .product-card .card__text {
    padding-inline: var(--space-5);
  }

  .product-card .card__title {
    margin-top: var(--space-4);
  }

  .product-card .card__text {
    padding-bottom: var(--space-5);
  }

  .product-grid {
    margin-top: var(--space-7);
  }

  /* Benefit list (prefabricados landing) */
  .benefit-grid {
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 36rem) {
    .benefit-grid {
      grid-template-columns: 1fr;
    }
  }

  .benefit {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-brand);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--color-ink);
  }

  /* Non-interactive card: same look, no hover lift */
  .card--static:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: var(--color-border);
  }

  .card--static ul {
    margin: 0;
    padding-left: var(--space-5);
  }

  .card--static li + li {
    margin-top: var(--space-2);
  }

  /* Definition-style list: bold term followed by its description */
  .term-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
  }

  .term-list li {
    padding-left: var(--space-4);
    border-left: 3px solid var(--color-brand);
  }

  .term-list strong {
    display: block;
    color: var(--color-ink);
  }

  .warning-note {
    margin: 0;
    padding: var(--space-3) var(--space-4);
    background: rgba(226, 6, 19, 0.08);
    border-left: 4px solid var(--color-brand);
    border-radius: var(--radius);
    font-size: var(--fs-200);
  }

  .benefit::before {
    content: "✓";
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-brand);
    color: var(--color-surface);
    font-size: var(--fs-200);
    font-weight: 700;
  }

  /* Eyebrow label */
  .eyebrow {
    font-family: var(--font-label);
    font-size: var(--fs-100);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin: 0 0 var(--space-2);
  }

  /* Trust bar */
  .trust-bar .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: var(--space-6);
    text-align: center;
  }

  .trust-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .trust-item strong {
    font-family: var(--font-heading);
    font-size: var(--fs-500);
    color: var(--color-brand);
  }

  .trust-item span {
    color: var(--color-ink-soft);
    font-size: var(--fs-200);
  }

  /* Feature (image + text) section */
  .feature__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--space-7);
  }

  .feature__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .feature__body h3 {
    margin-top: 0;
  }

  @media (min-width: 48rem) {
    .feature__grid {
      grid-template-columns: 1fr 1fr;
    }

    .feature--reverse .feature__media {
      order: 2;
    }
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: 30px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-ink);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  }

  .btn:hover {
    background: var(--color-surface-alt);
    transform: translateY(-1px);
  }

  .btn:active {
    transform: translateY(0);
  }

  .btn--primary {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-surface);
  }

  .btn--primary:hover {
    background: var(--color-brand-dark);
    border-color: var(--color-brand-dark);
    color: var(--color-surface);
  }

  /* Datasheet download button below a spec table */
  .spec-download {
    align-self: flex-start;
    margin-top: var(--space-2);
  }

  /* Spec table */
  .spec-table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .spec-table th,
  .spec-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--fs-200);
  }

  .spec-table thead th {
    background: var(--color-brand);
    color: var(--color-surface);
    font-weight: 700;
  }

  .spec-table tbody tr:nth-child(even) {
    background: var(--color-surface-alt);
  }

  .spec-table tbody tr:hover {
    background: rgba(226, 6, 19, 0.06);
  }

  .spec-table tbody tr:last-child td {
    border-bottom: none;
  }

  .table-scroll {
    overflow-x: auto;
    margin-block: var(--space-4);
  }

  .spec-table--data {
    width: 100%;
    border-collapse: separate;
    white-space: nowrap;
  }

  .spec-table--data th,
  .spec-table--data td {
    text-align: center;
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-100);
  }

  .spec-table--data th:first-child,
  .spec-table--data td:first-child,
  .spec-table--data th:nth-child(2),
  .spec-table--data td:nth-child(2),
  .spec-table--data th:nth-child(3),
  .spec-table--data td:nth-child(3) {
    text-align: left;
  }

  .callout-band {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
    padding-block: var(--space-8);
    background: var(--color-brand);
    text-align: center;
  }

  .callout-band__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .callout-band__title {
    margin: 0;
    color: var(--color-surface);
  }

  .callout-band__subtitle {
    margin: 0;
    max-width: 45ch;
    font-size: var(--fs-400);
    color: var(--color-surface);
    opacity: 0.92;
  }

  .callout-band__btn {
    margin-top: var(--space-2);
    padding: var(--space-4) var(--space-7);
    font-size: var(--fs-400);
    background: var(--color-surface);
    color: var(--color-brand);
    border-color: var(--color-surface);
  }

  .callout-band__btn:hover {
    background: var(--color-surface-alt);
    color: var(--color-brand-dark);
    border-color: var(--color-surface-alt);
  }

  .spec-table__schema {
    padding-block: var(--space-2) !important;
  }

  .spec-table__schema img {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    padding: var(--space-1);
    cursor: zoom-in;
    transition: transform 0.2s ease;
  }

  .spec-table__schema img:hover {
    transform: scale(1.15);
  }

  .table-warning {
    background: #fff4e5;
    border: 1px solid #f0c988;
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-200);
    color: #7a4c00;
  }

  /* Work-time comparison pie charts */
  .pie-compare {
    gap: var(--space-6);
  }

  .pie-compare__group h4 {
    font-size: var(--fs-400);
    margin-bottom: var(--space-4);
  }

  .pie-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .pie {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    width: 5rem;
  }

  .pie__circle {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 1px var(--color-border);
  }

  .pie__label {
    font-size: var(--fs-100);
    text-align: center;
    color: var(--color-ink);
  }

  .pie__label em {
    display: block;
    font-style: normal;
    color: var(--color-brand);
    font-weight: 600;
  }

  /* Instruction carousel (image-left, text-right slides) */
  .instr-carousel {
    position: relative;
    padding-inline: var(--space-9);
  }

  .instr-carousel__viewport {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .instr-carousel__track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.5s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .instr-carousel__track {
      transition: none;
    }
  }

  .instr-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: var(--space-6);
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-6);
  }

  .instr-slide__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    background: var(--color-surface-alt);
  }

  .instr-slide__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .instr-slide__step {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-label);
    font-size: var(--fs-100);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-brand);
  }

  .instr-slide__title {
    margin: 0;
    font-size: var(--fs-400);
  }

  .instr-slide__text {
    margin: 0;
    color: var(--color-ink);
  }

  .instr-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-ink);
    font-size: var(--fs-600);
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .instr-carousel__arrow:hover {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-surface);
  }

  .instr-carousel__arrow--prev {
    left: 0;
  }

  .instr-carousel__arrow--next {
    right: 0;
  }

  .instr-carousel__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
  }

  .instr-carousel__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .instr-carousel__dot.is-active {
    background: var(--color-brand);
    border-color: var(--color-brand);
  }

  @media (max-width: 40rem) {
    .instr-carousel {
      padding-inline: var(--space-7);
    }

    .instr-slide {
      grid-template-columns: 1fr;
      padding: var(--space-5);
    }
  }

  /* Gallery — even grid, every tile the same size regardless of the
     source photo's aspect ratio (object-fit crops to fill it). */
  .gallery {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery--2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: zoom-in;
  }

  .gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

  .gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(13, 13, 15, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .gallery__item::before {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    transform: translate(-50%, -50%) scale(0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e20613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center/1.25rem no-repeat;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .gallery__item:hover img,
  .gallery__item:focus-within img {
    transform: scale(1.08);
  }

  .gallery__item:hover::after,
  .gallery__item:focus-within::after,
  .gallery__item:hover::before,
  .gallery__item:focus-within::before {
    opacity: 1;
  }

  .gallery__item:hover::before,
  .gallery__item:focus-within::before {
    transform: translate(-50%, -50%) scale(1);
  }

  @media (max-width: 56rem) {
    .gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 30rem) {
    .gallery {
      grid-template-columns: 1fr;
    }
  }

  /* Technical diagram illustration */
  .diagram {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-5);
  }

  .diagram svg {
    width: 100%;
    height: auto;
  }

  .diagram img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
  }

  .diagram img:hover {
    transform: scale(1.02);
  }

  .diagram__caption {
    margin: var(--space-4) 0 0;
    font-size: var(--fs-200);
    color: var(--color-ink-soft);
  }

  /* Product switcher (cross-links between related losa pages) */
  .product-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .product-switcher__link {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-ink);
    text-decoration: none;
    font-size: var(--fs-200);
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .product-switcher__link:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
  }

  .product-switcher__link[aria-current="page"] {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-surface);
  }

  /* Works showcase (home) — 3 large cards, each a background photo with a
     title and date pinned at the bottom. */
  .works-grid {
    display: grid;
    gap: var(--space-5);
  }

  .works-row--trio {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(3, 1fr);
  }

  .work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 22rem;
    padding: var(--space-5);
    border-radius: var(--radius);
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(13, 13, 15, 0) 0%, rgba(13, 13, 15, 0) 55%, rgba(13, 13, 15, 0.75) 100%),
      var(--work-image, none) center/cover no-repeat;
    color: var(--color-surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .work-card--autodromo {
    --work-image: url("../img/obra-autodromo.webp");
  }

  .work-card--autopista {
    --work-image: url("../img/obra-autopista.webp");
  }

  .work-card--entrerios {
    --work-image: url("../img/obra-entrerios.webp");
  }

  .work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .work-card__title {
    max-width: 28ch;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-500);
    line-height: var(--line-height-heading);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  }

  .work-card__date {
    margin-top: var(--space-2);
    font-family: var(--font-label);
    font-size: var(--fs-200);
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.72);
  }

  @media (max-width: 56rem) {
    .works-row--trio {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 36rem) {
    .works-row--trio {
      grid-template-columns: 1fr;
    }

    .work-card {
      min-height: 17.6rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .work-card {
      transition: none;
    }
  }

  /* Video embed */
  .video-embed {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-ink);
  }

  .video-embed video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .video-embed__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    color: var(--color-surface);
  }

  .video-embed__play svg {
    width: 3.5rem;
    height: 3.5rem;
  }

  .video-embed.is-playing .video-embed__play {
    display: none;
  }

  /* Footer */
  .site-footer {
    background: var(--color-brand);
    color: var(--color-surface);
    padding-block: var(--space-8);
  }

  .site-footer a {
    color: var(--color-surface);
    text-decoration: none;
  }

  .site-footer a:hover {
    color: var(--color-surface);
  }

  .site-footer__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }

  .contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .site-footer__grid p:not(.footer-division__title),
  .site-footer .contact-list {
    font-size: var(--fs-200);
    line-height: 1.5;
  }

  .site-footer .contact-list {
    gap: var(--space-1);
  }

  .footer-division + .footer-division {
    margin-top: var(--space-5);
  }

  .footer-division__title {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-100);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.75);
  }

  .site-footer__brand {
    display: inline-flex;
    margin-bottom: var(--space-3);
  }

  .site-footer__brand img {
    display: block;
    width: min(13.75rem, 100%);
    height: auto;
  }

  .site-footer h4 {
    color: var(--color-surface);
    font-size: var(--fs-200);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .site-footer__legal {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: var(--fs-100);
    color: var(--color-surface);
  }

  /* FAQ */
  .faq {
    max-width: 56rem;
  }

  .faq__item {
    border-bottom: 1px solid var(--color-border);
  }

  .faq__item:first-of-type {
    border-top: 1px solid var(--color-border);
  }

  .faq__item summary {
    position: relative;
    padding: var(--space-5) var(--space-7) var(--space-5) 0;
    color: var(--color-ink-soft);
    font-family: var(--font-heading);
    font-size: var(--fs-400);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .faq__item summary::-webkit-details-marker {
    display: none;
  }

  .faq__item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    color: var(--color-brand);
    font-size: var(--fs-500);
    line-height: 1;
  }

  .faq__item[open] summary::after {
    content: "−";
  }

  .faq__item p {
    max-width: 48rem;
    margin: 0;
    padding: 0 var(--space-7) var(--space-5) 0;
  }

  /* Section images — consistent, polished treatment */
  .section img:not(.gallery__item img) {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
  }

  /* Crops a tall image down to match the height of its sibling column
     (relies on the parent .grid stretching both cells to the same
     height, then this fills that height and crops instead of overflowing). */
  .media-match {
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .media-match--sm {
    max-height: 20rem;
    margin-inline: auto;
  }

  .media-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
  }

  /* Scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger the individual cards/gallery items inside a revealed section,
     instead of having the whole group pop in at once. */
  .reveal .card,
  .reveal .gallery__item,
  .reveal .product-switcher__link {
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: var(--reveal-delay, 0s);
  }

  .reveal.is-visible .card,
  .reveal.is-visible .gallery__item,
  .reveal.is-visible .product-switcher__link {
    opacity: 1;
    transform: none;
  }

  .reveal .card:nth-child(1),
  .reveal .gallery__item:nth-child(1),
  .reveal .product-switcher__link:nth-child(1) { --reveal-delay: 0s; }
  .reveal .card:nth-child(2),
  .reveal .gallery__item:nth-child(2),
  .reveal .product-switcher__link:nth-child(2) { --reveal-delay: 0.06s; }
  .reveal .card:nth-child(3),
  .reveal .gallery__item:nth-child(3),
  .reveal .product-switcher__link:nth-child(3) { --reveal-delay: 0.12s; }
  .reveal .card:nth-child(4),
  .reveal .gallery__item:nth-child(4),
  .reveal .product-switcher__link:nth-child(4) { --reveal-delay: 0.18s; }
  .reveal .card:nth-child(5),
  .reveal .gallery__item:nth-child(5) { --reveal-delay: 0.24s; }
  .reveal .card:nth-child(6),
  .reveal .gallery__item:nth-child(6) { --reveal-delay: 0.3s; }
  .reveal .gallery__item:nth-child(7) { --reveal-delay: 0.36s; }
  .reveal .gallery__item:nth-child(8) { --reveal-delay: 0.42s; }
  .reveal .gallery__item:nth-child(n + 9) { --reveal-delay: 0.48s; }

  @media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal .card,
    .reveal .gallery__item,
    .reveal .product-switcher__link {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* Floating WhatsApp button */
  .whatsapp-fab {
    position: fixed;
    right: var(--space-5);
    bottom: var(--space-5);
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    color: var(--color-surface);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
  }

  .whatsapp-fab:hover {
    transform: scale(1.08);
  }

  /* Lightbox */
  .lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(13, 13, 15, 0.92);
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .lightbox.is-open {
    opacity: 1;
    visibility: visible;
  }

  .lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    transform: scale(0.94);
    transition: transform 0.25s ease;
  }

  .lightbox.is-open .lightbox__img {
    transform: scale(1);
  }

  @media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox__img {
      transition: none;
    }
  }

  .lightbox__close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-surface);
    font-size: var(--fs-500);
    line-height: 1;
    cursor: pointer;
  }

  .lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  /* Breadcrumbs */
  .breadcrumbs {
    font-size: var(--fs-100);
    color: var(--color-muted);
    padding-block: var(--space-3);
  }

  .breadcrumbs a {
    color: var(--color-muted);
  }

  .breadcrumbs a:hover {
    color: var(--color-brand);
  }

  .breadcrumbs [aria-current="page"] {
    color: var(--color-ink);
  }

  /* Map embed */
  .map-embed {
    border: 0;
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
  }

  /* Instagram feed (own JSON, synced server-side via api/instagram-sync.php) */
  .instagram-feed {
    max-width: 60rem;
    margin-inline: auto;
  }

  .instagram-feed:empty {
    display: none;
  }

  .instagram-feed .gallery__item {
    cursor: pointer;
  }

  .instagram-feed .gallery__item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e20613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1'/%3E%3C/svg%3E");
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .text-center {
    text-align: center;
  }

  .mt-4 {
    margin-top: var(--space-4);
  }

  .mt-6 {
    margin-top: var(--space-6);
  }

  .mt-8 {
    margin-top: var(--space-8);
  }
}
