/* =========================
   TOKENS
========================= */
:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: rgba(11,18,32,.72);

  --brand-1: #0e2f5a;
  --brand-2: #091e3a;

  --light: #f5f7fa;
  --dark: #0a0f1c;

  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.14);
  --border-light: #e5e7eb;

  --radius: 14px;
  --shadow: 0 14px 38px rgba(0,0,0,.18);
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

img{ max-width:100%; display:block; }

/* =========================
   HELPERS
========================= */
.muted{ color: var(--muted); }
.kicker{
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .78rem;
  opacity: .9;
  margin: 0 0 12px;
}
.mini{ font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* =========================
   CONTAINERS
========================= */
.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 86px 20px;
}

.container.narrow{ max-width: 860px; }

/* =========================
   HERO
========================= */
.hero{
  background: radial-gradient(1200px 700px at 50% -10%, rgba(255,255,255,.14), transparent 60%),
              linear-gradient(180deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color:#fff;
  text-align:center;
  padding: 170px 20px 120px;
  position: relative;
  overflow: hidden;
}

.hero h1{
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: .02em;
  line-height: 1.1;
}

.hero .lead{
  margin: 20px auto 0;
  max-width: 860px;
  font-size: 1.05rem;
  opacity: .95;
}

.hero-actions{
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  transition: transform .15s ease, opacity .15s ease;
  border: 1px solid transparent;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: #ffffff;
  color: #0b1220;
}
.btn-ghost{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.24);
  color:#fff;
}

.hero-highlights{
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 980px;
}
.pill{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 12px 14px;
  border-radius: 999px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.pill strong{ font-size: 1rem; }
.pill span{ font-size: .9rem; opacity: .9; }

/* =========================
   SECTIONS
========================= */
.section{ position: relative; }
.section.light{ background: var(--light); }
.section.dark{ background: var(--dark); color: #fff; }

.section h2{
  font-size: 2rem;
  margin: 0 0 22px;
  letter-spacing: .01em;
}
.section h3{
  font-size: 1.25rem;
  margin: 0 0 14px;
  opacity: .98;
}
.subsection-title{
  margin-top: 46px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  opacity: .95;
}

.section p{ max-width: 880px; }

.section-head{
  max-width: 900px;
}

/* =========================
   GRIDS
========================= */
.grid-4, .grid-3, .grid-2{
  display:grid;
  gap: 18px;
  margin-top: 28px;
}
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3.compact{ margin-top: 18px; }

/* =========================
   CARDS
========================= */
.card{
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: none;
}
.section.light .card{
  background: #fff;
  border: 1px solid var(--border-light);
}
.card.soft{ box-shadow: var(--shadow); border-color: rgba(0,0,0,.06); }
.section.dark .card.soft{ box-shadow: none; border-color: rgba(255,255,255,.16); }

.card h4{
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.card-title{
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.card-text{
  margin: 0;
  color: var(--muted);
}
.section.dark .card-text{ color: rgba(255,255,255,.75); }

/* =========================
   PROJECT LAYOUT
========================= */
.project-hero{
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

.checks{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.checks li{
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  opacity: .95;
}
.section.light .checks li{
  border-bottom-color: rgba(11,18,32,.10);
}

.project-metrics{
  display: grid;
  gap: 12px;
}
.metric{
  padding: 16px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
}
.metric strong{
  display:block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.metric span{
  display:block;
  font-size: .95rem;
  opacity: .85;
}

.callout{
  margin-top: 22px;
  border-radius: var(--radius);
  padding: 18px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
}
.callout h4{ margin: 0 0 6px; }

/* =========================
   STATS
========================= */
.stat{ text-align:center; }
.stat strong{
  display:block;
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.stat span{ font-size: .95rem; opacity: .85; }

/* =========================
   CAPABILITIES
========================= */
.capabilities{
  list-style:none;
  padding:0;
  margin-top: 22px;
  max-width: 860px;
}
.capabilities li{
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.section.light .capabilities li{
  border-bottom: 1px solid rgba(11,18,32,.10);
}

/* =========================
   CONTACT
========================= */
.contact-box{
  margin-top: 18px;
  padding: 18px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border-light);
}
.section.dark .contact-box{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

/* =========================
   FOOTER (si lo necesitas)
========================= */
.site-footer{
  background:#000;
  color:#fff;
  text-align:center;
  padding: 40px 20px;
  font-size:.9rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px){
  .container{ padding: 74px 20px; }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .project-hero{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .hero{ padding: 130px 20px 100px; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .section h2{ font-size: 1.6rem; }
}


/* =========================
   STICKY HEADER + NAV
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.site-header.scrolled{
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 16px 20px;
}

.header-inner.container{
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo en header */
.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  padding: 2px 0;
}

/* Logo m¨¢s grande */
.brand img{
  display: block;
  height: 56px;      /* <-- sube aqu¨ª (50¨C70) */
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

/* En pantallas grandes a¨²n m¨¢s c¨®modo */
@media (min-width: 1024px){
  .brand img{
    height: 62px;
  }
}

/* En m¨®vil no tan enorme */
@media (max-width: 980px){
  .brand img{
    height: 46px;
    max-width: 200px;
  }
}


.nav{
  display:flex;
  align-items:center;
  gap: 14px;
}

.nav-link{
  color: rgba(11,18,32,.78);
  text-decoration:none;
  font-weight: 650;
  font-size: .95rem;
  padding: 10px 10px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav-link:hover{
  background: rgba(14,47,90,.08);
  color: rgba(11,18,32,.92);
}

.nav-link.active{
  background: rgba(14,47,90,.12);
  color: rgba(11,18,32,.98);
}

.nav-link.cta{
  background: var(--brand-1);
  color: #fff;
  padding: 10px 14px;
}

.nav-link.cta:hover{
  background: var(--brand-2);
  transform: translateY(-1px);
}

/* Mobile button */
/* Mobile button */
.nav-toggle{
  display: none; /* desktop: oculto */
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  cursor: pointer;

  /* layout interno del icono */
  padding: 12px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;

  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: #0e2f5a;
  border-radius: 999px;
}




/* Mobile menu panel */
.nav-mobile{
  display:none;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  padding: 14px 20px 18px;
}
.nav-mobile a{
  display:block;
  padding: 12px 6px;
  text-decoration:none;
  color: rgba(11,18,32,.85);
  font-weight: 650;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-mobile a:last-child{ border-bottom: 0; }

/* lock scroll when menu open */
body.nav-open{ overflow: hidden; }

/* Responsive nav */
@media (max-width: 980px){
  .nav{
    display:none;
  }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  /* El menÃº mÃ³vil NO se muestra solo */
  .nav-mobile{
    display:none;
  }

  /* Solo se muestra cuando JS lo abre */
  .nav-mobile.open{
    display:block;
  }
}


/* =========================
   ANCHOR OFFSET (CSS)
   (Por si se llega por URL con #)
========================= */
main section[id]{
  scroll-margin-top: 90px;
}

/* =========================
   REVEAL ANIMATIONS (Consultora europea)
========================= */
[data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}

[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* delays opcionales */
[data-reveal="delay-1"]{ transition-delay: .08s; }
[data-reveal="delay-2"]{ transition-delay: .16s; }
[data-reveal="delay-3"]{ transition-delay: .24s; }




/* ===== HERO image layer ===== */
.hero{ position: relative; }
.hero-media{
  position:absolute;
  inset:0;
  z-index:0;
  opacity:.22;              /* ajusta a gusto */
  pointer-events:none;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero-inner{ position:relative; z-index:1; }

/* ===== Split layout ===== */
.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: center;
}
.split-media{
  margin:0;
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.08);
}
.split-media img{
  width:100%;
  height:auto;
  display:block;
}

/* ===== Project banner ===== */
.project-banner{
  margin-top: 18px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
}
.section.light .project-banner{
  border-color: rgba(0,0,0,.10);
}
.project-banner img{
  width:100%;
  height:auto;
  display:block;
}

/* ===== Section image ===== */
.section-image{
  margin-top: 14px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
}
.section-image img{
  width:100%;
  height:auto;
  display:block;
}

/* Responsive */
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
}
