/* ================================================
   ZENARA CAPITAL — Rediseño v2
   Estilo: minimalista corporativo, fondo blanco
   ================================================ */

:root {
  --navy:     #1C2B6B;
  --navy-mid: #2B3A8F;
  --teal:     #4FAFBE;
  --black:    #0A0A14;
  --gray-1:   #F5F5F8;
  --gray-2:   #E8E8EF;
  --gray-3:   #9898AE;
  --gray-4:   #4A4A62;
  --white:    #FFFFFF;

  --f-head: 'Playfair Display', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;

  --wrap: 1120px;
  --pad:  0 28px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ================================================
   NAVEGACIÓN
   ================================================ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  padding: 22px 0;
  transition: background .2s, box-shadow .2s, padding .2s;
}
#navbar.solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--gray-2);
  padding: 16px 0;
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.logo-zc {
  font-family: var(--f-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.5px;
  transition: color .2s;
}
.logo-sep {
  color: var(--white);
  font-size: 30px;
  font-weight: 300;
  opacity: 1;
  transition: color .2s;
}
.logo-text {
  font-family: var(--f-head);
  font-size: 16px;
  line-height: 1.3;
  color: var(--white);
  transition: color .2s;
  letter-spacing: .2px;
  font-weight: 500;
}
#navbar.solid .logo-zc  { color: var(--navy); }
#navbar.solid .logo-sep { color: var(--navy); opacity: .3; }
#navbar.solid .logo-text { color: var(--gray-4); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: .2px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
#navbar.solid .nav-links a { color: var(--gray-4); }
#navbar.solid .nav-links a:hover { color: var(--navy); }

.nav-btn {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 3px;
  font-weight: 600 !important;
  transition: background .2s, transform .2s !important;
}
.nav-btn:hover { background: var(--navy-mid) !important; transform: translateY(-1px); }
#navbar.solid .nav-btn { background: var(--navy) !important; color: var(--white) !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background .2s;
}
#navbar.solid .burger span { background: var(--navy); }

/* Nav sobre hero oscuro: todo blanco */
#navbar:not(.solid) .logo-zc   { color: var(--white); }
#navbar:not(.solid) .logo-sep  { color: var(--white); opacity: .5; }
#navbar:not(.solid) .logo-text { color: var(--white); }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Foto de fondo con overlay oscuro */
  background-image:
    linear-gradient(
      to bottom,
      rgba(8, 12, 30, 0.72) 0%,
      rgba(8, 12, 30, 0.60) 50%,
      rgba(8, 12, 30, 0.85) 100%
    ),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 30%;

  overflow: hidden;
}

.hero-overlay { display: none; }

/* --- FILA 1: título principal --- */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
  padding: 0 28px 56px;
  padding-top: 120px;
}

.hero-tag {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: var(--f-head);
  font-size: clamp(56px, 9.5vw, 116px);
  font-weight: 700;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--white);
  line-height: 1.75;
  font-weight: 300;
  max-width: 820px;
  margin: 0;
}

/* --- Botón CTA inferior del hero --- */
.hero-cta-bar {
  position: relative;
  z-index: 2;
  padding: 32px 0;
}

.hero-btn {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 3px;
  transition: background .2s, color .2s, transform .2s;
}
.hero-btn:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}

/* ---- label genérico (fuera del hero) ---- */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.label.light { color: rgba(255,255,255,.45); }

/* ================================================
   SECCIONES
   ================================================ */
.section { padding: 100px 0; }
.bg-white { background: var(--white); }
.bg-off   { background: var(--gray-1); }
.bg-navy  { background: var(--navy); }

.section-head {
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--f-head);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -.3px;
  margin-top: 10px;
}
.section-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--gray-3);
  max-width: 560px;
  line-height: 1.7;
}

/* ================================================
   BOTONES
   ================================================ */
.btn {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  letter-spacing: .2px;
}
.btn:hover {
  background: var(--gray-1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.btn.btn-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn.btn-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  box-shadow: none;
}
.btn.full { width: 100%; text-align: center; padding: 16px; font-size: 14.5px; }

/* En secciones claras, botón negro */
.bg-white .btn, .bg-off .btn {
  background: var(--navy);
  color: var(--white);
}
.bg-white .btn:hover, .bg-off .btn:hover {
  background: var(--navy-mid);
}

.btn-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .2px;
  transition: color .2s;
}
.btn-link:hover { color: var(--white); }

/* ================================================
   PILARES (PROPUESTA DE VALOR)
   ================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--gray-2);
  border-radius: 4px;
  overflow: hidden;
}

.pillar {
  padding: 44px 32px;
  border-right: 1px solid var(--gray-2);
  transition: background .2s;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--gray-1); }

.pillar-num {
  font-family: var(--f-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--gray-2);
  display: block;
  line-height: 1;
  margin-bottom: 20px;
  transition: color .2s;
}
.pillar:hover .pillar-num { color: var(--teal); }

.pillar h3 {
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.pillar p {
  font-size: 14px;
  color: var(--gray-4);
  line-height: 1.75;
}

/* ================================================
   QUIÉNES SOMOS
   ================================================ */
.bg-navy .section-head h2 { color: var(--white); }
.about-text h2 { color: var(--black); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.about-text .label { margin-bottom: 16px; }

.about-text p {
  font-size: 15.5px;
  color: var(--gray-4);
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-text .btn { margin-top: 16px; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.big-stat {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 4px;
  padding: 36px 32px;
  transition: background .2s, box-shadow .2s;
}
.big-stat:hover {
  background: var(--white);
  box-shadow: 0 8px 24px rgba(28,43,107,.08);
}

.big-stat strong {
  display: block;
  font-family: var(--f-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 12px;
}

.big-stat span {
  font-size: 13.5px;
  color: var(--gray-4);
  line-height: 1.6;
}

/* ================================================
   EQUIPO
   ================================================ */
.team {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding: 44px 40px;
  border: 1px solid var(--gray-2);
  border-radius: 4px;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.member:hover {
  box-shadow: 0 12px 40px rgba(28,43,107,.07);
  transform: translateY(-2px);
}

.member-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .5px;
}

.member-body { flex: 1; }

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.member-body h3 {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.member-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
}

.member-email {
  font-size: 13px;
  color: var(--gray-3);
  border-bottom: 1px solid var(--gray-2);
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  padding-bottom: 1px;
}
.member-email:hover { color: var(--navy); border-color: var(--navy); }

.member-bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.member-bio li {
  font-size: 14px;
  color: var(--gray-4);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.member-bio li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* ================================================
   CONTACTO
   ================================================ */
.bg-off .section-head h2 { color: var(--black); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--f-head);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  margin: 10px 0 20px;
  letter-spacing: -.3px;
}

.contact-left > p {
  font-size: 15px;
  color: var(--gray-4);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-persons {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-person strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}
.contact-person a {
  display: block;
  font-size: 13.5px;
  color: var(--gray-3);
  transition: color .2s;
}
.contact-person a:hover { color: var(--navy); }

/* Formulario */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 4px;
  padding: 40px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-4);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  border-radius: 3px;
  padding: 12px 16px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--black);
  outline: none;
  transition: border-color .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-3); }
.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: var(--black);
  padding: 36px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 20px;
}

footer .logo-zc   { color: var(--white); font-size: 42px; }
footer .logo-sep  { color: var(--white); font-size: 30px; opacity: .6; }
footer .logo-text { color: var(--white); font-size: 16px; font-weight: 500; }

.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
  transition: color .2s;
}
.footer-nav a:hover { color: rgba(255,255,255,.7); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.2);
  text-align: center;
}

/* ================================================
   ESTRATEGIA DE INVERSIÓN
   ================================================ */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-2);
  border: 1px solid var(--gray-2);
  border-radius: 4px;
  overflow: hidden;
}

.strategy-item {
  background: var(--white);
  padding: 40px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background .2s;
}
.strategy-item:hover { background: var(--gray-1); }

.s-num {
  font-family: var(--f-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-2);
  line-height: 1;
  flex-shrink: 0;
  transition: color .2s;
  min-width: 44px;
}
.strategy-item:hover .s-num { color: var(--teal); }

.strategy-item h4 {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.strategy-item p {
  font-size: 14px;
  color: var(--gray-4);
  line-height: 1.7;
}

/* ================================================
   PORTFOLIO
   ================================================ */
.port-title {
  font-family: var(--f-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.5px;
  margin-bottom: 48px;
}

.port-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.port-item {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.port-img {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .4s ease, filter .4s ease;
  filter: brightness(.85);
}
.port-item:hover .port-img {
  transform: scale(1.02);
  filter: brightness(1);
}

.port-info {
  padding: 20px 0 8px;
}

.port-info h3 {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  transition: color .2s;
}
.port-item:hover .port-info h3 { color: var(--teal); }

.port-info p {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}

/* ================================================
   MODALES LEGALES
   ================================================ */
.legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 900;
  backdrop-filter: blur(3px);
}
.legal-overlay.active { display: block; }

.legal-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 92vw);
  max-height: 80vh;
  background: var(--white);
  border-radius: 6px;
  z-index: 1000;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.legal-modal.active { display: flex; }

.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-2);
  flex-shrink: 0;
}
.legal-modal-header h3 {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.legal-modal-close {
  background: none;
  border: none;
  color: var(--gray-3);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s;
  line-height: 1;
}
.legal-modal-close:hover { color: var(--black); }

.legal-modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  color: var(--gray-4);
  font-size: 14px;
  line-height: 1.8;
}
.legal-modal-body p { margin-bottom: 14px; }
.legal-modal-body ul { padding-left: 20px; margin-bottom: 14px; }
.legal-modal-body ul li { margin-bottom: 6px; }
.legal-modal-body strong { color: var(--black); font-weight: 600; }
.legal-modal-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0; }
.legal-modal-body th { text-align: left; padding: 8px 12px; color: var(--navy); border-bottom: 1px solid var(--gray-2); }
.legal-modal-body td { padding: 8px 12px; border-bottom: 1px solid var(--gray-1); color: var(--gray-4); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 960px) {
  .hm-inner { flex-wrap: wrap; }
  .hm-text { flex: 0 0 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 28px 0; }
  .hm-item { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .hm-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.06); }

  .strategy-grid { grid-template-columns: 1fr 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .port-img { height: 260px; }

  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { border-bottom: 1px solid var(--gray-2); }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(3), .pillar:nth-child(4) { border-bottom: none; }
  .pillar:nth-child(4) { border-right: none; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }

  .hero > .container { flex-direction: column; align-items: flex-start; }
  .hero-metrics { border-left: none; border-top: 1px solid rgba(255,255,255,.1); padding-left: 0; padding-top: 36px; flex-direction: row; gap: 40px; width: 100%; }
  .metric { border-bottom: none; border-right: 1px solid rgba(255,255,255,.06); padding: 0 40px 0 0; }
  .metric:last-child { border-right: none; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero-content h1 { letter-spacing: -1px; }
  .hm-item { flex: 0 0 100%; border-bottom: 1px solid rgba(255,255,255,.06); }

  .strategy-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }

  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--gray-2); }
  .pillar:last-child { border-bottom: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 28px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .burger { display: flex; }

  .hero-metrics { flex-direction: column; gap: 0; }
  .metric { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); padding: 16px 0; }

  .member { flex-direction: column; padding: 28px; }
  .member-bio { grid-template-columns: 1fr; }
  .member-header { flex-direction: column; }

  .contact-form { padding: 24px; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
