:root{
  --bg:#0b1220;
  --text:#0f172a;
  --muted:#475569;
  --card:#ffffff;
  --soft:#f6f7fb;
  --line:#e7eaf2;
  --primary:#ff6a00;
  --primary2:#ff8a3d;
  --dark:#0b1220;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;color:var(--text);background:#fff}
a{color:inherit;text-decoration:none}
.container{width:min(1120px,92%);margin:0 auto}

/* =========================
   HEADER (NEGRO)
========================= */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:#000;
  border-bottom:1px solid #111;
}

.header__inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:16px}

.brand{display:flex;align-items:center;gap:10px}
.brand__logo{width:34px;height:34px;object-fit:contain}
.brand__name{
  font-weight:700;
  letter-spacing:.2px;
  color:#fff;
}

/* =========================
   NAV (PC)
========================= */
.nav{display:flex;align-items:center;gap:18px}
.nav a{
  color:#fff;
  font-weight:600;
  font-size:14px;
}
.nav a:hover{opacity:.8}

/* =========================
   HAMBURGUESA (MOBILE)
========================= */
.nav__toggle{
  display:none;
  border:1px solid #333;
  background:#000;
  border-radius:10px;
  padding:10px;
  cursor:pointer;
}
.nav__toggle span{
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  margin:4px 0;
}

/* =========================
   BOTONES
========================= */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:12px;font-weight:700;font-size:14px;
  border:1px solid transparent;cursor:pointer;transition:.15s ease;
}
.btn--primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff}
.btn--primary:hover{transform:translateY(-1px)}
.btn--secondary{background:#111827;color:#fff}
.btn--ghost{
  background:transparent;
  border:1px solid #fff;
  color:#fff;
}

/* =========================
   HERO
========================= */
.hero{
  padding:54px 0 30px;
  background:radial-gradient(1200px 400px at 20% 10%, rgba(255,106,0,.18), transparent 50%),
             radial-gradient(900px 380px at 85% 40%, rgba(17,24,39,.10), transparent 55%);
}
.hero__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:26px;align-items:stretch}
.hero h1{font-size:42px;line-height:1.05;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}

.badges{display:flex;gap:10px;flex-wrap:wrap}
.badge{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;font-size:13px;color:#111827}

.hero__panel{display:flex}
.panel__card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  width:100%;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
}
.panel__kpi{padding:10px 0;border-bottom:1px dashed var(--line)}
.panel__kpi:last-of-type{border-bottom:none}
.kpi__label{font-size:12px;color:var(--muted);font-weight:600}
.kpi__value{font-weight:700;margin-top:4px}
.panel__note{margin-top:12px;color:var(--muted);font-size:13px;line-height:1.5}

/* =========================
   SECCIONES
========================= */
.section{padding:54px 0}
.section--alt{background:var(--soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section__head{margin-bottom:18px}
.section__head h2{margin:0 0 6px;font-size:28px}
.section__head p{margin:0;color:var(--muted)}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.card h3{margin:0 0 10px}
.card ul{margin:0;padding-left:18px;color:var(--muted);line-height:1.7}

/* =========================
   STEPS
========================= */
.steps{display:grid;gap:12px}
.step{
  display:grid;grid-template-columns:42px 1fr;gap:12px;
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px
}
.step__n{
  width:42px;height:42px;border-radius:12px;
  background:#111827;color:#fff;font-weight:800;
  display:flex;align-items:center;justify-content:center;
}
.step h3{margin:0 0 4px}
.step p{margin:0;color:var(--muted);line-height:1.6}

/* =========================
   MINI / CTA BOX
========================= */
.mini{
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px
}
.mini h3{margin:0 0 6px}
.mini p{margin:0;color:var(--muted);line-height:1.6}

.ctaBox{
  margin-top:18px;
  background:linear-gradient(135deg, rgba(255,106,0,.12), rgba(17,24,39,.08));
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.ctaBox h3{margin:0 0 6px}
.ctaBox p{margin:0;color:var(--muted)}

/* =========================
   CONTACTO / FORM
========================= */
.contact{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.contact__info{margin:14px 0 18px;color:var(--muted);line-height:1.8}

.form{
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
label{display:block;font-size:13px;font-weight:700;margin:10px 0 6px}
input,select,textarea{
  width:100%;padding:12px 12px;border-radius:12px;
  border:1px solid var(--line);outline:none;font:inherit;
}
textarea{resize:vertical}
.form__hint{color:var(--muted);font-size:12px;margin:10px 0 0}

/* =========================
   FOOTER
========================= */
.footer{padding:22px 0;border-top:1px solid var(--line)}
.footer__inner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.footer__links{display:flex;gap:14px;color:var(--muted)}
.footer__links a:hover{opacity:.75}

@media (max-width: 920px){
  .hero__grid{grid-template-columns:1fr;gap:14px}
  .hero h1{font-size:34px}
  .grid3{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}

  /* Menú desplegable móvil: NEGRO */
  header .nav{
    display:none;
    position:absolute;
    right:4%;
    top:64px;
    background:#000 !important;
    border:1px solid #111 !important;
    border-radius:14px;
    padding:12px;
    flex-direction:column;
    align-items:stretch;
    min-width:220px;
    box-shadow:0 12px 30px rgba(0,0,0,.45);
  }

  header .nav a{
    padding:10px 10px;
    border-radius:10px;
    color:#fff !important;
  }

  header .nav a:hover{
    background:#111 !important;
  }

  .nav__toggle{display:block}
  .nav.is-open{display:flex}
}

/* =========================
   FIX REAL MENU MOBILE NEGRO (por clase .header + estado .is-open)
========================= */
@media (max-width: 920px){

  /* aplica aunque no exista la etiqueta <header> */
  .header .nav,
  .header .nav.is-open{
    background:#000 !important;
    border:1px solid #111 !important;
  }

  /* evita que algún framework pinte fondos blancos a los links */
  .header .nav a{
    color:#fff !important;
    background:transparent !important;
  }

  .header .nav a:hover{
    background:#111 !important;
  }
}

/* =========================
   Scroll suave + offset para header sticky
========================= */

/* Scroll suave */
html{
  scroll-behavior: smooth;
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

/* Ajusta este valor según la altura real de tu header */
:root{
  --header-offset: 90px;
}

/* Esto hace que al llegar a un #id, el título no quede bajo el header */
section[id]{
  scroll-margin-top: var(--header-offset);
}

/* Alternativa/extra (útil si algún anchor no es section) */
html{
  scroll-padding-top: var(--header-offset);
}

// Cerrar menú móvil al hacer click en un link
nav.querySelectorAll('a[href^="#"]').forEach(a => {
  a.addEventListener("click", () => {
    nav.classList.remove("is-open");
    toggle.setAttribute("aria-expanded", "false");
  });
});

/* =========================
   Quiénes somos: foto izquierda + texto derecha
========================= */
.about-wrap{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:18px;
  align-items:start;
}

/* Contenedor con degradado negro -> plomo */
.about-photo-bg{
  border-radius:18px;
  padding:14px;
  background: radial-gradient(420px 260px at 20% 20%, rgba(255,255,255,.06), transparent 55%),
              linear-gradient(135deg, #000 0%, #111 45%, #2b2f36 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}

/* Foto */
.about-img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  object-fit:cover;
}

/* Texto */
.about-text p{
  margin-top:0;
  color: var(--muted);
  line-height:1.7;
}
.about-text p strong{
  color: #111827; /* mantiene jerarquía */
}

/* Responsive */
@media (max-width: 920px){
  .about-wrap{
    grid-template-columns: 1fr;
  }
  .about-photo-bg{
    max-width: 420px;
  }
}

/* =========================
   Quiénes somos: ajuste tamaño foto
========================= */

.about-wrap{
  display:grid;
  grid-template-columns: 240px 1fr; /* columna fija para la foto */
  gap:20px;
  align-items:flex-start;
}

/* Contenedor de la foto */
.about-photo-bg{
  max-width:240px;          /* límite real */
  margin:0 auto;
  border-radius:18px;
  padding:10px;
  background: linear-gradient(135deg, #000 0%, #111 45%, #2b2f36 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}

/* Imagen */
.about-img{
  width:100%;
  max-width:220px;          /* evita que se dispare */
  height:auto;
  display:block;
  border-radius:14px;
  object-fit:cover;
}

@media (max-width: 920px){
  .about-wrap{
    grid-template-columns: 1fr;
  }
  .about-photo-bg{
    max-width:220px;
    margin-bottom:12px;
  }
}

/* =========================
   Quiénes somos (layout foto + degradado)
========================= */
.about-wrap{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap:20px;
  align-items:start;
}

.about-photo-bg{
  border-radius:18px;
  padding:10px;
  background:
    radial-gradient(420px 260px at 20% 20%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(135deg, #000 0%, #111 45%, #2b2f36 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}

.about-img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  object-fit:cover;
}

@media (max-width: 920px){
  .about-wrap{ grid-template-columns: 1fr; }
  .about-photo-bg{ max-width:240px; margin:0 auto 12px; }
}
