/* ============================================================
   Metis Consultora — styles.css
   Sections:
   1. Tokens (variables)
   2. Reset & base
   3. Typography
   4. Layout & container
   5. Nav
   6. Hero
   7. Quiénes somos
   8. Misión y Visión
   9. Pilares
   10. Áreas
   11. Equipo
   12. Contacto
   13. Footer
   14. Responsive
   ============================================================ */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  --ink: #1A1A1A;
  --paper: #FAF8F2;
  --white: #FFFFFF;
  --graphite: #6e6d68;
  --terracotta: #A0481E;
  --border: #E0DED4;
  --muted: #5d5b54;
  --soft: #F7F5EE;

  --font-serif: 'Source Serif Pro', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1180px;
  --gutter: clamp(20px, 4vw, 36px);

  --r-sm: 2px;
  --r-md: 4px;
  --r-pill: 999px;

  --t-fast: .15s ease;
  --t-med: .25s ease;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; letter-spacing: -.3px; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
em { font-style: italic; color: var(--muted); }
.label { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--graphite); }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink); padding: 6px 12px; border: 1px solid var(--ink);
  margin-bottom: 24px;
}
.section-eyebrow .dot {
  width: 6px; height: 6px; background: var(--terracotta); border-radius: var(--r-pill);
}
.section-title { font-size: clamp(1.85rem, 3.6vw, 2.6rem); line-height: 1.1; margin: 0 0 14px; max-width: 28ch; }
.section-lead { color: var(--muted); font-size: 1rem; max-width: 60ch; line-height: 1.65; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container { max-width: var(--container-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: clamp(60px, 9vw, 110px) 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
}
.btn-primary { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn-ghost { color: var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 4px; }
.btn-ghost:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

/* ============================================================
   5. NAV
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand-logo { height: 40px; width: auto; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 12.5px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color var(--t-fast); }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  background: var(--ink); color: var(--white); padding: 9px 16px;
  font-weight: 600; letter-spacing: .5px;
  transition: background var(--t-fast);
}
.nav-links .nav-cta:hover { background: var(--terracotta); color: var(--white); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* ============================================================
   6. HERO
   ============================================================ */
.hero { padding-top: clamp(60px, 8vw, 100px); padding-bottom: 0; position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink); padding: 6px 12px; border: 1px solid var(--ink);
  margin-bottom: 32px;
}
.hero .eyebrow .dot {
  width: 6px; height: 6px; background: var(--terracotta); border-radius: var(--r-pill);
}
.hero-title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; letter-spacing: -1px; max-width: 16ch; margin: 0 0 24px; }
.hero-lead { color: var(--muted); font-size: 1.06rem; max-width: 52ch; line-height: 1.6; margin: 0 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding-bottom: clamp(48px, 7vw, 80px); }

.hero-footer-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding-top: 28px; padding-bottom: 28px;
  border-top: 1px solid var(--border);
  background: var(--paper);
  padding-left: var(--gutter); padding-right: var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
}
.strip-item { display: flex; flex-direction: column; gap: 4px; }
.strip-item .label { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--graphite); }
.strip-item .name { font-family: var(--font-serif); font-size: 1rem; color: var(--ink); }

/* ============================================================
   7. QUIÉNES SOMOS
   ============================================================ */
.quienes-somos { background: var(--white); }
.quienes-somos .section-title { max-width: 22ch; }
.quienes-somos .section-lead { margin-bottom: 1.2em; }
.quienes-somos .section-lead:last-child { margin-bottom: 0; }
.quienes-somos .section-eyebrow { padding: 0; border: 0; }

/* ============================================================
   8. MISIÓN Y VISIÓN
   ============================================================ */
.mision-vision { background: var(--soft); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); }
.mv-col .section-eyebrow { padding: 0; border: 0; margin-bottom: 16px; color: var(--terracotta); }
.mv-text { font-family: var(--font-serif); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--ink); margin: 0; }

/* ============================================================
   9. PILARES
   ============================================================ */
.pilares { background: var(--white); }
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 40px; }
.pilar { padding: 32px 28px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-md); }
.pilar-num { font-family: var(--font-serif); font-size: 2rem; color: var(--terracotta); display: block; margin-bottom: 12px; line-height: 1; }
.pilar-name { font-size: 1.3rem; margin: 0 0 10px; }
.pilar-desc { font-size: .94rem; line-height: 1.6; color: var(--muted); margin: 0; }

/* ============================================================
   10. ÁREAS
   ============================================================ */
.areas { background: var(--soft); }
.cat-head {
  display: flex; align-items: baseline; gap: 14px;
  margin: 36px 0 18px;
}
.cat-head:first-of-type { margin-top: 36px; }
.cat-head .cat-label {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--terracotta); font-weight: 600;
}
.cat-head .cat-rule { flex: 1; height: 1px; background: var(--border); }
.cat-head .cat-count { font-size: 11px; color: var(--graphite); letter-spacing: 1px; }

.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.area-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.area-num { font-family: var(--font-serif); font-size: 12px; color: var(--graphite); letter-spacing: .5px; }
.area-name { font-size: 1.1rem; line-height: 1.25; margin: 0; }
.area-desc { font-size: .88rem; line-height: 1.55; color: var(--muted); margin: auto 0 0; }

/* ============================================================
   11. EQUIPO
   ============================================================ */
.equipo { background: var(--white); }
.equipo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 28px); margin-top: 40px; }
.persona {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 28px;
}
.avatar {
  width: 84px; height: 84px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.8rem; letter-spacing: 1px;
  color: var(--paper);
  margin-bottom: 22px;
  object-fit: cover;
  overflow: hidden;
  background: var(--border);
}
.avatar-ink { background: var(--ink); }
.avatar-terra { background: var(--terracotta); }
.avatar-graphite { background: var(--graphite); }
.persona-name { font-size: 1.2rem; margin: 0 0 4px; }
.persona-role { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--graphite); display: block; margin-bottom: 16px; }
.persona-bio { font-size: .92rem; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.persona-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.persona-tags .tag {
  font-size: 10.5px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--r-pill);
}

/* ============================================================
   12. CONTACTO
   ============================================================ */
.contacto { background: var(--soft); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contacto-lead { color: var(--muted); margin-bottom: 28px; max-width: 38ch; }
.contacto-direct { display: flex; flex-direction: column; gap: 14px; }
.contacto-direct li { display: flex; flex-direction: column; gap: 4px; }
.contacto-direct .label { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--graphite); }
.contacto-direct a { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; align-self: flex-start; transition: color var(--t-fast), border-color var(--t-fast); }
.contacto-direct a:hover { color: var(--terracotta); border-color: var(--terracotta); }

.contacto-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 32px 28px; }
.contacto-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.contacto-form label { font-size: 12px; letter-spacing: .5px; color: var(--muted); font-weight: 500; }
.contacto-form label span { color: var(--terracotta); }
.contacto-form label .optional-hint { color: var(--graphite); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.contacto-form input, .contacto-form textarea, .contacto-form select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: .95rem;
  transition: border-color var(--t-fast);
}
.contacto-form input:focus, .contacto-form textarea:focus, .contacto-form select:focus {
  outline: none; border-color: var(--ink);
}
.contacto-form textarea { resize: vertical; min-height: 110px; font-family: var(--font-sans); }
.field-error { font-size: 12px; color: var(--terracotta); min-height: 16px; }
.field-error:empty { display: none; }
.contacto-form .field.invalid input,
.contacto-form .field.invalid textarea { border-color: var(--terracotta); }

.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-microcopy { font-size: 11px; color: var(--graphite); margin: 14px 0 0; line-height: 1.55; }
.form-status { margin-top: 16px; padding: 0; font-size: .9rem; }
.form-status.success { padding: 12px 14px; background: #EFEEDE; color: var(--ink); border-left: 3px solid var(--ink); }
.form-status.error { padding: 12px 14px; background: #FCE9DD; color: var(--terracotta); border-left: 3px solid var(--terracotta); }

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 32px; width: auto; filter: invert(1) brightness(1.4) contrast(1.1); }
.footer-links { display: flex; gap: 24px; font-size: .92rem; }
.footer-links a { color: var(--paper); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color var(--t-fast); }
.footer-links a:hover { border-bottom-color: var(--paper); }
.footer-copy { font-size: 11px; color: var(--graphite); letter-spacing: .3px; }

/* ============================================================
   14. RESPONSIVE
   ============================================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { gap: 36px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 18px var(--gutter);
    border-bottom: 1px solid var(--border);
    gap: 14px;
    align-items: flex-start;
  }
  .nav-toggle { display: flex; }

  .hero-footer-strip { grid-template-columns: 1fr; gap: 14px; padding: 20px var(--gutter); }
  .strip-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .strip-item:last-child { border-bottom: 0; }

  .mv-grid { grid-template-columns: 1fr; }
  .pilares-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}
