/* =========================================================
   NETERAL · hoja de estilos principal
   ========================================================= */
:root {
  --navy-900: #071A30;
  --navy-800: #0B2A4A;
  --navy-700: #0D315B;
  --navy-600: #174171;
  --navy-500: #255081;
  --blue-500: #2F86C9;
  --blue-400: #3BB0E6;
  --blue-300: #6CC8F0;
  --blue-100: #DCEFFA;
  --bg: #FFFFFF;
  --bg-soft: #F2F7FE;
  --bg-soft-2: #E9F1FA;
  --text: #16243A;
  --text-muted: #55657C;
  --line: #D9E3EF;
  --ok: #1E9E6A;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(7, 26, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 26, 48, 0.16);
  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.lead { font-size: 1.18rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-500); margin-bottom: .8rem;
}
.eyebrow.light { color: var(--blue-300); }
.center { text-align: center; }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-800); color: #D7E3F2; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .muted { color: #A9BBD1; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-accent { background: var(--blue-400); color: var(--navy-900); box-shadow: 0 6px 18px rgba(59,176,230,.35); }
.btn-accent:hover { background: var(--blue-300); color: var(--navy-900); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-600); color: #fff; }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-link { color: var(--blue-500); font-weight: 700; font-family: var(--font-head); }
.btn-link::after { content: " →"; }

/* ---------- Barra superior y cabecera ---------- */
.topbar { background: var(--navy-900); color: #A9BBD1; font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topbar a { color: #CFE2F5; margin-left: 18px; }
.topbar a:hover { color: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .2s, padding .2s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand img { height: 26px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav li a {
  display: block; padding: 10px 12px; color: #D7E3F2; font-weight: 500; font-size: .92rem; border-radius: 8px; white-space: nowrap;
}
.main-nav li a:hover, .main-nav li a.active { color: #fff; background: rgba(255,255,255,.08); }
.main-nav li a.active { color: var(--blue-300); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-800) url('../img/footer-deco-back-new.jpg') center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,26,48,.92) 0%, rgba(13,49,91,.75) 55%, rgba(13,49,91,.35) 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: clamp(70px, 9vw, 130px) 0; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--blue-300); }
.hero p.lead { color: #CFE2F5; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-tags span {
  font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #E3EEF9;
}
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-card {
  position: absolute; left: -30px; bottom: -24px; background: #fff; color: var(--text);
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 300px;
}
.hero-card strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy-800); line-height: 1; }
.hero-card span { font-size: .88rem; color: var(--text-muted); }

/* Hero de páginas interiores */
.page-hero {
  background: var(--navy-800) url('../img/digital-section-back-2.jpg') right center/cover no-repeat;
  color: #fff; padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,48,.95), rgba(13,49,91,.7)); }
.page-hero .container { position: relative; max-width: 860px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #CFE2F5; }
.breadcrumb { font-size: .82rem; color: #A9BBD1; margin-bottom: 18px; }
.breadcrumb a { color: #CFE2F5; }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* ---------- Clientes ---------- */
.clients { background: var(--navy-900); padding: 36px 0; }
.clients p { color: #A9BBD1; font-size: .85rem; text-align: center; margin-bottom: 18px; letter-spacing: .08em; text-transform: uppercase; }
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 56px; }
.clients-row img { height: 44px; width: auto; opacity: .8; filter: brightness(1.2); transition: opacity .2s; }
.clients-row img:hover { opacity: 1; }

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card h3 { margin-top: 14px; }
.card p { color: var(--text-muted); font-size: .97rem; }
.card ul { list-style: none; margin: 10px 0 18px; }
.card ul li { padding: 5px 0 5px 24px; position: relative; font-size: .94rem; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.card .btn-link { margin-top: auto; }
.card-dark { background: var(--navy-700); border-color: var(--navy-600); color: #D7E3F2; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #B8C9DD; }
.card-dark ul li { color: #D7E3F2; }
.icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-100), #fff); color: var(--blue-500); font-size: 1.5rem; border: 1px solid var(--blue-100);
}
.card-dark .icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--blue-300); }
.icon svg { width: 28px; height: 28px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--blue-100); color: var(--navy-700); }
.tag.ai { background: #EAF6FF; color: #1569A8; }
.tag.dark { background: rgba(255,255,255,.12); color: #CFE2F5; }

/* ---------- Bloques de dos columnas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-img-stack { position: relative; }
.split-img-stack img:last-child {
  position: absolute; right: -24px; bottom: -34px; width: 58%; border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.checks { list-style: none; margin: 20px 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-100); color: var(--navy-700); font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}

/* ---------- Escalas de proyecto ---------- */
.scale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.scale { border-radius: var(--radius-lg); padding: 34px 30px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.scale.featured { background: var(--navy-800); color: #D7E3F2; border-color: var(--navy-800); transform: scale(1.02); box-shadow: var(--shadow-lg); }
.scale.featured h3, .scale.featured strong { color: #fff; }
.scale .scale-level { font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); }
.scale.featured .scale-level { color: var(--blue-300); }
.scale h3 { font-size: 1.55rem; margin: 8px 0 6px; }
.scale .scale-for { font-size: .92rem; color: var(--text-muted); margin-bottom: 18px; }
.scale.featured .scale-for { color: #B8C9DD; }
.scale ul { list-style: none; margin: 0 0 22px; display: grid; gap: 9px; }
.scale ul li { padding-left: 26px; position: relative; font-size: .95rem; }
.scale ul li::before { content: "▸"; position: absolute; left: 4px; color: var(--blue-400); }
.scale .scale-meta { display: flex; gap: 18px; font-size: .85rem; color: var(--text-muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; }
.scale.featured .scale-meta { border-color: rgba(255,255,255,.15); color: #B8C9DD; }
.scale .scale-meta strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-800); }

/* ---------- IA con / sin ---------- */
.ai-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ai-col { border-radius: var(--radius-lg); padding: 34px; }
.ai-col.no-ai { background: var(--bg-soft); border: 1px solid var(--line); }
.ai-col.with-ai { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #D7E3F2; }
.ai-col.with-ai h3 { color: #fff; }
.ai-col ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.ai-col li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: .96rem; }
.ai-col li b { display: block; font-family: var(--font-head); }
.ai-col li .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--navy-700); font-weight: 800; font-size: .85rem; border: 1px solid var(--line); }
.ai-col.with-ai li .dot { background: rgba(255,255,255,.1); color: var(--blue-300); border-color: rgba(255,255,255,.15); }

/* ---------- Proceso / Metodología ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--blue-100); line-height: 1; display: block; margin-bottom: 10px;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; color: var(--blue-300); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: #B8C9DD; font-size: .95rem; }

/* ---------- Productos ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product:nth-child(even) > :first-child { order: 2; }
.product-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); position: relative; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-visual .product-badge {
  position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 2rem;
  background: linear-gradient(transparent, rgba(7,26,48,.85));
}
.product-visual .product-word { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3.4rem); color: #fff; letter-spacing: -.02em; }
.product-visual .product-word small { display: block; font-size: 1rem; font-weight: 500; color: var(--blue-300); letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 26px; }
.feature { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.feature i { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-100); color: var(--navy-700); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .8rem; }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.testimonial { background: #fff; border-radius: var(--radius-lg); padding: 34px; border: 1px solid var(--line); position: relative; }
.testimonial::before { content: "“"; position: absolute; top: 10px; right: 26px; font-family: Georgia, serif; font-size: 6rem; color: var(--blue-100); line-height: 1; }
.testimonial p { font-size: 1.08rem; color: var(--text); position: relative; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testimonial-author img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-family: var(--font-head); color: var(--navy-800); }
.testimonial-author span { font-size: .88rem; color: var(--text-muted); }

/* ---------- Sectores ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sector { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: .2s; }
.sector:hover { border-color: var(--blue-400); box-shadow: var(--shadow); }
.sector .icon { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 12px; }
.sector h4 { margin-bottom: 4px; }
.sector p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 700; color: var(--navy-800); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue-500); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--text-muted); display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--navy-800); }
.post-card p { font-size: .94rem; color: var(--text-muted); flex: 1; }
.article { max-width: 780px; margin: 0 auto; }
.article h2 { font-size: 1.7rem; margin-top: 2em; }
.article h3 { font-size: 1.25rem; margin-top: 1.6em; }
.article p, .article li { font-size: 1.05rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article blockquote { border-left: 4px solid var(--blue-400); margin: 1.6em 0; padding: 10px 22px; background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.article-hero { aspect-ratio: 21/9; object-fit: cover; width: 100%; border-radius: var(--radius-lg); margin: 0 0 36px; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.plain th, table.plain td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { background: var(--navy-800); color: #fff; font-family: var(--font-head); font-weight: 700; }
table.plain tr:last-child td { border-bottom: 0; }

/* ---------- Formulario de contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy-800); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #FBFDFF; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-400); border-color: var(--blue-400); }
.field textarea { min-height: 140px; resize: vertical; }
.field.check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--text-muted); }
.field.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .95rem; }
.alert-ok { background: #E6F7EF; color: #0F6B45; border: 1px solid #BFE8D3; }
.alert-err { background: #FDECEC; color: #8A1F1F; border: 1px solid #F3C4C4; }
.contact-info { display: grid; gap: 18px; }
.info-box { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; }
.info-box .icon { width: 46px; height: 46px; font-size: 1.2rem; flex: 0 0 auto; }
.info-box strong { display: block; font-family: var(--font-head); color: var(--navy-800); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Banda CTA y pie ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-700), var(--navy-900)); color: #D7E3F2; padding: clamp(50px, 6vw, 80px) 0; }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { max-width: 640px; color: #B8C9DD; }
.cta-band-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.site-footer { background: var(--navy-900); color: #A9BBD1; font-size: .92rem; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: #C5D4E6; }
.footer-col a:hover { color: var(--blue-300); }
.footer-col address { font-style: normal; line-height: 1.8; }
.footer-hours { margin-top: 10px; font-size: .85rem; color: #7F93AD; }
.footer-clients { display: flex; gap: 22px; align-items: center; margin-top: 18px; opacity: .7; }
.footer-clients img { height: 26px; width: auto; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0; font-size: .82rem; color: #7F93AD; }
.footer-bottom a { color: #A9BBD1; margin-left: 18px; }
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-400); color: var(--navy-900);
  display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .2s; z-index: 90;
}
.to-top.visible { opacity: 1; pointer-events: auto; }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Pestañas ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.tabs [role="tab"] { font: inherit; font-family: var(--font-head); font-weight: 700; font-size: .9rem; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy-800); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- Casos ---------- */
.case { display: grid; grid-template-columns: 220px 1fr; gap: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; align-items: start; }
.case-logo { background: var(--navy-800); border-radius: var(--radius); padding: 26px; display: grid; place-items: center; min-height: 120px; }
.case-logo img { height: 40px; width: auto; }
.case-logo span { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.case h3 { margin-bottom: 4px; }
.case .case-sector { font-size: .82rem; color: var(--blue-500); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; display: block; }
.case-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.case-facts span { background: var(--bg-soft); border-radius: 8px; padding: 6px 12px; font-size: .84rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--blue-100); display: grid; gap: 26px; }
.timeline li { list-style: none; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -37px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 0 4px #fff; }
.timeline strong { font-family: var(--font-head); color: var(--navy-800); display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 0; }
  .main-nav li a { padding: 10px 9px; font-size: .86rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .topbar-inner span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--navy-900); flex-direction: column; align-items: stretch;
    padding: 90px 26px 30px; transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 99;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav li a { font-size: 1.05rem; padding: 12px 10px; }
  .nav-cta { margin-top: 20px; }
  .site-header { z-index: 100; }
  .nav-toggle { position: relative; z-index: 101; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-inner, .split, .ai-compare, .contact-grid, .cta-band-inner, .testimonials, .product { grid-template-columns: 1fr; }
  .split.reverse > :first-child, .product:nth-child(even) > :first-child { order: 0; }
  .hero-visual { max-width: 520px; }
  .hero-card { left: 16px; }
  .grid-3, .grid-4, .scale-grid, .posts { grid-template-columns: 1fr 1fr; }
  .scale.featured { transform: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-band-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .case { grid-template-columns: 1fr; }
  .case-logo { max-width: 240px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .scale-grid, .posts, .steps, .sectors, .features, .form-row, .footer-grid, .stats { grid-template-columns: 1fr; }
  .split-img-stack img:last-child { display: none; }
  .hero-card { position: static; margin-top: 16px; max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom a { margin: 0 14px 0 0; }
  .clients-row { gap: 24px 30px; }
  .clients-row img { height: 32px; }
}
