/* —— Design tokens —— */
:root {
  --bg: #0a192f;
  --bg-elevated: #0f2138;
  --bg-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.58);
  --text-faint: rgba(255, 255, 255, 0.4);
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.15);
  --brand-sky: #7eb8e0;
  --brand-sky-soft: rgba(126, 184, 224, 0.12);
  --white: #f7f8fa;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  --header-h: 4.5rem;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  /* Breakpoints (usar mismos px en @media; no se pueden leer desde var en todos los navegadores) */
  /* sm 480 · nav/layout 900 · tablet services 768 · location 900 · instagram 768 */
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--bg);
  z-index: 1000;
  border-radius: 6px;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 10vw, 6.5rem);
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 45%);
}

/* —— Scroll progress —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-sky), var(--accent));
  will-change: transform;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.section-head__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--white);
}

.section-head__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  background: rgba(10, 25, 47, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(10, 25, 47, 0.92);
}

.site-header__inner {
  width: min(100% - 2rem, calc(var(--max) + 2rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.25s var(--ease-out);
}

.logo-link:hover,
.logo-link:focus-visible {
  opacity: 0.92;
}

.logo-link:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 4px;
  border-radius: 8px;
}

.logo-link__mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-link__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 0.1rem;
}

.logo-link__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-link__domain {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-sky);
}

@media (max-width: 480px) {
  .logo-link__text {
    display: none;
  }

  .logo-link__mark {
    width: 40px;
    height: 40px;
  }
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav__cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--white) !important;
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--white);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  margin-inline: auto;
}

.site-header.is-open .nav-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 25, 47, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.35s;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: transparent;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.text-link {
  color: var(--brand-sky);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s, color 0.2s;
}

.text-link:hover,
.text-link:focus-visible {
  opacity: 0.85;
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

/* Hero con 5 mensajes + imagen Justicia — fondo y capas más marcados */
.hero--dynamic {
  background-color: #0a192f;
}

.hero--dynamic::before {
  background:
    radial-gradient(ellipse 88% 58% at 78% 12%, rgba(201, 169, 98, 0.11) 0%, transparent 56%),
    radial-gradient(ellipse 52% 48% at 8% 68%, rgba(126, 184, 224, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(201, 169, 98, 0.06) 0%, transparent 55%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(201, 169, 98, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, var(--brand-sky-soft) 0%, transparent 50%);
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(circle at 20% 30%, rgba(126, 184, 224, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 85% 60%, rgba(201, 169, 98, 0.05) 0%, transparent 40%);
  animation: hero-bg-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-bg-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(2%, 3%) scale(1.05);
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    animation: none;
  }
}

.hero__grid {
  width: min(100% - 2rem, calc(var(--max) + 3rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__grid--epic .hero__editorial {
    text-align: center;
    padding-left: clamp(1rem, 4vw, 1.75rem);
    padding-right: clamp(1rem, 4vw, 1.75rem);
  }

  .hero__grid--epic .hero__meta-row {
    justify-content: center;
  }

  .hero__grid--epic .hero__sub--epic {
    margin-inline: auto;
  }

  .hero__slide-nav {
    justify-content: center;
  }
}

/* Hero dinámico (5 mensajes) */
.hero__grid--epic {
  width: min(100% - 2rem, 88rem);
  align-items: start;
}

/* Columnas con min 0 = comportamiento tipo Auto layout (Figma) sin desbordes */
.hero__grid--epic > * {
  min-width: 0;
}

@media (min-width: 901px) {
  .hero__grid--epic {
    /* Un poco más de aire a la foto sin robar protagonismo al texto */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }
}

.hero__brand-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-sky);
  margin: 0 0 1.5rem;
}

.hero__editorial {
  position: relative;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

/* Barra lateral solo en escritorio: en móvil un elemento absoluto en el bloque centrado se veía como línea al medio */
@media (min-width: 901px) {
  .hero__grid--epic .hero__editorial::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15rem;
    bottom: 0.25rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(126, 184, 224, 0.55) 55%, transparent 100%);
    pointer-events: none;
  }
}

.hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1.1rem;
  transition:
    opacity 0.5s var(--ease-out),
    filter 0.55s var(--ease-out);
}

.hero__slide-num {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}

.hero__slide-preline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.95);
}

.hero__title--epic {
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  margin: 0 0 1.35rem;
  max-width: 17ch;
  transition:
    opacity 0.55s var(--ease-out),
    filter 0.65s var(--ease-out),
    transform 0.55s var(--ease-out);
}

@media (min-width: 640px) {
  .hero__title--epic {
    max-width: none;
  }
}

.hero-highlight {
  background: linear-gradient(120deg, var(--white) 0%, rgba(255, 255, 255, 0.88) 40%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .hero-highlight {
    color: var(--accent);
    background: none;
  }
}

.hero__sub--epic {
  max-width: 32rem;
  margin: 0 0 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(0.98rem, 1.9vw, 1.12rem);
  font-weight: 300;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.58);
  transition:
    opacity 0.5s var(--ease-out),
    filter 0.55s var(--ease-out);
}

#hero-rotator.is-fading .hero__meta-row,
#hero-rotator.is-fading .hero__title--epic,
#hero-rotator.is-fading .hero__sub--epic {
  opacity: 0.22;
  filter: blur(7px);
  transform: translateY(10px);
}

.hero__slide-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2.25rem;
}

.hero__slide-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.hero__dots {
  display: flex;
  gap: 0.45rem;
}

.hero__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    width 0.3s var(--ease-out),
    background 0.3s,
    box-shadow 0.3s;
}

.hero__dot:hover,
.hero__dot:focus-visible {
  background: rgba(255, 255, 255, 0.45);
}

.hero__dot.is-active {
  width: 2.15rem;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(201, 169, 98, 0.45);
}

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

/* Ancho visual: escala fluida (min — ideal — máx), no caja fija pequeña */
.hero__visual--epic {
  width: 100%;
  max-width: min(100% - 0.25rem, clamp(20rem, 88vw, 34rem));
}

.hero__visual.hero__visual--epic {
  animation: none;
  will-change: auto;
}

@media (min-width: 901px) {
  .hero__visual--epic {
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }
}

/* Marco más definido para la imagen del hero */
.hero__frame--epic {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding: 8px;
  background: linear-gradient(
    135deg,
    rgba(126, 184, 224, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 38%,
    rgba(201, 169, 98, 0.22) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__frame--epic::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero__frame--epic .hero__img-inner {
  aspect-ratio: auto;
  height: auto;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
  background: rgba(0, 0, 0, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 18px 60px rgba(0, 0, 0, 0.28);
}

.hero__frame--epic .hero__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  padding: 4px 8px;
  transform: none;
  will-change: auto;
}

@media (max-width: 900px) {
  .hero__frame--epic {
    margin-inline: auto;
    padding: 7px;
  }

  .hero__frame--epic .hero__img-inner {
    border-radius: calc(var(--radius-lg) - 7px);
  }

  .hero__frame--epic .hero__photo {
    padding: 3px 7px;
  }
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-sky);
  margin: 0 0 1.25rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 5.5vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 1.25rem;
}

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero__sub {
    margin-inline: auto;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__visual {
  justify-self: end;
  animation: hero-float 8s ease-in-out infinite;
  will-change: transform;
}

@media (max-width: 900px) {
  .hero__visual {
    justify-self: center;
    max-width: 22rem;
  }

  /* Sustituye el tope 22rem del hero genérico: foto principal más legible */
  .hero__visual.hero__visual--epic {
    max-width: min(100% - 0.25rem, clamp(20rem, 88vw, 34rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual {
    animation: none;
  }
}

.hero__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(126, 184, 224, 0.06);
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero__img-inner {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo {
    transform: scale(1.04);
    will-change: auto;
  }
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .hero__scroll {
    display: none;
  }
}

.hero__scroll-hint {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: scroll-hint-fade 2.8s ease-in-out infinite;
}

@keyframes scroll-hint-fade {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--brand-sky), var(--accent), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint {
    animation: none;
    opacity: 0.7;
  }
}

/* —— Marquee —— */
.marquee {
  position: relative;
  padding-block: 0.85rem;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(126, 184, 224, 0.04), transparent 40%, transparent 60%, rgba(201, 169, 98, 0.04));
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-move 38s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 44s;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.marquee__dot {
  color: var(--brand-sky);
  opacity: 0.65;
}

@keyframes marquee-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .marquee__content:last-child {
    display: none;
  }

  .marquee__content {
    white-space: normal;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* —— Trust —— */
.trust__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .trust__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.trust__item {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.trust__item:hover {
  border-color: rgba(126, 184, 224, 0.28);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.trust__icon {
  display: block;
  font-size: 0.75rem;
  color: var(--brand-sky);
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

.trust__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--white);
}

.trust__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* —— Services: imagen ancha antes de "Cómo te ayudo" (parallax vía JS) —— */
.services-pre-visual {
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
}

.services-pre-visual__inner {
  position: relative;
  height: clamp(200px, 34vh, 380px);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
}

.services-pre-visual__img {
  width: 100%;
  height: 118%;
  margin-top: -4%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .services-pre-visual__img {
    height: 100%;
    margin-top: 0;
    will-change: auto;
  }
}

/* —— Services (diagramación dinámica) —— */
.services__container {
  max-width: min(100% - 2.5rem, 68rem);
}

.services__head {
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.services__head-grid {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: end;
}

@media (min-width: 768px) {
  .services__head-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.services__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-sky);
}

.services__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.95;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--white);
}

.services__title-small {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

.services__title-big {
  font-size: clamp(3rem, 8.5vw, 4.75rem);
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, var(--white) 0%, rgba(255, 255, 255, 0.82) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

@supports not (background-clip: text) {
  .services__title-big {
    color: var(--white);
    background: none;
  }
}

.services__intro {
  margin: 0;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 28rem;
  border-left: 1px solid rgba(126, 184, 224, 0.35);
  padding-left: 1.25rem;
}

@media (max-width: 767px) {
  .services__intro {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(126, 184, 224, 0.25);
    padding-top: 1.25rem;
    max-width: none;
  }
}

.services__flow-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.services__flow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.45);
}

.services__flow-line {
  flex: 1;
  min-width: 2rem;
  max-width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.12));
}

.services__flow-arrow {
  color: var(--brand-sky);
  font-weight: 500;
  letter-spacing: 0;
}

.services__flow-label--sol {
  color: rgba(255, 255, 255, 0.42);
}

.services__list {
  display: grid;
  gap: 1rem 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    align-items: start;
  }

  /* Desfase sin pelear con .reveal (usa margen, no translate) */
  .service-card:nth-child(even) {
    margin-top: 1.75rem;
  }
}

.service-card {
  position: relative;
  padding: clamp(1.35rem, 2.8vw, 1.85rem) clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(18, 38, 62, 0.92) 0%, rgba(12, 28, 48, 0.88) 100%);
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand-sky), var(--accent));
  opacity: 0.65;
  transition: opacity 0.3s, width 0.3s var(--ease-out);
}

.service-card:nth-child(odd)::before {
  background: linear-gradient(180deg, var(--accent), rgba(126, 184, 224, 0.5));
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(201, 169, 98, 0.08);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
  width: 4px;
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-card__index {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  user-select: none;
}

.service-card__tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.25);
  background: rgba(201, 169, 98, 0.06);
}

.service-card__problem {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.65rem;
  align-items: start;
  margin: 0 0 1.15rem;
  padding: 0;
  border: none;
}

.service-card__quote-mark {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2.65rem;
  line-height: 0.72;
  font-style: italic;
  color: rgba(126, 184, 224, 0.32);
  user-select: none;
}

.service-card__problem-text {
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 2.1vw, 1.32rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
}

.service-card__rail {
  height: 1px;
  margin: 0 0 1rem;
  background: linear-gradient(90deg, rgba(126, 184, 224, 0.35), transparent 85%);
}

.service-card__solution-label {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-sky);
}

.service-card__solution {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.62;
  color: var(--text-muted);
}

.service-card:hover .service-card__solution {
  color: rgba(255, 255, 255, 0.72);
}

/* —— About (diagramación editorial) —— */
.about__layout {
  max-width: min(100%, 72rem);
  margin-inline: auto;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 4vw, 2.5rem);
  }

  .about__visual {
    order: -1;
    width: 100%;
    max-width: min(26rem, min(94vw, 100% - 1.5rem));
    margin-inline: auto;
  }
}

.about__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}

.about__frame:hover {
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(126, 184, 224, 0.14) inset;
}

.about__frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 28%;
}

.about__caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0.15rem;
  text-align: left;
}

@media (max-width: 900px) {
  .about__caption {
    text-align: center;
    align-items: center;
  }
}

.about__caption-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.about__caption-role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-sky);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.about__header {
  margin-bottom: 1.35rem;
}

.about__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.about__title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 2.85rem);
  font-weight: 500;
  color: var(--white);
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.about__lead {
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  color: var(--text);
  margin: 0;
  line-height: 1.65;
  max-width: 38rem;
}

.about__lead strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.about__chips {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.about__chip {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about__panels {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .about__panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 960px) {
  .about__panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about__panel {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(155deg, rgba(18, 38, 62, 0.55) 0%, rgba(12, 28, 48, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.about__panel:hover {
  border-color: rgba(126, 184, 224, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.about__panel-title {
  position: relative;
  margin: 0 0 0.65rem;
  padding-left: 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-sky);
}

.about__panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-sky) 0%, rgba(126, 184, 224, 0.35) 100%);
}

.about__panel-title--accent::before {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(201, 169, 98, 0.4) 100%);
}

.about__panel-title--accent {
  color: rgba(201, 169, 98, 0.95);
}

.about__panel-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.about__panel-text strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.about__quote {
  margin: 0 0 1.65rem;
  padding: 1.1rem 0 1.1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.08) 0%, transparent 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.about__quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 2.2vw, 1.28rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding-top: 0.25rem;
}

.about__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.about__action:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

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

.about__action-arrow {
  font-size: 0.85rem;
  opacity: 0.65;
}

.about__action--primary {
  border-color: rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.12);
  color: var(--white);
}

.about__action--primary:hover {
  border-color: rgba(201, 169, 98, 0.65);
  background: rgba(201, 169, 98, 0.2);
}

@media (max-width: 900px) {
  .about__actions {
    justify-content: center;
  }

  .about__header {
    text-align: center;
  }

  .about__eyebrow {
    text-align: center;
  }

  .about__lead {
    margin-inline: auto;
    text-align: center;
  }

  .about__chips {
    justify-content: center;
  }

  .about__quote {
    margin-inline: auto;
    max-width: 32rem;
  }

  .about__quote p {
    text-align: left;
  }
}

/* —— Testimonials: foto antes del título —— */
.testimonials__lede {
  margin: 0 auto clamp(2rem, 4.5vw, 2.85rem);
  max-width: min(100% - 2.5rem, 56rem);
  padding: 0;
  border: none;
}

.testimonials__lede-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.testimonials__lede-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 36%;
  display: block;
}

@media (max-width: 767px) {
  .testimonials__lede-img {
    aspect-ratio: 4 / 3;
  }
}

/* —— Testimonials —— */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial {
  margin: 0;
  padding: 1.65rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: border-color 0.3s;
}

.testimonial:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.testimonial__quote {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--white);
}

.testimonial__meta {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* —— Instagram —— */
.instagram__profile {
  display: inline-block;
  margin-top: 0.5rem;
}

.instagram__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .instagram__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.instagram__tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
}

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

.instagram__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.instagram__tile:hover img,
.instagram__tile:focus-visible img {
  transform: scale(1.06);
}

.instagram__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.55), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
}

.instagram__tile:hover .instagram__overlay,
.instagram__tile:focus-visible .instagram__overlay {
  opacity: 1;
}

/* —— Lightbox galería —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox__inner {
  position: relative;
  z-index: 1;
  width: min(100%, min(92vw, 72rem));
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.lightbox__inner > * {
  pointer-events: auto;
}

.lightbox__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition:
    background 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

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

.lightbox__close-icon {
  position: relative;
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.lightbox__close-icon::before,
.lightbox__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.lightbox__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox__stage {
  width: 100%;
  max-height: min(calc(88vh - 3.5rem), 820px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.35);
}

.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(calc(88vh - 3.5rem), 820px);
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__close:hover {
    transform: none;
  }
}

/* —— Final CTA —— */
.final-cta {
  padding-block: clamp(4.5rem, 12vw, 7rem);
  text-align: center;
  position: relative;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(201, 169, 98, 0.09) 0%, transparent 55%);
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  max-width: 38rem;
  margin-inline: auto;
}

.final-cta__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 1rem;
}

.final-cta__text {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.final-cta__fine {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* —— Location / map —— */
.location {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
}

.location__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 10% 40%, rgba(126, 184, 224, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(201, 169, 98, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 35%);
}

.location__wrap {
  position: relative;
  z-index: 1;
}

.location__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 0;
  border-radius: calc(var(--radius-lg) + 6px);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(126, 184, 224, 0.35) 0%,
    rgba(255, 255, 255, 0.12) 35%,
    rgba(201, 169, 98, 0.25) 100%
  );
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

@media (max-width: 900px) {
  .location__card {
    grid-template-columns: 1fr;
  }
}

.location__card-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(165deg, rgba(15, 33, 56, 0.98) 0%, rgba(10, 25, 47, 0.99) 100%);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-right: none;
}

@media (max-width: 900px) {
  .location__card-inner {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
  }
}

.location__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location__brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  padding-left: 0.25rem;
}

.location__logo-ring {
  position: absolute;
  left: 0;
  top: 50%;
  translate: -4px -50%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(126, 184, 224, 0.35);
  box-shadow: 0 0 0 6px rgba(126, 184, 224, 0.05);
  pointer-events: none;
}

.location__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.location__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.location__kicker {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.location__domain {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-sky);
}

.location__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.location__lead {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 22rem;
}

.location__address {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-style: normal;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.45;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.location__address-line--muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.location__maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bg);
  background: linear-gradient(120deg, var(--white) 0%, rgba(247, 248, 250, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.location__maps-link:hover,
.location__maps-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.location__maps-link:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 3px;
}

.location__maps-link-arrow {
  font-size: 1rem;
  opacity: 0.75;
}

.location__map-block {
  min-height: 320px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: none;
}

@media (max-width: 900px) {
  .location__map-block {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    min-height: 280px;
  }
}

.location__map-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(300px, 48vw, 440px);
}

.location__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.location__map-shell.is-ready .location__iframe {
  opacity: 1;
}

.location__map-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: linear-gradient(145deg, rgba(10, 25, 47, 0.97) 0%, rgba(15, 33, 56, 0.98) 100%);
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.location__map-shell.is-ready .location__map-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.location__map-loader-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.location__map-loader-orbit {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--brand-sky);
  border-right-color: rgba(201, 169, 98, 0.5);
  animation: location-orbit 0.95s linear infinite;
}

@keyframes location-orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .location__map-loader-orbit {
    animation: none;
    border-top-color: var(--brand-sky);
    opacity: 0.6;
  }

  .location__iframe {
    opacity: 1;
  }

  .location__map-loader {
    display: none;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer__brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
}

.site-footer__tagline {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.site-footer__link {
  color: var(--brand-sky);
  text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* —— WhatsApp flotante —— */
.wa-float {
  position: fixed;
  z-index: 99;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.wa-float:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 3px;
}

.wa-float__icon {
  width: 1.85rem;
  height: 1.85rem;
}

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

  .wa-float:hover {
    transform: none;
  }
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.95s var(--ease-spring);
  filter: blur(6px);
}

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

.reveal--delay {
  transition-delay: 0.14s;
}

.reveal--left {
  transform: translateX(-40px);
  filter: blur(4px);
}

.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(40px);
  filter: blur(4px);
}

.reveal--right.is-visible {
  transform: translateX(0);
}

.reveal--rise {
  transform: translateY(48px) scale(0.97);
  filter: blur(4px);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    filter: none;
  }

  .reveal--left,
  .reveal--right,
  .reveal--rise {
    transform: none;
    filter: none;
  }
}
