/* ============================================================
   LogissGroup S.A.S. - Hoja de estilos global del sitio
   Marca: navy profundo + acento azul tecnológico
   ============================================================ */

:root {
  --navy: #0E1320;
  --navy-soft: #161D2B;
  --navy-border: #283246;
  --steel: #3A4A5C;
  --text-dark: #11151C;
  --text-body: #48515F;
  --text-muted: #828B99;
  --bg-light: #F6F8FB;
  --bg-white: #FFFFFF;
  --accent: #2F6FED;
  --accent-dark: #1E54C4;
  --metal: #7C8A99;
  --metal-light: #C8D0DA;
  --metal-dark: #1A212B;
  --border: #E5E9F0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 19, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 19, 32, 0.16);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--text-dark);
  margin: 0 0 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--light { background: var(--bg-light); }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #C7CEDB;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #AEB7C6; }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head--center { margin: 0 auto 56px; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(47, 111, 237, 0.35); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--text-dark); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn--on-dark:hover { background: rgba(255,255,255,0.16); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: relative; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text-dark); }
.nav-brand img { height: 46px; width: 46px; border-radius: 9px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-body); transition: color 0.15s ease; }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text-dark); }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-actions .btn--ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 80% -10%, rgba(47,111,237,0.35), transparent 55%), linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff; padding: 110px 0 90px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero p.lead { color: #AEB7C6; font-size: 1.1rem; max-width: 540px; }
.hero h1 { color: #fff; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; padding: 7px 16px; font-size: 0.82rem; font-weight: 600;
  color: #fff; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-visual { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.hero-stat { text-align: center; padding: 16px 8px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.hero-stat strong { display: block; font-size: 1.6rem; color: var(--accent); }
.hero-stat span { font-size: 0.78rem; color: #AEB7C6; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 60px; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(160deg, #F4F6F8 0%, var(--metal-light) 100%);
  border: 1px solid rgba(124,138,153,0.4); border-radius: var(--radius);
  padding: 28px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-svg { width: 55%; height: 55%; flex-shrink: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(47,111,237,0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card-subtitle { display: block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 6px; }
.card--dark { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.card--dark h3 { color: #fff; }
.card--dark p { color: #AEB7C6; }

.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pill-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--text-body); }
.pill-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(47,111,237,0.12); color: var(--accent); font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* ---------- Comparativa construir vs comprar ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .col { border-radius: var(--radius); padding: 30px; }
.compare .col--build { background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.2); }
.compare .col--logis { background: linear-gradient(160deg, rgba(47,111,237,0.18), rgba(124,138,153,0.16)); border: 1px solid rgba(47,111,237,0.35); }
.compare .big { font-size: 2.1rem; font-weight: 800; color: #fff; }
.compare .tag { font-size: 0.8rem; color: var(--metal-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px;
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #1A3FA0 100%);
  color: #fff; padding: 64px 32px;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 28px; }
.cta-final .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9aa4b5; padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 12px; }
.footer-brand img { height: 40px; width: 40px; border-radius: 8px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #9aa4b5; font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-col a { transition: color 0.15s ease; }
.footer-col a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block; background: rgba(47,111,237,0.1); color: var(--accent);
  font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}

/* ---------- Página interna: encabezado simple ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff; padding: 76px 0 60px; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #AEB7C6; max-width: 640px; margin: 0 auto; }

/* ---------- Formulario de contacto ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  font-family: inherit; font-size: 0.95rem; color: var(--text-dark); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,237,0.15); }

.contact-info-card { background: var(--bg-light); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.contact-info-card .row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-card .row .icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(47,111,237,0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Equipo (Nosotros) ---------- */
.team-card { text-align: center; background: linear-gradient(160deg, #F4F6F8 0%, var(--metal-light) 100%); border: 1px solid rgba(124,138,153,0.4); border-radius: var(--radius); padding: 30px 24px; }
.team-card img, .team-card .avatar-placeholder {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 3px solid var(--bg-light);
}
.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--accent), var(--navy-soft)); color: #fff; font-weight: 800; font-size: 2rem;
}
.team-card .role { color: var(--accent); font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }

/* ---------- Mercados (Soluciones) ---------- */
.market-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.market-tabs button {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--border);
  background: #fff; font-weight: 600; font-size: 0.9rem; cursor: pointer; color: var(--text-body);
}
.market-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.market-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px rgba(0,0,0,0.3); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 600px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- Núcleo de integración LogissGroup ---------- */
.nucleo-intro { max-width: 660px; }
.nucleo-wrap {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1;
  margin: 44px auto 28px;
}
.nucleo-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.nucleo-lines line {
  stroke: url(#nucleoGrad); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 9; animation: nucleoFlow 2.6s linear infinite;
}
@keyframes nucleoFlow { to { stroke-dashoffset: -60; } }

.nucleo-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30%; aspect-ratio: 1/1; border-radius: 50%; min-width: 124px;
  background: linear-gradient(145deg, var(--metal-dark) 0%, var(--steel) 55%, var(--metal-light) 100%);
  border: 3px solid rgba(47,111,237,0.45);
  box-shadow: 0 0 0 8px rgba(47,111,237,0.10), var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  animation: nucleoPulse 3s ease-in-out infinite; z-index: 3; text-align: center; padding: 6px;
}
.nucleo-core img { width: 80%; height: 80%; min-width: 78px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.55); box-shadow: 0 3px 12px rgba(0,0,0,0.35); }
.nucleo-core span { color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1.25; }
@keyframes nucleoPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(47,111,237,0.10), var(--shadow-lg); }
  50% { box-shadow: 0 0 0 15px rgba(47,111,237,0.16), var(--shadow-lg); }
}

/* Anillo orbital: líneas + bloques giran juntos como una rueda alrededor del núcleo, que permanece fijo */
.nucleo-ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; animation: nucleoOrbitSpin 28s linear infinite; }
@keyframes nucleoOrbitSpin { to { transform: rotate(360deg); } }

.nucleo-node {
  position: absolute; transform: translate(-50%, -50%);
  width: 132px; padding: 14px 12px; text-align: center;
  background: linear-gradient(155deg, var(--metal-light) 0%, var(--metal) 70%, var(--steel) 100%);
  border: 1px solid rgba(124,138,153,0.45); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 2;
  animation: nucleoOrbitCounter 28s linear infinite;
}
.nucleo-node strong { display: block; font-size: 0.8rem; color: var(--text-dark); }
.nucleo-node .icon {
  width: 36px; height: 36px; margin: 0 auto 6px; box-sizing: border-box; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--metal) 100%);
  border: 2px dashed rgba(255,255,255,0.8); color: #fff;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(47,111,237,0.3);
}
@keyframes nucleoOrbitCounter { to { transform: translate(-50%, -50%) rotate(-360deg); } }
.nucleo-node.n1 { left: 50%;    top: 11.6%; }
.nucleo-node.n2 { left: 83.25%; top: 30.8%; }
.nucleo-node.n3 { left: 83.25%; top: 69.2%; }
.nucleo-node.n4 { left: 50%;    top: 88.4%; }
.nucleo-node.n5 { left: 16.75%; top: 69.2%; }
.nucleo-node.n6 { left: 16.75%; top: 30.8%; }

.nucleo-mobile { display: none; }

@media (max-width: 640px) {
  .nucleo-wrap { display: none; }
  .nucleo-mobile { display: block; margin: 36px auto 24px; max-width: 420px; }
  .nucleo-core-mobile {
    width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 20px;
    background: linear-gradient(145deg, var(--metal-dark) 0%, var(--steel) 55%, var(--metal-light) 100%);
    border: 3px solid rgba(47,111,237,0.45); box-shadow: 0 0 0 8px rgba(47,111,237,0.10), var(--shadow-lg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  }
  .nucleo-core-mobile img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.55); box-shadow: 0 3px 10px rgba(0,0,0,0.35); }
  .nucleo-core-mobile span { color: #fff; font-size: 0.7rem; font-weight: 700; text-align: center; }
  .nucleo-mobile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nucleo-node-mobile {
    background: linear-gradient(155deg, var(--metal-light) 0%, var(--metal) 70%, var(--steel) 100%);
    border: 1px solid rgba(124,138,153,0.45); border-radius: 12px;
    padding: 14px 10px; text-align: center; box-shadow: var(--shadow);
  }
  .nucleo-node-mobile .icon {
    width: 36px; height: 36px; margin: 0 auto 6px; box-sizing: border-box; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--metal) 100%);
    border: 2px dashed rgba(255,255,255,0.8); color: #fff;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(47,111,237,0.3);
  }
  .nucleo-node-mobile strong { font-size: 0.8rem; }
}

.nucleo-tiers { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.nucleo-tier {
  display: flex; align-items: center; gap: 8px; background: var(--bg-light);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-body);
}
.nucleo-tier .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; background: #fff; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--text-body); font-size: 0.95rem; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
