/* ==========================================================
   Publibien — estilos globales
   Sobrio corporativo con toque digital. Paleta tomada del logo:
   pizarra oscura + blanco + naranja.
   ========================================================== */
:root {
  --ink: #0d1520;
  --slate: #131e2c;
  --slate-2: #1b2a3c;
  --text: #283141;
  --muted: #5b6676;
  --line: #e3e7ec;
  --soft: #f4f6f8;
  --white: #fff;
  --orange: #ff6a13;
  --orange-d: #e35600;
  --orange-soft: #fff1e8;

  --font-head: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --header-h: 72px;
  --wrap: 1180px;
  --gutter: clamp(16px, 5vw, 72px);
  --radius: 16px;
  --space: clamp(48px, 6vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.accent { color: var(--orange); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--slate); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand .word { font: 800 22px/1 var(--font-head); color: var(--white); letter-spacing: -.02em; }
.brand .word span { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #d9dee6; text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); }
.nav a.active { color: var(--white); border-bottom-color: var(--orange); }
.nav .btn { padding: 10px 20px; border: 0; color: var(--white); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s, opacity .25s; }
.site-header.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.menu-open .burger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--slate); padding: 8px 24px 24px; transform: translateY(-120%); transition: transform .3s ease; z-index: -1; }
  .site-header.menu-open .nav { transform: none; }
  .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.active { border-bottom-color: rgba(255,255,255,.08); color: var(--orange); }
  .nav .btn { margin-top: 16px; text-align: center; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block; background: var(--orange); color: var(--white); border: 2px solid var(--orange);
  font: 600 15px/1 var(--font-body); padding: 14px 26px; border-radius: 10px; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--orange-d); border-color: var(--orange-d); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: var(--soft); border-color: var(--ink); }
.link { color: var(--orange-d); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Portada (toque digital: cuadrícula + brillo naranja) ---------- */
.hero {
  position: relative; overflow: hidden; color: #d9dee6;
  background:
    radial-gradient(600px 380px at 85% 20%, rgba(255,106,19,.22), transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--slate);
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
}
.hero h1 { color: var(--white); font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.03em; max-width: 880px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; margin: 24px 0 34px; color: #c3cad5; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .audiences { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #aab3c0; }
.hero .audiences b { color: var(--white); font-weight: 600; }
.kicker { display: inline-block; font: 500 13px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.kicker::before { content: "// "; opacity: .7; }
.page-head { background: var(--slate); color: #c3cad5; padding: clamp(48px, 6vw, 80px) 0; }
.page-head h1 { color: var(--white); font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; max-width: 820px; }
.page-head p { max-width: 640px; font-size: 18px; margin: 18px 0 0; }

/* ---------- Secciones ---------- */
.section { padding: var(--space) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--slate); color: #c3cad5; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.title { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; max-width: 760px; }
.center .title, .title.center { margin-left: auto; margin-right: auto; }
.intro { font-size: 17px; color: var(--muted); max-width: 640px; margin: 16px 0 0; }
.center .intro { margin-left: auto; margin-right: auto; }
.section--dark .intro { color: #aab3c0; }
.grid { display: grid; gap: 24px; margin-top: 44px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

/* Tarjetas */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.card { text-decoration: none; display: block; color: inherit; }
a.card:hover { border-color: var(--orange); box-shadow: 0 14px 40px rgba(13,21,32,.08); transform: translateY(-2px); }
.card h3 { font-size: 20px; font-weight: 700; margin: 16px 0 10px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }
.card .more { display: inline-block; margin-top: 16px; color: var(--orange-d); font-weight: 600; font-size: 14px; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-d); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section--dark .card { background: var(--slate-2); border-color: rgba(255,255,255,.08); }
.section--dark .card p { color: #aab3c0; }
.section--dark .icon { background: rgba(255,106,19,.14); color: var(--orange); }
.tag { align-self: flex-start; display: inline-block; font: 500 12px/1 var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }

/* Bloques imagen + texto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.split p { font-size: 16.5px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e35600' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.section--dark .checks li::before { background-color: rgba(255,106,19,.16); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }

/* Método (pasos) */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font: 600 14px var(--font-mono); color: var(--orange-d); }
.step h3 { font-size: 19px; font-weight: 700; margin: 10px 0 8px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* Caso de éxito */
.case { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.case-logo { background: var(--white); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: grid; place-items: center; min-height: 240px; }
.case-logo img { width: 100%; max-width: 360px; }
.case h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* Equipo */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 64px; margin-top: 44px; }
.member { text-align: center; width: 200px; }
.member img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--orange); }
.member h3 { font-size: 18px; font-weight: 700; }
.member span { font-size: 14px; color: var(--muted); }

/* Llamada a la acción */
.cta-band { background: var(--orange); color: var(--white); border-radius: 20px; padding: clamp(32px, 5vw, 52px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: var(--white); font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; max-width: 620px; }
.cta-band p { margin: 8px 0 0; color: #fff3ea; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); }
.cta-band .btn:hover { background: #000; border-color: #000; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.post-card:hover { border-color: var(--orange); box-shadow: 0 14px 40px rgba(13,21,32,.08); transform: translateY(-2px); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.post-card p { font-size: 15px; color: var(--muted); margin: 0; }
.post-card .meta { margin-top: auto; font-size: 13px; color: var(--muted); }

.article { padding: clamp(40px, 5vw, 64px) 0 var(--space); }
.article .head { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.article .summary { font-size: 18px; color: var(--muted); margin: 18px 0 16px; }
.article .meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.article .cover { max-width: 980px; margin: 36px auto 0; }
.article .cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.prose { max-width: 720px; margin: 40px auto 0; font-size: 17px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 44px 0 16px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 26px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--orange-d); }
.prose strong { color: var(--ink); }
.prose .note { background: var(--soft); border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 28px 0; font-size: 16px; }
.prose .sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 44px; }
.prose .sources a { color: var(--muted); }
.back { display: inline-block; margin-top: 28px; }

/* ---------- Contacto ---------- */
.contact { background: var(--slate); color: #c3cad5; padding: var(--space) 0; }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact h2, .contact h1 { color: var(--white); font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.contact .intro-c { margin: 16px 0 22px; max-width: 420px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-list a:hover { border-color: var(--orange); }
.contact-list .icon { width: 36px; height: 36px; border-radius: 10px; }
.contact-list .icon svg { width: 18px; height: 18px; }
.form { background: var(--slate-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: 14px; color: #d9dee6; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; outline: none;
  background: var(--slate); color: var(--white); font: 15px var(--font-body); padding: 12px 14px; margin-bottom: 14px;
}
.form input::placeholder, .form textarea::placeholder { color: #7d8898; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--orange); }
.form textarea { height: 110px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #aab3c0; margin: 2px 0 18px; }
.form .consent input { width: auto; margin: 3px 0 0; accent-color: var(--orange); }
.form .consent a { color: var(--white); }
.form-msg { font-size: 14px; margin: 12px 0 0; min-height: 1.4em; color: #ffd2b5; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.office h3 { font-size: 22px; font-weight: 800; }
.office p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
@media (max-width: 640px) { .offices { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #aab3c0; padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #aab3c0; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .about { max-width: 300px; margin-top: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Legal ---------- */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 36px 0 12px; }
.legal .fill { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* ---------- Aparición suave ---------- */
.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; } }

/* Campo trampa anti-spam: invisible para personas */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Desplegable de Servicios en la cabecera ---------- */
.dd { position: relative; display: flex; align-items: center; gap: 2px; }
.dd-toggle { background: none; border: 0; padding: 6px 2px; cursor: pointer; color: #d9dee6; display: grid; place-items: center; }
.dd-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.dd-menu {
  position: absolute; top: 100%; left: -18px; min-width: 270px; padding: 10px;
  background: var(--slate-2); border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: none; flex-direction: column; z-index: 60;
}
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* puente para no perder el hover */
.nav .dd-menu a { padding: 9px 12px; border-radius: 8px; border-bottom: 0; font-size: 14.5px; color: #d9dee6; }
.nav .dd-menu a:hover, .nav .dd-menu a:focus-visible { background: rgba(255,106,19,.12); color: var(--white); }
@media (min-width: 901px) {
  .dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: flex; margin-top: 10px; }
  .dd:hover .dd-toggle svg, .dd.open .dd-toggle svg { transform: rotate(180deg); }
}
@media (max-width: 900px) {
  .dd { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .dd > a { flex: 1; border-bottom: 0; }
  .dd-toggle { padding: 12px; }
  .dd-menu { position: static; display: none; width: 100%; min-width: 0; box-shadow: none; border: 0; background: rgba(255,255,255,.03); margin: 0 0 8px; }
  .dd.open .dd-menu { display: flex; }
  .dd.open .dd-toggle svg { transform: rotate(180deg); }
  .nav .dd-menu a { font-size: 16px; padding: 10px 12px; }
}

/* Las anclas no quedan tapadas por la cabecera fija */
section[id], .card[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Tablas comparativas en los artículos ---------- */
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--slate); color: var(--white); font-weight: 600; }
.prose tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; background: var(--soft); }
/* ---------- Preguntas frecuentes ---------- */
.faq { margin-top: 32px; display: grid; gap: 12px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font: 700 17px var(--font-head); color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 24px; color: var(--orange-d); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }


/* Caso destacado en portada (AFANAS) */
.featured-case { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(255,106,19,.22), transparent 60%), var(--slate); }
.featured-case .fc-head { max-width: 820px; }
.featured-case .fc-head h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.08; margin: 10px 0 0; }
.featured-case .fc-lead { font-size: clamp(17px, 1.6vw, 20px); color: #d9dee6; margin: 18px 0 0; }
.featured-case .fc-lead strong { color: var(--white); }
.fc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; margin-top: clamp(32px, 4vw, 48px); }
.fc-logo { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; place-items: center; min-height: 260px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.fc-logo img { width: 100%; max-width: 340px; }
.fc-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fc-point { background: var(--slate-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px; }
.fc-point h3 { font-size: 18px; margin: 14px 0 6px; }
.fc-point p { margin: 0; color: #aab3c0; font-size: 15px; }
.fc-point .icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-actions { margin-top: clamp(28px, 4vw, 40px); }
@media (max-width: 860px) { .fc-grid { grid-template-columns: 1fr; } .fc-logo { min-height: 180px; } }
@media (max-width: 560px) { .fc-points { grid-template-columns: 1fr; } }

/* Caso destacado compacto (portada) */
.section--compact { padding-block: clamp(40px, 4vw, 56px); }
.case--compact { grid-template-columns: 1fr 1.2fr; align-items: stretch; gap: clamp(28px, 4vw, 56px); }
.case--compact .case-logo { min-height: 0; padding: 40px 48px; }
.case--compact .case-logo img { max-width: none; width: 100%; }
@media (max-width: 860px) { .case--compact .case-logo img { max-width: 320px; } }
.case--compact h2 { font-size: clamp(24px, 2.6vw, 32px); }
.case--compact p { font-size: 15.5px; }
.case--compact .checks { margin-top: 14px; gap: 6px; }
@media (max-width: 860px) { .case--compact { grid-template-columns: 1fr; } }

/* Carrusel de logos de clientes (rev. 2026-11-20: fluido en móvil, sin saltos) */
.logo-carousel { position: relative; overflow: hidden; margin-top: 8px; }
.logo-carousel::before, .logo-carousel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; z-index: 1; pointer-events: none; }
.logo-carousel::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.logo-carousel::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.lc-track { display: flex; width: max-content; animation: lc-scroll 28s linear infinite; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .logo-carousel:hover .lc-track { animation-play-state: paused; } }
.lc-item { flex: 0 0 auto; width: 300px; padding: 0 10px; box-sizing: border-box; }
.lc-logo { height: 128px; display: grid; place-items: center; padding: 12px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.lc-logo img { max-width: 100%; max-height: 104px; width: auto; height: auto; object-fit: contain; }
.lc-logo--dark { background: var(--slate); border-color: var(--slate); }
@keyframes lc-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 640px) { .lc-track { animation-duration: 20s; } .lc-item { width: 180px; padding: 0 8px; } .lc-logo { height: 96px; padding: 14px 18px; } .lc-logo img { max-height: 60px; } }
@media (prefers-reduced-motion: reduce) { .lc-track { animation: none; } }

/* Portada: caso AFANAS pegado al hero, sin huecos */
.hero:has(+ #caso-afanas) { padding-bottom: clamp(32px, 3vw, 44px); }
#caso-afanas { padding: clamp(28px, 3vw, 44px) 0 clamp(48px, 5vw, 64px); }

/* Hero con móvil */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 .accent { white-space: nowrap; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: 268px; aspect-ratio: 9 / 19.5; padding: 11px; border-radius: 46px; background: #0a0f16;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 2px #1d2a3b, 0 40px 80px rgba(0,0,0,.55), 0 0 120px rgba(255,106,19,.18);
  transform: rotate(4deg); animation: phone-float 6s ease-in-out infinite; }
.phone::before { content: ""; position: absolute; right: -4px; top: 120px; width: 3px; height: 60px; border-radius: 2px; background: #1d2a3b; }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: #f4f6f8; color: #283141; font-family: var(--font-body); display: flex; flex-direction: column; gap: 8px; padding: 0 12px 10px; }
.app-top { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 8px; font-size: 11px; font-weight: 600; color: #0d1520; }
.app-island { width: 74px; height: 20px; border-radius: 12px; background: #0a0f16; }
.app-status { width: 22px; height: 9px; border-radius: 3px; border: 1.5px solid #0d1520; }
.app-head { padding: 4px 4px 2px; }
.app-head small { display: block; font-size: 10.5px; color: #5b6676; }
.app-head strong { font-family: var(--font-head); font-size: 18px; color: #0d1520; }
.app-card { border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.app-card--accent { background: linear-gradient(135deg, #ff6a13, #e35600); color: #fff; }
.app-card small { font-size: 10px; opacity: .85; }
.app-card strong { font-family: var(--font-head); font-size: 17px; }
.app-pill { justify-self: start; margin-top: 6px; font-size: 9.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.22); }
.app-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3e7ec; border-radius: 13px; padding: 9px 10px; }
.app-row div { flex: 1; display: grid; }
.app-row strong { font-size: 11.5px; color: #0d1520; }
.app-row small { font-size: 9.5px; color: #5b6676; }
.app-row em { font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; background: #ff6a13; border-radius: 99px; min-width: 18px; text-align: center; padding: 2px 5px; }
.app-ic { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 26px; }
.app-ic--o { background: #fff1e8; box-shadow: inset 0 0 0 7px #fff1e8, inset 0 0 0 20px #ff6a13; }
.app-ic--b { background: #e8f0ff; box-shadow: inset 0 0 0 7px #e8f0ff, inset 0 0 0 20px #3b6fe0; }
.app-ic--g { background: #e7f7ee; box-shadow: inset 0 0 0 7px #e7f7ee, inset 0 0 0 20px #23a45a; }
.app-ic--p { background: #f1ebff; box-shadow: inset 0 0 0 7px #f1ebff, inset 0 0 0 20px #7a52d6; }
.app-tabs { margin-top: auto; display: flex; justify-content: space-around; background: #fff; border-radius: 16px; padding: 10px; border: 1px solid #e3e7ec; }
.app-tabs i { width: 18px; height: 18px; border-radius: 6px; background: #d5dbe3; }
.app-tabs i.on { background: #ff6a13; }
.hero-chip { position: absolute; left: 0; bottom: 18%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: rgba(27,42,60,.92); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 16px 40px rgba(0,0,0,.4); backdrop-filter: blur(6px); }
.hero-chip span { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,106,19,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
@keyframes phone-float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }

/* Móvil del hero: más corto y sin texto */
.phone { aspect-ratio: 9 / 16.5; }
.phone-screen { gap: 9px; }
.sk { display: block; height: 7px; border-radius: 4px; background: #d5dbe3; }
.sk--s { height: 6px; background: #e1e6ec; margin-top: 6px; }
.sk--l { height: 11px; background: #0d1520; opacity: .85; margin-top: 7px; border-radius: 6px; }
.sk--dark { background: #0d1520; height: 8px; }
.app-head .sk--s { margin-top: 0; }
.app-card .sk { background: rgba(255,255,255,.6); }
.app-card .sk--l { background: #fff; opacity: 1; }
.app-card .sk--s { margin-top: 0; }
.app-pill { width: 64px; height: 16px; margin-top: 10px; }
.app-row .sk { background: #c9d0d9; }
.app-row .sk--s { background: #e3e7ec; }
.app-row em { min-width: 16px; height: 16px; padding: 0; }

/* Móvil del hero: proporción intermedia y mini panel */
.phone { aspect-ratio: 9 / 18.2; transform: rotate(3deg); }
@keyframes phone-float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-10px); } }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-tile { background: #fff; border: 1px solid #e3e7ec; border-radius: 13px; padding: 10px; height: 74px; display: flex; flex-direction: column; justify-content: space-between; }
.app-bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.app-bars i { flex: 1; border-radius: 3px; background: #e1e6ec; }
.app-bars i.on { background: #ff6a13; }
.app-tile--ring { align-items: center; justify-content: center; }
.app-ring { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #fff 55%, transparent 56%), conic-gradient(#ff6a13 0 72%, #e1e6ec 72% 100%); }

/* Portada: hero más compacto para que asome el caso destacado */
.hero:has(+ #caso-afanas) { padding-top: clamp(28px, 3.5vw, 48px); }
.hero:has(+ #caso-afanas) .audiences { margin-top: 28px; padding-top: 18px; }
.hero-grid .phone { width: 232px; }

/* Botón flotante de WhatsApp (2026-11-07) */
.wa-float{position:fixed;right:20px;bottom:20px;z-index:900;display:inline-flex;align-items:center;gap:10px;padding:12px 20px 12px 14px;border-radius:999px;background:#25d366;color:#0b2e17;font-family:inherit;font-weight:600;font-size:15px;line-height:1;text-decoration:none;box-shadow:0 8px 24px rgba(19,30,44,.25);transition:transform .2s ease,box-shadow .2s ease}
.wa-float:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(19,30,44,.32);color:#0b2e17}
.wa-float:focus-visible{outline:3px solid #131e2c;outline-offset:3px}
.wa-float svg{width:26px;height:26px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:600px){.wa-float{right:16px;bottom:16px;padding:14px}.wa-float span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media (prefers-reduced-motion:reduce){.wa-float{transition:none}.wa-float:hover{transform:none}}
@media print{.wa-float{display:none}}


/* Botón Síguenos en LinkedIn (2026-11-18) */
.follow-li{display:inline-flex;align-items:center;gap:8px;margin-top:4px;padding:10px 16px;border:1px solid rgba(255,255,255,.18);border-radius:10px;font-weight:600;font-size:14px;line-height:1;text-decoration:none;transition:border-color .2s,background .2s}
.site-footer a.follow-li{color:#fff}
.site-footer a.follow-li:hover{border-color:#ff6a13;background:rgba(255,106,19,.1)}
.follow-li svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){.follow-li{transition:none}}