:root{
  --bg: #0f0f10;
  --bg2:#151518;
  --panel:#1b1c1f;
  --text:#e9eaec;
  --muted:#b8bcc4;
  --line: rgba(255,255,255,.12);
  --card:#f2f2f2;
  --cardText:#1a1a1a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --radius2: 18px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, #0b0b0c, #111114);
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.9; }

.container{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(0,0,0,.85);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:240px;
}
.brand-logo{
  height:40px;
  width:auto;
  display:block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.4));
}
.brand-subtitle{
  font-size:12px;
  line-height:1.1;
  color:var(--muted);
  letter-spacing:.2px;
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav-link{
  font-size:14px;
  color:rgba(255,255,255,.88);
  padding:10px 10px;
  border-radius:10px;
}
.nav-link:hover{
  background:rgba(255,255,255,.06);
}
.nav-link--cta{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.10);
}

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:transparent;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}
.nav-toggle span{
  width:18px; height:2px;
  background:rgba(255,255,255,.9);
  display:block;
  border-radius:2px;
}

/* HERO */
.hero{
  position:relative;
  min-height:72vh;
  display:flex;
  align-items:center;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35)),
    url("../img/hero.jpg") center/cover no-repeat;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:radial-gradient(60% 60% at 20% 40%, rgba(0,0,0,.0), rgba(0,0,0,.55));
  pointer-events:none;
}
.hero-inner{
  position:relative;
  padding:70px 0 60px;
}
.hero-copy{
  max-width:620px;
}
.hero h1{
  margin:0 0 10px;
  font-size:42px;
  letter-spacing:-.8px;
}
.hero p{
  margin:0 0 22px;
  color:rgba(255,255,255,.82);
  font-size:16px;
  line-height:1.6;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background:rgba(255,255,255,.92);
  color:#111;
}
.btn-ghost{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.14);
  color:rgba(255,255,255,.92);
}

.hero-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badge{
  font-size:12px;
  color:rgba(255,255,255,.82);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  padding:8px 10px;
  border-radius:999px;
}

/* SECTIONS */
.section{
  padding:64px 0;
}
.section-dark{ background:linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.18)); }
.section-darker{ background: #0b0b0c; }

.section-title{
  margin:0 0 18px;
  font-size:26px;
  letter-spacing:-.4px;
}
.section-lead{
  margin:0 0 28px;
  color:rgba(255,255,255,.70);
  line-height:1.6;
  max-width:720px;
}
.split-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

/* CARDS */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.card{
  background:var(--card);
  color:var(--cardText);
  border-radius:var(--radius2);
  padding:22px 20px;
  box-shadow: var(--shadow);
  border:1px solid rgba(0,0,0,.06);
  position:relative;
  overflow:hidden;
}
.card h3{
  margin:10px 0 10px;
  font-size:18px;
  letter-spacing:-.2px;
}
.card p{
  margin:0;
  color:rgba(0,0,0,.70);
  line-height:1.6;
  font-size:14px;
}
.card-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.06);
  color:rgba(0,0,0,.7);
  font-weight:700;
  font-size:18px;
}

.cards--outline .card{ background:transparent; box-shadow:none; }
.card--outline{
  background:transparent;
  color:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.18);
}
.card--outline p{ color:rgba(255,255,255,.70); }
.card--outline h3{ color:rgba(255,255,255,.92); }

.spacer{ height:26px; }

/* TWO COL */
.two-col{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
.panel{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius2);
  padding:22px 20px;
}
.panel p{
  margin:0 0 14px;
  color:rgba(255,255,255,.74);
  line-height:1.75;
}
.panel p:last-child{ margin-bottom:0; }

.kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}
.kpi{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px;
}
.kpi-num{
  display:block;
  font-weight:700;
  font-size:18px;
  margin-bottom:6px;
}
.kpi-label{
  display:block;
  color:rgba(255,255,255,.70);
  font-size:12px;
}

.panel--media .note{
  margin-top:12px;
  color:rgba(255,255,255,.55);
  font-size:12px;
}

.media-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
.media{
  margin:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
}
.media img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}
.media figcaption{
  padding:10px 12px;
  font-size:12px;
  color:rgba(255,255,255,.70);
  border-top:1px solid rgba(255,255,255,.10);
}
.media--placeholder{
  height:210px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.55);
}
.media--placeholder::before{
  content:"Imagen opcional (agrega assets/img/valores-*.jpg)";
  padding:10px;
  text-align:center;
}

/* CONTACT */
.contact{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:18px;
}
.contact-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius2);
  padding:22px 20px;
}
.contact-card h3{ margin:0 0 10px; }
.contact-card p{
  margin:0 0 14px;
  color:rgba(255,255,255,.74);
  line-height:1.7;
}
.small{
  margin-top:14px;
  color:rgba(255,255,255,.55);
  font-size:12px;
  line-height:1.6;
}
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.contact-form{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius2);
  padding:22px 20px;
}
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
label{ font-size:12px; color:rgba(255,255,255,.70); }
input, textarea{
  background:rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.90);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  font: inherit;
}
input:focus, textarea:focus{ border-color: rgba(255,255,255,.28); }
.form-hint{
  margin:12px 0 0;
  color:rgba(255,255,255,.65);
  font-size:12px;
}

/* FOOTER */
.footer{
  border-top:1px solid rgba(255,255,255,.08);
  background:#070708;
  padding:18px 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer-left{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-logo{ height:26px; width:auto; opacity:.92; }
.footer-subtitle{
  color:rgba(255,255,255,.68);
  font-size:12px;
}
.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:rgba(255,255,255,.72);
  font-size:12px;
}
.footer-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  font-size:12px;
}
.muted{ color:rgba(255,255,255,.55); }

/* RESPONSIVE */
@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .hero h1{ font-size:36px; }
}
@media (max-width: 760px){
  .brand-subtitle{ display:none; }
  .nav-toggle{ display:flex; }
  .nav{
    position:absolute;
    right:24px;
    top:68px;
    background:rgba(0,0,0,.92);
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px;
    padding:10px;
    display:none;
    flex-direction:column;
    gap:6px;
    width:min(260px, calc(100vw - 48px));
  }
  .nav.is-open{ display:flex; }
  .nav-link{ width:100%; }
}