/* ===== Sala Portal — Design tokens ===== */
:root {
  --gold: #9C7A45;
  --gold-dark: #6E5530;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --ink: #221D15;
  --ink-soft: #4A4238;
  --near-black: #14110D;
  --line: #E6DFD3;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --display: 'Cormorant', var(--serif);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--gold-dark);
  margin: 0 0 0.5em;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 600; }
h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
h3 { font-size: 1.3rem; color: var(--ink); }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

/* ===== Header / Nav ===== */
.nav-toggle { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark { width: 28px; height: 28px; }

.brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 1.6rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--gold-dark); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 760px) {
  .nav-burger { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav a {
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--line);
  }

  .nav-toggle:checked ~ .site-header .site-nav {
    max-height: 400px;
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.hero-mark {
  width: clamp(90px, 18vw, 140px);
  margin-bottom: 1.5rem;
}

.hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.3em;
}

.brandline {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.statement {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  color: var(--ink);
  max-width: 20ch;
  line-height: 1.4;
}

.scroll-cta {
  margin-top: 3rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.scroll-cta:hover { background: var(--gold); color: var(--white); }

/* ===== Sections ===== */
.section {
  padding: 5.5rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section-alt { background: var(--cream); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-dark {
  background: var(--near-black);
  max-width: none;
  text-align: center;
}
.section-dark > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.section-dark h2 { color: var(--gold); }
.section-dark p { color: #D9D2C4; }
.section-dark strong { color: var(--gold); }

.center { text-align: center; }

.section-lead {
  text-align: center;
  font-style: italic;
  font-family: var(--display);
  color: var(--gold-dark);
  margin-top: -0.5rem;
  margin-bottom: 2.5rem;
}

.prose {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.prose-narrow {
  max-width: 46ch;
  margin: 0 auto 2rem;
}

/* ===== Grids / Cards ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.section-alt .card { background: var(--white); }

.card h3 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6em;
  margin-bottom: 0.7em;
}

.card p { font-size: 0.96rem; margin-bottom: 0; }

.person-name {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}

.person-hub { border-color: var(--gold); }
.person-hub h3 { color: var(--gold-dark); }

/* ===== Portafolio ===== */
.coming-soon {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ===== Contacto ===== */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-form label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 1em 0 0.4em;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.7em 0.8em;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.contact-form button {
  margin-top: 1.8rem;
  align-self: flex-start;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  padding: 0.8em 2em;
  background: var(--gold-dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover { background: var(--ink); }

.direct-mail {
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--near-black);
  color: #B9AF9C;
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-mark {
  width: 120px;
  margin: 0 auto 1.2rem;
}

.site-footer p {
  color: #8A8071;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0;
}
