@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --red:     #E63329;
  --dark:    #1A1A1A;
  --muted:   #9B9B9B;
  --bg:      #EBEAEC;
  --purple:  #8B68D4;
  --teal:    #4EC5C8;
  --blue:    #1C3FC2;
  --footer:  #282828;
  --w:       1920px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--dark); background: #fff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── Nav ────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(235,234,236,0.95);
  backdrop-filter: blur(10px);
  height: 88px;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-inner {
  width: 100%; max-width: 1760px; margin: 0 auto; padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
}
/* Logo */
.logo { display: flex; align-items: center; gap: 6px; }
.logo-text {
  font-size: 15px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--dark); line-height: 1; white-space: nowrap;
}
.logo-x {
  font-size: 22px; font-weight: 900; color: var(--red);
  line-height: 1; position: relative; top: -1px;
}
/* Nav links */
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 13.5px; font-weight: 400; color: var(--dark); letter-spacing: 0.01em; transition: color .15s; }
.nav-links a:hover { color: var(--red); }
/* Bars icon */
.nav-bars { display: flex; align-items: flex-end; gap: 3px; }
.nav-bars span { display: block; width: 8px; background: var(--muted); border-radius: 1px; }
.nav-bars span:nth-child(1) { height: 12px; }
.nav-bars span:nth-child(2) { height: 18px; }
.nav-bars span:nth-child(3) { height: 24px; }
/* Mobile */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--dark); }

/* ─── HERO – Homepage ────────────────────────────────────── */
.hero-home {
  padding-top: 88px;
  height: 100vh;           /* altura fija para que % funcionen */
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 390px;
  overflow: hidden;
}
.hero-main {
  position: relative;
  padding: 56px 40px 0 6%;
}
.hero-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 32px;
  position: relative; z-index: 4; /* encima de las fotos */
}
.hero-h1 {
  display: flex; flex-direction: column;
  font-size: clamp(38px, 4vw, 68px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
}
.hero-h1 .hl-dark { color: var(--dark); }
.hero-h1 .hl-gray { color: var(--muted); }
.btn-pill {
  flex-shrink: 0; display: inline-flex; align-items: center;
  background: var(--dark); color: #fff; border-radius: 100px;
  padding: 14px 28px; font-size: 15px; font-weight: 500;
  white-space: nowrap; margin-top: 8px; transition: opacity .2s;
}
.btn-pill:hover { opacity: .8; }
/* Photos — z-index BAJO para no tapar el texto */
.hero-photos {
  position: absolute; bottom: 0; left: 0; right: 0; top: 0;
  pointer-events: none; z-index: 1;
}
.img-alpinista {
  position: absolute; bottom: 0; left: 4%;
  height: 80%; width: auto; object-fit: contain;
}
.img-grupo {
  position: absolute; bottom: 0; left: 36%;
  height: 68%; width: auto; object-fit: contain;
}
/* Stat — entre las dos fotos, z-index alto para que se vea */
.hero-stat {
  position: absolute; bottom: 45%; left: 33%; z-index: 4;
}
.stat-bars { display: flex; align-items: flex-end; gap: 3px; margin-bottom: 6px; }
.stat-bar { background: var(--red); border-radius: 1px; width: 9px; }
.stat-bar.s { height: 16px; } .stat-bar.t { height: 26px; }
.stat-num { font-size: clamp(34px, 3vw, 50px); font-weight: 800; color: var(--dark); letter-spacing: -0.04em; line-height: 1; }
.stat-desc { font-size: 12px; color: var(--muted); max-width: 150px; line-height: 1.5; margin-top: 4px; }
/* Right cards */
.hero-right-cards {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 20px 20px 12px;
}
.hero-card-slot { flex: 1; overflow: hidden; border-radius: 14px; min-height: 0; }
.hero-card-slot img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Section Propósito ──────────────────────────────────── */
.section-proposito {
  background: var(--bg);
  padding: 100px 0 120px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.proposito-inner {
  max-width: 1760px; margin: 0 auto; padding: 0 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.proposito-label {
  font-size: 13px; font-weight: 400; color: var(--muted);
  margin-bottom: 20px;
}
.proposito-h2 {
  font-size: clamp(36px, 4vw, 62px); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em; color: var(--dark);
}
.proposito-h2 em { font-style: normal; color: var(--red); }
.proposito-body {
  margin-top: 32px; font-size: 14px; color: var(--muted);
  line-height: 1.8; max-width: 520px;
}
/* Actualidad */
.actualidad-label {
  font-size: 13px; font-weight: 400; color: var(--muted); margin-bottom: 32px;
}
.actualidad-list { display: flex; flex-direction: column; }
.actualidad-item { padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.actualidad-item:first-child { border-top: 1px solid rgba(0,0,0,0.08); }
.actualidad-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.actualidad-item p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.btn-pill-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--red); color: var(--red);
  border-radius: 100px; padding: 12px 24px;
  font-size: 14px; font-weight: 500;
  margin-top: 32px; transition: background .2s, color .2s;
}
.btn-pill-outline:hover { background: var(--red); color: #fff; }

/* ─── Section Cards ──────────────────────────────────────── */
.section-cards {
  background: #F2F1EF;
  padding: 80px 0 100px;
}
.cards-inner { max-width: 1760px; margin: 0 auto; padding: 0 80px; }
.cards-heading {
  font-size: clamp(22px, 2.2vw, 34px); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 48px;
}
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-item { }
.card-thumb {
  width: 100%; aspect-ratio: 1/1; background: #9B9B9B;
  border-radius: 12px; margin-bottom: 16px; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-meta {
  display: flex; gap: 6px; align-items: baseline;
  font-size: 12px; color: var(--dark); margin-bottom: 4px;
}
.card-num { font-weight: 400; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.card-text { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── Section Red Banner ─────────────────────────────────── */
.section-red {
  background: var(--red);
  padding: 80px 0;
}
.red-inner {
  max-width: 1760px; margin: 0 auto; padding: 0 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.red-text h2 {
  font-size: clamp(30px, 3.5vw, 52px); font-weight: 800;
  color: #fff; line-height: 1.15; letter-spacing: -0.025em;
}
.red-text h2 em { font-style: normal; color: rgba(255,255,255,0.5); }
/* Image grid (4 placeholders, asymmetric) */
.red-img-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}
.ri {
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
}
.ri:nth-child(1) { grid-row: 1; grid-column: 1; min-height: 200px; }
.ri:nth-child(2) { grid-row: 1; grid-column: 2; min-height: 130px; align-self: start; }
.ri:nth-child(3) { grid-row: 2; grid-column: 2; min-height: 220px; }
.ri:nth-child(4) { grid-row: 2; grid-column: 1; min-height: 110px; align-self: end; }

/* ─── Section KPI ────────────────────────────────────────── */
.section-kpi {
  background: var(--bg);
  padding: 80px 0;
}
.kpi-inner { max-width: 1760px; margin: 0 auto; padding: 0 80px; }
.kpi-card {
  background: #fff; border-radius: 20px;
  padding: 60px 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.kpi-title {
  font-size: clamp(30px, 3.5vw, 50px); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.025em;
}
.kpi-title .t-red { color: var(--red); }
.kpi-title .t-dark { color: var(--dark); }
.kpi-subtitle { font-size: 14px; color: var(--muted); margin-top: 24px; line-height: 1.7; max-width: 380px; }
/* KPI Charts */
.kpi-charts { display: flex; flex-direction: column; gap: 36px; }
.kpi-row { display: flex; align-items: center; gap: 28px; }
.kpi-circle-wrap { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.kpi-circle-wrap svg { transform: rotate(-90deg); }
.kpi-label-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 12px;
}
.kpi-label-center strong { font-size: 14px; font-weight: 800; color: var(--dark); }
.kpi-label-center span { font-size: 9px; color: var(--muted); line-height: 1.3; }
.kpi-label-center em { font-size: 9px; color: var(--red); font-style: normal; font-weight: 600; }
.kpi-ratio-text .ratio-label { font-size: 20px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.kpi-ratio-text .ratio-val { font-size: 20px; font-weight: 300; color: var(--blue); }
.kpi-footnote { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--footer); padding: 60px 0 0; }
.footer-inner { max-width: 1760px; margin: 0 auto; padding: 0 80px; }
.footer-top { padding-bottom: 48px; }
.footer-logo .logo-text { color: #fff; font-size: 15px; }
.footer-logo .logo-x { color: var(--red); font-size: 20px; }
.footer-email { display: block; font-size: 14px; color: rgba(255,255,255,0.4); margin-top: 20px; transition: color .2s; }
.footer-email:hover { color: #fff; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-mid {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 36px 0 36px;
}
.footer-tagline { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.7); line-height: 1.5; max-width: 380px; }
.footer-tagline-sm { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.5; max-width: 220px; text-align: right; }
.footer-bottom-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
}
.footer-icon { width: 32px; height: 32px; opacity: .3; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color .2s; }
.footer-nav a:hover { color: #fff; }

/* ─── PAGE: Optimización de Conversiones ────────────────── */
.page-hero {
  padding-top: 88px;
  background: var(--bg);
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.page-hero-left {
  padding: 60px 40px 80px 80px;
  display: flex; flex-direction: column; gap: 24px;
}
.breadcrumb {
  font-size: 13px; color: var(--muted); font-weight: 400;
}
.page-hero-left h1 {
  font-size: clamp(36px, 4.5vw, 66px); font-weight: 800;
  line-height: 1.07; letter-spacing: -0.03em; color: var(--dark);
}
.page-hero-right {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.page-hero-img {
  height: 88%; width: auto; object-fit: contain;
  align-self: flex-end;
}
/* Data dots overlay */
.data-chart {
  position: absolute; inset: 0; pointer-events: none;
}
.data-chart svg { width: 100%; height: 100%; }

/* ─── Section: De que se trata ───────────────────────────── */
.section-trata {
  background: var(--bg);
  padding: 0 0 80px;
}
.trata-inner { max-width: 1760px; margin: 0 auto; padding: 0 80px; }
.trata-label { font-size: 13px; color: var(--muted); font-weight: 300; letter-spacing: 0.01em; margin-bottom: 20px; }
.trata-body {
  font-size: clamp(20px, 1.8vw, 28px); font-weight: 400;
  line-height: 1.6; color: var(--dark); max-width: 1100px;
}

/* ─── Section: Pillars ───────────────────────────────────── */
.section-pillars {
  background: var(--bg);
  padding: 80px 0 100px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.pillars-inner {
  max-width: 1760px; margin: 0 auto; padding: 0 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.pillars-image {
  background: var(--purple);
  border-radius: 16px;
  min-height: 420px;
  overflow: hidden;
}
.pillars-image img { width: 100%; height: 100%; object-fit: cover; }
.pillars-right { }
.pillars-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 32px;
}
.ptab {
  font-size: clamp(16px, 1.5vw, 24px); font-weight: 300; color: var(--muted);
  letter-spacing: 0.02em; padding: 12px 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: color .2s, border-color .2s;
}
.ptab.active { color: var(--dark); border-bottom-color: var(--dark); font-weight: 600; }
.ptab:hover { color: var(--dark); }
.pillars-body {
  font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 480px;
}
.btn-pill-red {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border-radius: 100px;
  padding: 12px 24px; font-size: 14px; font-weight: 500;
  margin-top: 32px; transition: opacity .2s;
}
.btn-pill-red:hover { opacity: .85; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-home { grid-template-columns: 1fr 320px; }
  .hero-right-cards { padding: 16px 16px 16px 8px; }
  .proposito-inner, .pillars-inner { grid-template-columns: 1fr; gap: 48px; }
  .red-inner { grid-template-columns: 1fr; }
  .kpi-card { grid-template-columns: 1fr; }
  .footer-mid { flex-direction: column; gap: 24px; }
  .footer-tagline-sm { text-align: left; }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero-right { min-height: 360px; }
}
@media (max-width: 900px) {
  .hero-home { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .hero-right-cards { display: none; }
  .hero-main { padding: 48px 24px 0; min-height: calc(100vh - 88px); }
  .img-grupo { display: none; }
  .img-alpinista { left: 2%; height: 62%; }
  .hero-stat { left: auto; right: 5%; bottom: 32%; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .proposito-inner, .pillars-inner, .kpi-card { padding: 40px 32px; }
  .cards-inner, .trata-inner, .red-inner, .kpi-inner, .footer-inner { padding: 0 24px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 88px; left: 0; right: 0;
    background: var(--bg); padding: 24px; gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .burger { display: flex; }
  .nav-bars { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .page-hero-left { padding: 40px 24px 40px; }
}
