/* ============================================================
   DUKENDE CONSULTING — estética editorial vintage
   Marfil #F5F0E7 · Tinta #202020 · Beis antiguo #C9BBA8 · Oro #B49A6B
   ============================================================ */

:root {
  --marfil: #F5F0E7;
  --marfil-2: #EFE8DB;
  --tinta: #202020;
  --tinta-2: #2A2A28;
  --beis: #C9BBA8;
  --oro: #B49A6B;
  --oro-oscuro: #7A6540; /* oro derivado para texto pequeño sobre marfil (contraste AA) */
  --linea-clara: rgba(32, 32, 32, 0.18);
  --linea-oscura: rgba(245, 240, 231, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --quote: "EB Garamond", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--marfil);
  color: var(--tinta);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--oro); color: var(--tinta); }

/* Grano de impresión sobre toda la página */
.grain {
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }

/* ---------- tipografía común ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--oro-oscuro);
  margin-bottom: 1.4rem;
}
.kicker--gold { color: var(--oro); }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 3.2rem;
}
.section__title em { font-style: italic; font-weight: 500; color: var(--oro-oscuro); }
.section__title--light { color: var(--marfil); }
.section__title--light em { color: var(--oro); }

/* ---------- navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.is-solid {
  background: rgba(245, 240, 231, 0.96);
  box-shadow: 0 1px 0 var(--linea-clara);
  padding-block: 0.7rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--marfil); transition: color 0.35s ease; }
.nav.is-solid .nav__brand { color: var(--tinta); }
.nav__logo { width: 40px; height: auto; }
.nav__wordmark { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.14em; }
.nav__wordmark em { font-style: italic; font-size: 0.85rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.85; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--marfil);
  position: relative; padding-block: 0.4rem;
  transition: color 0.25s ease;
}
.nav.is-solid .nav__links a { color: var(--tinta); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--oro);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s ease;
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid currentColor; padding: 0.55rem 1.1rem !important; }
.nav__cta::after { display: none; }
.nav__cta:hover, .nav__cta:focus-visible { background: var(--oro); border-color: var(--oro); color: var(--tinta) !important; }

.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__toggle span { display: block; width: 26px; height: 1.5px; background: var(--marfil); transition: transform 0.3s ease, background 0.35s ease; }
.nav.is-solid .nav__toggle span { background: var(--tinta); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.2px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.2px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--tinta);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.mobile-menu a {
  font-family: var(--serif); font-size: 1.9rem; color: var(--marfil);
  text-decoration: none; transition: color 0.25s ease;
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { color: var(--oro); }

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

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: var(--tinta);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
  transform: scale(1.06);
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero.is-in .hero__media img { transform: scale(1); }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(32,32,32,0.55) 0%, rgba(32,32,32,0.25) 45%, rgba(32,32,32,0.78) 100%);
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: 6rem 1.5rem 4rem; color: var(--marfil); }
.hero__mark { width: 72px; height: auto; margin-bottom: 1.6rem; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.45)); }
.hero__eyebrow {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--beis); margin-bottom: 1.8rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  line-height: 0.98; letter-spacing: 0.06em;
}
.hero__title span { display: block; font-size: 0.32em; font-weight: 400; font-style: italic; letter-spacing: 0.5em; text-transform: uppercase; color: var(--oro); margin-top: 0.9rem; }
.hero__claim { font-family: var(--quote); font-size: clamp(1.15rem, 2.6vw, 1.6rem); margin-top: 2.4rem; color: var(--marfil); }
.hero__claim-en { font-family: var(--quote); font-style: italic; font-size: 0.95rem; color: var(--beis); margin-top: 0.5rem; letter-spacing: 0.04em; }

.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 44px; height: 64px;
  display: flex; justify-content: center;
}
.hero__scroll span { width: 1px; height: 52px; background: linear-gradient(var(--oro), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- secciones ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section--ivory { background: var(--marfil); }
.section--ink { background: var(--tinta); color: var(--marfil); }
.section--beige { background: var(--marfil-2); }

/* Quiénes somos */
.quienes__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.lede { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.45; font-weight: 400; }
.dropcap {
  float: left; font-family: var(--serif); font-weight: 500;
  font-size: 4.6em; line-height: 0.78;
  padding: 0.06em 0.14em 0 0; color: var(--oro-oscuro);
}
.quienes__lead p + p, .quienes__body p + p { margin-top: 1.4rem; }
.quienes__body { padding-top: 0.6rem; }
.quienes__body p { max-width: 58ch; }

.pullquote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.25;
  text-align: center; color: var(--tinta);
  margin: clamp(4.5rem, 9vw, 7.5rem) auto 0;
  max-width: 22ch;
}
.pullquote__rule { display: block; width: 64px; height: 1px; background: var(--oro); margin: 0 auto 1.8rem; }
.pullquote--small { font-size: clamp(1.25rem, 2.2vw, 1.6rem); text-align: left; margin-top: 3rem; max-width: 30ch; }
.pullquote--small .pullquote__rule { margin: 0 0 1.3rem; }

/* Áreas */
.area {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--linea-oscura);
}
.area--rev .area__media { order: 2; }
.area--rev .area__text { order: 1; }
.area__media { overflow: hidden; }
.area__media img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}
.area:hover .area__media img { transform: scale(1.04); }
.area__num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1;
  color: var(--oro); display: block; margin-bottom: 0.8rem;
}
.area__text h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15;
  margin-bottom: 1.3rem; color: var(--marfil);
}
.area__text p { color: rgba(245, 240, 231, 0.88); max-width: 56ch; }
.area__text p + p { margin-top: 1rem; }
.area__text ul { list-style: none; margin: 1.4rem 0; }
.area__text li {
  padding: 0.45rem 0 0.45rem 1.4rem; position: relative;
  color: rgba(245, 240, 231, 0.88);
}
.area__text li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 14px; height: 1px; background: var(--oro);
}
.area__note {
  font-family: var(--quote); font-style: italic;
  font-size: 0.95rem; color: var(--beis) !important;
  border-left: 1px solid var(--oro); padding-left: 1.1rem;
  margin-top: 1.6rem !important;
}

/* Método */
.metodo__intro { max-width: 62ch; margin: -1.2rem 0 3.5rem; }
.principles { list-style: none; border-top: 1px solid var(--linea-clara); }
.principle {
  display: flex; align-items: baseline; gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) 0.5rem;
  border-bottom: 1px solid var(--linea-clara);
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.principle:hover { background: rgba(180, 154, 107, 0.08); padding-left: 1.2rem; }
.principle__num { font-family: var(--quote); font-style: italic; font-size: 0.95rem; color: var(--oro-oscuro); min-width: 2.2rem; }
.principle__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; }
.metodo__close {
  margin-top: 3.5rem; max-width: 62ch;
  display: grid; gap: 1.4rem;
}

/* Fundadora */
.fundadora__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.fundadora__media { position: relative; margin-top: 0.6rem; }
.fundadora__media::after {
  content: ""; position: absolute; inset: 0;
  transform: translate(18px, 18px);
  border: 1px solid var(--oro);
  z-index: -1;
}
.fundadora__media img { width: 100%; height: auto; display: block; }
.fundadora__role { font-family: var(--quote); font-style: italic; color: var(--oro-oscuro); margin: -1.6rem 0 2rem; font-size: 1.05rem; }
.fundadora__text p + p { margin-top: 1.3rem; }
.fundadora__text p { max-width: 62ch; }
.fundadora__essence { font-family: var(--serif); font-size: 1.3rem; font-style: italic; font-weight: 500; color: var(--tinta); }

/* Contacto */
.contacto__inner { text-align: center; max-width: 720px; }
.contacto__mark { width: 64px; height: auto; margin-bottom: 2rem; }
.contacto__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.05;
  color: var(--marfil); margin-bottom: 2.2rem;
}
.contacto__title em { font-style: italic; font-weight: 500; color: var(--oro); }
.contacto__text { color: rgba(245, 240, 231, 0.88); max-width: 54ch; margin-inline: auto; }
.contacto__meta {
  margin-top: 2.6rem;
  font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  line-height: 2; color: var(--beis);
}
.contacto__motto { font-family: var(--quote); font-size: 1.25rem; color: var(--oro); margin-top: 2.2rem; }

/* Footer */
.footer {
  background: var(--tinta);
  border-top: 1px solid var(--linea-oscura);
  padding: 2.2rem clamp(1.2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 0.8rem 2.5rem;
  align-items: baseline; justify-content: space-between;
  color: var(--beis);
}
.footer span:first-child { font-family: var(--serif); letter-spacing: 0.2em; font-size: 0.95rem; }
.footer__tag { font-family: var(--quote); font-style: italic; font-size: 0.85rem; opacity: 0.75; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .quienes__grid, .fundadora__grid { grid-template-columns: 1fr; }
  .fundadora__media { max-width: 420px; }
  .area, .area--rev { grid-template-columns: 1fr; gap: 2rem; }
  .area--rev .area__media { order: 0; }
  .area--rev .area__text { order: 1; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav__wordmark { font-size: 1rem; }
  .hero__mark { width: 56px; }
  .principle { flex-direction: column; gap: 0.2rem; }
}
