/* ============================================================
   ZYRA PARTNERS — Design tokens
   Ink navy + brass. Systemic/network motif throughout.
   ============================================================ */

:root {
  --ink: #12151c;
  --ink-soft: #1c2130;
  --ink-line: #2b3143;
  --paper: #faf7f2;
  --paper-dim: #f1ece2;
  --paper-line: #e3dccc;
  --brass: #b9873f;
  --brass-bright: #d4a15c;
  --brass-soft: #e4c489;
  --teal: #4f6f68;
  --ink-text: #1b1e26;
  --ink-text-dim: #5b6172;
  --paper-text: #f4f1ea;
  --paper-text-dim: #b9b6c4;

  --serif: "Newsreader", ui-serif, Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-text);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Utility ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
}

.on-dark .eyebrow { color: var(--brass-bright); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 600; }

p { line-height: 1.6; color: var(--ink-text-dim); margin: 0; }
.on-dark p { color: var(--paper-text-dim); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper-text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color .25s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-brass {
  background: var(--brass);
  color: var(--ink);
}
.btn-brass:hover { background: var(--brass-bright); }

.btn-ghost {
  border-color: var(--ink-line);
  color: var(--paper-text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }

.btn-ghost-dark {
  border-color: var(--paper-line);
  color: var(--ink-text);
  background: transparent;
}
.btn-ghost-dark:hover { border-color: var(--brass); color: var(--brass); }

.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 21, 28, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--paper-text);
  letter-spacing: 0.01em;
}
.logo span { color: var(--brass); }

nav.main-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-text-dim);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 0;
}
.nav-link:hover { color: var(--paper-text); }
.nav-link .chev { width: 8px; height: 8px; transition: transform .25s ease; }
.has-dropdown:hover .chev, .has-dropdown.open .chev { transform: rotate(180deg); }

.dropdown-wrap { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-wrap:hover .dropdown,
.dropdown-wrap.open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--paper-text-dim);
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background .18s ease, color .18s ease;
}
.dropdown a:hover { background: rgba(185,135,63,0.1); color: var(--paper-text); }
.dropdown a .letter {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass);
}

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

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.lang-switch button {
  background: none;
  border: none;
  color: var(--paper-text-dim);
  cursor: pointer;
  padding: 6px 7px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: color .2s ease, background .2s ease;
}
.lang-switch button:hover { color: var(--paper-text); }
.lang-switch button.active { color: var(--brass); background: rgba(185,135,63,0.12); }

.mobile-menu .lang-switch {
  padding: 14px 0 8px;
  font-size: 13px;
  gap: 4px;
}
.mobile-menu .lang-switch button { padding: 8px 12px; border: 1px solid var(--ink-line); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 22px; height: 1.5px; background: var(--paper-text); }

@media (max-width: 900px) {
  nav.main-links { display: none; }
  .burger { display: flex; }
  .nav-cta .btn-brass { padding: 11px 16px; font-size: 11.5px; }
}

/* Mobile full menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--ink);
  z-index: 99;
  padding: 30px 24px;
  overflow-y: auto;
}
.mobile-menu.show { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--paper-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line);
}
.mobile-sub {
  padding-left: 18px;
  border-bottom: 1px solid var(--ink-line);
}
.mobile-sub a { font-family: var(--sans); font-size: 16px; color: var(--paper-text-dim); border-bottom: none; padding: 10px 0; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.14;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  color: var(--paper-text);
  margin-bottom: 26px;
}

.hero .lede {
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 38px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 420px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; order: -1; margin-bottom: 10px; }
  .hero { padding: 48px 0 64px; }
}

/* Network diagram signature element */
.network-svg .node { fill: var(--ink-soft); stroke: var(--brass); stroke-width: 1.4; }
.network-svg .node-core { fill: var(--brass); }
.network-svg .edge {
  stroke: var(--brass);
  stroke-width: 1;
  opacity: 0.55;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.6s ease forwards;
}
.network-svg .label {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--paper-text-dim);
  letter-spacing: 0.05em;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.network-svg .node { animation: pop 0.5s ease backwards; }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .network-svg .edge { animation: none; stroke-dashoffset: 0; }
  .network-svg .node { animation: none; }
}

/* ============================================================
   SECTIONS (generic)
   ============================================================ */

section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 60px 0; } }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.on-dark-section { background: var(--ink); }
.dim-section { background: var(--paper-dim); }

/* thesis / vision quote block */
.thesis {
  background: var(--ink);
  color: var(--paper-text);
  position: relative;
  overflow: hidden;
}
.thesis .wrap { position: relative; }
.thesis blockquote {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.28;
  margin: 0 0 34px;
  max-width: 780px;
  color: var(--paper-text);
}
.thesis blockquote em { color: var(--brass-bright); font-style: normal; }
.thesis .body-text { max-width: 620px; font-size: 16px; }

/* Situations to solve list */
.situations-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.situation-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 190px;
  position: relative;
  flex: 1 1 calc((100% - 28px) / 3);
  max-width: calc((100% - 28px) / 3);
}
.situation-rank {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 16px;
}
.situation-rank::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--brass);
}
.situation-card p.title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-text);
  font-weight: 560;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .situations-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 10px;
  }
  .situation-card {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: start;
    min-height: 170px;
  }
  .situations-track::-webkit-scrollbar { display: none; }
}

.scroll-dots { display: none; gap: 8px; justify-content: center; margin-top: 18px; }
.scroll-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--paper-line); }
.scroll-dots span.active { background: var(--brass); }
@media (max-width: 900px) { .scroll-dots { display: flex; } }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.service-card { background: var(--paper); padding: 40px; }
.service-icon { width: 40px; height: 40px; margin-bottom: 24px; color: var(--brass); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 14.5px; }

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

/* Team teaser */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  border: 1px solid var(--paper-line);
  padding: 32px 26px;
  background: var(--paper);
}
.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-bright);
  font-family: var(--mono);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.team-card .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); margin: 6px 0 14px; display:block; }
.team-card p.bio { font-size: 14.5px; }

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

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--paper-text);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 560px; }
.cta-meta { display: flex; gap: 22px; margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--paper-text-dim); letter-spacing: 0.05em; }
.cta-meta span { display: flex; align-items: center; gap: 8px; }

/* Booking widget */
.booking-layout { align-items: flex-start; }
.cta-intro { flex: 1 1 380px; }
.booking-card {
  flex: 1 1 380px;
  max-width: 440px;
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  padding: 28px 26px 30px;
}
.booking-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-text-dim);
  margin: 0 0 10px;
}
.booking-label:not(:first-child) { margin-top: 22px; }
.booking-days, .booking-times { display: flex; flex-wrap: wrap; gap: 8px; }
.booking-hint { font-size: 13px; color: var(--paper-text-dim); padding: 8px 0; }
.booking-timezone {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--paper-text-dim);
  margin: -4px 0 4px;
  display: block;
}
.day-chip, .time-chip {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--paper-text-dim);
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  text-align: left;
  line-height: 1.3;
}
.day-chip .d-weekday { display:block; font-family: var(--mono); font-size: 10px; letter-spacing:.05em; text-transform: uppercase; opacity:.75; }
.day-chip:hover, .time-chip:hover { border-color: var(--brass); color: var(--paper-text); }
.day-chip.active, .time-chip.active {
  border-color: var(--brass);
  background: rgba(185,135,63,0.14);
  color: var(--paper-text);
}
.booking-fields { display: flex; flex-direction: column; gap: 10px; }
.booking-fields-row { display: flex; gap: 10px; }
.booking-fields-row input { min-width: 0; }
.booking-fields input, .booking-fields textarea {
  font-family: var(--sans);
  font-size: 14px;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--paper-text);
  width: 100%;
}
.booking-fields textarea { resize: vertical; font-family: var(--sans); }
.booking-fields input::placeholder, .booking-fields textarea::placeholder { color: var(--paper-text-dim); }
.booking-fields input:focus, .booking-fields textarea:focus { outline: none; border-color: var(--brass); }
.booking-tabs {
  display: flex;
  gap: 4px;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  padding: 4px;
  margin-bottom: 22px;
}
.booking-tab {
  flex: 1 1 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 6px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: var(--paper-text-dim);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  line-height: 1.3;
}
.booking-tab:hover { color: var(--paper-text); }
.booking-tab.active { background: rgba(185,135,63,0.16); color: var(--brass-bright); }
.booking-submit { margin-top: 22px; width: 100%; justify-content: center; }
.booking-msg { margin-top: 12px; font-size: 13px; color: var(--brass-bright); min-height: 16px; }
@media (max-width: 900px) { .booking-card { max-width: 100%; } }
@media (max-width: 420px) { .booking-fields-row { flex-direction: column; } }

/* Floating CTA (mobile + scroll) */
.floating-cta {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.floating-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-cta .btn { box-shadow: 0 10px 30px rgba(0,0,0,0.35); }

/* Footer */
footer.site {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: 50px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-row .logo { font-size: 18px; }
.footer-copy { font-family: var(--mono); font-size: 11.5px; color: var(--paper-text-dim); letter-spacing: 0.03em; }

/* ============================================================
   INNER PAGES (Nosotros sub-pages)
   ============================================================ */

.page-hero {
  background: var(--ink);
  padding: 64px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.12;
  mask-image: radial-gradient(circle at 20% 30%, black, transparent 70%);
}
.page-hero .wrap { position: relative; }
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 26px;
  display: flex; gap: 8px; align-items: center;
}
.breadcrumb a:hover { color: var(--brass-bright); }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 48px); max-width: 700px; }

.subpage-nav {
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper);
  position: sticky;
  top: 76px;
  z-index: 50;
}
.subpage-nav .wrap { display: flex; gap: 6px; overflow-x: auto; }
.subpage-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 18px 16px;
  color: var(--ink-text-dim);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.subpage-nav a:hover { color: var(--ink-text); }
.subpage-nav a.active { color: var(--brass); border-color: var(--brass); }

.prose { max-width: 680px; }
.prose p + p { margin-top: 18px; }
.prose .lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--ink-text);
  line-height: 1.4;
  font-weight: 500;
}

/* Values list */
.values-list { border-top: 1px solid var(--paper-line); }
.value-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 34px 4px;
  border-bottom: 1px solid var(--paper-line);
  transition: background .2s ease;
}
.value-row:hover { background: var(--paper-dim); }
.value-index {
  flex: 0 0 64px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 500;
  color: var(--brass);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.value-body { flex: 1; max-width: 620px; }
.value-body h3 { margin-bottom: 8px; }
.value-body p { font-size: 15px; }
@media (max-width: 640px) {
  .value-row { gap: 20px; padding: 26px 4px; }
  .value-index { flex-basis: 44px; font-size: 26px; }
}

/* Socios full page */
.socios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.socio-card-full {
  border: 1px solid var(--paper-line);
  background: var(--paper);
}
.socio-photo {
  height: 200px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass-bright);
  font-family: var(--mono);
  font-size: 34px;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}
.socio-photo::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
}
.socio-body { padding: 28px 26px; }
.socio-body .role { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); display:block; margin: 8px 0 16px; }
.socio-body p { font-size: 14.5px; }
@media (max-width: 900px) { .socios-grid { grid-template-columns: 1fr; } }

/* Vision / Proposito standalone statement pages */
.statement-block {
  background: var(--ink);
  color: var(--paper-text);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.statement-block .wrap { position: relative; }
.statement-block blockquote {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.32;
  font-weight: 500;
  max-width: 780px;
  color: var(--paper-text);
}
.statement-block blockquote em { color: var(--brass-bright); font-style: normal; }
