/* ======================
HEADER – BASE CORRECTA
Archivo: /assets/css/layout.css
====================== */

.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(11,15,20,.08);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

/* LOGO */
.brand img {
  display: block;
  height: 48px;
  width: auto;
}

/* NAV */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #0b0f14;
  text-decoration: none;
  position: relative;
}

/* ACTIVO */
.nav-list a[aria-current="page"] {
  font-weight: 700;
}

/* CTA */
.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(11,15,20,.12);
  font-weight: 600;
}

/* =========================
HEADER (B2B Premium)
Ubicación: /assets/css/layout.css
========================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.main-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .9rem 0;
}

/* Logo: alineación óptica B2B */
.brand{
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 160px;
}

.brand img{
  width: auto;
  height: 44px; /* tamaño B2B correcto */
}

/* Menú */
.nav-list{
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a{
  font-size: .94rem;
  font-weight: 600;
  color: rgba(11,15,20,.86);
  padding: .4rem .15rem;
  position: relative;
  transition: color .15s ease, opacity .15s ease;
}

.nav-list a:hover{
  color: var(--text);
}

/* Activo */
.nav-list a[aria-current="page"]{
  color: var(--text);
  font-weight: 800;
}

.nav-list a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 40%, var(--text) 60%);
  opacity: .8;
}

/* Botón "Contacto" como CTA (sin tocar tu HTML) */
.nav-list li:last-child a{
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(11,15,20,.12);
  background: rgba(11,15,20,.03);
}

.nav-list li:last-child a:hover{
  background: rgba(11,15,20,.06);
}

/* Botón hamburguesa (por ahora oculto en desktop) */
.nav-toggle{
  display: none;
  border: 1px solid rgba(11,15,20,.12);
  background: rgba(11,15,20,.03);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Responsive: menú móvil básico y limpio */
@media (max-width: 900px){
  .nav-toggle{ display: inline-flex; }

  .nav-list{
    display: none; /* se abrirá luego con JS cuando lo cerremos */
  }

  .brand img{ height: 40px; }
}

/* NAV AJUSTE PREMIUM */
.nav-list {
  margin-left: auto; /* empuja menú a la derecha */
  display: flex;
  gap: 1.6rem;
}

/* Enlaces del menú */
.nav-list a {
  padding: .35rem .25rem;
  font-size: .94rem;
  font-weight: 600;
  color: rgba(11,15,20,.85);
}

/* Activo */
.nav-list a[aria-current="page"] {
  color: var(--text-main);
  font-weight: 800;
}

.site-header {
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.main-nav {
  padding: 1rem 0;
}

/* CTA Contacto en menú */
.nav-list li:last-child a {
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(11,15,20,.02);
}

/* =========================
HERO — B2B PREMIUM
========================= */

.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(201,164,76,.14), transparent 60%),
    radial-gradient(900px 420px at 85% 10%, rgba(11,15,20,.06), transparent 60%),
    #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}

/* Contenido */
.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin-top: .85rem;
  margin-bottom: 1.1rem;
}

/* Texto soporte */
.hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
}

/* CTA */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 0;
  }

  .hero-content {
    max-width: 100%;
  }
}


/* =========================
WHY US — NUESTRO ENFOQUE
========================= */

.why-us {
  padding: 3.5rem 0 4rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.why-us-grid {
  max-width: 760px;
}

.why-us-content h2 {
  margin-top: .6rem;
}

.why-us-content .lead {
  margin-top: .8rem;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.list-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .55rem;
  font-weight: 600;
  color: var(--text);
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 900;
}

/* =========================
APPROACH PANEL — PREMIUM
========================= */

.approach-panel {
  padding: 4rem 0;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(201,164,76,.10), transparent 60%),
    #f7f8fa;
}

.approach-card {
  max-width: 820px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow-sm);
}

.approach-card h2 {
  margin-top: .6rem;
}

.approach-card .lead {
  margin-top: .8rem;
  max-width: 70ch;
}

.approach-divider {
  height: 1px;
  width: 100%;
  margin: 1.6rem 0 1.4rem;
  background: linear-gradient(
    to right,
    rgba(11,15,20,.12),
    rgba(11,15,20,.02)
  );
}

/* Métricas técnicas */
.approach-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .9rem;
}

.approach-metrics li {
  display: grid;
  grid-template-columns: 1fr;
  gap: .15rem;
}

.approach-metrics strong {
  font-weight: 800;
  color: var(--text);
}

.approach-metrics span {
  font-size: .92rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .approach-card {
    padding: 1.6rem 1.5rem;
  }
}

/* =========================
CTA PANEL — PREMIUM
========================= */

.cta-panel {
  padding: 4rem 0 4.5rem;
  background:
    radial-gradient(600px 280px at 85% 100%, rgba(201,164,76,.12), transparent 65%),
    #ffffff;
  border-top: 1px solid var(--border);
}

.cta-card {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 2.2rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.4rem 2.6rem;
  box-shadow: var(--shadow-sm);
}

.cta-content h2 {
  margin-top: .6rem;
}

.cta-content .lead {
  margin-top: .8rem;
  max-width: 65ch;
}

/* Acciones */
.cta-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

/* Aside técnico */
.cta-aside {
  border-left: 1px dashed rgba(11,15,20,.15);
  padding-left: 1.6rem;
  display: flex;
  align-items: center;
}

.cta-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}

.cta-points li {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-left: 1.2rem;
}

.cta-points li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: -.1rem;
  color: var(--gold);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cta-card {
    grid-template-columns: 1fr;
    padding: 1.8rem 1.6rem;
  }

  .cta-aside {
    border-left: 0;
    border-top: 1px dashed rgba(11,15,20,.15);
    padding-left: 0;
    padding-top: 1.2rem;
  }
}

/* =========================
SECTORS PANEL — PREMIUM
========================= */

.sectors-panel {
  padding: 4rem 0 4.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.sectors-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

/* Card sectorial */
.sector-card {
  position: relative;
  padding: 1.8rem 1.9rem 2rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.sector-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Índice visual */
.sector-index {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: .55rem;
}

/* Título */
.sector-card h3 {
  margin-bottom: .4rem;
}

.sector-card p {
  font-size: .95rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Responsive */
@media (max-width: 900px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .sector-card {
    padding: 1.6rem 1.5rem 1.8rem;
  }
}

/* =========================
FOOTER PREMIUM — RELEMATIC
========================= */

.footer-premium {
  background: #111318;
  color: #e6e8ec;
  padding: 3.8rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
}

/* Marca */
.footer-brand img {
  margin-bottom: .9rem;
}

.footer-desc {
  font-size: .92rem;
  line-height: 1.55;
  color: #b8bcc6;
  max-width: 42ch;
}

/* Columnas */
.footer-col h4 {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: .45rem;
}

.footer-col a {
  font-size: .92rem;
  color: #cfd3da;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Legal */
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.1rem 0 1.3rem;
}

.footer-legal p {
  font-size: .82rem;
  color: #9aa0ac;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-premium {
    padding-top: 3rem;
  }
}

/* =========================
SERVICIOS — TIMELINE PREMIUM
========================= */

.services-timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 3.2rem;
}

/* Eje dorado */
.services-timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--gold),
    rgba(201,164,76,.25)
  );
}

/* Cada servicio */
.service-node {
  position: relative;
  margin-bottom: 3.2rem;
}

/* Punto dorado */
.service-node::before {
  content: "";
  position: absolute;
  left: -2.02rem;
  top: .35rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

/* Título */
.service-node h3 {
  font-size: 1.25rem;
  margin-bottom: .45rem;
}

/* Texto */
.service-node p {
  max-width: 68ch;
  margin-bottom: .6rem;
}

/* Link */
.service-node a {
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
}

.service-node a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .services-timeline {
    padding-left: 2.4rem;
  }

  .service-node::before {
    left: -1.82rem;
  }
}