:root{
  --brand:#0c0959;
  --text:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;
  --bg:#ffffff;
  --soft:#f8fafc;
  --radius:18px;
  --shadow:0 12px 30px rgba(2,6,23,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:var(--bg);
  line-height:1.55
}
a{color:inherit}
img{max-width:100%; height:auto; display:block}

.container{width:min(1120px, calc(100% - 40px)); margin:0 auto}
.muted{color:var(--muted)}

.skiplink{position:absolute; left:-9999px}
.skiplink:focus{
  left:16px; top:16px; background:#fff;
  padding:10px 12px; border:1px solid var(--line);
  border-radius:10px; z-index:9999
}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line)
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:12px 0
}
.brand-logo{height:42px}

.nav{display:flex; align-items:center; gap:12px}
.nav a{
  font-size:14px; text-decoration:none;
  padding:8px 10px; border-radius:12px
}
.nav a[aria-current="page"]{
  background:rgba(12,9,89,.10);
  color:var(--brand);
  font-weight:600
}

.nav-toggle{
  display:none; border:1px solid var(--line);
  background:#fff; border-radius:12px;
  padding:8px 10px
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:10px 14px; border-radius:14px;
  text-decoration:none; font-weight:600; font-size:14px;
  border:1px solid transparent
}
.btn-primary{background:var(--brand); color:#fff}
.btn-ghost{background:#fff; border-color:var(--line); color:var(--text)}
.btn-primary:hover{filter:brightness(.95)}
.btn-ghost:hover{background:var(--soft)}

.hero{
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(12,9,89,.20), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(12,9,89,.12), transparent 55%);
  border-bottom:1px solid var(--line);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  padding:48px 0
}
.hero h1{font-size:42px; line-height:1.1; margin:0 0 12px}
.hero p{margin:0 0 18px; color:var(--muted); font-size:16px}

.hero-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px
}

.kpis{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:14px
}
.kpi{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:var(--soft)
}
.kpi b{display:block; font-size:16px}
.kpi span{font-size:13px; color:var(--muted)}

.section{padding:44px 0}
.section h2{margin:0 0 12px; font-size:28px}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  background:#fff;
  box-shadow:0 10px 20px rgba(2,6,23,.04)
}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px}

.split{display:grid; grid-template-columns: 1fr 1fr; gap:16px}

.badges{display:flex; flex-wrap:wrap; gap:10px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  background:rgba(12,9,89,.10);
  color:var(--brand);
  border:1px solid rgba(12,9,89,.20);
  font-size:13px; font-weight:600
}

.gallery-placeholder{
  border:2px dashed rgba(12,9,89,.35);
  background:rgba(12,9,89,.06);
  border-radius:var(--radius);
  padding:18px
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:12px
}
.ph{
  aspect-ratio: 4/3;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
  font-size:12px
}

.site-footer{border-top:1px solid var(--line); background:#fff}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1.4fr 1fr;
  gap:18px;
  padding:30px 0
}
.footer-bottom{padding:14px 0; border-top:1px solid var(--line)}
.list{list-style:none; padding:0; margin:0; display:grid; gap:8px}
.social{display:flex; gap:12px; margin-top:10px}
.footer-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

/* Responsive */
@media (max-width: 960px){
  .hero-grid{grid-template-columns:1fr; padding:34px 0}
  .grid-3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
  .nav-toggle{display:inline-flex}
  .nav{
    display:none; position:absolute;
    right:20px; top:70px;
    flex-direction:column;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:10px;
    box-shadow:var(--shadow)
  }
  .nav.is-open{display:flex}
}

.input{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  font-size:14px;
  outline:none;
  color:var(--text);
}
.input:focus{
  border-color: rgba(12,9,89,.55);
  box-shadow: 0 0 0 4px rgba(12,9,89,.12);
}
textarea.input{resize:vertical}
label{font-size:13px}
summary{cursor:pointer}

/* =========================
   HERO HOME (FONDO + CONTRASTE) - FIX FINAL
========================= */

/* 1) El hero del home: fondo en una sola regla (shorthand) */
.hero.hero-home{
  position:relative;
  background:
    linear-gradient(rgba(3, 7, 18, 0.25), rgba(3, 7, 18, 0.05)),
    url("https://solei.cl/sitio/assets/img/hero-home.jpg") center / cover no-repeat;
  border-bottom:1px solid var(--line);
}

/* 2) SOLO el texto general del hero en blanco (para la columna izquierda) */
.hero.hero-home{
  color:#fff;
}
.hero.hero-home h1{
  color:#fff;
  font-weight:800;
  letter-spacing:-0.02em;
}
.hero.hero-home p{
  color: rgba(255,255,255,.92);
  font-size:17px;
  max-width:640px;
}

/* Palabra destacada */
.hero.hero-home .highlight{
  color:#fff;
  background: linear-gradient(120deg, var(--brand), #1e40af);
  padding: 0 .35em;
  border-radius: 8px;
  box-decoration-break: clone;
}

/* 3) Card derecha: volver a colores oscuros (aquí estaba el “texto blanco sobre blanco”) */
.hero.hero-home .hero-card{
  background: rgba(255,255,255,.96);
  border: 0;
  box-shadow: 0 30px 60px rgba(2,6,23,.35);
  color: var(--text);
}
.hero.hero-home .hero-card h1,
.hero.hero-home .hero-card h2,
.hero.hero-home .hero-card h3,
.hero.hero-home .hero-card p,
.hero.hero-home .hero-card .muted{
  color: var(--text);
}
.hero.hero-home .hero-card .muted{ color: rgba(15,23,42,.78); }

/* 4) Inputs/placeholder dentro del card: volver visibles */
.hero.hero-home .hero-card .input{
  color: var(--text);
}
.hero.hero-home .hero-card .input::placeholder{
  color: rgba(15,23,42,.55);
  opacity:1;
}

/* 5) Botón WhatsApp/ghost dentro del hero: texto oscuro sobre fondo claro */
.hero.hero-home .btn-ghost{
  color: var(--text);
  border-color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.95);
}
.hero.hero-home .btn-ghost:hover{
  background: rgba(255,255,255,1);
}

/* 6) KPIs sobre imagen (si los usas en el hero) */
.hero.hero-home .kpi{
  background: rgba(255,255,255,.92);
  border:0;
}
.hero.hero-home .kpi b{ color: var(--brand); }
.hero.hero-home .kpi span{ color:#334155; }

/* Ajustes MOBILE HERO */
@media (max-width: 960px){
  .hero-grid{ padding: 26px 0; gap: 16px; }
  .hero.hero-home h1{ font-size: 34px; line-height: 1.08; }
  .hero.hero-home p{ font-size: 16px; line-height: 1.55; max-width: 100%; }
  .hero.hero-home .btn{ width: 100%; justify-content: center; }
  .hero.hero-home .hero-card{ padding: 16px; border-radius: 18px; }
  .kpis{ grid-template-columns: 1fr; gap: 10px; }
  .kpi{ padding: 12px 12px; }
  .hero.hero-home .highlight{ padding: 0 .28em; border-radius: 7px; }
}
@media (max-width: 420px){
  .hero.hero-home h1{ font-size: 30px; }
}

/* PASOS - COMO TRABAJAMOS */
.pasos{ margin:0; padding:22px 26px; }
.pasos li{ margin-bottom:10px; padding-left:4px; }
@media (max-width:768px){
  .pasos{padding:18px 20px}
}

/* =========================
   NUEVO: Cards con imagen
========================= */
.card-media{ padding:0; overflow:hidden; }
.card-project{ padding:0; overflow:hidden; }

.card-img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
  border-bottom:1px solid var(--line);
}
.card-body{ padding:16px; }

/* Beneficios con ícono */
.benefit{ display:flex; gap:12px; align-items:flex-start; }
.benefit-icon{
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border-radius:14px;
  background:rgba(12,9,89,.10);
  border:1px solid rgba(12,9,89,.18);
  font-size:20px;
  flex:0 0 auto;
}

.gallery-grid img,
.gallery-grid video,
.gallery-grid iframe{
  width:100%;
  height:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  background:#000;
}

/* =========================
   TRUST / CONFIANZA
========================= */

.trust-card{
  text-align:center;
}

/* Contenedor del logo */
.trust-logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  height:72px;
  margin-bottom:14px;
}

/* Logo uniforme, a color */
.trust-logo{
  max-height:52px;
  width:auto;
  object-fit:contain;
  opacity:1;              /* 🔥 NO gris */
  filter:none;            /* 🔥 NO grayscale */
}

/* Título siempre debajo del logo */
.trust-card h3{
  margin:0 0 10px;
  text-align:center;
}

/* Texto centrado y legible */
.trust-card p{
  text-align:center;
}

/* Mobile */
@media (max-width:768px){
  .trust-logo{
    max-height:44px;
  }
}