/* =========================================================================
   Domínguez Almengot · main.css — Sitio público
   Tokens, layout y secciones del homepage.
   ========================================================================= */

:root {
  --ink:        #0D0F14;
  --ink-soft:   #1a1d24;
  --ivory:      #F5F0E8;
  --ivory-warm: #ece5d8;
  --brass:      #B8943F;

  --rule:        rgba(184, 148, 63, .35);
  --muted:       rgba(245, 240, 232, .62);
  --muted-ink:   rgba(13, 15, 20, .58);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "DM Sans", system-ui, -apple-system, sans-serif;

  --container: 1320px;
  --gutter:    72px;
}

/* ----- Reset (mínimo) ---------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.screen-reader-text {
  position: absolute !important; clip: rect(0,0,0,0); width: 1px; height: 1px;
  overflow: hidden;
}
.skip:focus { left: 8px; top: 8px; padding: 12px 16px; background: var(--brass); color: var(--ink); }

/* ----- Tipografía -------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.display--sm { font-size: 28px; }
.display      { font-size: 64px; }
.display--lg  { font-size: 72px; }
.display--xl  { font-size: 132px; line-height: .95; letter-spacing: -.015em; }

.display em, .display i { font-style: italic; }

.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted-ink);
}
.eyebrow--brass { color: var(--brass); }
.eyebrow--muted { color: rgba(245,240,232,.45); }

.lede {
  font-family: var(--font-display);
  font-size: 26px; line-height: 1.45;
  font-style: italic; max-width: 720px;
  margin: 0;
}

.rule { width: 96px; height: 1px; background: var(--ink); }
.rule--brass { background: var(--brass); }

/* ----- Layout ------------------------------------------------------------ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.site-main { display: block; }
section { padding: 140px var(--gutter); }

/* ----- Header del sitio -------------------------------------------------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  padding: 32px var(--gutter);
  color: var(--ivory);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; }
.brand__name {
  font-family: var(--font-display); font-style: italic; font-size: 18px;
  letter-spacing: .02em;
}
.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav__list {
  display: flex; gap: 36px; list-style: none; margin: 0; padding: 0;
}
.primary-nav__list a {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; opacity: .85;
}
.primary-nav__list a:hover { opacity: 1; color: var(--brass); }

/* ----- Botones ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; justify-content: center;
  padding: 18px 32px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 600;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--ink   { background: var(--ink); color: var(--ivory); }
.btn--ghost {
  background: transparent; color: var(--ivory); padding-inline: 0;
  border-bottom: 1px solid rgba(245,240,232,.4);
}
.btn--outline-ink {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  padding: 10px 18px; font-size: 11px;
}
.btn--block { width: 100%; }

/* ----- HERO -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 180px var(--gutter) 120px;
  background: var(--ink); color: var(--ivory);
  min-height: 980px;
}
.hero__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--ink) 0%,
    var(--ink) 28%,
    rgba(13,15,20,.92) 42%,
    rgba(13,15,20,.45) 60%,
    rgba(13,15,20,.05) 100%);
}
.hero__vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 55%,
    rgba(13,15,20,.7) 88%,
    var(--ink) 100%);
}
.hero > *:not([aria-hidden="true"]) { position: relative; z-index: 2; }
.hero__watermark {
  position: absolute; left: -40px; top: 60px; z-index: 1;
  font-family: var(--font-display); font-style: italic;
  font-size: 360px; line-height: .85; letter-spacing: -.04em;
  color: rgba(184,148,63,.07);
  user-select: none; pointer-events: none;
}
.hero__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 90px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
}
.hero__meta span:last-child { opacity: .55; }
.hero__body { position: relative; max-width: 760px; }
.hero__body .display { text-shadow: 0 1px 24px rgba(0,0,0,.5); }
.hero__body .display em { color: var(--brass); }
.hero__body .rule { margin: 44px 0 32px; }
.hero__body .lede { color: var(--ivory); margin-top: 0; max-width: 580px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.cta-row { display: flex; gap: 28px; align-items: center; margin-top: 56px; flex-wrap: wrap; }

.hero__sello {
  position: absolute; right: var(--gutter); bottom: 200px; z-index: 2;
  text-align: right; color: var(--ivory);
}
.hero__sello-name {
  font-family: var(--font-display); font-size: 22px; color: var(--brass);
}
.hero__sello-name em { font-style: italic; }
.hero__sello-role {
  margin-top: 4px;
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(245,240,232,.7);
}

.hero__strip {
  margin-top: 140px; padding-top: 28px;
  border-top: 1px solid rgba(245,240,232,.18);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  position: relative;
}
.stat__big { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1; }
.stat__sub { margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }

/* ----- SOBRE EL LICENCIADO ---------------------------------------------- */
.sobre {
  background: var(--ivory);
  display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 96px; align-items: start;
}
.portrait-frame {
  aspect-ratio: 4/5;
  background-color: var(--ink);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative; overflow: hidden;
}
.portrait-frame__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,15,20,.55) 100%);
}
.portrait-frame__label {
  position: absolute; top: 20px; left: 20px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(245,240,232,.7);
}
.portrait-frame__mark {
  position: absolute; right: 20px; bottom: 20px;
  font-family: var(--font-display); font-style: italic; font-size: 32px;
  color: var(--brass);
}
.sobre__caption { margin-top: 24px; }
.sobre__caption-name {
  font-family: var(--font-display); font-size: 22px;
  font-style: italic; line-height: 1.3;
}
.sobre__caption-role {
  margin-top: 6px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-ink);
}
.sobre__body .display { margin-top: 28px; }
.sobre__cols {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 56px; row-gap: 22px;
  font-size: 16px; line-height: 1.75;
}
.sobre__cols p { margin: 0; }
.creds {
  margin-top: 64px; padding-top: 36px;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.cred__k {
  font-size: 11px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 10px;
}
.cred__v { font-size: 14px; line-height: 1.5; }

/* ----- ÁREAS ------------------------------------------------------------- */
.areas { background: var(--ink); color: var(--ivory); }
.areas__header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 80px; gap: 80px;
}
.areas__header .eyebrow { margin-bottom: 28px; }
.areas__header .display { max-width: 760px; }
.areas__header .display em { color: var(--brass); }
.areas__note { max-width: 320px; font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }

.areas__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(245,240,232,.12);
}
.area {
  padding: 40px 36px 44px;
  border-right: 1px solid rgba(245,240,232,.12);
  border-bottom: 1px solid rgba(245,240,232,.12);
  min-height: 280px;
}
.area:nth-child(3n) { border-right: none; }
.area:nth-last-child(-n+3) { border-bottom: none; }
.area__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px;
}
.area__num { font-family: var(--font-display); font-style: italic; font-size: 28px; color: var(--brass); }
.area__tag { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.area__title { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.1; margin: 0; }
.area__desc  { margin: 18px 0 0; font-size: 14px; color: var(--muted); line-height: 1.65; }
.area__cta   {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
}

/* ----- PROCESO ----------------------------------------------------------- */
.proceso { background: var(--ivory-warm); }
.proceso .display { margin-top: 28px; max-width: 900px; }
.proceso__list {
  margin: 80px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  position: relative;
}
.proceso__list::before {
  content: ""; position: absolute; top: 6px; left: 0; right: 0;
  height: 1px; background: var(--rule);
}
.paso { position: relative; padding-top: 30px; }
.paso__mark {
  position: absolute; top: 0; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ivory-warm); border: 1px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
}
.paso__mark span { width: 5px; height: 5px; background: var(--brass); border-radius: 50%; }
.paso__no { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--brass); margin-bottom: 12px; }
.paso__title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.15; margin: 0; }
.paso__desc { margin: 12px 0 0; font-size: 14px; color: var(--muted-ink); line-height: 1.65; }

/* ----- CITA -------------------------------------------------------------- */
.cita {
  background: var(--ivory);
  padding: 120px var(--gutter);
  display: grid; grid-template-columns: 120px minmax(0,1fr) 120px;
  gap: 0; align-items: center; text-align: center;
}
.cita__mark {
  font-family: var(--font-display); font-style: italic;
  font-size: 200px; line-height: .7;
  color: var(--brass);
  justify-self: start;
}
.cita__text {
  margin: 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 44px; line-height: 1.25;
}
.cita__attr {
  grid-column: 2;
  margin-top: 36px;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted-ink);
}

/* ----- CTA --------------------------------------------------------------- */
.cta-section { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.cta-section__halo {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(184,148,63,.10), transparent 55%);
}
.cta-section__inner {
  position: relative; display: grid;
  grid-template-columns: 1.4fr 1fr; gap: 100px; align-items: center;
}
.cta-section__text .display em { color: var(--brass); }
.cta-section__text .lede { color: var(--muted); font-style: normal; font-family: var(--font-body); font-size: 17px; margin-top: 32px; }

.cta-section__card {
  background: rgba(245,240,232,.04);
  border: 1px solid rgba(245,240,232,.14);
  padding: 44px;
}
.cta-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.cta-card__title { font-family: var(--font-display); font-size: 26px; }
.cta-card__tag { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.cta-card__row {
  padding-top: 22px; margin-top: 22px;
  border-top: 1px solid rgba(245,240,232,.10);
  display: grid; grid-template-columns: 120px 1fr; gap: 20px;
}
.cta-card__k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cta-card__v { font-size: 14px; line-height: 1.6; }
.cta-section__card .btn { margin-top: 36px; justify-content: space-between; padding: 20px 28px; }

/* ----- FOOTER ------------------------------------------------------------ */
.site-footer {
  background: var(--ink); color: var(--muted);
  border-top: 1px solid rgba(245,240,232,.10);
  padding: 56px var(--gutter) 44px;
  font-size: 12px;
}
.site-footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  align-items: start;
}
.site-footer p { margin: 28px 0 0; max-width: 360px; line-height: 1.65; }
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__nav a { color: var(--ivory); opacity: .78; }
.site-footer__legal {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(245,240,232,.10);
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}

/* ----- WORDMARK ---------------------------------------------------------- */
.wordmark { display: inline-block; height: 48px; width: auto; vertical-align: middle; }

/* ----- Prose / página estándar ------------------------------------------ */
.prose-section { padding-top: 200px; }
.archive-header, .page-header { margin-bottom: 56px; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-family: var(--font-display); font-size: 36px; margin-top: 56px; }
.prose a { border-bottom: 1px solid var(--brass); }

/* ----- Responsive (rápido — el cliente probará en staging) -------------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .display--xl { font-size: 96px; }
  .display, .display--lg { font-size: 48px; }
  .sobre, .cta-section__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__strip, .areas__grid, .proceso__list,
  .site-footer__inner, .sobre__cols, .creds { grid-template-columns: 1fr 1fr; }
  .areas__grid .area, .areas__grid .area:nth-child(3n) { border-right: 1px solid rgba(245,240,232,.12); }
  .areas__grid .area:nth-child(2n) { border-right: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 24px; }
  section { padding: 80px var(--gutter); }
  .hero { padding-top: 140px; }
  .display--xl { font-size: 64px; }
  .display, .display--lg { font-size: 36px; }
  .lede, .cita__text { font-size: 22px; }
  .hero__strip, .areas__grid, .proceso__list,
  .site-footer__inner, .sobre__cols, .creds { grid-template-columns: 1fr; }
  .primary-nav__list { display: none; }
}
