/* ============================================================
   Inclusive Living Standard — Stylesheet
   Cream-dominant editorial + technical
   ============================================================ */

:root {
  /* Palette — cream-dominant */
  --cream: #F1ECDF;
  --cream-warm: #ECE5D2;
  --cream-light: #FAF7F0;
  --off-white: #FBF9F4;

  /* Structure */
  --charcoal: #2A2E33;
  --charcoal-soft: #3D4147;
  --charcoal-mute: #6E7177;
  --line: #D8D0BD;
  --line-soft: #E5DECA;

  /* Authority */
  --navy: #0E2240;
  --navy-deep: #081730;
  --navy-light: #1B335A;

  /* Certification — reserved */
  --gold: #C9A961;
  --gold-bright: #D4B872;
  --gold-deep: #A68B4A;

  /* Fonts */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --maxw: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--gold-deep); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--sans); color: var(--charcoal); letter-spacing: 0.02em; text-transform: uppercase; }

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

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--charcoal-soft);
  font-weight: 400;
  font-style: italic;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  font-weight: 500;
  margin: 0 0 1.2em;
  display: inline-block;
}

.num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---------- Layout shells ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
section + section { border-top: 1px solid var(--line); }

.section-alt { background: var(--cream-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand img { width: 36px; height: 36px; }
.brand strong { font-weight: 500; }
.brand small {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--navy); }
.nav .lang {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--charcoal-mute);
}
.nav .lang:hover { color: var(--navy); border-color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle svg { width: 32px; height: 32px; stroke: var(--navy); stroke-width: 2; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  /* Header: ocultar solo el tagline, dejar el nombre en tamaño reducido */
  .brand { gap: 0.5rem; }
  .brand img { width: 34px; height: 34px; flex-shrink: 0; }
  .brand span { display: flex; flex-direction: column; min-width: 0; }
  .brand strong { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand small { display: none; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--pad) 1.5rem;
    gap: 1.1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
    box-shadow: 0 8px 24px rgba(14, 34, 64, 0.05);
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 169, 97, 0.06), transparent 50%),
    var(--cream);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__seal {
  position: relative;
  text-align: center;
}
.hero__seal img {
  max-width: 100%;
  width: clamp(240px, 32vw, 380px);
  margin: 0 auto;
  filter: drop-shadow(0 10px 28px rgba(14, 34, 64, 0.18));
}
.hero h1 { margin-top: 0.4em; }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--charcoal-soft);
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.5rem 0 2rem;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__seal { display: block; }
  .hero__seal img { width: 130px; margin: 0 auto 0.5rem; }
  .hero__tagline { border-left: 0; border-top: 1px solid var(--gold); padding: 1rem 0 0; }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 200ms ease;
  cursor: pointer;
}
.btn--primary { background: var(--navy); color: var(--cream-light); }
.btn--primary:hover { background: var(--navy-deep); color: var(--gold-bright); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream-light); }
.btn::after { content: '→'; font-family: var(--mono); transition: transform 200ms ease; }
.btn:hover::after { transform: translateX(3px); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--off-white);
}
.pillar {
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border-right: 1px solid var(--line);
  position: relative;
}
.pillar:last-child { border-right: 0; }
.pillar .num { display: block; margin-bottom: 1.5rem; }
.pillar h3 { color: var(--navy); margin-bottom: 0.7rem; }
.pillar p { color: var(--charcoal-soft); font-size: 0.95rem; line-height: 1.65; margin: 0; }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
}

/* ---------- Two-column intro ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.two-col__label h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.two-col__body p { font-size: 1.02rem; color: var(--charcoal-soft); }
.two-col__body p:first-child { color: var(--charcoal); font-size: 1.1rem; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Levels ---------- */
.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.level {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.3rem);
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.level:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(14, 34, 64, 0.08);
  border-color: var(--gold);
}
.level__badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.level__badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.level--silver .level__badge::before { background: #B8B8B8; }
.level--gold .level__badge::before { background: var(--gold); }
.level--platinum .level__badge::before { background: #6B7280; box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.15); }
.level h3 { color: var(--navy); margin-bottom: 0.8rem; }
.level p { color: var(--charcoal-soft); font-size: 0.95rem; }
.level__list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
}
.level__list li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.level__list li::before {
  content: '+';
  font-family: var(--mono);
  color: var(--gold-deep);
  font-weight: 600;
}

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

/* ---------- Basis / Methodology blocks ---------- */
.basis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.basis__item {
  padding: clamp(2rem, 3.5vw, 2.8rem) clamp(1.4rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
  text-align: left;
}
.basis__item:last-child { border-right: 0; }
.basis__item .num { display: block; margin-bottom: 0.8rem; }
.basis__item h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}
.basis__item h3 small {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--charcoal-mute);
  margin-top: 0.4rem;
  text-transform: uppercase;
}
.basis__item p {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin: 0.8rem 0 0;
}

@media (max-width: 860px) {
  .basis { grid-template-columns: 1fr; }
  .basis__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .basis__item:last-child { border-bottom: 0; }
}

/* ---------- Process strip ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  counter-reset: step;
}
.process__step {
  padding: 1.6rem 1.4rem;
  border-left: 1px solid var(--line);
  position: relative;
}
.process__step:first-child { border-left: 0; padding-left: 0; }
.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}
.process__step h4 {
  margin-bottom: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}
.process__step p { font-size: 0.88rem; color: var(--charcoal-soft); margin: 0; }

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process__step { border-left: 0; border-top: 1px solid var(--line); padding: 1.2rem 0; }
  .process__step:nth-child(odd) { padding-right: 1rem; }
  .process__step:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .process__step:first-child, .process__step:nth-child(2) { border-top: 0; }
}

/* ---------- CTA ---------- */
.cta {
  background: var(--navy);
  color: var(--cream-light);
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-top: 0;
  text-align: center;
}
.cta h2 { color: var(--cream-light); }
.cta p { color: rgba(248, 245, 238, 0.75); max-width: 620px; margin: 0 auto 2rem; }
.cta .btn--primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.cta .btn--primary:hover { background: var(--gold-bright); color: var(--navy-deep); }
.cta .btn--ghost { color: var(--cream-light); border-color: var(--cream-light); }
.cta .btn--ghost:hover { background: var(--cream-light); color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(248, 245, 238, 0.78);
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
  font-size: 0.9rem;
}
.site-footer .container { max-width: var(--maxw); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand img { width: 48px; height: 48px; margin-bottom: 1rem; }
.footer-brand h4 { color: var(--cream-light); font-family: var(--serif); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 1.2rem; margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 320px; margin: 0; }
.footer-brand .footer-owner {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(201, 169, 97, 0.25);
  font-size: 0.85rem;
  color: rgba(248, 245, 238, 0.92);
}
.footer-brand .footer-owner a {
  color: var(--gold-bright);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 184, 114, 0.4);
}
.footer-brand .footer-owner a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(248, 245, 238, 0.78); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(248, 245, 238, 0.12);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-bottom .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 245, 238, 0.55);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-mono { font-family: var(--mono); }
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* Reveal - defensive: only hides when JS is loaded */
.js-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms ease; }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--cream-light);
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.page-hero .lead { max-width: 720px; margin-top: 1rem; }

/* ---------- Long content ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { font-size: 1.02rem; color: var(--charcoal); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 1.2rem 0; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--charcoal-soft);
}

/* ---------- Contact form ---------- */
.contact-form {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  border-radius: 2px;
}
.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-form .form-grid.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  font-weight: 500;
}
.form-field label .req { color: var(--gold-deep); margin-left: 0.2rem; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--charcoal);
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  width: 100%;
  transition: border-color 180ms ease, background 180ms ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; font-family: var(--sans); }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%232A2E33' stroke-width='1.6' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream-light);
  cursor: pointer;
  transition: all 200ms ease;
}
.form-submit::after { content: '→'; font-family: var(--mono); transition: transform 200ms ease; }
.form-submit:hover { background: var(--navy-deep); color: var(--gold-bright); }
.form-submit:hover::after { transform: translateX(3px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-note {
  font-size: 0.82rem;
  color: var(--charcoal-mute);
}
.form-status {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success {
  background: rgba(76, 132, 90, 0.08);
  border: 1px solid rgba(76, 132, 90, 0.3);
  color: #2D5538;
}
.form-status.error {
  background: rgba(180, 60, 60, 0.06);
  border: 1px solid rgba(180, 60, 60, 0.25);
  color: #8A2929;
}

@media (max-width: 720px) {
  .contact-form .form-grid { grid-template-columns: 1fr; }
}
