/* Lineark — Public site (editorial / architectural minimalist) */

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

:root {
  --bg: #f6f5f1;
  --bg-2: #ece7da;
  --paper: #ffffff;
  --ink: #14110d;
  --ink-2: #2a261f;
  --ink-soft: #5a564f;
  --ink-mute: #8a857c;
  --line: #d9d4c7;
  --line-soft: #ece7da;
  --accent: #14110d;
  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 2px;
  --shadow-sm: 0 1px 0 rgba(20,17,13,0.04);
  --shadow: 0 8px 32px -16px rgba(20,17,13,0.18);
  --max-width: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(40px, 8vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }
em { font-style: italic; color: var(--ink); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.lead {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 640px;
}

/* Buttons */
.btn-link, .cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--ink);
  color: #fff !important;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s var(--easing), color 0.3s var(--easing), transform 0.3s var(--easing);
  font-family: var(--sans);
}
.btn-link:hover, .cta:hover { background: transparent; color: var(--ink) !important; }
.btn-link.ghost, .cta.ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}
.btn-link.ghost:hover, .cta.ghost:hover { background: var(--ink); color: #fff !important; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.3s var(--easing), color 0.3s var(--easing);
}
.arrow-link::after { content: "→"; transition: transform 0.3s var(--easing); }
.arrow-link:hover { gap: 16px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 245, 241, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--easing), border-color 0.4s var(--easing), padding 0.4s var(--easing);
  padding: 24px 0;
}
.site-header.scrolled {
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-mark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-main {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-main a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--easing);
}
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--ink); }
.nav-main a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
}
.nav-cta {
  padding: 10px 24px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: var(--radius);
  transition: opacity 0.3s var(--easing);
}
.nav-cta:hover { opacity: 0.85; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.3s var(--easing), opacity 0.3s var(--easing);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  z-index: 99;
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 0;
  transform: translateY(-100%);
  transition: transform 0.5s var(--easing);
  height: 100vh;
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav-mobile .nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  margin-top: 24px;
  text-align: center;
  padding: 16px;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .nav-main, .header-inner > .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile { display: flex; }
}

/* Hero */
.hero {
  padding: calc(140px + var(--section-y)) 0 var(--section-y);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } }
.hero h1 {
  font-size: clamp(48px, 9vw, 120px);
  margin-bottom: 16px;
}
.hero h1 em { font-weight: 400; }

/* Sections */
section { padding: var(--section-y) 0; }
.section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* Cards / projects */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 700px) { .cards-grid { grid-template-columns: 1fr; } }

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.project-card .img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--easing);
}
.project-card:hover img { transform: scale(1.06); }
.project-card .meta {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.project-card h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0;
}
.project-card .pill {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  white-space: nowrap;
}
.project-card .location {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.project-card .img-wrap.empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--line) 100%);
}

/* Philosophy */
.philosophy {
  background: var(--ink);
  color: #f6f5f1;
}
.philosophy h2, .philosophy .eyebrow { color: #f6f5f1; }
.philosophy .eyebrow { color: rgba(246,245,241,0.5); }
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(246,245,241,0.15);
}
@media (max-width: 900px) { .philosophy-grid { grid-template-columns: 1fr; } }
.philosophy-card {
  padding: 56px 32px 64px;
  border-right: 1px solid rgba(246,245,241,0.15);
}
.philosophy-card:last-child { border-right: 0; }
@media (max-width: 900px) {
  .philosophy-card { border-right: 0; border-bottom: 1px solid rgba(246,245,241,0.15); }
  .philosophy-card:last-child { border-bottom: 0; }
}
.philosophy-card h3 {
  font-size: clamp(36px, 4vw, 48px);
  color: #f6f5f1;
  margin-bottom: 20px;
}
.philosophy-card p { color: rgba(246,245,241,0.7); font-size: 17px; line-height: 1.7; }

/* Testimonials */
.testimonials {
  background: var(--bg-2);
}
.testimonial {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.testimonial .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 32px;
}
.testimonial .quote p { margin: 0 0 18px; }
.testimonial .quote p:last-child { margin: 0; }
.testimonial .author {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
}
.testimonial-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.testimonial-tab {
  background: none;
  border: 0;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s var(--easing), border-color 0.3s var(--easing);
}
.testimonial-tab.active, .testimonial-tab:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  padding: 48px 28px 56px;
  border-right: 1px solid var(--line);
  position: relative;
}
.service-card:last-child { border-right: 0; }
@media (max-width: 900px) {
  .service-card:nth-child(2n) { border-right: 0; }
  .service-card { border-bottom: 1px solid var(--line); }
}
.service-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.service-card h3 { font-size: 26px; margin: 0 0 14px; }
.service-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.service-card ul { margin: 0; padding-left: 18px; color: var(--ink-mute); font-size: 13px; line-height: 1.9; }

/* Clients */
.clients-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  overflow: hidden;
}
.clients-row {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.clients-row span, .clients-row img {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  font-weight: 400;
}
.clients-row img { max-height: 40px; width: auto; opacity: 0.65; filter: grayscale(1); }

/* CTA strip */
.cta-strip {
  background: var(--ink);
  color: #f6f5f1;
}
.cta-strip h2 { color: #f6f5f1; max-width: 880px; }
.cta-strip h2 em { color: rgba(246,245,241,0.6); font-weight: 400; }
.cta-strip .lead { color: rgba(246,245,241,0.7); margin: 24px 0 40px; }
.cta-strip .cta {
  background: #f6f5f1;
  color: var(--ink) !important;
  border-color: #f6f5f1;
}
.cta-strip .cta:hover { background: transparent; color: #f6f5f1 !important; }

/* Page hero (sub-pages) */
.page-hero {
  padding: calc(140px + var(--section-y)) 0 calc(var(--section-y) * 0.6);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 920px; }
.page-hero .lead { margin-top: 24px; }

/* Filter tabs (proyectos) */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
  margin-bottom: 48px;
}
.filter-tabs button, .filter-tabs a {
  background: none;
  border: 0;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.3s var(--easing), color 0.3s var(--easing);
}
.filter-tabs button.active, .filter-tabs a.active, .filter-tabs button:hover, .filter-tabs a:hover {
  background: var(--ink);
  color: #fff;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: block; }
.blog-card .img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
  margin-bottom: 20px;
}
.blog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--easing); }
.blog-card:hover img { transform: scale(1.05); }
.blog-card .meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  transition: color 0.3s var(--easing);
}
.blog-card:hover h3 { color: var(--ink); }
.blog-card .excerpt {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.blog-card.featured { grid-column: 1 / -1; }
.blog-card.featured .img-wrap { aspect-ratio: 16 / 7; }
.blog-card.featured h3 { font-size: clamp(28px, 3.6vw, 48px); max-width: 800px; }

/* Article (blog post / page) */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
}
.article .meta {
  display: flex; gap: 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-mute); margin-bottom: 32px;
}
.article h1 { margin-bottom: 24px; }
.article .excerpt { font-size: 22px; line-height: 1.5; color: var(--ink-soft); margin: 24px 0 48px; max-width: 620px; }
.article .cover { aspect-ratio: 16 / 9; overflow: hidden; margin: 0 0 48px; background: var(--bg-2); }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article .body p { margin: 0 0 1.4em; }
.article .body h2 { font-size: 32px; margin: 1.6em 0 0.6em; }
.article .body h3 { font-size: 24px; margin: 1.4em 0 0.4em; }
.article .body ul, .article .body ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.article .body li { margin-bottom: 0.4em; }
.article .body a { border-bottom: 1px solid var(--ink); }
.article .body blockquote {
  border-left: 3px solid var(--ink);
  margin: 2em 0;
  padding: 0.4em 1.2em;
  font-style: italic;
  color: var(--ink-soft);
}

/* Project detail */
.project-detail {
  padding: calc(140px + 48px) 0 var(--section-y);
}
.project-detail .header {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
@media (max-width: 900px) { .project-detail .header { grid-template-columns: 1fr; } }
.project-detail .meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  font-size: 14px;
}
.project-detail .meta-grid dt {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px;
  color: var(--ink-mute); margin-bottom: 4px;
}
.project-detail .meta-grid dd { margin: 0; color: var(--ink); }
.project-detail .gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.project-detail .gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.project-detail .gallery .gi {
  grid-column: span 6;
  background: var(--bg-2);
}
.project-detail .gallery .gi:nth-child(3n+1) { grid-column: span 12; }
.project-detail .gallery .gi:nth-child(3n+1) img { aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .project-detail .gallery .gi { grid-column: span 12 !important; } }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .team-grid { grid-template-columns: 1fr; } }
.team-card .img-wrap {
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  overflow: hidden;
  margin-bottom: 20px;
}
.team-card img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 22px; margin: 0; }
.team-card .role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin: 6px 0 12px;
}
.team-card .bio { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  margin: 64px 0;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: 1fr; } }
.stat-block { text-align: center; }
.stat-number {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-side {
  position: sticky;
  top: 120px;
}
.faq-side h4 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin: 0 0 16px;
  font-weight: 500;
}
.faq-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-side a {
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 0.3s var(--easing);
}
.faq-side a:hover { color: var(--ink); }

.faq-section { margin-bottom: 64px; }
.faq-section > h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: color 0.3s var(--easing);
}
.faq-q::after {
  content: "+";
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s var(--easing);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--easing);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
.faq-a-inner { padding: 0 0 24px; }
.faq-item.open .faq-a { max-height: 800px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 0 var(--section-y);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.contact-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-mute); margin: 0 0 8px; }
.contact-card .value { font-size: 18px; line-height: 1.4; color: var(--ink); }

.contact-form {
  display: grid;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .contact-form .row-2 { grid-template-columns: 1fr; } }
.contact-form label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--easing);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-bottom-color: var(--ink); }
.contact-form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.contact-form .checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-top: 12px;
}
@media (max-width: 600px) { .contact-form .checks { grid-template-columns: 1fr; } }
.contact-form .checks label {
  display: flex; align-items: center; gap: 10px;
  text-transform: none; letter-spacing: 0;
  color: var(--ink); font-size: 14px; margin: 0;
  cursor: pointer;
}
.contact-form .checks input { width: 18px; height: 18px; padding: 0; accent-color: var(--ink); }
.contact-form button { justify-self: start; }

.form-success {
  background: var(--bg-2);
  border-left: 3px solid var(--ink);
  padding: 20px 24px;
  font-size: 15px;
  margin-bottom: 24px;
}
.form-error {
  background: #fceeee;
  border-left: 3px solid #b3261e;
  color: #5a1614;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Newsletter inline */
.newsletter {
  background: var(--ink);
  color: #f6f5f1;
  padding: 64px 0;
  text-align: center;
}
.newsletter h2 { color: #f6f5f1; max-width: 720px; margin: 0 auto; }
.newsletter p { color: rgba(246,245,241,0.7); margin: 16px auto 32px; max-width: 600px; }
.newsletter form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border: 1px solid rgba(246,245,241,0.3);
  background: transparent;
  color: #f6f5f1;
  font-family: inherit;
  font-size: 14px;
  border-radius: var(--radius);
  outline: none;
}
.newsletter input::placeholder { color: rgba(246,245,241,0.4); }
.newsletter input:focus { border-color: #f6f5f1; }
.newsletter button {
  padding: 14px 28px;
  background: #f6f5f1;
  color: var(--ink);
  border: 1px solid #f6f5f1;
  border-radius: var(--radius);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.3s var(--easing), color 0.3s var(--easing);
}
.newsletter button:hover { background: transparent; color: #f6f5f1; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(246,245,241,0.7);
  padding: 80px 0 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(246,245,241,0.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 { color: #f6f5f1; font-size: 32px; margin: 0 0 12px; }
.footer-brand p { color: rgba(246,245,241,0.6); }
.site-footer h4 {
  color: #f6f5f1;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0 0 20px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(246,245,241,0.7); transition: color 0.3s var(--easing); }
.site-footer a:hover { color: #f6f5f1; }
.footer-bottom {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(246,245,241,0.4);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  z-index: 90;
  transition: transform 0.3s var(--easing);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 24px 80px;
}
.notfound .num {
  font-family: var(--serif);
  font-size: clamp(120px, 20vw, 240px);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 16px;
}

/* ============================================================
   ============== EDITORIAL HERO (Planty-style) ===============
   ============================================================ */

:root {
  --warm-300: #d1c2b2;
  --warm-500: #af9f90;
  --warm-600: #95826f;
  --warm-700: #7d6e5f;
  --cream-100: #faf6ef;
  --cream-200: #ece4d8;
}

/* HERO — fullbleed photo card with overlays */
.cover {
  position: relative;
  width: calc(100% - 32px);
  margin: 16px auto 96px;
  max-width: 1480px;
  min-height: 760px;
  height: calc(100vh - 130px);
  max-height: 880px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cream-200);
  isolation: isolate;
}

@media (max-width: 1024px) {
  .cover { height: auto; min-height: 720px; max-height: none; margin-bottom: 64px; }
}

.cover__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  z-index: 1;
  filter: saturate(0.95) brightness(1.02);
}

.cover__sky {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(220,210,198,0.55) 0%,
      rgba(220,210,198,0.25) 35%,
      rgba(0,0,0,0) 55%,
      rgba(28,28,28,0.18) 100%);
  pointer-events: none;
}

/* Headline tipográfico izquierdo */
.cover__headline {
  position: absolute;
  top: 11%;
  left: clamp(28px, 5vw, 72px);
  z-index: 8;
  max-width: 50%;
}

.cover__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(68px, 9vw, 156px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 22px;
}

.cover__title sup {
  font-family: var(--sans);
  font-size: 0.13em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 8px;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}

.cover__tagline {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  margin: 0 0 28px;
  font-style: italic;
}

.cover__start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 42px;
  background: var(--ink);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--easing);
}

.cover__start:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

/* Card flotante derecha — proyecto destacado */
.cover__preview {
  position: absolute;
  top: 11%;
  right: clamp(20px, 4vw, 48px);
  z-index: 9;
  width: 360px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 28px;
  box-shadow:
    0 30px 60px rgba(20,17,13,0.18),
    0 8px 16px rgba(0,0,0,0.05);
}

.cover__preview-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.cover__preview-tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-family: var(--sans);
}

.cover__preview-tag--dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.cover__preview-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 6px;
}

.cover__preview-title em {
  font-style: italic;
  color: var(--warm-600);
}

.cover__preview-sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 20px;
}

.cover__preview-mini {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--cream-100);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s var(--easing);
}

.cover__preview-mini:hover { background: var(--cream-200); }

.cover__preview-mini-thumb {
  position: relative;
  width: 96px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line-soft);
}

.cover__preview-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__preview-mini-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(20,17,13,0.85);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-family: var(--sans);
}

.cover__preview-mini-name {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.cover__preview-mini-loc {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--sans);
}

/* Panel inferior izquierda — materiales */
.cover__panel {
  position: absolute;
  bottom: clamp(20px, 3vw, 40px);
  left: clamp(20px, 3vw, 40px);
  z-index: 8;
  width: 380px;
  background: var(--warm-500);
  background-image: linear-gradient(135deg, var(--warm-500), var(--warm-600));
  border-radius: 22px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  color: #fff;
  box-shadow: 0 20px 40px rgba(125,110,95,0.3);
}

.cover__panel-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 8px;
}

.cover__panel-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
  font-family: var(--sans);
}

.cover__panel-img {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 84px;
  padding: 10px;
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
}

.cover__panel-img span {
  display: block;
  border-radius: 2px;
}

.cover__panel-img span:nth-child(1) { background: #c8a07f; height: 8px; }
.cover__panel-img span:nth-child(2) { background: #8b6f5a; height: 18px; }
.cover__panel-img span:nth-child(3) { background: #d4c5a8; height: 22px; }
.cover__panel-img span:nth-child(4) { background: #5e4d3e; height: 12px; }

/* Social proof centro inferior */
.cover__social {
  position: absolute;
  bottom: clamp(28px, 4vw, 56px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.cover__avatars { display: flex; margin-bottom: 4px; }

.cover__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--warm-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  border: 2px solid #fff;
  margin-left: -10px;
  text-shadow: none;
}

.cover__avatar:first-child { margin-left: 0; background: var(--ink-2); }

.cover__social-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cover__social-num span { font-size: 0.7em; margin-left: 1px; }

.cover__social-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-top: 4px;
  font-family: var(--sans);
}

/* Quote inferior derecha */
.cover__quote {
  position: absolute;
  bottom: clamp(28px, 4vw, 56px);
  right: clamp(28px, 4vw, 56px);
  z-index: 8;
  text-align: right;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  max-width: 280px;
}

.cover__quote-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cover__quote-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--warm-300);
  text-transform: none;
}

.cover__quote-link {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 4px;
  text-shadow: none;
  font-family: var(--sans);
}

.cover__quote-link:hover { border-color: #fff; }

/* Responsive cover */
@media (max-width: 1024px) {
  .cover__headline { position: relative; top: auto; left: auto; padding: 80px 24px 0; max-width: 100%; }
  .cover__preview { position: relative; top: auto; right: auto; margin: 24px; width: auto; }
  .cover__panel,
  .cover__social,
  .cover__quote {
    position: relative; left: auto; right: auto; bottom: auto; transform: none;
    margin: 16px 24px; width: auto; max-width: none; text-align: left;
  }
  .cover__quote { text-align: left; }
}

/* ============================================
   MASTHEAD — "Luz & Materia"
   ============================================ */
.masthead {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 64px;
  align-items: end;
  margin-bottom: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
  .masthead { grid-template-columns: 1fr; gap: 24px; }
  .masthead__mark { display: none; }
}

.masthead__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0;
}

.masthead__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--warm-600);
  text-transform: lowercase;
  font-size: 0.92em;
  margin: 0 6px;
}

.masthead__sub {
  position: relative;
  padding-bottom: 24px;
}

.masthead__sub p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 440px;
  margin: 0;
}

.masthead__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 30%;
  height: 1px;
  background: linear-gradient(90deg, var(--warm-500), transparent);
}

.masthead__mark {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--warm-300);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

/* ============================================
   PHILOSOPHY STRIP — 3 paneles editoriales
   ============================================ */
.phil-strip { padding: 48px 0 96px; }

.phil-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

@media (max-width: 1024px) { .phil-strip__grid { grid-template-columns: 1fr; } }

.phil-strip__card {
  position: relative;
  padding: 36px;
  border-radius: 24px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
}

.phil-strip__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(20,17,13,0.1);
}

.phil-strip__card--warm {
  background: var(--warm-300);
  color: var(--ink);
  background-image: radial-gradient(circle at top right, rgba(255,255,255,0.4), transparent 60%);
}

.phil-strip__card--ink {
  background: var(--ink);
  color: #fff;
  background-image: radial-gradient(circle at top right, rgba(175,159,144,0.2), transparent 60%);
}

.phil-strip__card--cream {
  background: #fff;
  border-color: var(--line);
}

.phil-strip__num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  opacity: 0.7;
}

.phil-strip__card--ink .phil-strip__num { color: var(--warm-300); opacity: 1; }

.phil-strip__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: auto 0 16px;
  color: inherit;
}

.phil-strip__desc {
  font-size: 14px;
  color: inherit;
  opacity: 0.85;
  line-height: 1.6;
  font-family: var(--sans);
}

.phil-strip__card--ink .phil-strip__desc { opacity: 0.7; }

