/* ══════════════════════════════════════════════
   SEC — OSH  ·  style.css
   Paleta tierra / naturaleza · Bilingüe ES/EN
══════════════════════════════════════════════ */

:root {
  --ink:    #17170f;
  --earth:  #3b2918;
  --moss:   #496640;
  --canopy: #2a4227;
  --ochre:  #b87d2e;
  --sand:   #e6d7b5;
  --cream:  #f4efe4;
  --white:  #fdfcf8;
  --accent: #c4862a;
  --muted:  #7a6a55;

  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
}

/* ── Accessibility ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--ochre); color: var(--ink);
  padding: .5rem 1rem; font-weight: 600; border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* ── Language control ── */
/* El JS aplica .lang-hidden al idioma que no corresponde, preservando el
   display propio de cada componente (flex, inline-flex, etc.). */
.lang-hidden { display: none !important; }

/* Anti-parpadeo: hasta que el JS marque el idioma, el documento ya nace en
   español. La clase .js-ready (que añade el JS) desactiva este fallback. */
body:not(.js-ready) [data-en] { display: none !important; }

/* ══ SHARED TYPOGRAPHY ══ */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--moss); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .65rem;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--ochre); }

.title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700;
  color: var(--earth); line-height: 1.15; margin-bottom: 1.3rem;
}
.title.light { color: var(--sand); }

.body {
  font-size: 1rem; line-height: 1.85; color: #40342a; max-width: 620px;
}
.body.light { color: rgba(230,215,181,.78); }

.section-head { max-width: 640px; margin-bottom: 3.5rem; }

/* Hero ocupa toda la pantalla; el resto del contenido no se esconde tras el nav fijo */
main { display: block; }

/* ══ NAV ══ */
#navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: #1c1c12;
  border-bottom: 1px solid rgba(184,125,46,.12);
  transition: padding .3s, background .3s;
}
#navbar.scrolled { padding: .6rem 3rem; background: #14140d; }
.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-logo img { height: 34px; border-radius: 3px; }
.nav-wordmark { white-space: nowrap; }
.nav-wordmark { font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 700; color: var(--sand); }
.nav-wordmark span { color: var(--ochre); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  color: rgba(230,215,181,.65); text-decoration: none;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; transition: color .2s; padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--ochre); border-bottom-color: var(--ochre); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle { display: flex; gap: .3rem; }
.lang-btn {
  background: none; border: 1px solid rgba(184,125,46,.35);
  color: rgba(230,215,181,.55); padding: .28rem .6rem;
  font-size: .7rem; cursor: pointer; border-radius: 2px;
  font-family: 'Space Mono', monospace; transition: all .2s;
}
.lang-btn.active, .lang-btn:hover { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.nav-cta {
  background: var(--ochre); color: var(--ink); padding: .42rem 1rem;
  border-radius: 2px; font-size: .76rem; font-weight: 600;
  text-decoration: none; letter-spacing: .04em; transition: background .2s;
}
.nav-cta:hover { background: var(--accent); color: var(--white); }

/* ══ HERO ══ */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 90px;        /* despeja el nav fijo */
  padding-bottom: 3rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transform: scale(1.04); transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(23,23,15,.1) 0%, rgba(23,23,15,.55) 50%, rgba(23,23,15,.94) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 6rem; max-width: 820px; }
.hero-eyebrow {
  font-family: 'Space Mono', monospace; font-size: .7rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ochre);
  margin-bottom: 1.1rem; display: flex; align-items: center; gap: .8rem;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ochre); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 900;
  line-height: 1.07; color: var(--white); margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--ochre); }
.hero-sub {
  font-size: 1.05rem; font-weight: 300; color: rgba(230,215,181,.85);
  max-width: 520px; line-height: 1.75; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.8rem; font-size: .9rem; text-decoration: none;
  border-radius: 2px; transition: all .2s; letter-spacing: .03em;
}
.btn-primary { background: var(--ochre); color: var(--ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-ghost { border: 1px solid rgba(230,215,181,.35); color: var(--sand); }
.btn-ghost:hover { border-color: var(--ochre); color: var(--ochre); }

/* ══ PROBLEM ══ */
.problem {
  background: var(--canopy);
  display: grid; grid-template-columns: 1fr 1fr;
}
.problem-img { height: 560px; overflow: hidden; }
.problem-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.6) brightness(.88); transition: transform .6s;
}
.problem-img:hover img { transform: scale(1.04); }
.problem-text {
  padding: 5rem; display: flex; flex-direction: column; justify-content: center;
}
.pull-quote {
  border-left: 3px solid var(--ochre); padding-left: 1.4rem; margin-top: 1.8rem;
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  font-style: italic; color: var(--ochre); line-height: 1.65;
}

/* ══ HOW IT WORKS ══ */
.how { background: var(--cream); padding: 6rem; }
.how-flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch; gap: 0; margin-bottom: 4rem;
}
.how-step {
  background: var(--white); border: 1px solid rgba(59,41,24,.1);
  border-radius: 4px; padding: 2.2rem 1.9rem; transition: box-shadow .3s, transform .3s;
}
.how-step:hover { box-shadow: 0 12px 32px rgba(59,41,24,.12); transform: translateY(-4px); }
.how-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--ochre); font-size: 1.5rem; padding: 0 1.2rem;
}
.step-num { font-family: 'Space Mono', monospace; font-size: .7rem; color: var(--ochre); letter-spacing: .15em; margin-bottom: .8rem; }
.step-icon { font-size: 2rem; margin-bottom: .8rem; }
.how-step h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--earth); margin-bottom: .6rem; }
.how-step p { font-size: .88rem; color: var(--muted); line-height: 1.65; }

.how-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.screen-frame {
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(59,41,24,.14);
  border: 1px solid rgba(59,41,24,.06); background: var(--white);
  transition: transform .3s, box-shadow .3s;
}
.screen-frame:hover { transform: translateY(-4px); box-shadow: 0 22px 56px rgba(59,41,24,.2); }
.screen-frame img { width: 100%; display: block; }
.screen-frame figcaption {
  font-size: .75rem; color: var(--muted); text-align: center; padding: .7rem;
  font-family: 'Space Mono', monospace; letter-spacing: .04em;
}

/* ══ BENEFITS ══ */
.benefits { background: var(--white); padding: 6rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.benefit-card {
  background: var(--cream); border-radius: 6px; padding: 2.2rem 1.8rem;
  border: 1px solid rgba(59,41,24,.06); transition: transform .3s, box-shadow .3s;
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(59,41,24,.12); }
.benefit-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--moss); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.2rem;
}
.benefit-card h3 { font-family: 'Playfair Display', serif; font-size: 1.12rem; color: var(--earth); margin-bottom: .6rem; line-height: 1.3; }
.benefit-card p { font-size: .87rem; line-height: 1.7; color: #5a4a3a; }

/* ══ APPLICATIONS ══ */
.applications { background: var(--ink); padding: 6rem; }
.app-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(184,125,46,.15); border: 1px solid rgba(184,125,46,.15); }
.app-item {
  background: rgba(23,23,15,.96); padding: 1.8rem 1.4rem;
  display: flex; flex-direction: column; gap: .6rem; align-items: flex-start;
  transition: background .2s;
}
.app-item:hover { background: rgba(184,125,46,.08); }
.app-item span:first-child { font-size: 1.6rem; }
.app-item span:not(:first-child) { font-size: .82rem; color: var(--sand); font-weight: 500; }

/* ══ FOUNDER ══ */
.founder-section { background: var(--sand); padding: 5rem 6rem; }
.founder-inner { display: grid; grid-template-columns: 200px 1fr; gap: 3.5rem; align-items: flex-start; max-width: 980px; }
.founder-avatar { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.founder-avatar-circle {
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--ochre); box-shadow: 0 8px 32px rgba(59,41,24,.18);
}
.founder-avatar-circle img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.founder-avatar-name { font-family: 'Playfair Display', serif; font-size: .88rem; font-weight: 700; color: var(--earth); text-align: center; line-height: 1.3; }
.founder-avatar-role { font-family: 'Space Mono', monospace; font-size: .62rem; color: var(--muted); letter-spacing: .07em; text-align: center; line-height: 1.5; text-transform: uppercase; }
.founder-content .title { font-size: 1.85rem; }
.founder-quote {
  font-family: 'Playfair Display', serif; font-size: 1.08rem; font-style: italic;
  color: var(--earth); line-height: 1.65; margin: 1.2rem 0 1.6rem;
  border-left: 3px solid var(--ochre); padding-left: 1.3rem;
}
.founder-bio { font-size: .88rem; line-height: 1.85; color: #4a3d2e; margin-bottom: .85rem; }
.cred-tags { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: 1rem; }
.cred-tag {
  background: var(--earth); color: var(--sand);
  padding: .3rem .78rem; font-size: .69rem; border-radius: 2px;
  font-family: 'Space Mono', monospace; letter-spacing: .04em;
}

/* ══ PROJECTS ══ */
.projects { background: var(--cream); padding: 6rem; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proj-card { position: relative; overflow: hidden; border-radius: 4px; height: 300px; }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; display: block; }
.proj-card:hover img { transform: scale(1.06); }
.proj-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,23,15,.9) 0%, rgba(23,23,15,.05) 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem;
}
.proj-client { font-family: 'Space Mono', monospace; font-size: .62rem; color: var(--ochre); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.proj-name { font-family: 'Playfair Display', serif; font-size: .98rem; color: var(--white); line-height: 1.35; margin-bottom: .3rem; }
.proj-meta { font-size: .74rem; color: rgba(230,215,181,.6); font-family: 'Space Mono', monospace; }

/* ══ FAQ ══ */
.faq { background: var(--white); padding: 6rem; }
.faq-list { max-width: 820px; border-top: 1px solid rgba(59,41,24,.12); }
.faq-item { border-bottom: 1px solid rgba(59,41,24,.12); }
.faq-btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.6rem 0; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  color: var(--earth); font-weight: 700; transition: color .2s;
}
.faq-btn:hover { color: var(--ochre); }
.faq-chevron { color: var(--ochre); font-size: 1.3rem; flex-shrink: 0; transition: transform .3s; font-family: 'Inter', sans-serif; }
.faq-btn.open .faq-chevron { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer p { font-size: .92rem; line-height: 1.8; color: #5a4a3a; padding-bottom: 1.6rem; max-width: 720px; }

/* ══ CONTACT ══ */
.contact {
  background: var(--earth); padding: 7rem 6rem;
  display: grid; grid-template-columns: 1fr 460px; gap: 6rem; align-items: start;
}
.contact .title { font-size: 2.3rem; }
.contact-profiles { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: .6rem; }
.contact-profiles li { display: flex; gap: .65rem; font-size: .88rem; color: rgba(230,215,181,.7); }
.contact-profiles li::before { content: '→'; color: var(--ochre); flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .85rem 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(230,215,181,.14);
  color: var(--sand); font-family: 'Inter', sans-serif; font-size: .88rem;
  border-radius: 2px; outline: none; transition: border-color .2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(230,215,181,.35); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--ochre); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form select option { background: var(--earth); color: var(--sand); }
.submit-btn {
  background: var(--ochre); color: var(--ink); border: none;
  padding: 1rem 2rem; font-size: .92rem; font-weight: 600;
  cursor: pointer; border-radius: 2px; transition: background .2s;
  letter-spacing: .03em; font-family: 'Inter', sans-serif; width: 100%;
}
.submit-btn:hover { background: var(--accent); color: var(--white); }
.form-note { font-size: .74rem; color: rgba(230,215,181,.4); text-align: center; margin-top: .3rem; }
.form-success {
  display: none; text-align: center; padding: 2.5rem;
  border: 1px solid rgba(73,102,64,.4); border-radius: 4px; background: rgba(73,102,64,.07);
}
.form-success h4 { font-family: 'Playfair Display', serif; color: var(--sand); margin-bottom: .5rem; font-size: 1.3rem; }
.form-success p { font-size: .85rem; color: rgba(230,215,181,.6); }

/* ══ INTELLECTUAL PROPERTY ══ */
.legal { background: var(--ink); padding: 6rem; }
.legal-inner { max-width: var(--maxw); margin: 0 auto; }
.legal .eyebrow { color: var(--ochre); }
.legal .title { color: var(--sand); }
.legal .body { color: rgba(230,215,181,.7); }
.legal-badges { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.legal-badge {
  flex: 1; min-width: 280px;
  display: flex; gap: 1.1rem; align-items: center;
  border: 1px solid rgba(184,125,46,.3); border-radius: 4px;
  padding: 1.3rem 1.6rem; background: rgba(184,125,46,.05);
  transition: border-color .2s;
}
.legal-badge:hover { border-color: var(--ochre); }
.legal-badge-mark { font-size: 2rem; color: var(--ochre); line-height: 1; flex-shrink: 0; }
.legal-badge-title { font-family: 'Space Mono', monospace; font-size: .68rem; color: var(--ochre); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; font-weight: 700; }
.legal-badge-org { font-size: .82rem; color: rgba(230,215,181,.6); line-height: 1.4; }
.legal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(184,125,46,.12); border: 1px solid rgba(184,125,46,.12); border-radius: 4px; overflow: hidden; }
.legal-col { background: var(--ink); padding: 2rem 2.2rem; }
.legal-col h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--sand); margin-bottom: 1rem; }
.legal-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.legal-col li { font-size: .85rem; color: rgba(230,215,181,.62); line-height: 1.55; padding-left: 1.1rem; position: relative; }
.legal-col li::before { content: '·'; position: absolute; left: 0; color: var(--ochre); font-weight: 700; }
.legal-cta {
  display: inline-block; margin-top: 1.3rem;
  background: var(--ochre); color: var(--ink);
  padding: .55rem 1.2rem; border-radius: 2px;
  font-size: .8rem; font-weight: 600; text-decoration: none;
  letter-spacing: .03em; transition: background .2s;
}
.legal-cta:hover { background: var(--accent); color: var(--white); }

/* ══ FOOTER ══ */
footer { position: relative; z-index: 1; background: var(--ink); padding: 3rem 6rem; border-top: 1px solid rgba(255,255,255,.04); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.05); margin-bottom: 1.5rem; gap: 3rem;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--sand); font-weight: 700; }
.footer-brand span { color: var(--ochre); }
.footer-tagline { font-size: .76rem; color: rgba(230,215,181,.38); margin-top: .4rem; max-width: 260px; line-height: 1.55; }
.footer-links-group { display: flex; gap: 4rem; }
.footer-col h5 { font-family: 'Space Mono', monospace; font-size: .62rem; color: var(--ochre); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-col a, .footer-static { display: block; color: rgba(230,215,181,.4); text-decoration: none; font-size: .78rem; margin-bottom: .45rem; transition: color .2s; }
.footer-col a:hover { color: var(--ochre); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-copy { font-size: .7rem; color: rgba(230,215,181,.25); font-family: 'Space Mono', monospace; }

/* ══ TOAST ══ */
#toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: var(--moss); color: white; padding: .9rem 1.4rem;
  border-radius: 4px; font-size: .86rem; opacity: 0; transform: translateY(8px);
  transition: all .3s; pointer-events: none; max-width: 300px; line-height: 1.4;
}
#toast.show { opacity: 1; transform: translateY(0); }

/* ══ REVEAL ══ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1050px) {
  .how-flow { grid-template-columns: 1fr; gap: 1rem; }
  .how-arrow { transform: rotate(90deg); padding: .3rem 0; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  #navbar { padding: 1rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hero-content { padding: 0 1.5rem 4rem; }
  .how, .benefits, .applications, .projects, .faq, .legal { padding: 4rem 1.5rem; }
  .problem { grid-template-columns: 1fr; }
  .problem-img { height: 260px; }
  .problem-text { padding: 3rem 1.5rem; }
  .how-screens { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .founder-section { padding: 4rem 1.5rem; }
  .founder-inner { grid-template-columns: 1fr; gap: 2rem; }
  .founder-avatar { flex-direction: row; align-items: center; gap: 1.5rem; }
  .founder-avatar-circle { width: 100px; height: 100px; flex-shrink: 0; }
  .founder-avatar-name, .founder-avatar-role { text-align: left; }
  .proj-grid { grid-template-columns: 1fr; }
  .legal-cols { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 3rem; }
  footer { padding: 2.5rem 1.5rem; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-links-group { flex-wrap: wrap; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}