@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,600&family=Inter:wght@400;600&display=swap");

:root {
  --indigo: #0c1023;
  --slate: #171b2e;
  --brass: #c79a54;
  --bone: #f3efe6;
  --grey: #8b8a93;
  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --pad: clamp(6rem, 10vw, 8.75rem);
  --measure: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.js .reveal {
  opacity: 0.001;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal,
  html.js .reveal.is-visible,
  .hairline,
  .btn,
  a {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--indigo);
  color: var(--bone);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.surface-indigo {
  background: #0c1023;
  color: #f3efe6;
}

.surface-bone {
  background: #f3efe6;
  color: #0c1023;
}

.surface-slate {
  background: #171b2e;
  color: #f3efe6;
}

.surface-brass {
  background: #c79a54;
  color: #0c1023;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.measure {
  max-width: var(--measure);
}

.hairline {
  height: 1px;
  background: var(--brass);
  border: 0;
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(199, 154, 84, 0.35);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.brand small {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  box-shadow: 0 1px 0 var(--brass);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
  padding: 0.35rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* Hero — Editorial de Estudio */
.hero-estudio {
  min-height: 92vh;
  position: relative;
  padding: 1.5rem 0 4rem;
  overflow: hidden;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 0.85rem;
}

.hero-top .desde {
  color: var(--brass);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  padding-top: 3.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.65rem, 5.6vw, 4.75rem);
  margin: 0.4rem 0 1.2rem;
  max-width: 14ch;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--brass);
  font-weight: 600;
}

.hero-sub {
  max-width: 32.5rem;
  color: rgba(243, 239, 230, 0.8);
  font-size: 1.05rem;
}

.hero-frame {
  position: relative;
  margin: 2rem 0 0 auto;
  width: min(100%, 28rem);
  transform: translateY(1.5rem);
  outline: 1px solid var(--brass);
  outline-offset: 8px;
}

.hero-frame img {
  width: 100%;
  height: 52vh;
  object-fit: cover;
}

.trust-strip {
  margin-top: 3.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.section {
  padding: var(--pad) 0;
}

.section + .section {
  border-top: 1px solid var(--brass);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0.4rem 0 1.2rem;
}

.lede {
  font-size: 1.12rem;
  line-height: 1.75;
}

.aside-note {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--grey);
  margin-top: 1.1rem;
}

.surface-bone .aside-note {
  color: #5c5b63;
}

/* Pull-quote slab */
.quote-slab {
  margin: 3rem 0 0;
  padding: 2.2rem 0 0;
  border-top: 1px solid var(--brass);
}

.quote-slab blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.3;
  max-width: 22ch;
}

.quote-slab cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
}

/* Quiet stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-row .num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--brass);
  line-height: 1;
  display: block;
}

.stat-row p {
  margin: 0.6rem 0 0;
  max-width: 22ch;
  color: rgba(243, 239, 230, 0.82);
}

/* Paper cards / pillars */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.paper-card {
  position: relative;
  border: 1px solid var(--brass);
  padding: 1.6rem 1.4rem 1.8rem;
  background-image: linear-gradient(180deg, rgba(243, 239, 230, 0.03), transparent);
}

.paper-card .mono {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  font-family: var(--display);
  font-size: 0.7rem;
  color: var(--brass);
  letter-spacing: 0.12em;
}

.paper-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
}

.serial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.serial-card {
  position: relative;
  border: 1px solid rgba(199, 154, 84, 0.45);
  padding: 2.2rem 1.3rem 1.5rem;
  overflow: hidden;
  min-height: 12rem;
}

.serial-card .ghost {
  position: absolute;
  right: 0.3rem;
  top: -0.4rem;
  font-family: var(--display);
  font-size: 5.2rem;
  line-height: 1;
  color: rgba(199, 154, 84, 0.14);
  pointer-events: none;
}

.serial-card h3 {
  position: relative;
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.photo-edit {
  margin: 2.2rem 0 0;
}

.photo-edit img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  outline: 1px solid var(--brass);
  outline-offset: 6px;
}

.figcap {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.85rem;
  color: var(--grey);
}

/* Carta del fundador */
.letter {
  max-width: 38rem;
}

.letter p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 3.6rem;
  float: left;
  line-height: 0.8;
  padding: 0.15rem 0.45rem 0 0;
  color: var(--brass);
}

.letter-sign {
  margin-top: 2rem;
  font-family: var(--display);
  font-style: italic;
}

.about-mast {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) 1.1fr;
  gap: 3.25rem 5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-mast .letter {
  max-width: none;
  padding-left: 0.35rem;
}

.portrait-frame {
  width: min(100%, 22rem);
  outline: 1px solid var(--brass);
  outline-offset: 8px;
  margin-bottom: 2.5rem;
}

.about-mast .portrait-frame {
  width: 100%;
  margin: 0 0.65rem 0 0;
}

.portrait-frame img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
}

.about-mast .portrait-frame img {
  height: min(38rem, 78vh);
}

/* Services two-col list */
.format-list {
  display: grid;
  gap: 1.6rem;
}

.format-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--brass);
}

.format-item .n {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--brass);
}

/* FAQ accordion */
.faq-item {
  border-top: 1px solid var(--brass);
  padding: 1.1rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--brass);
}

.faq-item h2 {
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 600;
  margin: 0;
}

.faq-item button {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
}

.faq-item .ans {
  font-family: var(--sans);
  font-style: normal;
  margin: 0.8rem 0 0.4rem;
  max-width: var(--measure);
}

/* Contact stack */
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  max-width: 40rem;
}

.map-wrap {
  width: 100%;
  height: 360px;
  border: 1px solid var(--brass);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  filter: sepia(0.35) grayscale(0.15);
}

/* Forms — light surface only */
.form-status:empty {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-status:not(:empty) {
  padding: 0.9rem 1rem;
  border: 1px solid var(--brass);
  margin-bottom: 1.2rem;
}

.form-status.is-ok {
  background: #c79a54;
  color: #0c1023;
}

.form-status.is-err,
.form-status.is-wait {
  background: #0c1023;
  color: #f3efe6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.8rem;
  border: 1px solid #0c1023;
  background: #fffdf8;
  color: #0c1023;
  width: 100%;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error:empty {
  display: block;
  min-height: 0;
}

.field-error:not(:empty) {
  font-size: 0.82rem;
  color: #7a2e12;
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0 1.2rem;
}

.check input {
  margin-top: 0.3rem;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Footer */
.site-footer {
  padding: 3.2rem 0 2.2rem;
  border-top: 1px solid var(--brass);
  font-size: 0.92rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.foot-legal {
  margin-top: 2rem;
  max-width: 46rem;
  font-size: 0.82rem;
  color: var(--grey);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  font-size: 0.8rem;
}

/* Cookie */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 1.1rem 0;
  border-top: 1px solid var(--brass);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-row p {
  margin: 0;
  max-width: 46rem;
  font-size: 0.9rem;
}

.cookie-panel[hidden] {
  display: none;
}

.cookie-panel {
  margin-top: 0.9rem;
  font-size: 0.88rem;
}

/* Legal prose */
.legal-prose h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
}

.legal-prose p,
.legal-prose li {
  max-width: 42rem;
}

.crumb {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
}

.page-hero-bone {
  padding: 4.5rem 0 2rem;
}

@media (max-width: 860px) {
  .hero-estudio {
    min-height: 78vh;
  }
  .hero-grid,
  .about-mast,
  .card-row,
  .serial-grid,
  .stat-row,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .hero-frame {
    margin: 1rem 0 0;
    width: 100%;
    transform: none;
  }
  .hero-frame img {
    height: 38vh;
  }
  .about-mast .portrait-frame img {
    height: 42vh;
  }
  .about-mast .portrait-frame {
    margin: 0 0 1.25rem;
  }
  .about-mast .letter {
    padding-left: 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0c1023;
    color: #f3efe6;
    flex-direction: column;
    padding: 1rem 1.25rem 1.3rem;
    border-bottom: 1px solid var(--brass);
  }
  .nav-links.is-open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .format-item {
    grid-template-columns: 1fr;
  }
}
