/* ===================================================================
   AUTOMATY — STYLESHEET COMÚN
   Versión: 1.0 | Fecha: 2026-05-04
   Origen: extraído de current/index.html como parte de T00 del proyecto web-v2.
   Se carga desde las páginas nuevas (madurez/, metodo/, nosotros/).
   El home (current/index.html) mantiene su CSS inline en V1.
   Marca: Negro #0B0B0B · Blanco #FFFFFF · Verde #22C55E
   ================================================================= */

:root{
  --black:     #0B0B0B;
  --ink:       #0B0B0B;
  --ink-2:     #2B2B2E;
  --muted:     #6B6B70;
  --muted-2:   #9A9A9F;
  --rule:      #E4E4E7;
  --rule-2:    #F1F1F3;
  --paper:     #FFFFFF;
  --paper-2:   #FAFAFA;
  --green:     #22C55E;
  --green-ink: #166534;
  --green-soft:#F0FBF3;

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --step: 8px;
}

/* ========== RESET ========== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0; padding:0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
}
img, svg{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ========== TYPE ========== */
.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before{
  content:""; width:24px; height:1px; background: var(--green);
}
.eyebrow.on-dark{ color: rgba(255,255,255,0.55); }
.eyebrow.on-dark::before{ background: var(--green); }

h1, h2, h3, h4{ margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1{ font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; font-weight: 600; }
h2{ font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; font-weight: 600; }
h3{ font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
h4{ font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }
p{ margin: 0 0 16px; text-wrap: pretty; }

.serif{ font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
em.serif, .serif em{ font-style: italic; }

.lead{
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

.muted{ color: var(--muted); }
.on-dark .muted{ color: rgba(255,255,255,0.6); }

/* ========== BUTTONS ========== */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn .arr{ transition: transform .2s ease; }
.btn:hover .arr{ transform: translateX(3px); }

.btn-primary{ background: var(--green); color: #061409; border-color: var(--green); }
.btn-primary:hover{ background: #1fb555; }

.btn-dark{ background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover{ background: #222; }

.btn-outline{ background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-outline:hover{ border-color: var(--ink); }

.btn-ghost-light{ background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover{ border-color: #fff; }

.btn-lg{ padding: 17px 26px; font-size: 16px; }

/* ========== NAV ========== */
.nav{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled{
  border-bottom-color: var(--rule);
  background: rgba(255,255,255,0.94);
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo{ display: flex; align-items: center; gap: 10px; }
.logo svg{ height: 28px; width: auto; }
.logo .word{ font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }

.nav-links{ display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a{ font-size: 14px; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.nav-links a:hover{ color: var(--ink); }
.nav-links a[aria-current="page"]{ color: var(--ink); }

.nav-cta{ display: flex; align-items: center; gap: 12px; }

.hamburger{
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--rule); border-radius: 50%;
  background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.hamburger span{ display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.hamburger span::before, .hamburger span::after{
  content:""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
}
.hamburger span::before{ top: -5px; }
.hamburger span::after{ top: 5px; }

@media (max-width: 860px){
  .nav-links, .nav-cta .btn{ display: none; }
  .hamburger{ display: inline-flex; }
}

/* ========== MOBILE MENU ========== */
.mobile-menu{
  position: fixed; inset: 0;
  background: var(--black); color: #fff;
  z-index: 200;
  padding: 100px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.6,0,.2,1);
  display: flex; flex-direction: column; gap: 40px;
}
.mobile-menu.open{ transform: translateY(0); }
.mobile-menu .close{
  position: absolute; top: 18px; right: var(--gutter);
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer; font-size: 20px;
}
.mobile-menu ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu ul a{
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 40px; letter-spacing: -0.03em; color: #fff;
  line-height: 1.1;
}
.mobile-menu .m-cta{ margin-top: auto; }

/* ========== FOOTER ========== */
footer.site{
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.foot{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot-brand p{ margin: 14px 0 10px; font-style: italic; color: rgba(255,255,255,0.75); max-width: 36ch; }
.foot-brand .copy{ font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.45); }
.foot h4{ font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 16px; font-weight: 600; }
.foot ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a{ color: rgba(255,255,255,0.7); font-size: 14px; transition: color .2s; }
.foot ul a:hover{ color: #fff; }
.foot-bottom{
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px;
}
.foot-bottom .motto{ color: rgba(255,255,255,0.6); font-style: italic; }
.foot-bottom .motto b{ color: #fff; font-weight: 500; font-style: normal; }

@media (max-width: 860px){
  .foot{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand{ grid-column: 1 / -1; }
}

/* ========== REVEAL ANIMATION ========== */
.reveal{
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.in,
.reveal.in.reveal{ opacity: 1 !important; transform: translateY(0) !important; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1 !important; transform: none !important; transition: none; }
}
