/* ===========================================================
   BRUMA · Talent & Org Advisory — vanilla CSS
   =========================================================== */

:root {
  --cream: #F5F0E8;
  --cream-deep: #ECE4D6;
  --paper: #E8DFD3;
  --paper-deep: #DDD2C0;
  --terracotta: #5C1F23;
  --terracotta-deep: #3D1318;
  --terracotta-soft: #EDC266;
  --ink: #1C1C1C;
  --ink-soft: #2A2A2A;
  --line: rgba(28, 28, 28, 0.10);
  --line-soft: rgba(28, 28, 28, 0.08);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1320px;
  --shadow-card: 0 1px 0 rgba(28, 28, 28, 0.04);
  --shadow-hover: 0 18px 40px -20px rgba(28, 28, 28, 0.25);
  --shadow-img: 0 30px 80px -30px rgba(28, 28, 28, 0.5);
  --transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
}

img, svg { max-width: 100%; display: block; }
/* B&N por defecto en TODAS las imágenes — el hover sobre .media-frame las pasa a color */
img { filter: grayscale(100%); transition: filter 700ms cubic-bezier(0.22, 1, 0.36, 1); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--terracotta); color: var(--cream); }

/* Borders on terracotta references throughout */
.border-terracotta { border-color: var(--terracotta); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
}
p { color: rgba(28, 28, 28, 0.82); }
.italic { font-style: italic; }

/* ============== LAYOUT ============== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1280px) { .container { padding: 0 64px; } }

.section { padding: 80px 0; }
.section-lg { padding: 110px 0; }
@media (min-width: 768px) { .section { padding: 110px 0; } .section-lg { padding: 150px 0; } }

.bg-cream { background: var(--cream); }
.bg-paper { background: rgba(232, 223, 211, 0.55); }
.bg-paper-strong { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-terracotta { background: var(--terracotta); color: var(--cream); }

.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--cream); }
.bg-ink p { color: rgba(245, 240, 232, 0.75); }
.bg-terracotta h1, .bg-terracotta h2, .bg-terracotta h3, .bg-terracotta h4 { color: var(--cream); }
.bg-terracotta p { color: rgba(245, 240, 232, 0.85); }

/* ============== TYPE ============== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
}
.bg-ink .eyebrow, .bg-terracotta .eyebrow { color: var(--terracotta-soft); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  line-height: 1.6;
  color: rgba(28, 28, 28, 0.85);
  letter-spacing: -0.005em;
}
/* Cuando el lead es una cita italic, mantener la serif editorial */
.lead[style*="italic"] {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}
.bg-ink .lead, .bg-terracotta .lead { color: rgba(245, 240, 232, 0.85); }

.text-terracotta { color: var(--terracotta); }
.bg-ink .text-terracotta, .bg-terracotta .text-terracotta { color: var(--terracotta-soft); }

.num-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}
.bg-ink .num-display, .bg-terracotta .num-display { color: var(--terracotta-soft); }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  box-shadow: 0 8px 18px -8px rgba(92, 31, 35, 0.5);
}

/* Modificador opcional: botón con esquinas redondeadas suaves */
.btn-rounded {
  border-radius: 14px;
}

/* Botones del CTA inferior: stack vertical, mismo ancho */
.cta-image .actions,
.cta-image .actions-end {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.cta-image .actions .btn,
.cta-image .actions-end .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-on-dark {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn-on-dark:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline-light:hover {
  background: var(--cream);
  color: var(--ink);
}
/* Botón sin reacción al hover — mantiene siempre el estado base */
.btn.no-hover:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  cursor: pointer;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terracotta);
  transition: gap var(--transition), color var(--transition);
}
.link-arrow:hover { gap: 14px; color: var(--terracotta-deep); }
.bg-ink .link-arrow { color: var(--terracotta-soft); }
.bg-ink .link-arrow:hover { color: var(--cream); }

/* ============== MEDIA / IMAGES ============== */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition:
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.media-frame:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* Imágenes que deben mantenerse en B&N siempre (hero, fondos, marquee, oficinas) */
.media-static-bw img,
.media-static-bw:hover img {
  filter: grayscale(100%) !important;
}

/* ============== HERO SLIDER (carrusel imágenes/videos hero) ============== */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slider .slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slider .slide img,
.hero-slider .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1.12) translateX(-3.5%);
}
.hero-slider .slide.is-active img,
.hero-slider .slide.is-active video {
  animation: heroPan 9000ms linear forwards;
}
@keyframes heroPan {
  0%   { transform: scale(1.12) translateX(-3.5%); }
  100% { transform: scale(1.12) translateX(3.5%); }
}

/* Pagination dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0;
  background: transparent;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(245, 240, 232, 0.55);
  padding: 0;
  transition: background 300ms ease, transform 300ms ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.hero-dots button:hover {
  background: rgba(245, 240, 232, 0.85);
}
.hero-dots button.is-active {
  background: var(--terracotta-soft);
  transform: scale(1.55);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide { transition: none; }
  .hero-slider .slide.is-active img,
  .hero-slider .slide.is-active video { animation: none; }
}

/* Duotone treatment over images for editorial look */
.media-duotone {
  position: relative;
}
.media-duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(92, 31, 35, 0.28) 0%, rgba(28, 28, 28, 0.18) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media-warm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(28, 28, 28, 0.45) 100%);
  pointer-events: none;
}
.media-overlay-text {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream);
  z-index: 2;
}
.media-overlay-text .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta-soft);
}

.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-21-9 { aspect-ratio: 21 / 9; }
.ratio-3-2 { aspect-ratio: 3 / 2; }

/* Stamp on image */
.stamp {
  position: absolute;
  background: var(--terracotta);
  color: var(--cream);
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  z-index: 3;
}
.stamp-tr { top: -12px; right: -12px; }
.stamp-bl { bottom: -12px; left: -12px; }
.stamp-tl { top: 16px; left: 16px; }

/* ============== CARDS ============== */
.card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 31, 35, 0.3);
  box-shadow: var(--shadow-hover);
}
.card-paper { background: var(--paper); }
.card-body { padding: 28px; }
@media (min-width: 1024px) { .card-body { padding: 32px; } }

/* ============== GRIDS ============== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: 1fr; }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}
.gap-lg { gap: 40px; }
.gap-xl { gap: 64px; }
.gap-sm { gap: 12px; }

.col-span-3 { grid-column: span 12; }
.col-span-4 { grid-column: span 12; }
.col-span-5 { grid-column: span 12; }
.col-span-6 { grid-column: span 12; }
.col-span-7 { grid-column: span 12; }
.col-span-8 { grid-column: span 12; }
.col-span-12 { grid-column: span 12; }
@media (min-width: 1024px) {
  .col-span-3 { grid-column: span 3; }
  .col-span-4 { grid-column: span 4; }
  .col-span-5 { grid-column: span 5; }
  .col-span-6 { grid-column: span 6; }
  .col-span-7 { grid-column: span 7; }
  .col-span-8 { grid-column: span 8; }
}

/* ============== HEADER / NAV ============== */
/* IMPORTANTE: nada de backdrop-filter sobre .site-header. Esa propiedad lo
   convierte en containing block para descendientes con position:fixed, lo
   que colapsa el .mobile-menu al hacer scroll. Mantener fondo plano. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(28, 28, 28, 0.06);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
@media (min-width: 1024px) { .nav-row { height: 88px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
}
/* Logo SVG en la top bar — excluido del filtro grayscale global por ser parte de la identidad */
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
  filter: none !important;
}
@media (min-width: 1100px) {
  .brand-logo { height: 30px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 22px; }
}
.brand-tagline {
  display: none;
  font-family: var(--font-serif);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--terracotta);
}
@media (min-width: 1100px) {
  .brand-name { font-size: 30px; }
  .brand-tagline { display: inline; }
}

.main-nav {
  display: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
@media (min-width: 1024px) { .main-nav { display: flex; } }
@media (min-width: 1280px) { .main-nav { gap: 40px; } }

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding: 8px 0;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover, .nav-link.active { color: var(--terracotta); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link.active::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 12px;
  width: 380px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(28, 28, 28, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition);
  padding: 8px 0;
}
/* Puente transparente DENTRO del menú: hereda su pointer-events, así que
   solo cuando el menú está abierto el ratón puede cruzar el hueco sin
   perder el :hover. */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.has-dropdown > .nav-link svg { transition: transform var(--transition); }
.has-dropdown:hover > .nav-link svg,
.has-dropdown:focus-within > .nav-link svg { transform: rotate(180deg); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: rgba(28, 28, 28, 0.85);
  transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover {
  background: rgba(232, 223, 211, 0.6);
}
.dropdown-item .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--terracotta);
  font-size: 14px;
}
.dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.d-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
  transition: color var(--transition);
}
.d-desc {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(28, 28, 28, 0.55);
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.3;
  transition: color var(--transition);
}
.dropdown-item:hover .d-name { color: var(--terracotta); }
.dropdown-item:hover .d-desc { color: rgba(92, 31, 35, 0.6); }
.dropdown-item::after {
  content: '→';
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--terracotta);
  margin-left: 8px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.dropdown-item:hover::after { opacity: 1; transform: translateX(0); }
.dropdown-footer {
  border-top: 1px solid var(--line-soft);
  padding: 14px 24px;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terracotta);
}
.dropdown-footer:hover { background: rgba(232, 223, 211, 0.6); }

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

.burger {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 8px;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ink);
  transition: all var(--transition);
}
.burger span:nth-child(2) { width: 20px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 28px; }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 28px; }

.mobile-menu {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 40;
  display: flex;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.mobile-menu::before {
  content: '';
  flex: 0 0 20%;
  background: rgba(245, 240, 232, 0.2);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.mobile-menu.is-open { transform: translateX(0); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu > .container {
  flex: 1;
  background: var(--cream);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 28px;
  padding-bottom: 40px;
}
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  width: 100%;
  text-align: left;
}
.mobile-link:hover, .mobile-link:focus-visible { color: var(--terracotta); }
button.mobile-link {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.mobile-link-toggle .arrow {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--terracotta);
  width: 24px;
  text-align: center;
  transition: transform var(--transition);
}
/* Bloque "Servicios" en el menú móvil — siempre visible */
.mobile-services {
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0 12px;
}
.mobile-services-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0 10px;
}
.mobile-services-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  font-weight: 600;
}
.mobile-services-head .see-all {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(28, 28, 28, 0.55);
}
.mobile-services-head:hover .see-all { color: var(--terracotta); }
.mobile-sub {
  display: block;
}
.mobile-sub a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-sub a + a { border-top: 1px solid var(--line-soft); }
.mobile-sub a:hover, .mobile-sub a:focus-visible { color: var(--terracotta); }
.mobile-sub .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--terracotta);
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-sub .m-name { flex: 1; min-width: 0; }

/* ============== HERO ============== */
.hero {
  padding-top: 78px;
}
@media (min-width: 1024px) { .hero { padding-top: 88px; } }
.hero-inner {
  padding: 60px 0 80px;
}
@media (min-width: 768px) {
  .hero-inner { padding: 80px 0 110px; }
}

/* HERO with full-width image background */
.hero-image {
  position: relative;
  height: 86vh;
  min-height: 580px;
  max-height: 820px;
  overflow: hidden;
  color: var(--cream);
}
.hero-image .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image .bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,28,28,0.25) 0%, rgba(28,28,28,0.55) 60%, rgba(28,28,28,0.85) 100%),
    linear-gradient(135deg, rgba(92,31,35,0.18) 0%, transparent 50%);
}
.hero-image .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}
.hero-image h1 { color: var(--cream); }
.hero-image .lead { color: rgba(245, 240, 232, 0.88); }

/* HERO with side figure (image left or right) */
.hero-figure-wrap { position: relative; }
.hero-figure-wrap .accent {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 55%;
  border: 8px solid var(--cream);
  display: none;
  box-shadow: var(--shadow-img);
}
@media (min-width: 768px) { .hero-figure-wrap .accent { display: block; } }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin-top: 56px;
}
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  border-left: 1px solid rgba(92, 31, 35, 0.4);
  padding-left: 16px;
}
.trust-item .k {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}
.trust-item .v {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(28, 28, 28, 0.65);
}
.bg-ink .trust-item .k { color: var(--cream); }
.bg-ink .trust-item .v { color: rgba(245, 240, 232, 0.7); }

/* Breadcrumb */
.breadcrumb {
  border-bottom: 1px solid var(--line-soft);
  background: var(--cream);
  padding: 16px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(28, 28, 28, 0.55);
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb .sep { margin: 0 10px; }
.breadcrumb .current { color: var(--terracotta); }

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.service-card .media-frame { flex-shrink: 0; }
.service-card .head {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.service-card .body {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card .arrow {
  opacity: 0;
  color: var(--terracotta);
  transition: opacity var(--transition);
}
.service-card:hover .arrow { opacity: 1; }
.service-card h3 { margin-top: 18px; font-size: 22px; line-height: 1.25; }
.service-card p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: rgba(28, 28, 28, 0.72); flex: 1; }
.service-card .footer-row {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.service-card .footer-row .more { color: var(--terracotta); }
.service-card .footer-row .idx { color: rgba(28, 28, 28, 0.45); }

/* Services tile (the dark CTA tile) */
.services-tile-dark {
  background: var(--ink);
  color: var(--cream);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}
.services-tile-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(92, 31, 35, 0.35), transparent 50%);
  opacity: 0.6;
}
.services-tile-dark > * { position: relative; z-index: 1; }
.services-tile-dark:hover { background: var(--terracotta); }
.services-tile-dark .eyebrow { color: var(--terracotta-soft); transition: color var(--transition); }
.services-tile-dark:hover .eyebrow { color: var(--cream); }
.services-tile-dark h3 { color: var(--cream); margin-top: 18px; font-size: 24px; line-height: 1.25; }
.services-tile-dark p { color: rgba(245, 240, 232, 0.75); font-size: 14.5px; margin-top: 14px; }
.services-tile-dark .end {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* About / principles */
.principles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
}
@media (min-width: 640px) { .principles-list { grid-template-columns: repeat(2, 1fr); } }
.principles-list li { display: flex; gap: 12px; }
.principles-list .dot {
  margin-top: 8px;
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  flex-shrink: 0;
}
.principles-list h4 { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink); }
.principles-list p { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: rgba(28, 28, 28, 0.65); }

/* Method step */
.method-step {
  border: 1px solid rgba(245, 240, 232, 0.15);
  background: var(--ink);
  padding: 28px;
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(0);
}
.method-step:hover {
  background: var(--ink-soft);
  border-color: rgba(245, 240, 232, 0.32);
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.7);
}
.method-step:hover .num { color: var(--terracotta-soft); }
.method-step .num { font-size: 60px; }
.method-step h3 { color: var(--cream); margin-top: 20px; font-size: 22px; }
.method-step .sub { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: rgba(245, 240, 232, 0.7); margin-top: 12px; }
.method-step p { margin-top: 18px; font-size: 14px; line-height: 1.6; color: rgba(245, 240, 232, 0.65); }

/* Quote */
.quote-block {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.quote-block .open {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: var(--terracotta);
}
@media (min-width: 768px) { .quote-block .open { font-size: 144px; } }
.quote-block p {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.3;
  margin-top: -28px;
  color: var(--ink);
}
@media (min-width: 768px) { .quote-block p { font-size: 44px; line-height: 1.18; } }
.quote-block .src {
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
}
.bg-ink .quote-block p { color: var(--cream); }
.bg-ink .quote-block .src { color: var(--terracotta-soft); }

/* Quote with image background */
.quote-image {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: var(--cream);
}
.quote-image .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.quote-image .bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-image .bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,28,28,0.55) 0%, rgba(28,28,28,0.85) 100%),
              radial-gradient(circle at 50% 50%, rgba(92,31,35,0.2), transparent 60%);
}
.quote-image .container { position: relative; z-index: 2; }
.quote-image .quote-block .open { color: var(--terracotta-soft); }
.quote-image .quote-block p { color: var(--cream); }
.quote-image .quote-block .src { color: var(--terracotta-soft); }

/* Testimonial card */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
@media (min-width: 1024px) { .testimonial-grid { grid-template-columns: 5fr 7fr; } }
.testimonial-img { min-height: 400px; }
.testimonial-img .media-frame { height: 100%; }
.testimonial-card {
  background: var(--paper);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .testimonial-card { padding: 64px; } }
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}
@media (min-width: 768px) { .testimonial-card blockquote { font-size: 32px; line-height: 1.3; } }
.testimonial-card .who {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-card .who-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.testimonial-card .who-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(28, 28, 28, 0.65);
}

/* CTA banner inside section */
.cta-banner {
  background: var(--paper);
  padding: 40px 28px;
}
@media (min-width: 768px) { .cta-banner { padding: 64px; } }
.cta-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) { .cta-banner-grid { grid-template-columns: 2fr 1fr; gap: 40px; } }
.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) { .cta-banner-actions { align-items: flex-end; } }

/* CTA full-image banner */
.cta-image {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  padding: 100px 0;
}
.cta-image .bg { position: absolute; inset: 0; z-index: 0; }
.cta-image .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-image .bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(92,31,35,0.7) 0%, rgba(110,44,44,0.9) 100%);
  mix-blend-mode: multiply;
}
.cta-image .container { position: relative; z-index: 2; }
.cta-image h2, .cta-image .lead { color: var(--cream); }

/* Differentiator card */
.diff-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  padding: 24px;
}
.diff-card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}
.diff-card p {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}

/* Trigger card */
.trigger-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  padding: 24px;
}
.trigger-card .head { display: flex; align-items: baseline; justify-content: space-between; }
.trigger-card .num { font-size: 28px; }
.trigger-card .line { width: 40px; height: 1px; background: var(--terracotta); }
.trigger-card p { margin-top: 18px; font-size: 15.5px; line-height: 1.6; color: rgba(28, 28, 28, 0.82); }

/* Outcome banner */
.outcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) { .outcome-grid { grid-template-columns: 5fr 7fr; gap: 40px; } }
.outcome-fig {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(80px, 14vw, 160px);
  line-height: 1;
  color: var(--cream);
}

/* Phase artifact */
.artifact-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.artifact {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--cream);
  border-left: 2px solid rgba(92, 31, 35, 0.6);
}
.artifact .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  color: var(--terracotta);
  font-size: 18px;
  flex-shrink: 0;
}
.artifact .txt { font-size: 15px; line-height: 1.55; color: rgba(28, 28, 28, 0.82); }

/* Forms */
.form-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  padding: 28px;
}
@media (min-width: 768px) { .form-card { padding: 48px; } }
.form-block-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
}
.field { display: block; }
.field-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(28, 28, 28, 0.7);
}
.field-input,
.field-textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid rgba(28, 28, 28, 0.15);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  transition: border var(--transition), box-shadow var(--transition);
}
.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: inset 0 0 0 1px var(--terracotta);
}
.field-textarea { resize: none; min-height: 140px; }
/* Estado invalido: solo se muestra cuando el usuario ya ha tocado el campo */
.field-input:not(:placeholder-shown):invalid,
.field-textarea:not(:placeholder-shown):invalid,
.field-input:user-invalid,
.field-textarea:user-invalid {
  border-color: rgba(163, 60, 60, 0.5);
  box-shadow: inset 0 0 0 1px rgba(163, 60, 60, 0.35);
}

.chip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 640px) { .chip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .chip-grid { grid-template-columns: repeat(3, 1fr); } }
.chip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(28, 28, 28, 0.15);
  background: var(--cream);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  width: 100%;
}
.chip-card:hover { border-color: rgba(28, 28, 28, 0.4); }
.chip-card.is-active {
  border-color: var(--terracotta);
  color: var(--terracotta);
  box-shadow: 0 0 0 2px rgba(92, 31, 35, 0.15);
}
.chip-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  color: rgba(28, 28, 28, 0.45);
}
.chip-card.is-active .num { color: var(--terracotta); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.chip-row button {
  border: 1px solid rgba(28, 28, 28, 0.15);
  background: var(--cream);
  color: rgba(28, 28, 28, 0.72);
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: all var(--transition);
}
.chip-row button:hover { border-color: rgba(28, 28, 28, 0.4); }
.chip-row button.is-active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  margin-top: 32px;
}
.form-footer p { max-width: 460px; font-size: 13px; line-height: 1.45; color: rgba(28, 28, 28, 0.55); }
.form-divider { height: 1px; background: var(--line-soft); margin: 32px 0; }

.form-success {
  text-align: center;
  padding: 64px 24px;
}

/* Info side cards */
.info-card { padding: 28px; }
.info-card .label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
}
.info-card .big {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}
.info-card .sub { margin-top: 6px; font-size: 14px; color: rgba(28, 28, 28, 0.65); }

/* Fact card */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(245, 240, 232, 0.15);
}
.fact-grid > li {
  background: var(--ink);
  padding: 32px;
}
@media (min-width: 768px) { .fact-grid > li { padding: 40px; } }
.fact-grid .idx {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta-soft);
}
.fact-grid .fig-num {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  color: var(--terracotta-soft);
}
.bg-ink .fact-grid .fig-num, .bg-terracotta .fact-grid .fig-num { color: var(--terracotta-soft); }
/* Salvaguarda global: cualquier diff-num o num-display sobre fondo oscuro usa la versión dorada */
.bg-ink .diff-num, .bg-terracotta .diff-num,
.bg-ink .num-display, .bg-terracotta .num-display { color: var(--terracotta-soft); }
.fact-grid .lab {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(245, 240, 232, 0.8);
}

/* Prev/Next navigation */
.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.prevnext a {
  display: block;
  padding: 32px 24px;
  background: var(--cream);
  transition: background var(--transition);
}
.prevnext a:hover { background: var(--paper); }
.prevnext .lab {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(28, 28, 28, 0.55);
}
.prevnext .ttl {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  transition: color var(--transition);
}
.prevnext a:hover .ttl { color: var(--terracotta); }
.prevnext .right { text-align: right; }

/* Marquee — full-bleed image strip */
.image-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (min-width: 768px) { .image-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .image-strip { grid-template-columns: repeat(6, 1fr); } }

/* Locations */
.location-card { position: relative; overflow: hidden; }
.location-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(28,28,28,0.85));
  color: var(--cream);
  z-index: 2;
}
.location-card .label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta-soft);
}
.location-card .name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  color: var(--cream);
}
.location-card .addr {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(245, 240, 232, 0.85);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 24px;
}
@media (min-width: 768px) { .site-footer { padding-top: 80px; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1.2fr 1fr 1.2fr;
    gap: 40px;
  }
}
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cream);
}
.footer-brand .tag {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--terracotta-soft);
}
.footer-brand p {
  margin-top: 24px;
  max-width: 320px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.7);
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta-soft);
}
.footer-col ul { margin-top: 20px; display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; color: rgba(245, 240, 232, 0.75); transition: color var(--transition); }
.footer-col a:hover { color: var(--terracotta-soft); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-bottom p { font-size: 12px; color: rgba(245, 240, 232, 0.55); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-legal a { font-size: 12px; color: rgba(245, 240, 232, 0.55); }
.footer-legal a:hover { color: var(--terracotta-soft); }

/* Utility helpers */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-14 { margin-top: 56px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.actions-end { justify-content: flex-end; }
.divider { height: 1px; background: var(--line-soft); width: 100%; }
.divider-tiny { height: 1px; background: var(--terracotta); width: 40px; }

.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: initial; } }

/* Hero figures stacked */
.figure-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.figure-stack > .full { grid-column: span 2; }

/* Phases alternating spread */
.phase-spread { padding: 80px 0; }
@media (min-width: 768px) { .phase-spread { padding: 110px 0; } }
.phase-spread .grid { align-items: center; gap: 48px; }
@media (min-width: 1024px) { .phase-spread .grid { gap: 64px; } }
.phase-spread.flip .img-col { order: 2; }
@media (max-width: 1023px) { .phase-spread.flip .img-col { order: 0; } }

/* Why us list */
.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
.why-list li {
  border-left: 2px solid var(--terracotta);
  padding-left: 20px;
}
.why-list h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cream);
}
.why-list p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: rgba(245, 240, 232, 0.72); }

/* Anchors offset for fixed nav */
:target { scroll-margin-top: 100px; }

/* ============== LEGAL PAGES (prose) ============== */
.legal-prose { font-family: var(--font-sans); color: var(--ink); }
.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-prose p,
.legal-prose ul,
.legal-prose ol {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(28, 28, 28, 0.84);
  margin-bottom: 14px;
}
.legal-prose ul, .legal-prose ol { padding-left: 22px; }
.legal-prose li { margin-bottom: 8px; }
.legal-prose a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose a:hover { color: var(--terracotta-deep); }
.legal-prose strong { color: var(--ink); font-weight: 600; }

/* ============== COOKIE BANNER ============== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  padding: 22px 26px;
  border-radius: 8px;
  box-shadow: 0 18px 50px -10px rgba(0,0,0,0.4);
  display: none;
  font-family: var(--font-sans);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--cream);
}
.cookie-banner p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 14px;
}
.cookie-banner p a { color: var(--terracotta-soft); text-decoration: underline; }
.cookie-banner .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid rgba(245, 240, 232, 0.3);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: all var(--transition);
}
.cookie-banner button:hover { background: rgba(245, 240, 232, 0.12); }
.cookie-banner button.primary {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.cookie-banner button.primary:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
@media (max-width: 600px) {
  .cookie-banner { padding: 18px 20px; }
  .cookie-banner button { flex: 1; min-width: 100px; }
}

/* Form consent checkbox */
.field-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(28, 28, 28, 0.75);
  margin-top: 14px;
}
.field-consent input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--terracotta);
}
.field-consent a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

/* ============== Otros servicios — carrusel spotlight (centro grande) ============== */
.related-services { background: var(--paper); }
.related-carousel { display: flex; flex-direction: column; }
.related-carousel .related-stage { order: 1; }
.related-carousel .related-controls { order: 2; }
.related-carousel .related-dots { display: none; }
.related-stage {
  position: relative;
  height: 480px;
  margin: 0 auto;
  max-width: 1100px;
}
.related-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 600ms ease,
    filter 600ms ease,
    box-shadow 320ms ease,
    border-color 240ms ease;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  filter: saturate(0.65);
  z-index: 0;
  pointer-events: none;
}
.related-card .card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
}
.related-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.related-card .card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.related-card .card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.related-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.related-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(28, 28, 28, 0.7);
  margin: 0 0 20px;
  flex: 1;
}
.related-card .link-arrow {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 240ms ease, gap 240ms ease;
}
.related-card .link-arrow:hover { color: var(--terracotta); gap: 12px; }

.related-card.slot-center {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: grayscale(35%);
  z-index: 3;
  pointer-events: auto;
  box-shadow: 0 28px 60px -28px rgba(28, 28, 28, 0.32);
}
.related-card.slot-left {
  transform: translate(calc(-50% - 290px), -50%) scale(0.86);
  opacity: 0.55;
  filter: grayscale(75%);
  z-index: 1;
  pointer-events: auto;
}
.related-card.slot-right {
  transform: translate(calc(-50% + 290px), -50%) scale(0.86);
  opacity: 0.55;
  filter: grayscale(75%);
  z-index: 1;
  pointer-events: auto;
}
.related-card.slot-far {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  z-index: 0;
}
.related-card.slot-center:hover,
.related-card.slot-left:hover,
.related-card.slot-right:hover {
  filter: grayscale(0%) saturate(1);
  opacity: 1;
  border-color: var(--terracotta);
}
.related-card.slot-center:hover {
  box-shadow: 0 32px 70px -28px rgba(28, 28, 28, 0.4);
}
.related-card.slot-center:hover .card-media img,
.related-card.slot-left:hover .card-media img,
.related-card.slot-right:hover .card-media img {
  transform: scale(1.04);
}

.related-controls {
  position: static;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  z-index: 5;
}
.related-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  font-family: var(--font-display);
  transition: all 220ms ease;
}
.related-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
}
.related-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.related-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.18);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 240ms ease, transform 240ms ease;
}
.related-dot:hover { background: rgba(28, 28, 28, 0.4); }
.related-dot.is-active { background: var(--terracotta); transform: scale(1.2); }

@media (max-width: 1023px) {
  .related-card { width: 320px; }
  .related-card.slot-left { transform: translate(calc(-50% - 240px), -50%) scale(0.84); }
  .related-card.slot-right { transform: translate(calc(-50% + 240px), -50%) scale(0.84); }
  .related-stage { height: 460px; }
}
@media (max-width: 720px) {
  .related-card { width: 88%; max-width: 360px; }
  .related-card.slot-left,
  .related-card.slot-right { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  .related-stage { height: 480px; }
  .related-controls { margin-top: 24px; }
}

/* ============== SERVICE LOGOS ============== */
/* Logos que sustituyen los números 01–05 cuando el span se asocia a un servicio.
   La inyección se hace en assets/script.js; aquí solo controlamos el sizing por contexto. */
.has-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.has-service-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
/* Dropdown de la top bar — icono compacto */
.dropdown-item .num.has-service-icon {
  font-size: 18px;
  width: 22px;
  height: 22px;
  color: var(--terracotta);
  opacity: 0.85;
}
.dropdown-item:hover .num.has-service-icon { opacity: 1; }
/* Tarjetas de servicio (servicios.html, index.html) — icono grande, tamaño desde inline style */
.service-card .num-display.has-service-icon {
  display: inline-flex;
  line-height: 0;
}
/* Chips del formulario de propuesta */
.chip-card .num.has-service-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: rgba(28, 28, 28, 0.45);
  margin-right: 4px;
}
.chip-card.is-active .num.has-service-icon { color: var(--terracotta); }
/* Carrusel “Otros servicios” en páginas de detalle */
.related-card .card-num.has-service-icon {
  font-size: 32px;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--terracotta);
}
/* Sub-menú móvil */
.mobile-sub .num.has-service-icon {
  font-size: 20px;
  width: 24px;
  height: 24px;
  color: var(--terracotta);
}

/* ============== RESPONSIVE POLISH (móvil + tablet) ============== */
/* Evitar overflow horizontal global */
html, body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* Móvil pequeño / landscape — hero más compacto */
@media (max-width: 640px) {
  .hero-image { height: 78vh; min-height: 480px; max-height: 720px; }
  .hero-image .container { padding-bottom: 56px; }
  .display-xl { font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1.06; }
  .display-lg { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  .display-md { font-size: clamp(1.35rem, 5.5vw, 1.8rem); }
  .lead { font-size: clamp(0.98rem, 4.2vw, 1.18rem); }
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .container { padding: 0 20px; }
  /* Botones a ancho completo en móvil cuando van apilados */
  .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .actions .btn { width: 100%; }
  .actions-end { align-items: stretch; }
  /* Form footer apilado */
  .form-footer { flex-direction: column; align-items: stretch; }
  /* Trust strip — 2 columnas con borde más fino */
  .trust-item { padding-left: 12px; }
  .trust-item .k { font-size: 22px; }
  /* CTA grande en imagen — apilar */
  .cta-image { padding: 64px 0; }
  /* Numeración decorativa en cards más contenida */
  .num-display { font-size: 32px !important; }
  .method-step .num { font-size: 44px; }
  /* Tarjetas: padding bajo y reducir gap entre cards */
  .grid { gap: 20px; }
  .gap-lg, .gap-xl { gap: 24px; }
  /* Footer apilado y centrado a la izquierda */
  .footer-grid { gap: 32px; }
  /* Testimonio: imagen y texto apilados */
  .testimonial-card { padding: 40px 24px; }
  /* Carrusel "Otros servicios" — botones bajo el stage */
  .related-controls { gap: 12px; }
  /* Cookie banner ocupa todo el ancho con padding cómodo */
  .cookie-banner { padding: 20px; }
}

/* Tablet (640–1023) — afinados puntuales */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-image { height: 72vh; min-height: 520px; }
  .display-xl { font-size: clamp(2.6rem, 6.5vw, 4rem); }
  .display-lg { font-size: clamp(2rem, 5vw, 2.8rem); }
  .container { padding: 0 32px; }
  /* Brand name más prominente en tablet */
  .brand-name { font-size: 28px; }
  /* Form card: padding intermedio */
  .form-card { padding: 36px; }
  /* Trust strip 4 columnas más juntas */
  .trust-strip { gap: 16px 20px; }
  /* Carrusel "Otros servicios" — los tres slots visibles más cerca */
  .related-card.slot-left { transform: translate(calc(-50% - 220px), -50%) scale(0.82); }
  .related-card.slot-right { transform: translate(calc(-50% + 220px), -50%) scale(0.82); }
}

/* Tap targets accesibles en móvil */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-link, .mobile-link, .mobile-sub a { min-height: 44px; }
  /* Quitar hover-effects que se quedan stuck en touch */
  .card-hover:hover { transform: none; }
}

/* ============== FORM GRID — 1 col móvil, 2 col desktop ============== */
/* Sustituye los grids inline en contacto/propuesta para que en móvil los
   campos no queden a la mitad de ancho. Los campos con style="grid-column: span 2"
   siguen funcionando: en móvil el grid es 1 col y "span 2" se reduce a span 1. */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ============== TABLAS LEGALES — scroll horizontal en móvil ============== */
.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
  border: 1px solid var(--line-soft);
}
.legal-table-wrap .legal-table { min-width: 560px; margin-top: 0; border: 0; }
.legal-table-wrap .legal-table th,
.legal-table-wrap .legal-table td { white-space: normal; }

/* ============== MÓVIL EXTRA-SMALL (≤ 480px) — afinados finales ============== */
@media (max-width: 480px) {
  /* Container con padding mínimo cómodo */
  .container { padding: 0 18px; }
  /* Header más bajo para ganar pantalla */
  .nav-row { height: 68px; }
  .mobile-menu { top: 68px; }
  .hero { padding-top: 68px; }
  .brand-name { font-size: 22px; }
  /* Enlaces del mobile menu — un punto menos para que respiren */
  .mobile-link { font-size: 22px; padding: 16px 0; }
  .mobile-sub a { font-size: 17px; padding: 10px 0; }
  /* Coordenadas / fact-grid — 1 columna para evitar contenido apelmazado */
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid > li { padding: 28px 24px; }
  .fact-grid .fig-num { font-size: 40px; }
  /* Diff list — columna del número más estrecha y menor padding */
  .diff-list > li { grid-template-columns: 56px 1fr; gap: 14px 18px; padding: 24px 0; }
  .diff-list .diff-num { font-size: 44px; }
  /* Service selector — número y logo más contenidos */
  .service-row { padding: 28px 0; gap: 18px; }
  .service-row .row-num { font-size: 40px; margin-bottom: 10px; }
  .service-row .row-icon { width: 38px; height: 38px; font-size: 38px; margin-bottom: 10px; }
  .service-row .row-body h3 { font-size: 1.35rem; }
  .service-row .row-prompt { font-size: 1.02rem; }
  /* Phase artifact list — más compacto */
  .artifact { padding: 12px 14px; }
  .artifact .num { font-size: 16px; }
  .artifact .txt { font-size: 14px; }
  /* CTA banner con padding menor */
  .cta-banner { padding: 32px 24px; }
  .cta-banner-actions { align-items: stretch; }
  .cta-banner-actions .btn { width: 100%; }
  /* Form card con menos padding lateral */
  .form-card { padding: 22px 18px; }
  /* Form footer botón a ancho completo */
  .form-footer .btn { width: 100%; }
  /* Info cards más bajas */
  .info-card { padding: 22px; }
  /* Hero image — padding inferior más ajustado */
  .hero-image .container { padding-bottom: 44px; }
  /* Breadcrumb evita overflow horizontal con wrap */
  .breadcrumb .container { flex-wrap: wrap; row-gap: 4px; }
  /* Cookie banner con altura cómoda */
  .cookie-banner { bottom: 12px; left: 12px; right: 12px; }
  /* Carrusel "Otros servicios" — controles más pequeños */
  .related-btn { width: 44px; height: 44px; font-size: 18px; }
}

/* Evitar que el contenido se pegue al borde inferior del viewport en hero
   muy alto en móvil sin tocar la composición editorial */
@media (max-width: 640px) and (orientation: portrait) {
  .hero-image { min-height: 440px; }
}

/* ============== HERO ROTATING GOLD WORD ============== */
.hero-gold {
  display: inline-block;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-gold.is-fading { opacity: 0; }

/* ============== SERVICE CARD TITLES — bold pero más contenido ============== */
.service-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* Asegurar contraste alto del lead dentro del cta-banner (paper bg) */
.cta-banner .lead { color: rgba(28, 28, 28, 0.88); }
.cta-banner p { color: rgba(28, 28, 28, 0.82); }

/* ============== SERVICE SELECTOR — lista editorial en /servicios.html ============== */
.service-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    padding: 56px 0;
  }
}
.service-row .row-img { display: block; overflow: hidden; }
.service-row .row-img .media-frame img {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.service-row .row-img:hover .media-frame img {
  transform: scale(1.04);
  filter: grayscale(0%);
}
.service-row .row-body { display: flex; flex-direction: column; gap: 0; }
/* Variante alternada: imagen a la derecha, texto a la izquierda (filas 02 y 04).
   Invertimos también la proporción del grid para que la imagen ocupe la
   columna estrecha (5fr) — si solo invertimos el order, la imagen acabaría
   en la columna ancha y se vería más grande que en las filas no-flip. */
@media (min-width: 768px) {
  .service-row.flip { grid-template-columns: 7fr 5fr; }
  .service-row.flip .row-img { order: 2; }
  .service-row.flip .row-body { order: 1; }
}
/* Logo del servicio — se inyecta encima del número italic, manteniendo la marca tipográfica */
.service-row .row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 44px;
  color: var(--terracotta);
  line-height: 0;
  margin-bottom: 14px;
}
.service-row .row-icon:not(.has-service-icon) {
  /* Si JS no inyecta el SVG, el span se oculta para no duplicar el "01" del row-num */
  display: none;
}
@media (min-width: 768px) {
  .service-row .row-icon { width: 52px; height: 52px; font-size: 52px; margin-bottom: 18px; }
}
.service-row .row-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.service-row .row-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 14px;
}
.service-row .row-prompt {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  color: var(--terracotta);
  margin: 0 0 14px;
}
.service-row .row-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(28, 28, 28, 0.76);
  max-width: 640px;
  margin: 0 0 22px;
}
.service-row .link-arrow { align-self: flex-start; }
@media (min-width: 768px) {
  .service-row .row-num { font-size: 56px; margin-bottom: 18px; }
}

/* ============== DIFFERENTIATORS — lista editorial con hairlines ============== */
.diff-list {
  border-top: 1px solid var(--line-soft);
}
.diff-list > li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.diff-list .diff-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--terracotta);
}
.diff-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.diff-list p {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(28, 28, 28, 0.78);
  max-width: 680px;
  margin: 0;
}
@media (min-width: 768px) {
  .diff-list > li { grid-template-columns: 110px 1fr; padding: 40px 0; }
  .diff-list .diff-num { font-size: 72px; }
}
