/* ================================================================
   PACTO arquitectura — styles.css
   Premium minimalist landing page
   Paleta: #F5F5F5 / #1E1E1E / #D37354
   Tipografía: Cormorant Garamond (serif) + Figtree (sans)
   ================================================================ */


/* ---------------------------------------------------------------
   Variables globales
   --------------------------------------------------------------- */
:root {
  /* Colores */
  --c-bg:       #F5F5F5;
  --c-dark:     #1E1E1E;
  --c-accent:   #D37354;
  --c-mid:      #6B6B6B;
  --c-line:     #E0DEDD;
  --c-surface:  #EDEDEB;
  --c-dark-bg:  #191715;

  /* Tipografía */
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans:  'Figtree', system-ui, sans-serif;

  /* Escala tipográfica — fluid */
  --t-xs:   clamp(0.68rem,  0.9vw,  0.75rem);
  --t-sm:   clamp(0.82rem,  1.1vw,  0.9rem);
  --t-base: clamp(1rem,     1.4vw,  1.1rem);
  --t-md:   clamp(1.1rem,   1.7vw,  1.25rem);
  --t-lg:   clamp(1.3rem,   2.2vw,  1.6rem);
  --t-xl:   clamp(1.6rem,   2.8vw,  2.1rem);
  --t-2xl:  clamp(2rem,     3.8vw,  2.8rem);
  --t-3xl:  clamp(2.4rem,   4.8vw,  3.6rem);
  --t-4xl:  clamp(3rem,     6vw,    4.8rem);
  --t-hero: clamp(3.2rem,   7vw,    5.4rem);

  /* Espaciado */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  3.5rem;
  --sp-xl:  5.5rem;
  --sp-2xl: 9rem;
  --sp-3xl: 13rem;

  /* Contenedor */
  --max-w:  1180px;
  --pad-x:  clamp(1.5rem, 5vw, 4rem);

  /* Curvas de animación */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  /* Duraciones */
  --dur-fast:   0.28s;
  --dur-mid:    0.65s;
  --dur-slow:   1s;
  --dur-xslow:  1.5s;
}


/* ---------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--c-bg);
  color: var(--c-dark);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

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

/* Disable scroll animations for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body[data-anim] .js-reveal,
  body[data-anim] .pull-quote,
  body[data-anim] .process-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ---------------------------------------------------------------
   Contenedor
   --------------------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}


/* ---------------------------------------------------------------
   Tipografía compartida
   --------------------------------------------------------------- */
.section-headline {
  font-family: var(--f-serif);
  font-size: var(--t-3xl);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-headline em {
  font-style: italic;
  font-weight: 300;
}

.section-headline--light {
  color: #F0EDE8;
}

.section-sub {
  font-size: var(--t-md);
  font-weight: 300;
  color: var(--c-mid);
  line-height: 1.65;
  max-width: 44ch;
  margin-top: var(--sp-md);
}

.section-sub--light {
  color: rgba(240, 237, 232, 0.5);
}

.section-index {
  display: block;
  font-family: var(--f-serif);
  font-size: var(--t-lg);
  font-weight: 300;
  color: var(--c-accent);
  letter-spacing: 0.18em;
  margin-bottom: var(--sp-md);
}

.section-index--light {
  color: rgba(211, 115, 84, 0.6);
}


/* ---------------------------------------------------------------
   Logo imagen
   --------------------------------------------------------------- */
.logo-img {
  display: block;
  object-fit: contain;
}

.logo-img--header {
  height: clamp(32px, 4vw, 48px);
  width: auto;
}

.logo-img--footer {
  height: clamp(56px, 6vw, 80px);
  width: auto;
  opacity: 0.8;
}

.logo-img--footer:hover {
  opacity: 1;
  transition: opacity var(--dur-fast) ease;
}


/* ---------------------------------------------------------------
   Botones
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--f-sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    color      var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Variantes */
.btn--primary {
  background: var(--c-accent);
  color: #fff;
  border: 1px solid var(--c-accent);
}

.btn--primary:hover {
  background: transparent;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.32);
}

.btn--ghost:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn--accent {
  background: var(--c-accent);
  color: #fff;
  border: 1px solid var(--c-accent);
}

.btn--accent:hover {
  background: transparent;
  color: var(--c-accent);
}

.btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.22);
}

.btn--outline-light:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}


/* ---------------------------------------------------------------
   Scroll animations
   Con datos-anim en body — progresiva, sin romper sin JS
   --------------------------------------------------------------- */
body[data-anim] .js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

body[data-anim] .js-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Demoras escalonadas dentro de grupos */
body[data-anim] .js-reveal:nth-child(2) { transition-delay: 0.08s; }
body[data-anim] .js-reveal:nth-child(3) { transition-delay: 0.16s; }
body[data-anim] .js-reveal:nth-child(4) { transition-delay: 0.24s; }

/* Pasos del proceso — el JS los anima escalonados vía IntersectionObserver */
body[data-anim] .process-step {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

body[data-anim] .process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pull-quote tiene su propia lógica */
body[data-anim] .pull-quote {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  var(--dur-xslow) var(--ease-out),
    transform var(--dur-xslow) var(--ease-out);
}

body[data-anim] .pull-quote.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

/* Header con wordmark */
.hero-header {
  position: absolute;
  top: clamp(1.4rem, 3.5vw, 2.2rem);
  left: var(--pad-x);
  z-index: 10;
  animation: fadeUp var(--dur-xslow) var(--ease-out) 0.1s both;
}

/* Imagen de fondo — parallax aplicado vía JS */
.hero-image {
  position: absolute;
  inset: 0;
  will-change: transform;
  background-color: #221c1845;
  background-image: url('./assets/hero-render.webp');          
  background-size: cover;                                    
  background-position: center;                               
}

/* Overlay degradado — legibilidad de texto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 14, 12, 0.3) 0%,
    rgba(18, 14, 12, 0.4) 35%,
    rgba(18, 14, 12, 0.655) 70%,
    rgba(18, 14, 12, 0.835) 100%
  );
  z-index: 2;
}

/* Contenido principal */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 var(--pad-x);
  max-width: 860px;
  animation: fadeUp var(--dur-xslow) var(--ease-out) 0.3s both;
}

.hero-eyebrow {
  font-family: var(--f-sans);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--c-line);
  margin-bottom: var(--sp-md);
  opacity: 0.9;
}

.hero-headline {
  font-family: var(--f-serif);
  font-size: var(--t-hero);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--sp-md);
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
}

.hero-body {
  font-size: var(--t-base);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 50ch;
  margin: 0 auto var(--sp-lg);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp var(--dur-xslow) var(--ease-out) 0.55s both;
}

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  bottom: clamp(1.8rem, 4vw, 2.8rem);
  right: var(--pad-x);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity var(--dur-mid) ease;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,0.45)
  );
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.9); }
  50%       { opacity: 0.75; transform: scaleY(1.1); }
}

/* Línea decorativa inferior del hero */
.hero-border {
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(211, 115, 84, 0.35) 35%,
    rgba(211, 115, 84, 0.35) 65%,
    transparent 100%
  );
  z-index: 6;
}

/* Animación de entrada base */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================================================================
   REFRAME
   ================================================================ */
.reframe {
  padding: var(--sp-3xl) 0;
}

.reframe-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.reframe-left {
  padding-top: 0.4rem;
}

.reframe-right {
  max-width: 660px;
}

/* Pull-quote */
.pull-quote {
  font-family: var(--f-serif);
  font-size: var(--t-2xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.28;
  color: var(--c-dark);
  border-left: 2px solid var(--c-accent);
  padding-left: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

/* Cuerpo del reframe */
.reframe-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.reframe-body p {
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-dark);
}

.reframe-body em {
  color: var(--c-accent);
  font-style: normal;
  font-weight: 500;
}

/* ---------------------------------------------------------------
   Reframe — checklists (¿Qué necesito saber? / ¿Qué logramos?)
   --------------------------------------------------------------- */
.reframe-checklists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--c-line);
}

.reframe-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.checklist-title {
  font-family: var(--f-sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mid);
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-dark);
}

/* Marcador de cada ítem — línea de pregunta */
.checklist-list li::before {
  content: '—';
  flex-shrink: 0;
  font-size: var(--t-sm);
  color: var(--c-mid);
  margin-top: 0.18em;
}

/* Marcador de ítems de resultado — acento */
.checklist-list--results li::before {
  content: '→';
  color: var(--c-accent);
}

@media (max-width: 600px) {
  .reframe-checklists {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
}

/* ---------------------------------------------------------------
   Reframe — casos reales
   --------------------------------------------------------------- */
.reframe-cases {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--c-line);
}

.reframe-cases-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mid);
  margin-bottom: var(--sp-md);
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
  background: var(--c-surface);
  overflow: hidden;
}

.case-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--c-line);
  /* Gradiente placeholder hasta añadir imagen real */
  background-image: linear-gradient(
    135deg,
    #e8e3dc 0%,
    #d4cdc4 60%,
    #c8bfb4 100%
  );
  transition: transform 0.85s var(--ease-out);
}

.case-card:hover .case-img {
  transform: scale(1.03);
}

/* REPLACE: background-image real para Casa ZF */
/* .case-img--zf { background-image: url('./assets/casa-zf.jpg'); } */

.case-body {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.case-tag {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.case-result {
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.72;
  color: var(--c-dark);
}

.case-quote {
  font-family: var(--f-serif);
  font-size: var(--t-lg);
  font-weight: 400;
  font-style: italic;
  line-height: 1.32;
  color: var(--c-dark);
  padding-left: var(--sp-md);
  border-left: 2px solid var(--c-accent);
  margin-top: var(--sp-xs);
}

@media (max-width: 640px) {
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-body {
    padding: var(--sp-md);
  }
}

@media (max-width: 720px) {
  .reframe-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }
}


/* ================================================================
   VISUAL BREAK — imagen editorial de pausa
   ================================================================ */
.visual-break {
  width: 100%;
  height: clamp(260px, 40vw, 560px);
  background-size: cover;
  background-position: center;
  background-image: url('./assets/visual-break.webp');  

}


/* ================================================================
   VALUE
   ================================================================ */
.value {
  padding: var(--sp-2xl) 0;
  border-top: 1px solid var(--c-line);
}

.value-header {
  margin-bottom: var(--sp-xl);
  max-width: 640px;
}

.value-intro {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  max-width: 560px;
  margin-bottom: var(--sp-2xl);
}

.value-intro p {
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-mid);
}

.value-lead {
  font-size: var(--t-md) !important;
  color: var(--c-dark) !important;
  line-height: 1.78 !important;
}

/* Tres columnas de puntos */
.value-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.value-point {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
}

/* Imágenes placeholder con gradientes cálidos */
.value-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.85s var(--ease-out);
  overflow: hidden;
}

.value-point:hover .value-image {
  transform: scale(1.035);
}

.value-image--1 {
  background-image: url('./assets/casa-og.webp'); 
}

.value-image--2 {
  background-image: url('./assets/complejo-am.webp'); 
}

.value-image--3 {
  background-image: url('./assets/cluster-ho.webp'); 
}

.value-caption {
  padding-top: 0.3rem;
}

.caption-tag {
  display: block;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.45rem;
}

.value-caption p {
  font-family: var(--f-serif);
  font-size: var(--t-base);
  font-style: italic;
  font-weight: 400;
  line-height: 1.52;
  color: var(--c-mid);
}

@media (max-width: 880px) {
  .value-points {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}


/* ================================================================
   PROCESS
   ================================================================ */
.process {
  padding: var(--sp-3xl) 0;
  background-color: var(--c-dark-bg);
  color: #F0EDE8;
}

.process-header {
  margin-bottom: var(--sp-2xl);
  max-width: 660px;
}

/* ---------------------------------------------------------------
   Grid 2×2 — los 4 pasos visibles en un pantallazo
   --------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Cada celda */
.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-xl);
  position: relative;
  /* Divisor superior */
  border-top: 1px solid rgba(240, 237, 232, 0.09);
}

/* Sin divisor superior en la primera fila */
.process-step:nth-child(1),
.process-step:nth-child(2) {
  border-top: none;
}

/* Divisor vertical entre columnas */
.process-step:nth-child(odd) {
  border-right: 1px solid rgba(240, 237, 232, 0.09);
}

/* Número de paso */
.step-num {
  font-family: var(--f-serif);
  font-size: var(--t-sm);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(211, 115, 84, 0.55);
  user-select: none;
  margin-bottom: var(--sp-xs);
}

/* Título del paso */
.step-title {
  font-family: var(--f-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.22;
  color: #F0EDE8;
  margin-bottom: var(--sp-sm);
}

/* Contenido — párrafos y asides */
.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.step-content p {
  font-size: var(--t-sm);
  font-weight: 300;
  line-height: 1.82;
  color: rgba(240, 237, 232, 0.55);
}

/* ---------------------------------------------------------------
   Aside — preguntas inesperadas y ejemplos
   --------------------------------------------------------------- */
.step-aside {
  display: block;
  margin-top: var(--sp-sm);
  padding: 0.75rem var(--sp-md);
  border-left: 2px solid rgba(211, 115, 84, 0.45);
  font-family: var(--f-serif);
  font-size: var(--t-base);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(240, 237, 232, 0.7);
}

.aside-tag {
  display: block;
  font-family: var(--f-sans);
  font-size: var(--t-xs);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.35rem;
}

/* ---------------------------------------------------------------
   Cycle badge — indicador de iteración entre pasos 03 y 04
   --------------------------------------------------------------- */
.process-step--04 {
  position: relative;
}

.cycle-badge {
  position: absolute;
  top: 0;
  /* Mobile: centrado en el borde superior */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(211, 115, 84, 0.35);
  background: var(--c-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  z-index: 2;
  /* Transición sutil al hacer hover sobre el step 04 */
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background   var(--dur-fast) var(--ease-out);
}

.process-step--04:hover .cycle-badge {
  border-color: rgba(211, 115, 84, 0.7);
  background: rgba(211, 115, 84, 0.08);
}

/* Desktop: posicionar en la intersección de los 4 cuadrantes */
@media (min-width: 900px) {
  .cycle-badge {
    left: 0;
  }
}

/* ---------------------------------------------------------------
   Fórmula visual — paso 03
   --------------------------------------------------------------- */
.process-formula {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: var(--sp-sm);
  padding: var(--sp-md);
  border: 1px solid rgba(240, 237, 232, 0.08);
  background: rgba(240, 237, 232, 0.02);
}

.formula-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.formula-who {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(211, 115, 84, 0.8);
  flex-shrink: 0;
  min-width: 4.2rem;
}

.formula-items {
  font-size: var(--t-sm);
  font-weight: 300;
  color: rgba(240, 237, 232, 0.55);
  line-height: 1.5;
}

.formula-operator {
  font-family: var(--f-serif);
  font-size: var(--t-md);
  font-weight: 300;
  color: rgba(211, 115, 84, 0.5);
  line-height: 1;
  padding-left: 0.1rem;
}

.formula-divider {
  width: 100%;
  height: 1px;
  background: rgba(240, 237, 232, 0.12);
  margin: 0.2rem 0;
}

.process-formula .formula-result {
  font-family: var(--f-serif);
  font-size: var(--t-base);
  font-style: italic;
  font-weight: 400;
  color: #F0EDE8;
  line-height: 1.42;
  margin: 0;
}

/* ---------------------------------------------------------------
   Responsive — de grid 2×2 a columna única
   --------------------------------------------------------------- */

/* Tablet ancho — reducir padding */
@media (max-width: 1024px) {
  .process-step {
    padding: var(--sp-lg);
  }
}

/* Tablet angosto — colapsar a columna única */
@media (max-width: 680px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* Resetear divisores de columna */
  .process-step:nth-child(odd) {
    border-right: none;
  }

  /* Restaurar divisor superior en todos menos el primero */
  .process-step:nth-child(2) {
    border-top: 1px solid rgba(240, 237, 232, 0.09);
  }

  /* Badge centrado horizontalmente entre 03 y 04 */
  .cycle-badge {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .process-step {
    padding: var(--sp-lg) var(--sp-md);
  }
}

/* Móvil chico */
@media (max-width: 400px) {
  .step-title {
    font-size: 1.25rem;
  }

  .step-aside {
    padding: 0.65rem var(--sp-sm);
  }
}


/* ================================================================
   PORTFOLIO
   ================================================================ */
.portfolio {
  padding: var(--sp-3xl) 0;
}

.portfolio-header {
  margin-bottom: var(--sp-2xl);
  max-width: 660px;
}

/* Grid editorial asimétrico — 12 columnas */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  margin-bottom: var(--sp-xl);
}

/* Tarjeta base */
.project-card {
  overflow: hidden;
  cursor: default;
}

/* Posicionamiento de cada tarjeta en el grid */
.project-card:nth-child(1) {   /* Grande horizontal */
  grid-column: 1 / 8;
  grid-row: 1;
}

.project-card:nth-child(2) {   /* Tall — ocupa ambas filas */
  grid-column: 8 / 13;
  grid-row: 1 / 3;
}

.project-card:nth-child(3) {   /* Mediana izquierda */
  grid-column: 1 / 5;
  grid-row: 2;
}

.project-card:nth-child(4) {   /* Mediana centro-izquierda */
  grid-column: 5 / 8;
  grid-row: 2;
}

/* Imágenes de los proyectos */
.project-img {
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.95s var(--ease-out);
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

/* Overlay oscuro sutil sobre imágenes */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 16, 14, 0.28) 0%,
    transparent 55%
  );
  pointer-events: none;
}

/* Alturas y gradientes placeholder por proyecto */
.project-img--1 {
  aspect-ratio: 16 / 10;
  background-image: url('./assets/casa-og-02.webp'); 
}

.project-img--2 {
  height: 100%;
  min-height: 380px;
  background-image: url('./assets/casa-ns-12.webp'); 
}

.project-img--3 {
  aspect-ratio: 4 / 3;
  background-image: url('./assets/complejo-am-02.webp'); 
}

.project-img--4 {
  aspect-ratio: 4 / 3;
  background-image: url('./assets/cluste-ho-02.webp'); 
}

/* Info debajo de cada imagen */
.project-info {
  padding: var(--sp-sm) 0 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-meta {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.1rem;
}

.project-type {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.project-year {
  font-size: var(--t-xs);
  font-weight: 300;
  color: var(--c-mid);
  letter-spacing: 0.1em;
}

.project-name {
  font-family: var(--f-serif);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--c-dark);
  line-height: 1.2;
}

.project-caption {
  font-family: var(--f-serif);
  font-size: var(--t-sm);
  font-style: italic;
  font-weight: 300;
  color: var(--c-mid);
  line-height: 1.55;
  max-width: 36ch;
}

/* Responsive del grid de portafolio */
@media (max-width: 880px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .project-card:nth-child(2) { grid-column: 1 / 2; grid-row: 2; }
  .project-card:nth-child(3) { grid-column: 2 / 3; grid-row: 2; }
  .project-card:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }

  .project-img--2 {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

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

  .project-card { grid-column: 1 !important; grid-row: auto !important; }

  .project-img--2 {
    aspect-ratio: 4 / 3;
    min-height: auto;
  }
}

/* CTA debajo del portafolio */
.portfolio-cta {
  text-align: center;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-line);
}

.portfolio-cta p {
  font-size: var(--t-md);
  font-weight: 300;
  color: var(--c-mid);
  margin-bottom: 0.6rem;
}

.link-cta {
  font-family: var(--f-serif);
  font-size: var(--t-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--c-accent);
  display: inline-block;
  transition: opacity var(--dur-fast) ease;
}

.link-cta:hover {
  opacity: 0.68;
}


/* ================================================================
   QUALIFICATION
   ================================================================ */
.qualification {
  padding: var(--sp-3xl) 0;
  border-top: 1px solid var(--c-line);
}

.qual-header {
  margin-bottom: var(--sp-2xl);
  max-width: 660px;
}

.qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
}

.qual-title {
  font-family: var(--f-serif);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--c-dark);
  margin-bottom: var(--sp-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.35;
}

.qual-marker {
  color: var(--c-accent);
  font-size: 1.3rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.qual-marker--muted {
  color: var(--c-line);
}

.qual-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.qual-col--yes .qual-list li {
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.75;
  color: var(--c-dark);
  padding-left: var(--sp-md);
  position: relative;
}

.qual-col--yes .qual-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 400;
}

.qual-col--yes .qual-list em {
  font-style: italic;
  color: var(--c-accent);
}

.qual-col--no .qual-list li {
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.75;
  color: var(--c-mid);
  padding-left: var(--sp-md);
  position: relative;
}

.qual-col--no .qual-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-line);
  font-weight: 400;
}

@media (max-width: 740px) {
  .qual-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
}


/* ================================================================
   FAQ
   ================================================================ */
.faq {
  padding: var(--sp-3xl) 0;
  background-color: var(--c-surface);
}

.faq-header {
  margin-bottom: var(--sp-2xl);
  max-width: 660px;
}

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

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

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-lg) 0;
  text-align: left;
  gap: var(--sp-md);
  cursor: pointer;
  transition: color var(--dur-fast) ease;
}

.faq-question > span:first-child {
  font-family: var(--f-serif);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--c-dark);
  line-height: 1.4;
  flex: 1;
  transition: color var(--dur-fast) ease;
}

.faq-question:hover > span:first-child {
  color: var(--c-accent);
}

.faq-icon {
  font-size: var(--t-xl);
  font-weight: 300;
  color: var(--c-accent);
  flex-shrink: 0;
  line-height: 1;
  width: 22px;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

/* Acordeón animado — grid trick (funciona con height: auto) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease-out);
  overflow: hidden;
}

.faq-answer.faq-open {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 0.42s var(--ease-out);
}

.faq-answer.faq-open .faq-answer-inner {
  padding-bottom: var(--sp-lg);
}

.faq-answer-inner p {
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-mid);
  max-width: 580px;
  margin-bottom: var(--sp-sm);
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer-inner em {
  font-style: italic;
  color: var(--c-dark);
}

.faq-link {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(211, 115, 84, 0.35);
  transition:
    text-decoration-color var(--dur-fast) ease;
}

.faq-link:hover {
  text-decoration-color: var(--c-accent);
}


/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
  position: relative;
  padding: var(--sp-3xl) 0;
  background-color: var(--c-dark-bg);
  overflow: hidden;
}

/* Resplandor cálido sutil */
.cta-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(211, 115, 84, 0.055) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.cta-eyebrow {
  display: block;
  font-family: var(--f-sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-md);
}

.cta-headline {
  font-family: var(--f-serif);
  font-size: var(--t-3xl);
  font-weight: 400;
  line-height: 1.14;
  color: #F0EDE8;
  margin-bottom: var(--sp-lg);
}

.cta-headline em {
  font-style: italic;
  font-weight: 300;
}

.cta-body {
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(240, 237, 232, 0.58);
  margin-bottom: var(--sp-xl);
  max-width: 50ch;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
}

.cta-note {
  font-size: var(--t-sm);
  font-weight: 300;
  color: rgba(240, 237, 232, 0.28);
  line-height: 1.65;
  max-width: 46ch;
}


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background-color: var(--c-dark);
  padding: var(--sp-2xl) 0 var(--sp-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.8fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-2xl);
  align-items: start;
}

.footer-location {
  font-size: var(--t-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.24);
  margin-top: var(--sp-sm);
}

.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-link {
  font-size: var(--t-sm);
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  transition: color var(--dur-fast) ease;
  letter-spacing: 0.02em;
}

.footer-link:hover {
  color: var(--c-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.footer-tagline {
  font-family: var(--f-serif);
  font-size: var(--t-base);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.22);
}

.footer-copy {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.16);
  letter-spacing: 0.1em;
}

@media (max-width: 740px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
  }
  .footer-brand { grid-column: 1 / 3; }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand { grid-column: 1; }
}


/* ================================================================
   RESPONSIVE — ajustes globales
   ================================================================ */
@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 340px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}
