/* Ibáñez Consultoría - Landing (HTML/CSS/JS)
   - Reemplazá assets/hero.png por tu imagen real cuando quieras
   - Paleta: azul oscuro + acento rojo
*/
:root{
  --bg:#0b1220;
  --bg2:#0f172a;
  --card:#0f1b33;
  --text:#e5e7eb;
  --muted:#9aa4b2;
  --line:rgba(148,163,184,.22);
  --accent:#b91c1c;
  --accent2:#38bdf8;
  --white:#ffffff;
  --shadow: 0 14px 40px rgba(0,0,0,.28);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, #060a13 0%, #0b1220 40%, #060a13 100%);
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1120px, calc(100% - 40px)); margin:0 auto}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(6,10,19,.7);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(148,163,184,.12);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px}
.brand__mark{
  width:50px;height:50px;
 
  display:grid;place-items:center;
  font-weight:800;color:#fff;
}
.brand__name{font-weight:800; letter-spacing:.2px; display:block; line-height:1}
.brand__sub{color:var(--muted); font-size:12px; display:block; margin-top:2px}

.nav{display:flex; align-items:center; gap:18px}
.nav a{color:var(--muted); font-weight:600; font-size:14px}
.nav a:hover{color:var(--text)}

.nav__toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid rgba(148,163,184,.2);
  background:transparent; color:#fff;
  border-radius:12px;
}
.nav__toggle span{display:block; height:2px; width:18px; background:#fff; margin:4px auto; opacity:.9}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  background:var(--accent);
  color:#fff;
  font-weight:800;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 20px rgba(185,28,28,.25);
}
.btn:hover{filter:brightness(1.05)}
.btn--ghost{
  background:transparent;
  border:1px solid rgba(148,163,184,.26);
  color:var(--text);
  box-shadow:none;
}
.btn--sm{padding:10px 12px; border-radius:12px; font-size:14px}

/* Hero */
.hero{position:relative; padding:44px 0 18px}
.hero__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 300px at 12% 20%, rgba(56,189,248,.12), transparent 60%),
    radial-gradient(900px 340px at 70% 40%, rgba(185,28,28,.18), transparent 60%);
  pointer-events:none;
}
.hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:22px;
  align-items:stretch;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.22);
  color:var(--muted);
  background:rgba(15,23,42,.6);
  margin:0 0 14px;
  font-weight:700;
}
h1{font-size:42px; line-height:1.1; margin:0 0 12px}
.lead{color:var(--muted); font-size:16px; line-height:1.6; margin:0 0 18px}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px}

.iso-row{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.iso-row img{
  width:72px; height:72px;
  padding:6px;
  background:rgba(15,23,42,.65);
  border:1px solid rgba(148,163,184,.22);
  border-radius:16px;
}

.hero__card{
  background:rgba(15,27,51,.72);
  border:1px solid rgba(148,163,184,.18);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex; flex-direction:column;
}
.hero__image{width:100%; height:340px; object-fit:cover}
.hero__cardBottom{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 14px 16px;
}
.kicker{margin:0; color:var(--muted); font-weight:800; font-size:12px; letter-spacing:.6px; text-transform:uppercase}
.small{margin:6px 0 0; color:var(--text); opacity:.9; font-size:13px; line-height:1.4}

/* Sections */
.section{padding:56px 0}
.section--alt{
  background:linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.15));
  border-top:1px solid rgba(148,163,184,.10);
  border-bottom:1px solid rgba(148,163,184,.10);
}
.section--dark{
  background:linear-gradient(180deg, rgba(6,10,19,.9), rgba(15,23,42,.9));
  border-top:1px solid rgba(148,163,184,.10);
}
h2{font-size:30px; margin:0 0 10px}
.section__sub{color:var(--muted); margin:0 0 22px; line-height:1.6; max-width:70ch}
.section__sub--dark{color:rgba(226,232,240,.75)}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  background:rgba(15,27,51,.72);
  border:1px solid rgba(148,163,184,.18);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card__icon{
  width:54px;height:54px;border-radius:16px;
  display:grid;place-items:center;
  background:rgba(11,18,32,.8);
  border:1px solid rgba(148,163,184,.18);
  margin-bottom:10px;
}
.pill{
  width:28px;height:28px;border-radius:10px;
  display:grid;place-items:center;
  background:rgba(56,189,248,.14);
  border:1px solid rgba(56,189,248,.22);
  font-weight:900;
}
.card h3{margin:8px 0 8px}
.card p{margin:0 0 12px; color:rgba(226,232,240,.82); line-height:1.55}
.list{margin:0 0 12px; padding-left:18px; color:rgba(226,232,240,.85)}
.list--tight{margin:10px 0 14px}
.list li{margin:6px 0}
.link{color:var(--accent2); font-weight:800}
.link:hover{text-decoration:underline}

/* Two col */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
.feature{display:flex; gap:12px; align-items:flex-start; margin:14px 0}
.dot{
  width:10px;height:10px;border-radius:999px;
  background:var(--accent);
  margin-top:8px;
  box-shadow:0 0 0 6px rgba(185,28,28,.15);
}
.feature h4{margin:0 0 6px}
.panel{
  background:rgba(15,27,51,.72);
  border:1px solid rgba(148,163,184,.18);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.panel__imgWrap img{height:240px; width:100%; object-fit:cover}
.panel__body{padding:16px}

/* About */
.about{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:start}
.about p{margin:0; color:rgba(226,232,240,.82); line-height:1.7}
.stats{display:grid; grid-template-columns: repeat(3,1fr); gap:10px}
.stat{
  background:rgba(15,27,51,.72);
  border:1px solid rgba(148,163,184,.18);
  border-radius:16px;
  padding:14px;
}
.stat__num{font-size:26px; font-weight:900; margin:0}
.stat__label{margin:4px 0 0; color:var(--muted); font-weight:700; font-size:13px}

/* Contact */
.contact{display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start}
.contact__chips{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.chip{
  padding:8px 10px;
  border-radius:999px;
  background:rgba(56,189,248,.10);
  border:1px solid rgba(56,189,248,.18);
  color:rgba(226,232,240,.9);
  font-weight:800;
  font-size:12px;
}

.form{
  background:rgba(15,27,51,.72);
  border:1px solid rgba(148,163,184,.18);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
label{display:block; font-weight:800; font-size:13px; color:rgba(226,232,240,.9); margin-bottom:10px}
input, textarea{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(11,18,32,.85);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color:rgba(56,189,248,.55); box-shadow:0 0 0 4px rgba(56,189,248,.12)}
.form__row{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.tiny{color:rgba(226,232,240,.65); font-size:12px; line-height:1.5; margin:12px 0 0}
code{background:rgba(0,0,0,.35); padding:2px 6px; border-radius:8px; border:1px solid rgba(148,163,184,.18)}

/* Footer */
.footer{
  border-top:1px solid rgba(148,163,184,.10);
  padding:18px 0;
  background:rgba(6,10,19,.8);
}
.footer__inner{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap}
.footer p{margin:0; color:rgba(226,232,240,.7)}
.footer__links{display:flex; gap:14px}
.footer__links a{color:rgba(226,232,240,.7); font-weight:700}
.footer__links a:hover{color:var(--text)}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{grid-template-columns: 1fr}
  .hero__image{height:280px}
  .cards{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .about{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  h1{font-size:36px}
  .nav__toggle{display:inline-block}
  .nav{
    position:absolute;
    top:64px; right:20px; left:20px;
    background:rgba(6,10,19,.96);
    border:1px solid rgba(148,163,184,.18);
    border-radius:16px;
    padding:12px;
    display:none;
    flex-direction:column;
    gap:10px;
  }
  .nav.is-open{display:flex}
}
