/* Elior Capital — landing page
   Paleta: azul marino profundo #1c2e42 / azul marino oscuro #101b28
   crema cálido #f6f2ea / sand #cbb185 / clay #8a6a4b / tinta #24211c */

:root {
  --navy: #1c2e42;
  --navy-dark: #101b28;
  --cream: #f6f2ea;
  --sand: #cbb185;
  --clay: #8a6a4b;
  --ink: #24211c;
  --white: #fffdf9;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 500;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.2; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }
a { color: inherit; }

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

.section-label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 1em;
}

.divider {
  height: 1px;
  max-width: var(--wrap);
  margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--sand) 15%, var(--sand) 85%, transparent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 46, 66, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  max-width: 1500px;
  padding-left: 20px;
  padding-right: 20px;
}

.brand {
  font-family: var(--serif);
  font-size: 3.1rem;
  line-height: 1;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-right: auto;
}

.brand-mark {
  height: 36px;
  width: auto;
  display: block;
  margin-left: 32px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { border-color: var(--clay); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 2px;
}

.nav-cta:hover { background: var(--navy-dark); border-color: transparent !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,27,40,0.35) 0%, rgba(16,27,40,0.35) 40%, rgba(16,27,40,0.92) 100%);
}

.hero-content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 90px;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 18px;
}

.hero h1 { color: var(--white); max-width: 14ch; }

.hero-lede {
  max-width: 46ch;
  font-size: 1.1rem;
  color: rgba(255, 253, 249, 0.86);
  margin-top: 22px;
  margin-bottom: 30px;
}

.btn-ghost {
  display: inline-block;
  text-decoration: none;
  color: var(--white);
  border: 1px solid var(--sand);
  padding: 12px 26px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover { background: var(--sand); color: var(--navy-dark); }

/* ---------- Section base ---------- */

.section { padding: 100px 0; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-text p { font-size: 1.06rem; max-width: 48ch; }
.about-text p em { color: var(--clay); font-style: italic; }

.about-media {
  margin: 0;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 1.4;
  display: block;
}

/* ---------- Problemática ---------- */

.problem { background: var(--navy); color: var(--cream); }
.problem h2 { color: var(--white); max-width: 20ch; }
.problem .section-label { color: var(--sand); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: rgba(246, 242, 234, 0.14);
}

.problem-card {
  background: var(--navy);
  padding: 40px 32px;
}

.problem-icon {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--sand);
  margin-bottom: 18px;
}

.problem-index {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--sand);
  margin-bottom: 12px;
}

.problem-card h3 { color: var(--white); }
.problem-card p { color: rgba(246, 242, 234, 0.78); margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Tesis ---------- */

.thesis { background: var(--white); }

.thesis-list {
  margin-top: 48px;
  display: grid;
  gap: 0;
}

.thesis-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid rgba(28, 46, 66, 0.15);
}

.thesis-item:last-child { border-bottom: 1px solid rgba(28, 46, 66, 0.15); }

.thesis-item h3 { margin-bottom: 0; }
.thesis-item p { margin-bottom: 0; max-width: 56ch; color: var(--ink); }

/* ---------- Misión / Visión ---------- */

.mission { background: var(--white); }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.mission-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.45;
  max-width: 34ch;
}

/* ---------- Equipo ---------- */

.team-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.team-card {
  border-top: 2px solid var(--navy);
  padding-top: 22px;
}

.team-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.team-role {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 18px;
}

.team-card p:not(.team-role) { font-size: 0.98rem; }

/* ---------- Experiencia ---------- */

.experience { background: var(--white); }

.experience-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.experience-item p { font-size: 0.98rem; }

/* ---------- Portafolio (ledger) ---------- */

.portfolio-lede {
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--ink);
}

.ledger { margin-top: 40px; }

.ledger-row {
  border-bottom: 1px solid rgba(28, 46, 66, 0.18);
}

.ledger-head {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  padding: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clay);
  border-bottom: 1px solid var(--navy);
}

.ledger-main {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  align-items: center;
  padding: 26px 0;
}

.ledger-featured .ledger-main { padding-bottom: 18px; }

.col-asset {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
}

.col-loc { color: var(--ink); font-size: 0.95rem; }

.col-status {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  justify-self: start;
  padding: 5px 12px;
  border: 1px solid currentColor;
  display: inline-block;
  width: fit-content;
}

.status-op { color: #4a7c59; }
.status-dev { color: var(--clay); }

.ledger-detail { padding: 0 0 28px; }

.ledger-detail p {
  max-width: 70ch;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0;
}

.ledger-photos {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.ledger-photos img {
  width: 220px;
  height: 150px;
  object-fit: cover;
}

/* ---------- Pipeline ---------- */

.pipeline { background: var(--navy-dark); color: var(--cream); }
.pipeline h2 { color: var(--white); }
.pipeline .section-label { color: var(--sand); }
.pipeline .portfolio-lede { color: rgba(246, 242, 234, 0.78); }

.pipeline-featured {
  margin-top: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(203, 177, 133, 0.4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.pipeline-photos {
  display: flex;
  gap: 14px;
}

.pipeline-photos img {
  width: 50%;
  height: 150px;
  object-fit: cover;
}

.pipeline-featured-text h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; font-family: var(--serif); }
.pipeline-featured-text p:not(.pipeline-loc) { color: rgba(246, 242, 234, 0.78); font-size: 0.95rem; margin-bottom: 0; }

.pipeline-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pipeline-item {
  border-top: 1px solid rgba(203, 177, 133, 0.4);
  padding-top: 16px;
}

.pipeline-item h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 6px; }
.pipeline-loc { font-size: 0.85rem; color: var(--sand); margin-bottom: 0; }

/* ---------- Contacto ---------- */

.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 20ch; }

.contact-email {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 4px;
  margin-top: 8px;
}

.contact-email:hover { color: var(--clay); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(246, 242, 234, 0.6);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
}

.footer-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid,
  .mission-grid,
  .team-grid,
  .experience-grid { grid-template-columns: 1fr; gap: 32px; }

  .problem-grid { grid-template-columns: 1fr; }

  .thesis-item { grid-template-columns: 1fr; gap: 10px; }

  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }

  .pipeline-featured { grid-template-columns: 1fr; gap: 20px; }

  .ledger-head { display: none; }

  .ledger-main {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0 10px;
  }

  .col-status { margin-top: 6px; }

  .ledger-photos { flex-wrap: wrap; }
  .ledger-photos img { width: 100%; max-width: 320px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    border-bottom: 1px solid rgba(28, 46, 66, 0.1);
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a { width: 100%; padding: 12px 0; }

  .nav-cta { margin-top: 8px; width: fit-content; }

  .nav-toggle { display: flex; }

  .brand-mark { display: none; }

  .section { padding: 64px 0; }

  .wrap { padding: 0 20px; }

  .pipeline-grid { grid-template-columns: 1fr; }
}
