*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-dark:#0a0e17; --bg-card:#111827; --bg-card2:#0f1622;
  --accent:#ff8c00; --accent2:#0fd4a0;
  --text:#f0f4ff; --text-muted:#8a9bbf; --border:rgba(255,255,255,0.07);
}
html { scroll-behavior: smooth; }
body { background:var(--bg-dark); color:var(--text); font-family:'Barlow',sans-serif; overflow-x:hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; width: 100%;
  height: 90px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 60px;
  z-index: 1000; background: rgba(2,6,23,0.85);
  backdrop-filter: blur(10px); box-sizing: border-box;
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; height: 100%; }
.logo-img { height: 100px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); text-decoration:none; transition:color .2s; }
.nav-links a:hover { color:#fff; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 90px 3rem 0; position: relative; overflow: hidden;
}

/* Capa 1 — imagen de fondo */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("img/hero-fondo.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Capa 2 — overlay */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(5, 8, 18, 0.96) 0%,
    rgba(5, 8, 18, 0.90) 35%,
    rgba(5, 8, 18, 0.55) 60%,
    rgba(5, 8, 18, 0.20) 100%
  );
}

/* Capa 3 — glow y grid decorativos */
.hero-bg {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(255,140,0,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(15,212,160,.04) 0%, transparent 60%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,140,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,0,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Contenido hero */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  animation: fadeUp .9s ease both;
}

.hero-quote {
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  color: #ffffff;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.hero-sub {
  font-size: 16px;
  color: rgba(240,244,255,0.90);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.hero-btns { display:flex; gap:1rem; flex-wrap:wrap; }
.btn-primary { padding:14px 32px; font-size:13px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; background:var(--accent); color:#fff; border:none; cursor:pointer; transition:background .2s,transform .15s; text-decoration:none; display:inline-block; }
.btn-primary:hover { background:#cc7000; transform:translateY(-1px); }
.btn-outline { padding:14px 32px; font-size:13px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; background:rgba(0,0,0,0.4); color:#fff; border:1px solid rgba(255,255,255,.5); cursor:pointer; transition:border-color .2s,color .2s,background .2s; text-decoration:none; display:inline-block; }
.btn-outline:hover { border-color:#fff; background:rgba(0,0,0,0.6); }

/* Botón scroll — izquierda */
.scroll-cue { position:absolute; bottom:2.5rem; left:2.5rem; transform:none; width:40px; height:40px; border:1px solid rgba(255,255,255,.3); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; animation:bounce 2s ease-in-out infinite; cursor:pointer; z-index:4; }

/* SECTIONS */
section { padding: 6rem 3rem; }
.section-label { font-size:11px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--accent); margin-bottom:.75rem; }
.section-title { font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:clamp(36px,5vw,56px); line-height:1; color:#fff; margin-bottom:1.25rem; }
.section-sub { font-size:16px; color:var(--text-muted); line-height:1.7; max-width:560px; }

/* PASOS / QUIÉNES SOMOS */
.steps-section { background: var(--bg-card2); }
.steps-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.steps-content-col { padding: 0; }
.steps-header { margin-bottom: 2rem; }

/* AUTOEVALUACIÓN / SERVICIOS */
.auto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.auto-list { display: flex; flex-direction: column; }
.auto-item { display:flex; align-items:center; justify-content:space-between; padding:1.2rem 0; border-bottom:1px solid var(--border); cursor:pointer; transition:border-color .2s; gap:1rem; }
.auto-item:hover { border-bottom-color: var(--accent); }
.auto-item:first-child { border-top: 1px solid var(--border); }
.auto-item-left { display: flex; align-items: center; gap: 14px; }
.auto-num { font-family:'Barlow Condensed',sans-serif; font-size:13px; font-weight:700; color:var(--accent); min-width:22px; }
.auto-label { font-size: 15px; color: var(--text); }

/* INFO / CAMPO DE ACCIÓN */
.info-section { background: var(--bg-card2); }
.info-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1px; background:var(--border); border:1px solid var(--border); margin-top:3rem; }
.info-tile { background: var(--bg-card); padding: 2rem 1.75rem; }
.info-tile-label { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin-bottom:.6rem; }
.info-tile-value { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:22px; color:#fff; line-height:1.2; }
.info-tile-sub { font-size:13px; color:var(--text-muted); margin-top:.4rem; line-height:1.5; }

/* BOTONES FLOTANTES */
.float-ctас { position:fixed; bottom:2rem; right:1.5rem; display:flex; flex-direction:column; gap:.75rem; z-index:200; }
.float-btn { display:flex; align-items:center; gap:10px; padding:12px 20px; border-radius:50px; font-size:13px; font-weight:600; letter-spacing:.06em; cursor:pointer; border:none; text-decoration:none; transition:transform .15s; box-shadow:0 4px 20px rgba(0,0,0,.4); }
.float-btn:hover { transform: translateY(-2px); }
.float-btn.blue { background: var(--accent); color: #fff; }
.float-btn.green { background: #25D366; color: #fff; }
.float-icon { width:18px; height:18px; flex-shrink:0; }

/* FOOTER */
.footer { background:#020617; color:white; padding:70px 40px 30px; border-top:1px solid rgba(255,255,255,.08); }
.footer-container { max-width:1200px; margin:auto; display:grid; grid-template-columns:repeat(3,1fr); gap:50px; }
.footer-col { display:flex; flex-direction:column; }
.footer-brand { display:flex; justify-content:flex-start; align-items:center; margin-bottom:20px; }
.logo-footer { height:120px; width:auto; object-fit:contain; display:block; }
.footer-title { font-size:18px; font-weight:700; margin-bottom:20px; color:#f59e0b; }
.footer-copy { color:rgba(255,255,255,.7); line-height:1.8; font-size:14px; }
.footer-links { display:flex; flex-direction:column; gap:12px; }
.footer-links a { color:rgba(255,255,255,.75); text-decoration:none; transition:.3s; line-height:1.6; }
.footer-links a:hover { color:#f59e0b; }
.footer-bottom { margin-top:50px; padding-top:25px; border-top:1px solid rgba(255,255,255,.08); text-align:center; color:rgba(255,255,255,.55); font-size:14px; }

/* ANIMACIONES */
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)} }
@keyframes bounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(6px)} }
.reveal { opacity:0; transform:translateY(24px); transition:opacity .6s ease,transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* CENTRADO DE SECCIONES */
#autoevaluacion3 .steps-layout { display:flex; justify-content:center; text-align:center; }
#autoevaluacion3 .steps-content-col { max-width:900px; }
#autoevaluacion3 .section-sub { max-width:800px; margin-inline:auto; }

#pasos .steps-layout { display:flex; justify-content:center; text-align:center; }
#pasos .steps-content-col { max-width:900px; }

#info .reveal { text-align:center; }
#info .section-label, #info .section-title { text-align:center; }
#info .info-grid { margin-top:4rem; }

/* MENU HAMBURGUESA */
.menu-toggle { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px; }
.menu-toggle span { display:block; width:24px; height:2px; background:#fff; border-radius:2px; transition:.3s; }
.menu-toggle.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity:0; }
.menu-toggle.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* LOADER */
#loader { position:fixed; inset:0; background:var(--bg-dark); z-index:9999; display:flex; align-items:center; justify-content:center; transition:opacity .5s ease; }
#loader.hidden { opacity:0; pointer-events:none; }
.loader-bar { width:200px; height:3px; background:var(--border); border-radius:2px; overflow:hidden; }
.loader-progress { height:100%; width:0; background:var(--accent); animation:load .7s ease forwards; }
@keyframes load { to { width:100%; } }

/* RESPONSIVE */
@media(max-width:960px) {
  .steps-layout { grid-template-columns: 1fr; }
  .auto-inner { grid-template-columns: 1fr; }
}
@media(max-width:768px) {
  nav { padding: 0 1.5rem; }
  .menu-toggle { display:flex; }
  .nav-links { display:none; position:absolute; top:90px; left:0; width:100%; background:rgba(2,6,23,0.97); flex-direction:column; padding:1.5rem 2rem; gap:1.5rem; border-bottom:1px solid var(--border); }
  .nav-links.active { display:flex; }
  .hero, section { padding-left:1.5rem; padding-right:1.5rem; }
  .footer-container { grid-template-columns:1fr; gap:40px; }
  .footer { padding:60px 25px 30px; }

  .hero-bg-overlay {
    background: rgba(5, 8, 18, 0.88);
  }
}