/* ============================================================
   MOREIRA MADERAS — Sistema de diseño "MODERNO" (oficial)
   Editorial: Playfair Display + Manrope, paleta cálida madera.
   Mismas texturas/tipografía/colores que /moderno/, generalizado
   para usarse en TODAS las páginas del sitio. Vanilla, sin deps.
   La nav móvil, el año y los links de WhatsApp/tel los maneja
   assets/js/main.js (atributos data-nav-toggle / data-nav / data-year).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
  --white:  #fafaf8;
  --paper:  #f4f1ed;
  --ink:    #111110;
  --muted:  #6b6760;
  --line:   #d9d4cd;
  --accent: #a87f52;
  --acc-d:  #8f6840;
  --w: min(1200px, 92vw);
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── HEADER (fijo; transparente sobre el hero, sólido al scroll) ── */
.m-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.m-header.is-solid {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.m-header-inner {
  width: var(--w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.m-logo {
  font-family: 'Playfair Display', serif; font-size: 1.3rem;
  letter-spacing: .07em; color: #fff; text-transform: uppercase;
  transition: color .35s ease;
}
.m-logo span { font-weight: 400; font-style: normal; color: rgba(255,255,255,.6); }
.m-header.is-solid .m-logo { color: var(--ink); }
.m-header.is-solid .m-logo span { color: var(--muted); }
.m-nav {
  display: flex; align-items: center; gap: 2.4rem;
  font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; color: rgba(255,255,255,.78);
  transition: color .35s ease;
}
.m-nav a { transition: color .2s ease; }
.m-nav a:hover { color: #fff; }
.m-nav .cta-link { color: #fff; border: 1px solid rgba(255,255,255,.42); padding: .7rem 1.2rem; }
.m-nav .cta-link:hover { background: #fff; color: var(--ink); }
.m-header.is-solid .m-nav { color: var(--muted); }
.m-header.is-solid .m-nav a:hover { color: var(--ink); }
.m-header.is-solid .m-nav .cta-link { color: var(--ink); border-color: var(--accent); }
.m-header.is-solid .m-nav .cta-link:hover { background: var(--accent); color: #fff; }
.m-nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.5);
  color: #fff; padding: .45rem .7rem; border-radius: 4px; cursor: pointer;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
}
.m-header.is-solid .m-nav-toggle { border-color: var(--line); color: var(--ink); }

/* ── HERO SLIDER (portada) ── */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.08); transition: transform 8s ease-out; }
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,8,.82) 0%, rgba(10,9,8,.16) 52%, transparent 100%), linear-gradient(to bottom, rgba(10,9,8,.5) 0%, transparent 24%); }
.hero-content { position: relative; z-index: 3; width: var(--w); margin: 0 auto; padding-bottom: 8vh; }
.hero-slide .hero-content > * { opacity: 0; transform: translateY(22px); }
.hero-slide.is-active .hero-content > * { animation: heroRise .8s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-slide.is-active .hero-content > *:nth-child(1) { animation-delay: .12s; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .26s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .42s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }
.hero-eyebrow { font-size: .65rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem; display: flex; align-items: center; gap: 1rem; }
.hero-eyebrow::before { content: ''; display: block; width: 36px; height: 1px; background: var(--accent); }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; color: #fff; max-width: 16ch; margin: 0; }
.hero-title em { font-style: italic; color: rgba(255,255,255,.65); }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 3rem; gap: 2rem; }
.hero-desc { font-size: .92rem; color: rgba(255,255,255,.62); max-width: 40ch; line-height: 1.7; font-weight: 300; margin: 0; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; flex-shrink: 0; }
.hero-cta { display: inline-flex; align-items: center; gap: 1rem; font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.42); padding: 1rem 1.6rem; white-space: nowrap; transition: background .25s, border-color .25s; }
.hero-cta:hover { background: var(--accent); border-color: var(--accent); }
.hero-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero-cta-ghost { display: inline-flex; align-items: center; gap: .5rem; font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.65); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .2s, border-color .2s; }
.hero-cta-ghost:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; transition: background .25s, border-color .25s; }
.hero-arrow:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow.prev { left: 2.2rem; }
.hero-arrow.next { right: 2.2rem; }
.hero-dots { position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%); z-index: 5; display: flex; gap: .7rem; }
.hero-dot { width: 34px; height: 3px; padding: 0; border: none; background: rgba(255,255,255,.3); cursor: pointer; transition: background .3s; }
.hero-dot.is-active { background: #fff; }
.hero-scroll { position: absolute; bottom: 2.5rem; right: max(2.2rem, calc((100vw - var(--w)) / 2)); writing-mode: vertical-rl; font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.4); display: flex; align-items: center; gap: .8rem; }
.hero-scroll::after { content: ''; display: block; width: 1px; height: 48px; background: rgba(255,255,255,.25); }

/* ── PAGE HERO (interior: una sola imagen, editorial) ── */
.page-hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.page-hero .hero-bg { transform: scale(1.06); animation: heroReveal 1s ease forwards; }
@keyframes heroReveal { to { transform: scale(1); } }
.page-hero .hero-content { padding-bottom: 6vh; padding-top: 10rem; }
.page-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; line-height: 1.04; letter-spacing: -.015em; color: #fff; max-width: 18ch; margin: 0; }
.page-hero-title em { font-style: italic; color: rgba(255,255,255,.65); }
.page-hero-desc { font-size: 1rem; color: rgba(255,255,255,.72); max-width: 56ch; line-height: 1.7; font-weight: 300; margin: 1.6rem 0 0; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* ── SECCIONES ── */
.section { padding: 9rem 0; }
.section.sm { padding: 5.5rem 0; }
.section.pt0 { padding-top: 0; }
.w { width: var(--w); margin: 0 auto; }
.dark { background: var(--ink); color: #fff; }
.paper { background: var(--paper); }

.label {
  font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.6rem; display: flex; align-items: center; gap: 1rem;
}
.label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--accent); }
.dark .label { color: #cba879; }

.h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; max-width: 22ch; }
.h2 em { font-style: italic; color: var(--muted); }
.dark .h2 em { color: rgba(255,255,255,.5); }
.lead-txt { color: var(--muted); max-width: 64ch; font-size: 1rem; margin-top: 1.2rem; }
.dark .lead-txt { color: rgba(255,255,255,.6); }
.section p + p { margin-top: 1.1rem; }

/* ── BOTONES ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; padding: 1rem 1.7rem; border: 1px solid var(--ink); color: var(--ink); background: transparent; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn svg { width: 13px; height: 13px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--acc-d); border-color: var(--acc-d); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.85); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.text-link { display: inline-flex; align-items: center; gap: .6rem; font-size: .65rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link svg { width: 11px; }
.dark .text-link { color: #fff; border-color: rgba(255,255,255,.3); }

/* ── MANIFIESTO ── */
.manifesto-inner { width: var(--w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.manifesto-quote { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.manifesto-quote em { font-style: italic; color: var(--accent); }
.manifesto-body { border-top: 1px solid rgba(255,255,255,.12); padding-top: 2.4rem; }
.manifesto-body p { font-size: .92rem; color: rgba(255,255,255,.6); line-height: 1.8; margin-bottom: 1.6rem; }
.manifesto-body p:last-child { margin-bottom: 0; }
.stat-row { display: flex; gap: 3rem; margin-top: 3rem; flex-wrap: wrap; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 400; color: #fff; display: block; }
.stat-label { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); }

/* ── GRILLA DE SERVICIOS / FEATURES (bordeada) ── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-item { padding: 3rem 2.4rem; border-right: 1px solid var(--line); transition: background .3s; }
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--paper); }
.feature-num { font-family: 'Playfair Display', serif; font-size: .85rem; color: var(--accent); margin-bottom: 1.6rem; font-style: italic; }
.feature-name { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 400; line-height: 1.25; margin-bottom: 1rem; }
.feature-desc { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.feature-item .text-link { margin-top: 1.8rem; }

/* ── PROYECTOS / GALERÍA (grilla con overlay) ── */
.proj-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; gap: 2rem; flex-wrap: wrap; }
.proj-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5px; align-items: stretch; }
.proj-right { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 1.5px; min-height: 0; }
.proj-card { position: relative; overflow: hidden; background: var(--paper); min-height: 0; }
.proj-card.main { aspect-ratio: 3/4; }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.25,.46,.45,.94); }
.proj-card:hover img { transform: scale(1.04); }
.proj-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.4rem 2rem 2rem; background: linear-gradient(to top, rgba(10,9,8,.7) 0%, transparent 100%); color: #fff; }
.proj-type { font-size: .6rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .5rem; }
.proj-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 400; }
.proj-loc { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: .3rem; }

/* Galería simple (muchas fotos) */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.gallery-cell { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--paper); display: block; }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-cell:hover img { transform: scale(1.05); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.2rem 1.1rem; background: linear-gradient(to top, rgba(10,9,8,.72), transparent); color: #fff; }
.gallery-cap strong { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.05rem; display: block; }
.gallery-cap span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ── MEDIA SPLIT (texto + foto) ── */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.media.flip .media-text { order: 2; }
.media-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--paper); }
.media-photo img { width: 100%; height: 100%; object-fit: cover; }
/* variante: la foto toma exactamente la altura del texto (se recorta lo necesario) */
.media.match-h { align-items: stretch; }
.media.match-h .media-photo { aspect-ratio: auto; position: relative; min-height: 320px; }
.media.match-h .media-photo img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; }
.media-text > p:first-child { margin-top: 0; } /* el texto arranca a la altura del borde superior de la foto */
/* cuadro de referencia mientras no está la foto real (pedido Faustina 10/7) */
.media-photo.photo-ref { background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.media-photo.photo-ref::after { content: 'Foto \2014  referencia'; font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
/* foto del libro tallado (historia): columna angosta para no desbalancear con el texto;
   la leyenda va integrada en la columna de texto (pedido Andrés 22/7). Click = ver grande. */
.media.hist { grid-template-columns: minmax(220px, 300px) 1fr; gap: 3.5rem; }
.hist-photo { margin: 0; }
.hist-photo a { display: block; cursor: zoom-in; }
.hist-photo img { display: block; width: 100%; height: auto; background: var(--paper); }
.hist-caption { font-size: .85rem; font-style: italic; line-height: 1.6; }
/* resumen destacado al final de la intro de Quiénes somos */
.lead-txt.destacado { max-width: 60ch; margin-top: 1.8rem; padding-left: 1.1rem; border-left: 2px solid var(--accent); font-style: italic; color: var(--ink); }
.check-list { list-style: none; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.check-list li { padding-left: 1.7rem; position: relative; color: var(--muted); }
.check-list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 10px; height: 1px; background: var(--accent); }

/* ── EQUIPO (Quiénes somos) ── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-top: 3.5rem; }
.team-member { text-align: center; margin: 0; }
.team-photo { width: 100%; max-width: 210px; aspect-ratio: 1 / 1; margin: 0 auto 1.1rem; overflow: hidden; background: var(--paper); border: 1px solid var(--line); } /* cuadradas (pedido Faustina 8/7) */
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member .team-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 400; margin: 0 0 .2rem; }
.team-member .team-role { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0; }
/* leyenda: tipografía menor y contenida en el ancho de la tarjeta, es lo que menos debe llamar la atención (Faustina 10/7) */
.team-member .team-bio { font-size: .74rem; color: var(--muted); line-height: 1.55; margin: .55rem auto 0; max-width: 240px; }
/* título "El equipo" con más aire respecto al bloque anterior (Faustina 10/7) */
.team-heading { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 400; margin: 5.5rem 0 0; }
.team-heading + .team-grid { margin-top: 2.5rem; }

/* ── PROCESO ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 5rem; }
.process-step { padding: 0 2.5rem 3rem 0; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: none; padding-right: 0; }
.process-step:not(:first-child) { padding-left: 2.5rem; }
.step-index { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 400; color: var(--line); line-height: 1; margin-bottom: 1.6rem; }
.step-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 400; margin-bottom: .8rem; }
.step-desc { font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* ── TESTIMONIAL ── */
.testimonial { padding: 7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonial-inner { width: var(--w); margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; align-items: center; }
.testimonial-label { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 400; color: var(--muted); line-height: 1.3; }
.testimonial-label strong { display: block; color: var(--ink); font-weight: 400; }
.testimonial-quote { font-family: 'Playfair Display', serif; font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 400; font-style: italic; line-height: 1.45; color: var(--ink); position: relative; padding-left: 2rem; }
.testimonial-quote::before { content: ''; position: absolute; left: 0; top: .3em; width: 3px; height: 1.4em; background: var(--accent); }
.testimonial-author { margin-top: 1.4rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ── FAQ ── */
.faq details { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: -.1em; color: var(--accent); font-size: 1.4rem; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: .8rem; color: var(--muted); }

/* ── CTA OSCURA ── */
.cta { background: var(--ink); padding: 9rem 0; }
.cta-inner { width: var(--w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 4rem; flex-wrap: wrap; }
.cta-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; color: #fff; line-height: 1.15; max-width: 20ch; }
.cta-title em { font-style: italic; color: inherit; }
.cta-sub { margin-top: .7rem; font-size: .9rem; color: rgba(255,255,255,.5); max-width: 46ch; line-height: 1.7; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; flex-shrink: 0; }

/* ── FORMULARIO (contacto) ── */
.form-card { background: var(--ink); color: #fff; padding: clamp(2rem, 4vw, 3.2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.6rem; }
.form-full { grid-column: 1 / -1; }
.form-card label { font-size: .6rem; display: block; margin-bottom: .45rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; color: rgba(255,255,255,.6); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05);
  color: #fff; padding: .85rem .9rem; font: inherit; transition: border-color .2s, background .2s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.08); }
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card select option { color: #141414; }
.info-card { border: 1px solid var(--line); padding: clamp(1.8rem, 3vw, 2.6rem); background: var(--white); }
.info-card h3 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.4rem; margin-bottom: 1rem; }
.info-list { list-style: none; display: grid; gap: .7rem; font-size: .92rem; color: var(--muted); }
.info-list strong { color: var(--ink); font-weight: 600; }

/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; border: 1px solid var(--line); }
.kpi { padding: 1.8rem; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: none; }
.kpi strong { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 2rem; display: block; line-height: 1; margin-bottom: .4rem; }
.kpi span { font-size: .82rem; color: var(--muted); }

/* ── ARTÍCULO (blog) ── */
.article { width: min(920px, 92vw); margin: 0 auto; }
.article > p { color: #38332e; font-size: 1.08rem; line-height: 1.85; margin-bottom: 1.3rem; }
.article > h2 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 2.6rem 0 1rem; }
.article > h3 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.4rem; margin: 2rem 0 .8rem; }
.article ul, .article ol { margin: 0 0 1.3rem 1.2rem; color: #38332e; display: grid; gap: .5rem; }
.article strong { font-weight: 600; }
.article figure { margin: 2rem 0; }
.article figure img { width: 100%; height: 420px; object-fit: cover; }
.article figcaption { margin-top: .7rem; font-size: .85rem; color: var(--muted); }
.article table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .92rem; }
.article th { text-align: left; padding: .7rem .8rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; border-bottom: 2px solid var(--line); }
.article td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.keybox { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 1.4rem 1.6rem; margin: 1.8rem 0; }
.keybox p.label { margin-bottom: .8rem; }
.keybox ul { margin: 0 0 0 1.1rem; color: var(--muted); display: grid; gap: .4rem; }
.related { border: 1px solid var(--line); padding: 1.6rem 1.8rem; margin-top: 2rem; }
.related h3 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.3rem; margin-bottom: .9rem; }
.related ul { list-style: none; display: grid; gap: .55rem; }
.related a { color: var(--acc-d); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.related a:hover { color: var(--accent); border-color: var(--accent); }

/* Tarjeta blog (índice) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.post-card { background: var(--paper); display: flex; flex-direction: column; }
.post-card-img { display: block; aspect-ratio: 4/3; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 2rem; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .6rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.post-card h3 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.4rem; line-height: 1.25; margin-bottom: .7rem; }
.post-card p { font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }
.post-card .text-link { margin-top: auto; }

/* ── FOOTER ── */
.footer { padding: 5rem 0 3rem; border-top: 1px solid var(--line); }
.footer-inner { width: var(--w); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 3rem; border-bottom: 1px solid var(--line); gap: 4rem; flex-wrap: wrap; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.footer-brand em { font-style: normal; color: var(--muted); }
.footer-tagline { margin-top: .6rem; font-size: .8rem; color: var(--muted); letter-spacing: .04em; max-width: 32ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.footer-social a { font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); border: 1px solid var(--line); padding: .4rem .8rem; transition: .2s; }
.footer-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-nav { display: flex; gap: 4.5rem; flex-wrap: wrap; }
.footer-col-title { font-size: .6rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; }
.footer-col-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-col-links a { font-size: .85rem; color: var(--ink); transition: color .2s; }
.footer-col-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: .72rem; color: var(--muted); gap: 1rem; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .manifesto-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .feature-item:nth-child(2n) { border-right: none; }
  .feature-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card.main { aspect-ratio: 16/10; }
  .proj-right { grid-template-rows: auto; }
  .proj-right .proj-card { aspect-ratio: 16/10; }
  .media { grid-template-columns: 1fr; gap: 2.5rem; }
  .media.hist { grid-template-columns: 1fr; }
  .media.hist .hist-photo { max-width: 340px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .media.flip .media-text { order: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 2.5rem; }
  .testimonial-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-arrow { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 5.5rem 0; }
  .m-nav-toggle { display: block; }
  .m-nav {
    position: absolute; top: 80px; left: 0; right: 0;
    background: rgba(12,11,9,.97); backdrop-filter: blur(8px);
    flex-direction: column; align-items: stretch; gap: 0; color: #fff;
    transform: scaleY(0); transform-origin: top; opacity: 0; pointer-events: none; transition: 180ms ease;
  }
  .m-nav.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .m-nav a { padding: 1rem 6vw; border-bottom: 1px solid rgba(255,255,255,.1); }
  .m-nav .cta-link { border: 0; color: var(--accent); }
  .m-header.is-solid .m-nav { color: #fff; }
  .m-header.is-solid .m-nav .cta-link { color: var(--accent); }
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr; border: none; }
  .feature-item { border-right: none; border-top: 1px solid var(--line); }
  .feature-item:first-child { border-top: none; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-top: 1px solid var(--line); padding: 2.2rem 0 0 0 !important; }
  .process-step:first-child { border-top: none; padding-top: 0 !important; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi { border-right: none; border-bottom: 1px solid var(--line); }
  .kpi:last-child { border-bottom: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions { align-items: flex-start; }
  .hero-scroll { display: none; }
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .footer-nav { gap: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-slide, .page-hero .hero-bg { transition: none; animation: none; }
  .hero-content > * { opacity: 1; transform: none; animation: none; }
}
