/* ==========================================================================
   TPC Topografía — Sistema visual de ingeniería civil editorial
   ========================================================================== */

:root {
  /* Paleta 60-30-10 — Arena Desierto (60%), Verde Oliva (30%), Amarillo Señal (10%) */
  --graphite-950: #1D2214;
  --graphite-900: #2C331E;
  --graphite-800: #3E462C;
  --graphite-700: #353B29;
  --graphite-500: #5E5B4B;
  --paper-100: #EFE8D8;
  --paper-200: #DDD1B8;

  /* Acento Naranja Neón (#FF5E1A) alineado al logotipo + Verde Oliva para etiquetas sobre Arena */
  --brand-orange: #FF4D07;
  --accent: #FF5E1A;
  --accent-hover: #E54907;
  --accent-ink: #181D10;
  --accent-text-light: #4A522E;
  --whatsapp-green: #176938;
  --whatsapp-green-hover: #11522B;

  /* Retícula y divisores */
  --rule-light: rgba(44, 51, 30, 0.14);
  --rule-strong: rgba(44, 51, 30, 0.28);
  --rule-dark: rgba(239, 232, 216, 0.18);

  /* Tipografía */
  --font-display: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Dimensiones */
  --header-height: 68px;
  --header-height-mobile: 60px;
  --container-max: 1280px;
  --gutter: clamp(20px, 4vw, 52px);
  --radius-sharp: 2px;
}

/* --------------------------------------------------------------------------
   Base y accesibilidad
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background-color: var(--paper-100);
  color: var(--graphite-700);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.band-dark :focus-visible,
.site-footer :focus-visible,
.hero-content :focus-visible,
.mobile-drawer :focus-visible {
  outline-color: var(--paper-100);
}

.skip-link {
  position: absolute;
  top: -120px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 16px;
  background-color: var(--graphite-900);
  color: var(--paper-100);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-sharp);
}

.skip-link:focus {
  top: 12px;
}

/* Anclas debajo del encabezado fijo */
main [id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Tipografía editorial */
.h1-display,
.h2-section,
.h3-service,
.h3-step {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.012em;
}

.h1-display {
  font-size: clamp(2.15rem, 4.3vw, 3.65rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--paper-100);
}

.h2-section {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--graphite-900);
}

.h3-service {
  font-size: clamp(1.32rem, 1.8vw, 1.62rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--graphite-900);
}

.h3-step {
  font-size: clamp(1.25rem, 1.6vw, 1.48rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--graphite-900);
}

.section-label {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text-light);
}

.lead-copy {
  margin: 0;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.6;
}

/* Botones y enlaces de acción */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sharp);
  background-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid rgba(246, 244, 238, 0.42);
  border-radius: var(--radius-sharp);
  background-color: transparent;
  color: var(--paper-100);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.btn-secondary-dark:hover {
  border-color: var(--paper-100);
  background-color: rgba(246, 244, 238, 0.08);
}

.btn-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 2px;
  color: var(--paper-100);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 244, 238, 0.45);
  transition: border-color 160ms ease;
}

.btn-link-inline:hover {
  border-bottom-color: var(--paper-100);
}

/* --------------------------------------------------------------------------
   Encabezado compacto
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height-mobile);
  background-color: var(--paper-100);
  border-bottom: 1px solid var(--rule-light);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule-strong);
  box-shadow: 0 2px 10px rgba(17, 23, 26, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-sigla {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--graphite-900);
}

.brand-divider {
  width: 1px;
  height: 16px;
  background-color: var(--brand-orange);
  align-self: center;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--graphite-700);
}

.header-nav {
  display: none;
}

.header-cta {
  display: none;
}

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sharp);
  background-color: transparent;
  color: var(--graphite-900);
  cursor: pointer;
}

/* Menú móvil */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background-color: rgba(17, 23, 26, 0.56);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: min(320px, 88vw);
  padding: 20px 24px 32px;
  background-color: var(--graphite-900);
  color: var(--paper-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--rule-dark);
}

.mobile-drawer[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-dark);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-100);
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-sharp);
  background: transparent;
  color: var(--paper-100);
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  margin: 24px 0 auto;
  padding: 0;
}

.drawer-links li + li {
  border-top: 1px solid var(--rule-dark);
}

.drawer-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--paper-100);
}

.drawer-actions {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
}

.drawer-contact-line {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(246, 244, 238, 0.78);
}

/* --------------------------------------------------------------------------
   1. Portada
   En móviles estrechos (< 768px): texto sobre superficie sólida #182023
   y fotografía completa debajo del CTA.
   En escritorio (>= 768px): mensaje a la izquierda y topógrafo a la derecha.
   -------------------------------------------------------------------------- */

.hero-section {
  background-color: var(--graphite-900);
  color: var(--paper-100);
}

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

.hero-content {
  padding-block: 38px 34px;
  padding-inline: var(--gutter);
  background-color: var(--graphite-900);
}

.hero-inner {
  max-width: 580px;
}

.hero-lead {
  margin: 16px 0 26px;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.58;
  color: rgba(246, 244, 238, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hero-media {
  position: relative;
  background-color: var(--graphite-900);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   2. Servicios
   Dos composiciones imagen + texto seguidas de un díptico dron / obra ejecutada
   -------------------------------------------------------------------------- */

.services-section {
  padding-block: clamp(56px, 8vw, 108px);
}

.services-header {
  display: grid;
  gap: 14px;
  max-width: 720px;
  padding-bottom: clamp(32px, 4.5vw, 56px);
  border-bottom: 1px solid var(--rule-light);
}

.services-intro {
  margin: 0;
  color: var(--graphite-700);
  font-size: 1.03rem;
}

.service-feature-grid {
  display: grid;
  gap: clamp(44px, 6vw, 80px);
  margin-top: clamp(36px, 5vw, 60px);
}

.service-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.service-figure {
  margin: 0;
}

.service-photo-frame {
  overflow: hidden;
  border-radius: var(--radius-sharp);
  background-color: var(--paper-200);
  border: 1px solid var(--rule-light);
}

.service-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .service-photo-frame:hover .service-photo {
    transform: scale(1.022);
  }
}

.photo-terrenos {
  object-position: 50% 42%;
}

.photo-obra {
  object-position: 42% 38%;
}

.photo-dron {
  object-position: 70% 35%;
}

.photo-asbuilt {
  object-position: 35% 40%;
}

.service-module-tag {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text-light);
}

.service-item {
  padding-block: 18px;
  border-top: 1px solid var(--rule-light);
}

.service-item:last-child {
  border-bottom: 1px solid var(--rule-light);
}

.service-item p {
  margin: 8px 0 0;
  color: var(--graphite-700);
  font-size: 0.98rem;
  line-height: 1.58;
}

/* Díptico final: Fotogrametría + Obra ejecutada */
.services-diptych {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--rule-strong);
}

.diptych-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.diptych-card .service-module-tag {
  margin-bottom: 6px;
}

.diptych-card p {
  margin: 8px 0 0;
  color: var(--graphite-700);
  font-size: 0.98rem;
  line-height: 1.58;
}

.illustrative-note {
  margin: 28px 0 0;
  font-size: 0.85rem;
  color: var(--graphite-500);
}

/* --------------------------------------------------------------------------
   3. Atención al proyecto
   -------------------------------------------------------------------------- */

.process-section {
  padding-block: clamp(56px, 7.5vw, 96px);
  background: linear-gradient(180deg, #E8DEC9 0%, #D9CCA8 100%);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.process-header {
  max-width: 720px;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.process-step {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
}

.step-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-text-light);
}

.step-crosshair {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.process-step p {
  margin: 8px 0 0;
  font-size: 0.98rem;
  color: var(--graphite-700);
}

.process-footnote {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule-light);
  max-width: 820px;
  font-size: 0.96rem;
  color: var(--graphite-700);
}

/* --------------------------------------------------------------------------
   4. Cobertura
   -------------------------------------------------------------------------- */

.coverage-section {
  padding-block: clamp(56px, 7.5vw, 96px);
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.coverage-main .lead-copy {
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 600px;
}

.coverage-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--graphite-900);
  border-radius: var(--radius-sharp);
  color: var(--graphite-900);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.coverage-cta-outline:hover {
  background-color: var(--graphite-900);
  color: var(--paper-100);
}

.coverage-spec {
  border-top: 2px solid var(--graphite-900);
  background-color: var(--paper-100);
}

.spec-row {
  display: grid;
  gap: 4px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule-light);
}

.spec-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-500);
}

.spec-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--graphite-900);
}

.spec-value a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   5. Preguntas frecuentes
   -------------------------------------------------------------------------- */

.faq-section {
  padding-block: clamp(52px, 7vw, 88px);
  border-top: 1px solid var(--rule-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.faq-intro p {
  margin: 12px 0 0;
  font-size: 0.96rem;
  color: var(--graphite-500);
  max-width: 340px;
}

.faq-list {
  border-top: 1px solid var(--rule-strong);
}

.faq-item {
  border-bottom: 1px solid var(--rule-light);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding-block: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.32rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--graphite-900);
  cursor: pointer;
  list-style: none;
}

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

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

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--graphite-900);
  transform: translateY(-50%);
  transition: transform 160ms ease, opacity 160ms ease;
}

.faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.faq-answer {
  padding-bottom: 20px;
  max-width: 66ch;
}

.faq-answer p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--graphite-700);
}

/* --------------------------------------------------------------------------
   6. Cierre con motivo tenue de curvas de nivel + Pie de página
   -------------------------------------------------------------------------- */

.closing-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8.5vw, 112px);
  background: linear-gradient(135deg, #232918 0%, #343C24 55%, #1D2214 100%);
  color: var(--paper-100);
}

.contour-motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.08;
}

.closing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4.5vw, 56px);
  align-items: start;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.closing-slogan {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.closing-section .h2-section {
  color: var(--paper-100);
}

.closing-copy {
  margin: 16px 0 28px;
  font-size: clamp(1.02rem, 1.25vw, 1.14rem);
  color: rgba(246, 244, 238, 0.86);
  max-width: 54ch;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* Formulario de cotización */
.quote-form-card {
  background-color: var(--paper-100);
  color: var(--graphite-900);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-sharp);
  border-top: 3px solid var(--brand-orange);
}

.quote-form-card :focus-visible {
  outline-color: var(--accent);
}

.quote-form-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--graphite-900);
}

.quote-form-hint {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--graphite-500);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field[hidden] {
  display: none;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--graphite-900);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sharp);
  background-color: #FFFFFF;
  color: var(--graphite-900);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-textarea {
  min-height: 82px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--graphite-500);
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--brand-orange);
  background-color: rgba(255, 77, 7, 0.08);
  color: #9E2B00;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-error[hidden],
.form-feedback[hidden] {
  display: none;
}

.form-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.btn-form-submit {
  width: 100%;
}

.btn-form-submit.is-whatsapp {
  background-color: var(--whatsapp-green);
  border-color: var(--whatsapp-green);
  color: var(--paper-100);
}

.btn-form-submit.is-whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  border-color: var(--whatsapp-green-hover);
}

.form-mode-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--graphite-500);
}

.form-feedback {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--rule-strong);
  background-color: var(--paper-200);
  border-radius: var(--radius-sharp);
  display: grid;
  gap: 10px;
}

.form-feedback p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--graphite-900);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer {
  background-color: var(--graphite-950);
  color: rgba(246, 244, 238, 0.82);
  border-top: 1px solid var(--rule-dark);
  padding-block: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--paper-100);
}

.footer-coverage {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: rgba(246, 244, 238, 0.72);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.94rem;
}

.footer-contact a {
  color: var(--paper-100);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-privacy {
  margin: 0;
  font-size: 0.88rem;
}

/* Barra fija inferior en móvil (respeta safe area) */
.mobile-sticky-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background-color: var(--graphite-950);
  border-top: 1px solid var(--rule-dark);
}

.mobile-sticky-bar .btn-primary {
  width: 100%;
  min-height: 44px;
  padding-inline: 14px;
  font-size: 0.92rem;
}

.mobile-sticky-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid rgba(246, 244, 238, 0.36);
  border-radius: var(--radius-sharp);
  color: var(--paper-100);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 839px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   Break point medio (>= 768px): portada lado a lado y díptico
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .hero-section {
    position: relative;
    min-height: 600px;
    max-height: 820px;
    height: 84vh;
    overflow: hidden;
  }

  .hero-layout {
    position: relative;
    height: 100%;
    justify-content: center;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% 35%;
  }

  .hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(29, 34, 20, 0.94) 0%,
      rgba(44, 51, 30, 0.78) 42%,
      rgba(44, 51, 30, 0.25) 66%,
      rgba(44, 51, 30, 0.05) 100%
    );
  }

  .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-block: 48px;
    background-color: transparent;
  }

  .services-diptych {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
  }

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
  }

  .coverage-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 4.5vw, 64px);
  }

  .faq-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(32px, 4vw, 60px);
  }

  .form-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) auto;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .closing-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* --------------------------------------------------------------------------
   Break point escritorio (>= 840px): barra superior completa, sin barra móvil
   -------------------------------------------------------------------------- */

@media (min-width: 840px) {
  .site-header {
    height: var(--header-height);
  }

  main [id] {
    scroll-margin-top: calc(var(--header-height) + 18px);
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
  }

  .header-nav a {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--graphite-700);
    text-decoration: none;
    padding-block: 6px;
    border-bottom: 1.5px solid transparent;
    transition: color 150ms ease, border-color 150ms ease;
  }

  .header-nav a:hover {
    color: var(--graphite-900);
    border-bottom-color: var(--accent);
  }

  .header-cta {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .nav-toggle-btn,
  .mobile-sticky-bar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Composiciones asimétricas de servicios en escritorio (>= 960px)
   -------------------------------------------------------------------------- */

@media (min-width: 960px) {
  .service-split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(28px, 3.6vw, 52px);
    align-items: center;
  }

  .service-split--media-left .service-figure {
    grid-column: 1 / span 7;
  }

  .service-split--media-left .service-copy-col {
    grid-column: 8 / span 5;
  }

  .service-split--media-right .service-copy-col {
    grid-column: 1 / span 5;
    order: 1;
  }

  .service-split--media-right .service-figure {
    grid-column: 6 / span 7;
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   Animaciones de entrada (efecto de encaje en retícula)
   -------------------------------------------------------------------------- */

.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.98);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.22, 1.08, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

@media (min-width: 768px) {
  .js-reveal-ready [data-reveal='left'] {
    transform: translate3d(-48px, 0, 0) scale(0.985);
  }

  .js-reveal-ready [data-reveal='right'] {
    transform: translate3d(48px, 0, 0) scale(0.985);
  }
}

.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* Ajuste óptico de enfoque en fotografías al encajar */
.js-reveal-ready [data-reveal] .service-photo {
  transform: scale(1.06);
  transition: transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal-ready [data-reveal].is-visible .service-photo {
  transform: scale(1);
}

@media (hover: hover) {
  .js-reveal-ready [data-reveal].is-visible .service-photo-frame:hover .service-photo {
    transform: scale(1.025);
  }
}

/* --------------------------------------------------------------------------
   Movimiento reducido
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
