/* ==========================================================================
   NORTHBOUND BROTHERS — Production Design System v3
   Editorial · Artisanal · Warm · Contemporary · WCAG AA Compliant
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   0. SELF-HOSTED TYPOGRAPHY (@font-face)
   ────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS (CSS Custom Properties)
   ────────────────────────────────────────────────────────────────────────── */
:root {
  /* Color Palette — Warm Cream, Terracotta & Deep Espresso Black */
  --cream:          #F5EEDD;
  --cream-light:    #FEFAF1;
  --cream-dim:      #EDE5D2;
  --terra:          #C15C3B;
  --terra-text:     #9E4325; /* WCAG AA >= 5.2:1 contrast on --cream for small text */
  --terra-dark:     #A3492C;
  --terra-hover:    #86381F;
  --terra-tint:     rgba(193, 92, 59, 0.06);
  --terra-border:   rgba(193, 92, 59, 0.20);
  --black:          #241E18;
  --black-80:       rgba(36, 30, 24, 0.82);
  --black-70:       rgba(36, 30, 24, 0.74);
  --black-55:       rgba(36, 30, 24, 0.62); /* WCAG AA >= 4.6:1 contrast on --cream */
  --black-12:       rgba(36, 30, 24, 0.12);
  --black-06:       rgba(36, 30, 24, 0.06);
  --error-red:      #B83227;
  --error-tint:     rgba(184, 50, 39, 0.07);

  /* Typography */
  --serif:          'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing System */
  --space-2xs:      0.375rem;
  --space-xs:       0.625rem;
  --space-sm:       1rem;
  --space-md:       1.5rem;
  --space-lg:       2.5rem;
  --space-xl:       4rem;
  --space-2xl:      6rem;

  /* Layout & Dimensions */
  --max-w:          1240px;
  --header-h:       74px;
  --gutter:         clamp(20px, 4.5vw, 52px);

  /* Border Radius & Shadows */
  --radius-sm:      3px;
  --radius-md:      6px;
  --pill:           9999px;
  --shadow-sm:      0 4px 16px rgba(36, 30, 24, 0.06);
  --shadow-md:      0 12px 36px rgba(36, 30, 24, 0.12);
  --shadow-modal:   0 24px 64px rgba(36, 30, 24, 0.34);

  /* Motion & Transitions */
  --ease:           cubic-bezier(0.16, 1, 0.3, 1);
  --fast:           0.2s var(--ease);
  --normal:         0.4s var(--ease);
  --slow:           0.7s var(--ease);
}

/* ──────────────────────────────────────────────────────────────────────────
   2. MODERN RESET & BASE
   ────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--cream);
  color: var(--black);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('assets/constellation-pattern.svg');
  background-repeat: repeat;
  background-size: 760px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Honeypot field hidden from human users */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. ACCESSIBILITY & FOCUS STATES
   ────────────────────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--black);
  color: var(--cream);
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--fast);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 14px;
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

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

/* ──────────────────────────────────────────────────────────────────────────
   4. READING PROGRESS BAR
   ────────────────────────────────────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 600;
  background: transparent;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--terra-dark);
  transition: width 0.1s linear;
}

/* ──────────────────────────────────────────────────────────────────────────
   5. EDITORIAL TYPOGRAPHY SYSTEM
   ────────────────────────────────────────────────────────────────────────── */
.label-upper {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-text);
  margin-bottom: 0.9rem;
}

.label-upper-cream {
  color: var(--cream);
  opacity: 0.9;
}

.modal-eyebrow {
  margin-bottom: 0.35rem;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 1rem;
  max-width: 22ch;
}

.section-lead {
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  color: var(--black-70);
  max-width: 600px;
  line-height: 1.68;
}

/* ──────────────────────────────────────────────────────────────────────────
   6. BUTTONS & INTERACTIVE LINKS
   ────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--pill);
  transition: background-color var(--normal), color var(--normal), border-color var(--normal), transform var(--fast), box-shadow var(--normal);
  white-space: nowrap;
  position: relative;
  text-align: center;
}

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

.btn-dark-pill {
  background: var(--terra-dark);
  color: var(--cream-light);
  border: 1.5px solid var(--terra-dark);
}

.btn-dark-pill:hover {
  background: var(--terra-hover);
  border-color: var(--terra-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(163, 73, 44, 0.22);
}

.btn-dark-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline-pill {
  border: 1.5px solid var(--terra-dark);
  color: var(--black);
  background: transparent;
}

.btn-outline-pill:hover {
  background: var(--terra-dark);
  color: var(--cream-light);
  transform: translateY(-1px);
}

.btn-cream-pill {
  background: var(--cream-light);
  color: var(--terra-dark);
  border: 1.5px solid var(--cream-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.95rem 2.3rem;
  font-size: 0.92rem;
}

.btn-cream-pill:hover {
  background: #ffffff;
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(36, 30, 24, 0.22);
}

/* ──────────────────────────────────────────────────────────────────────────
   7. HEADER & NAVBAR
   ────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(245, 238, 221, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--black-06);
  z-index: 500;
  transition: box-shadow var(--normal), border-color var(--normal);
}

.site-header.is-scrolled {
  border-bottom-color: var(--black-12);
  box-shadow: 0 4px 24px rgba(36, 30, 24, 0.05);
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--black);
  flex-shrink: 0;
}

.header-brand-symbol {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform var(--normal);
}

.header-brand:hover .header-brand-symbol {
  transform: rotate(15deg);
}

.header-brand-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.55vw, 1.85rem);
}

.header-nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--black-70);
  position: relative;
  padding: 6px 0 4px;
  transition: color var(--fast);
  white-space: nowrap;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terra-dark);
  transition: width var(--fast);
}

.header-nav-link:hover {
  color: var(--black);
}

.header-nav-link:hover::after,
.header-nav-link.active::after {
  width: 100%;
}

.header-nav-link.active {
  color: var(--black);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta {
  padding: 0.58rem 1.25rem;
  min-height: 38px;
  font-size: 0.78rem;
}

/* Mobile Menu Hamburger Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.menu-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform var(--normal), opacity var(--fast);
  transform-origin: center;
}

.mobile-menu-btn[aria-expanded="true"] .menu-bar-top {
  transform: translateY(3.75px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .menu-bar-bottom {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ──────────────────────────────────────────────────────────────────────────
   8. MOBILE DRAWER
   ────────────────────────────────────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(36, 30, 24, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--normal), visibility var(--normal);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100%;
  background: var(--cream);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -8px 0 32px rgba(36, 30, 24, 0.18);
  transform: translateX(100%);
  transition: transform var(--normal);
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--black-12);
}

.mobile-close-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--black);
  border-radius: var(--radius-sm);
}

.mobile-nav {
  margin: 20px 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-link {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 6px 0;
  transition: color var(--fast), transform var(--fast);
}

.mobile-nav-link span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--terra-text);
  min-width: 20px;
}

.mobile-nav-link:hover {
  color: var(--terra-dark);
  transform: translateX(4px);
}

.mobile-drawer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 18px;
  border-top: 1px solid var(--black-12);
}

.mobile-drawer-cta {
  width: 100%;
}

.mobile-drawer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.mobile-drawer-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--terra-text);
}

.mobile-drawer-ig {
  font-size: 0.82rem;
  color: var(--black-70);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ──────────────────────────────────────────────────────────────────────────
   9. 01 — HERO SECTION
   ────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.hero-content {
  max-width: 650px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.85s var(--ease) 0.1s forwards;
}

.hero-symbol-area {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  width: clamp(340px, 42vw, 540px);
  aspect-ratio: 1;
  z-index: 1;
  opacity: 0;
  animation: fadeScale 1.05s var(--ease) 0.2s forwards;
  pointer-events: none;
}

.hero-symbol {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spinSlow 34s linear infinite;
  filter: drop-shadow(0 10px 28px rgba(193, 92, 59, 0.09));
}

.hero-symbol-orbit {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed var(--terra-border);
  opacity: 0.6;
}

.hero-symbol-coord {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-text);
  white-space: nowrap;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black-70);
  margin-bottom: 1.75rem;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra-dark);
  flex-shrink: 0;
}

.hero-eyebrow-sep {
  color: var(--black-55);
  margin: 0 2px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6.8vw, 5.8rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--black);
  margin-bottom: 1.6rem;
}

.hero-title-line {
  display: block;
}

.hero-title-italic {
  font-style: italic;
  font-weight: 300;
  color: var(--terra-dark);
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  font-weight: 400;
  color: var(--black-80);
  max-width: 560px;
  line-height: 1.68;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.hero-cta-main {
  padding: 0.92rem 2.2rem;
  font-size: 0.88rem;
}

.hero-reel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.82rem 1.35rem;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--black);
  border-radius: var(--pill);
  background: var(--terra-tint);
  border: 1px solid var(--terra-border);
  transition: all var(--fast);
}

.hero-reel-btn:hover {
  background: rgba(193, 92, 59, 0.14);
  border-color: var(--terra-dark);
  color: var(--terra-dark);
}

.hero-reel-arrow {
  display: inline-block;
  animation: bounceDown 2.2s ease-in-out infinite;
}

.hero-credentials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--black-12);
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.94rem;
  color: var(--terra-text);
}

.hero-cred-sep {
  color: var(--black-55);
}

.hero-cred-item {
  font-size: 0.8rem;
  color: var(--black-70);
}

.hero-scroll-hint {
  position: absolute;
  bottom: clamp(20px, 2.5vw, 34px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.9s forwards;
}

.hero-scroll-text {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black-55);
}

.hero-scroll-line {
  width: 1px;
  height: 30px;
  background: var(--terra-border);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────────────────────────────
   10. COMMON SECTION CONTAINERS
   ────────────────────────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 8.5vw, 124px) 0;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-header {
  margin-bottom: clamp(44px, 5vw, 68px);
}

/* ──────────────────────────────────────────────────────────────────────────
   11. 02 — QUÉ HACEMOS
   ────────────────────────────────────────────────────────────────────────── */
#que-hacemos {
  border-top: 1px solid var(--black-12);
}

.what-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}

.what-heading {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 3.15rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--black);
}

.what-body {
  padding-top: 0.35rem;
}

.what-text {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  color: var(--black-70);
  line-height: 1.72;
  margin-bottom: 1.25rem;
}

.what-text:last-of-type {
  margin-bottom: 2rem;
}

.what-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.what-keywords li {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-text);
  background: var(--cream-light);
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--terra-border);
  border-radius: var(--pill);
}

.craft-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--black-12);
}

.craft-metric-card {
  background: var(--cream-light);
  border: 1px solid var(--black-12);
  border-radius: 4px;
  padding: 1.25rem 1.15rem;
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.craft-metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--terra-border);
  box-shadow: 0 4px 16px rgba(36, 30, 24, 0.04);
}

.craft-metric-val {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 400;
  color: var(--terra-text);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.craft-metric-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-bottom: 0.45rem;
}

.craft-metric-desc {
  font-size: 0.8rem;
  color: var(--black-70);
  line-height: 1.5;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   12. 03 — SERVICIOS (Complete 5-Dimension Accordions)
   ────────────────────────────────────────────────────────────────────────── */
#servicios {
  border-top: 1px solid var(--black-12);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-accordion {
  border-top: 1px solid var(--black-12);
}

.service-accordion:last-child {
  border-bottom: 1px solid var(--black-12);
}

.service-heading-wrap {
  font-size: inherit;
  font-weight: normal;
  margin: 0;
}

.service-accordion-trigger {
  width: 100%;
  text-align: left;
  padding: clamp(24px, 3vw, 36px) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 1.5rem;
  position: relative;
  cursor: pointer;
  transition: background-color var(--fast), padding var(--fast);
}

.service-accordion-trigger:hover {
  background-color: var(--terra-tint);
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 -20px;
  width: calc(100% + 40px);
  border-radius: var(--radius-sm);
}

.service-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1.25rem;
  margin-bottom: 0.65rem;
}

.service-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--terra-text);
  font-weight: 500;
}

.service-cat {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--black-55);
}

.service-name {
  grid-column: 1;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 0.5rem;
  transition: transform var(--normal), color var(--fast);
  display: block;
}

.service-accordion-trigger:hover .service-name {
  transform: translateX(4px);
  color: var(--terra-dark);
}

.service-desc {
  grid-column: 1;
  font-size: 0.95rem;
  color: var(--black-70);
  line-height: 1.6;
  max-width: 640px;
  display: block;
}

.service-toggle {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--terra-border);
  position: relative;
  flex-shrink: 0;
  transition: background-color var(--fast), border-color var(--fast);
}

.service-accordion-trigger:hover .service-toggle,
.service-accordion-trigger[aria-expanded="true"] .service-toggle {
  background-color: var(--terra-tint);
  border-color: var(--terra-dark);
}

.toggle-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--terra-dark);
  transform: translate(-50%, -50%);
  transition: transform var(--normal), opacity var(--normal);
}

.toggle-line-v {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-accordion-trigger[aria-expanded="true"] .toggle-line-v {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

/* Accordion Content Panel — Never clips content on any screen size */
.service-panel {
  animation: panelSlideDown 0.35s var(--ease);
}

.service-panel-inner {
  padding: 0.5rem 0 clamp(32px, 4vw, 48px) 0;
}

.service-panel-highlight {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  color: var(--terra-dark);
  margin-bottom: 1.5rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: 1.75rem;
}

.service-detail-block {
  background: var(--cream-light);
  border: 1px solid var(--black-12);
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: var(--radius-sm);
}

.service-panel-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-text);
  margin-bottom: 0.65rem;
}

.service-panel-text-sm {
  font-size: 0.92rem;
  color: var(--black-80);
  line-height: 1.62;
}

.service-includes-bar {
  background: rgba(254, 250, 241, 0.65);
  border: 1px solid var(--terra-border);
  padding: clamp(20px, 2.8vw, 28px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.service-includes-content {
  flex: 1 1 460px;
}

.service-panel-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.5rem;
}

.service-panel-list li {
  font-size: 0.9rem;
  color: var(--black-80);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.service-panel-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--terra-dark);
  font-weight: 700;
}

.service-panel-action {
  flex-shrink: 0;
}

.service-cta-btn {
  font-size: 0.8rem;
  padding: 0.7rem 1.4rem;
}

.services-cta-row {
  margin-top: clamp(40px, 5vw, 60px);
  text-align: center;
}

/* ──────────────────────────────────────────────────────────────────────────
   13. 04 — NO SOLO HACEMOS WEBS (Pilares + 9 Dimensiones + Audiencia)
   ────────────────────────────────────────────────────────────────────────── */
.approach-section {
  border-top: 1px solid var(--black-12);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: clamp(56px, 7vw, 88px);
}

.pillar-card {
  padding: clamp(26px, 3.2vw, 44px);
  border-top: 1px solid var(--black-12);
  border-left: 1px solid var(--black-12);
  transition: background-color var(--normal);
}

.pillar-card:first-child {
  border-left: none;
  padding-left: 0;
}

.pillar-card:hover {
  background-color: var(--terra-tint);
}

.pillar-num {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--terra-text);
  display: block;
  margin-bottom: 1rem;
}

.pillar-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.pillar-desc {
  font-size: 0.93rem;
  color: var(--black-70);
  line-height: 1.65;
}

/* 9-Dimension Craft Manifesto */
.craft-manifesto {
  padding-top: clamp(48px, 6vw, 76px);
  margin-bottom: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--black-12);
}

.craft-manifesto-intro {
  max-width: 640px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.craft-manifesto-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.craft-manifesto-lead {
  font-size: 1rem;
  color: var(--black-70);
  line-height: 1.65;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--black-12);
  border-left: 1px solid var(--black-12);
}

.craft-item {
  padding: clamp(22px, 2.6vw, 34px);
  border-right: 1px solid var(--black-12);
  border-bottom: 1px solid var(--black-12);
  background: rgba(254, 250, 241, 0.35);
  transition: background-color var(--fast);
}

.craft-item:hover {
  background: var(--cream-light);
}

.craft-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--terra-text);
  display: block;
  margin-bottom: 0.6rem;
}

.craft-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.45rem;
}

.craft-desc {
  font-size: 0.88rem;
  color: var(--black-70);
  line-height: 1.58;
}

/* Audience List */
.audience-wrapper {
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--black-12);
}

.audience-header {
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 620px;
}

.audience-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.35rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.7rem;
  line-height: 1.15;
}

.audience-subtitle {
  font-size: 0.98rem;
  color: var(--black-70);
  line-height: 1.62;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--black-12);
}

.audience-item {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: clamp(16px, 2vw, 22px) 16px clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--black-12);
  transition: background-color var(--fast), padding-left var(--fast);
}

.audience-item:hover {
  background-color: var(--terra-tint);
  padding-left: 10px;
}

.audience-item-num {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--terra-text);
  min-width: 22px;
}

.audience-item-name {
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.25vw, 1.2rem);
  font-weight: 400;
  color: var(--black);
}

/* ──────────────────────────────────────────────────────────────────────────
   14. 05 — PROCESO (6 Stages)
   ────────────────────────────────────────────────────────────────────────── */
#proceso {
  border-top: 1px solid var(--black-12);
}

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

.process-step-v2 {
  padding: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--black-12);
  border-left: 1px solid var(--black-12);
  transition: background-color var(--fast);
}

.process-step-v2:nth-child(-n+3) {
  border-top: none;
}

.process-step-v2:nth-child(3n+1) {
  border-left: none;
  padding-left: 0;
}

.process-step-v2:hover {
  background-color: var(--terra-tint);
}

.process-step-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.process-num-big {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  font-weight: 300;
  color: var(--terra-text);
  line-height: 1;
}

.process-name-v2 {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.55vw, 1.45rem);
  font-weight: 400;
  color: var(--black);
}

.process-desc-v2 {
  font-size: 0.92rem;
  color: var(--black-70);
  line-height: 1.65;
}

.process-cta-row {
  margin-top: clamp(40px, 5vw, 60px);
  text-align: center;
}

/* ──────────────────────────────────────────────────────────────────────────
   15. 06 — PROYECTOS Y CAPACIDADES
   ────────────────────────────────────────────────────────────────────────── */
#proyectos {
  border-top: 1px solid var(--black-12);
}

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

.project-type {
  padding: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--black-12);
  border-left: 1px solid var(--black-12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color var(--normal);
}

.project-type:nth-child(-n+3) {
  border-top: none;
}

.project-type:nth-child(3n+1) {
  border-left: none;
  padding-left: 0;
}

.project-type:hover {
  background-color: var(--terra-tint);
}

.project-type-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--terra-text);
  display: block;
  margin-bottom: 0.9rem;
}

.project-type-name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.65vw, 1.5rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.55rem;
}

.project-type-desc {
  font-size: 0.9rem;
  color: var(--black-70);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-type-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terra-text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: color var(--fast), gap var(--fast);
}

.project-type-link:hover {
  color: var(--black);
  gap: 0.6rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   16. MANIFIESTO EDITORIAL
   ────────────────────────────────────────────────────────────────────────── */
.manifesto-section {
  border-top: 1px solid var(--black-12);
}

.manifesto-heading {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.manifesto-items {
  display: flex;
  flex-direction: column;
}

.manifesto-item {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--black-12);
}

.manifesto-item:last-child {
  border-bottom: 1px solid var(--black-12);
}

.manifesto-num {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--terra-text);
  flex-shrink: 0;
  min-width: 28px;
}

.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* ──────────────────────────────────────────────────────────────────────────
   17. 07 — SOBRE NOSOTROS
   ────────────────────────────────────────────────────────────────────────── */
.about-section {
  border-top: 1px solid var(--black-12);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.about-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 1.8rem;
}

.about-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--terra-dark);
}

.about-body {
  margin-bottom: 2.25rem;
}

.about-body p {
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  color: var(--black-70);
  line-height: 1.72;
  margin-bottom: 1.05rem;
}

.about-body p:last-child {
  margin-bottom: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--black);
  font-size: clamp(1.04rem, 1.2vw, 1.15rem);
}

.about-founders {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--black-12);
}

.founder {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--terra-text);
}

.founder-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--black);
}

.founder-sep {
  width: 1px;
  height: 34px;
  background: var(--black-12);
}

.about-symbol-area {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-symbol {
  width: clamp(180px, 20vw, 290px);
  opacity: 0.14;
  object-fit: contain;
}

/* ──────────────────────────────────────────────────────────────────────────
   18. REEL PRESENTACIÓN (15s Video)
   ────────────────────────────────────────────────────────────────────────── */
.reel-section {
  border-top: 1px solid var(--black-12);
}

.reel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.reel-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 400;
  line-height: 1.14;
  color: var(--black);
  margin-bottom: 1rem;
}

.reel-desc {
  font-size: 0.96rem;
  color: var(--black-70);
  max-width: 440px;
  line-height: 1.65;
}

.reel-actions {
  margin-top: 1.75rem;
}

.reel-open-btn {
  font-size: 0.82rem;
  padding: 0.75rem 1.5rem;
}

.reel-player {
  display: flex;
  justify-content: center;
}

.reel-video-wrap {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  background: var(--cream-dim);
  border: 1px solid var(--terra-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.reel-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 30, 24, 0.24);
  transition: background-color var(--fast), opacity var(--fast);
  z-index: 2;
}

.reel-video-wrap.is-playing .reel-play-btn:not(:focus-visible) {
  opacity: 0;
}

.reel-video-wrap:hover .reel-play-btn {
  background: rgba(36, 30, 24, 0.14);
}

.reel-play-triangle {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid var(--cream-light);
  margin-left: 4px;
}

.reel-controls-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
}

.reel-ctrl-pill,
.reel-sound-toggle {
  pointer-events: auto;
  background: rgba(36, 30, 24, 0.80);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--cream-light);
  padding: 6px 13px;
  min-height: 32px;
  border-radius: var(--pill);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 238, 221, 0.28);
  transition: background-color var(--fast);
}

.reel-ctrl-pill:hover,
.reel-sound-toggle:hover {
  background: var(--terra-dark);
}

/* ──────────────────────────────────────────────────────────────────────────
   19. 08 — FAQ SECTION
   ────────────────────────────────────────────────────────────────────────── */
#faq {
  border-top: 1px solid var(--black-12);
}

.faq-list {
  max-width: 820px;
}

.faq-item {
  border-top: 1px solid var(--black-12);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--black-12);
}

.faq-heading-wrap {
  font-size: inherit;
  font-weight: normal;
  margin: 0;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: clamp(18px, 2.2vw, 24px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  transition: color var(--fast);
}

.faq-trigger:hover .faq-question {
  color: var(--terra-dark);
}

.faq-question {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.4vw, 1.26rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.32;
  transition: color var(--fast);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon .toggle-line {
  width: 12px;
}

.faq-trigger[aria-expanded="true"] .faq-icon .toggle-line-v {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-panel {
  animation: panelSlideDown 0.3s var(--ease);
}

.faq-panel-inner {
  padding-bottom: clamp(18px, 2.2vw, 26px);
}

.faq-panel p {
  font-size: 0.94rem;
  color: var(--black-70);
  line-height: 1.68;
  max-width: 680px;
}

/* ──────────────────────────────────────────────────────────────────────────
   20. 09 — CONTACTO Y FORMULARIO PROFESIONAL EN PÁGINA
   ────────────────────────────────────────────────────────────────────────── */
.contact-section {
  position: relative;
  z-index: 2;
  background: var(--black);
  color: var(--cream);
  padding: clamp(76px, 9vw, 132px) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 5.5vw, 76px);
  align-items: start;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream-light);
  margin-bottom: 1.2rem;
}

.contact-desc {
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  color: rgba(245, 238, 221, 0.82);
  line-height: 1.68;
  margin-bottom: 2.25rem;
}

.contact-commitments {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(245, 238, 221, 0.14);
}

.contact-commitments li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.commitment-bullet {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--terra);
  padding-top: 2px;
  min-width: 22px;
}

.contact-commitments strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream-light);
  margin-bottom: 0.2rem;
}

.contact-commitments p {
  font-size: 0.88rem;
  color: rgba(245, 238, 221, 0.72);
  line-height: 1.55;
}

.inline-modal-link {
  color: var(--cream-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.inline-modal-link:hover {
  color: var(--terra);
}

.contact-direct-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(245, 238, 221, 0.14);
}

.contact-channel-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-channel-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 238, 221, 0.62);
}

.contact-channel-link {
  font-size: 0.94rem;
  color: var(--cream-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--fast);
}

.contact-channel-link:hover {
  color: var(--terra);
}

.contact-channel-val {
  font-size: 0.9rem;
  color: rgba(245, 238, 221, 0.86);
}

/* Inline Form Card */
.contact-form-card {
  background: var(--cream);
  color: var(--black);
  border: 1px solid var(--terra-border);
  border-radius: var(--radius-sm);
  padding: clamp(24px, 3.8vw, 44px);
  box-shadow: var(--shadow-modal);
}

.contact-form-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--black-12);
}

.contact-form-title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.contact-form-subtitle {
  font-size: 0.85rem;
  color: var(--black-70);
}

/* Form Elements (Shared by Inline & Modal Forms) */
.brief-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.brief-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.brief-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.brief-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.brief-req {
  color: var(--terra-text);
}

.brief-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--black-55);
  font-size: 0.72rem;
}

.brief-input,
.brief-select,
.brief-textarea {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--black);
  background: var(--cream-light);
  border: 1px solid var(--black-12);
  padding: 0.78rem 0.95rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: border-color var(--fast), box-shadow var(--fast), background-color var(--fast);
  width: 100%;
}

.brief-input::placeholder,
.brief-textarea::placeholder {
  color: var(--black-55);
  opacity: 0.75;
}

.brief-input:focus,
.brief-select:focus,
.brief-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--terra-dark);
  box-shadow: 0 0 0 3px rgba(163, 73, 44, 0.14);
}

.brief-input.has-error,
.brief-select.has-error,
.brief-textarea.has-error {
  border-color: var(--error-red);
  background-color: var(--error-tint);
}

.brief-textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.55;
}

.brief-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23241E18' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}

.brief-error {
  font-size: 0.76rem;
  color: var(--error-red);
  font-weight: 500;
  min-height: 1.05rem;
  line-height: 1.35;
}

.brief-form-footer-inline {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.brief-privacy-note {
  font-size: 0.75rem;
  color: var(--black-55);
  text-align: center;
}

.brief-submit {
  width: 100%;
  padding: 0.95rem 1.8rem;
  font-size: 0.88rem;
}

.brief-submit-loading {
  display: none;
}

.brief-submit.is-loading .brief-submit-text {
  display: none;
}

.brief-submit.is-loading .brief-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Feedback Panels (Success & Honest Fallback) */
.brief-state-panel {
  padding: clamp(24px, 4vw, 40px) 12px;
  text-align: center;
  animation: fadeUp 0.35s var(--ease) forwards;
}

.brief-modal-state {
  padding: clamp(28px, 4.5vw, 48px);
  overflow-y: auto;
  max-height: 80vh;
}

.brief-success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brief-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terra-dark);
  color: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.brief-status-pending-icon {
  background: var(--black);
}

.brief-success-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--black);
  line-height: 1.25;
}

.brief-success-text {
  font-size: 0.92rem;
  color: var(--black-70);
  max-width: 460px;
  line-height: 1.6;
}

.brief-summary-preview {
  width: 100%;
  max-width: 480px;
  background: var(--cream-light);
  border: 1px solid var(--black-12);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--black);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  max-height: 210px;
  overflow-y: auto;
}

.brief-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.35rem;
}

.brief-back-link {
  font-size: 0.8rem;
  color: var(--terra-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.4rem;
  padding: 4px 8px;
}

.brief-back-link:hover {
  color: var(--black);
}

/* ──────────────────────────────────────────────────────────────────────────
   21. FOOTER
   ────────────────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--cream);
  border-top: 1px solid var(--black-12);
  padding: clamp(52px, 6vw, 80px) 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.footer-brand-col {
  max-width: 340px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--black-70);
  margin-top: 0.85rem;
  line-height: 1.6;
}

.footer-cta-wrap {
  margin-top: 1.4rem;
}

.footer-cta-btn {
  padding: 0.62rem 1.35rem;
  font-size: 0.78rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.footer-nav-list a {
  font-size: 0.88rem;
  color: var(--black-70);
  transition: color var(--fast);
}

.footer-nav-list a:hover {
  color: var(--terra-dark);
}

.footer-meta-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.footer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-text);
}

.footer-meta-link {
  font-size: 0.9rem;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--terra-border);
  transition: color var(--fast), text-decoration-color var(--fast);
}

.footer-meta-link:hover {
  color: var(--terra-dark);
  text-decoration-color: var(--terra-dark);
}

.footer-meta-value {
  font-size: 0.88rem;
  color: var(--black-70);
}

.footer-bottom {
  border-top: 1px solid var(--black-12);
  padding: 1.5rem var(--gutter);
  text-align: center;
}

.footer-bottom-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.84rem;
  color: var(--black-55);
  letter-spacing: 0.015em;
}

/* ──────────────────────────────────────────────────────────────────────────
   22. MODALS (<dialog> Brief Modal & Video Modal)
   ────────────────────────────────────────────────────────────────────────── */
.brief-modal,
.video-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(94vw, 640px);
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-modal);
}

.brief-modal::backdrop,
.video-modal::backdrop {
  background: rgba(36, 30, 24, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.brief-modal-body {
  background: var(--cream);
  border: 1px solid var(--terra-border);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
}

.brief-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(16px, 2.8vw, 24px);
  border-bottom: 1px solid var(--black-12);
  flex-shrink: 0;
}

.brief-modal-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
}

.brief-modal-close,
.video-modal-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--black);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brief-modal-close:hover,
.video-modal-close:hover {
  background: var(--terra-tint);
  color: var(--terra-dark);
}

.brief-form-scroll {
  overflow-y: auto;
  padding: clamp(16px, 2.8vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
}

.brief-form-footer {
  padding: clamp(14px, 2.5vw, 20px) clamp(16px, 2.8vw, 24px);
  border-top: 1px solid var(--black-12);
  background: var(--cream);
  flex-shrink: 0;
}

.video-modal {
  max-width: min(92vw, 560px);
}

.video-modal-body {
  background: var(--cream);
  border: 1px solid var(--terra-border);
  overflow: hidden;
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--black-12);
}

.video-modal-title {
  font-family: var(--serif);
  font-size: 0.96rem;
  color: var(--black);
}

.video-modal-player {
  width: 100%;
  aspect-ratio: 1;
  background: #14110E;
}

.video-modal-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ──────────────────────────────────────────────────────────────────────────
   23. ANIMATIONS & SCROLL REVEALS
   ────────────────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes panelSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes scrollPulse {
  0%   { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%  { opacity: 1;   transform: scaleY(1); }
  100% { opacity: 0.3; transform: scaleY(0.6); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ──────────────────────────────────────────────────────────────────────────
   24. PREFERS-REDUCED-MOTION
   ────────────────────────────────────────────────────────────────────────── */
@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;
  }
  .hero-content,
  .hero-symbol-area,
  .hero-scroll-hint,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   25. RESPONSIVE DESIGN (320px → 1920px)
   ────────────────────────────────────────────────────────────────────────── */

/* ── Large Monitors (≥ 1440px) ── */
@media (min-width: 1440px) {
  :root {
    --max-w: 1320px;
  }
}

/* ── Tablet & Compact Laptops (≤ 1080px) ── */
@media (max-width: 1080px) {
  .header-nav-list {
    gap: 1.1rem;
  }
  .header-nav-link {
    font-size: 0.76rem;
  }
}

/* ── Tablet Portrait & Landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: clamp(48px, 6vw, 72px);
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-symbol-area {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(62vw, 280px);
    margin: 0 auto 2rem;
    animation-name: fadeUp;
  }

  .hero-scroll-hint {
    display: none;
  }

  .what-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-panel-list {
    grid-template-columns: 1fr;
  }

  .services-list .service-accordion-trigger:hover {
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    width: 100%;
    background: transparent;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    border-left: none;
    padding-left: 0;
    padding-right: 0;
  }

  .pillar-card:first-child {
    border-top: none;
  }

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

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

  .process-step-v2:nth-child(-n+3) {
    border-top: 1px solid var(--black-12);
  }

  .process-step-v2:nth-child(-n+2) {
    border-top: none;
  }

  .process-step-v2:nth-child(3n+1) {
    border-left: 1px solid var(--black-12);
    padding-left: clamp(24px, 3vw, 40px);
  }

  .process-step-v2:nth-child(2n+1) {
    border-left: none;
    padding-left: 0;
  }

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

  .project-type:nth-child(-n+3) {
    border-top: 1px solid var(--black-12);
  }

  .project-type:nth-child(-n+2) {
    border-top: none;
  }

  .project-type:nth-child(3n+1) {
    border-left: 1px solid var(--black-12);
    padding-left: clamp(26px, 3vw, 40px);
  }

  .project-type:nth-child(2n+1) {
    border-left: none;
    padding-left: 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-symbol-area {
    order: -1;
    justify-content: flex-start;
  }

  .about-symbol {
    width: 140px;
  }

  .reel-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .reel-player {
    justify-content: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ── Mobile Devices (≤ 768px) ── */
@media (max-width: 768px) {
  .header-cta {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.55rem, 11vw, 3.6rem);
  }

  .hero-eyebrow {
    font-size: 0.64rem;
    gap: 6px;
  }

  .craft-grid {
    grid-template-columns: 1fr;
  }

  .craft-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-step-v2 {
    border-left: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .process-step-v2:nth-child(-n+2) {
    border-top: 1px solid var(--black-12);
  }

  .process-step-v2:first-child {
    border-top: none;
  }

  .project-types-grid {
    grid-template-columns: 1fr;
  }

  .project-type {
    border-left: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .project-type:nth-child(-n+2) {
    border-top: 1px solid var(--black-12);
  }

  .project-type:first-child {
    border-top: none;
  }

  .brief-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .manifesto-text {
    font-size: clamp(1.32rem, 5.8vw, 1.85rem);
  }

  .about-founders {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .founder-sep {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .brief-modal,
  .legal-modal {
    max-width: 100vw;
    width: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .brief-modal-body,
  .legal-modal-body {
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
}

/* ── Small Phones (320px – 414px) ── */
@media (max-width: 414px) {
  :root {
    --gutter: 18px;
  }

  .hero-symbol-area {
    width: min(65vw, 220px);
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10.5vw, 2.75rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-cta-main,
  .hero-reel-btn {
    width: 100%;
    justify-content: center;
  }

  .section-heading,
  .what-heading,
  .contact-heading {
    font-size: clamp(1.85rem, 8.2vw, 2.2rem);
  }

  .service-includes-bar {
    padding: 18px;
  }

  .service-panel-action,
  .service-cta-btn {
    width: 100%;
  }

  .contact-form-card {
    padding: 20px 16px;
  }

  .btn {
    padding: 0.82rem 1.3rem;
    font-size: 0.82rem;
    white-space: normal;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   COMPLEMENTOS: CHECKBOX LEGAL, MODAL PRIVACIDAD & PÁGINA 404
   ────────────────────────────────────────────────────────────────────────── */

/* Checkbox de consentimiento */
.brief-privacy-consent {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.4rem 0 0.2rem;
}

.brief-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--black-80);
  cursor: pointer;
}

.brief-checkbox {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--terra-dark);
  cursor: pointer;
  flex-shrink: 0;
}

.legal-trigger-link {
  color: var(--terra-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  display: inline;
}

.legal-trigger-link:hover {
  color: var(--black);
}

.footer-nav-link-btn {
  font-size: 0.88rem;
  color: var(--black-70);
  text-align: left;
  padding: 0;
  transition: color var(--fast);
}

.footer-nav-link-btn:hover {
  color: var(--terra-dark);
}

/* Modal Legal (<dialog class="legal-modal">) */
.legal-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(94vw, 720px);
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-modal);
}

.legal-modal::backdrop {
  background: rgba(36, 30, 24, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.legal-modal-body {
  background: var(--cream);
  border: 1px solid var(--terra-border);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
}

.legal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(16px, 2.5vw, 24px);
  border-bottom: 1px solid var(--black-12);
  flex-shrink: 0;
}

.legal-modal-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
}

.legal-modal-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--black);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.legal-modal-close:hover {
  background: var(--terra-tint);
  color: var(--terra-dark);
}

.legal-modal-content {
  overflow-y: auto;
  padding: clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--black-80);
  line-height: 1.65;
}

.legal-lead {
  font-size: 0.95rem;
  border-left: 3px solid var(--terra-dark);
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.legal-section h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.legal-section ul {
  margin: 0.5rem 0 0.5rem 1.2rem;
  list-style: disc;
}

.legal-section li {
  margin-bottom: 0.35rem;
}

.legal-link {
  color: var(--terra-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--black-12);
  background: var(--cream);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Página 404 */
.error-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.error-header {
  padding: 24px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter);
}

.error-card {
  background: var(--cream-light);
  border: 1px solid var(--black-12);
  border-radius: var(--radius-sm);
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
  max-width: 580px;
  box-shadow: var(--shadow-sm);
}

.error-code {
  display: block;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--terra-dark);
  margin: 0.5rem 0;
}

.error-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.8rem;
}

.error-desc {
  font-size: 0.95rem;
  color: var(--black-70);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  justify-content: center;
}

.error-footer {
  padding: 24px var(--gutter);
  text-align: center;
  border-top: 1px solid var(--black-12);
}


