/* SmoltIQ — página de producto */
.h-body { background: #fff; }
.h-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navegación */
.h-nav { position: sticky; top: 0; z-index: 40; background: rgba(4, 28, 44, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06); transition: background .2s, box-shadow .2s; }
.h-nav.con-fondo, .h-nav.abierto { background: rgba(4, 28, 44, .97); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.h-nav .h-container { height: 68px; display: flex; align-items: center; gap: 20px; }
.h-nav .brand { flex: none; }
.h-nav .links { display: flex; gap: 2px; flex: 1; justify-content: center; }
.h-nav .links a { position: relative; color: #b9d3df; padding: 8px 12px; border-radius: 8px; font-weight: 550; font-size: .92rem; white-space: nowrap; transition: color .15s, background .15s; }
.h-nav .links a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.h-nav .links a.activo { color: #fff; }
.h-nav .links a.activo::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--salmon-500); }
.h-acciones { display: flex; align-items: center; gap: 10px; flex: none; }
.h-acciones .btn { white-space: nowrap; }
.h-ingresar { color: #e1eef3; font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.h-ingresar:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }

/* Selector de idioma */
.h-idioma { position: relative; }
.h-idioma summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18); color: #cfe3ec; font-size: .8rem; font-weight: 700; letter-spacing: .03em; cursor: pointer; }
.h-idioma summary::-webkit-details-marker { display: none; }
.h-idioma summary:hover, .h-idioma[open] summary { background: rgba(255,255,255,.08); color: #fff; }
.h-idioma > div { position: absolute; right: 0; top: 44px; min-width: 150px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(4,28,44,.3); }
.h-idioma > div a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ocean-800); font-weight: 600; font-size: .9rem; }
.h-idioma > div a:hover { background: var(--teal-100); text-decoration: none; }
.h-idioma > div a[aria-current] { background: var(--bg); color: var(--salmon-600); }

/* Botón y panel del menú en pantallas angostas */
.h-menu-btn { display: none; width: 42px; height: 42px; place-items: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; cursor: pointer; }
.h-menu-btn path { transition: transform .2s, opacity .2s; transform-origin: 12px 12px; }
.h-nav.abierto .h-menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
.h-nav.abierto .h-menu-btn .l2 { opacity: 0; }
.h-nav.abierto .h-menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }
.h-panel { position: fixed; z-index: 39; top: 68px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: #041c2c; padding: 12px 24px 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.h-panel[hidden] { display: none; }
.h-panel nav { display: flex; flex-direction: column; }
.h-panel nav a { color: #e1eef3; font-size: 1.15rem; font-weight: 650; padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
.h-panel nav a:hover { color: #fff; text-decoration: none; }
.h-panel-pie { display: grid; gap: 10px; }
.h-panel-pie .btn { width: 100%; justify-content: center; }
.h-panel-pie .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.h-panel-idiomas { display: flex; gap: 8px; margin-bottom: 6px; }
.h-panel-idiomas a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); color: #cfe3ec; font-weight: 700; font-size: .85rem; }
.h-panel-idiomas a[aria-current] { background: rgba(242,120,92,.18); border-color: var(--salmon-500); color: #fff; }

@media (max-width: 1180px) {
  .h-nav .links, .h-ingresar { display: none; }
  .h-menu-btn { display: grid; }
  .h-nav .h-container { justify-content: space-between; }
}
@media (max-width: 640px) {
  .h-nav .h-container { padding: 0 16px; gap: 10px; }
  .h-nav .brand small { display: none; }
  .h-acciones .h-idioma { display: none; }
  .h-acciones .btn { padding: 8px 12px; font-size: .88rem; min-height: 38px; }
}
@media (max-width: 380px) { .h-acciones > .btn { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(23,154,168,.35), transparent 60%),
              radial-gradient(800px 400px at -10% 110%, rgba(242,120,92,.22), transparent 60%),
              linear-gradient(170deg, var(--ocean-950) 0%, var(--ocean-900) 45%, var(--ocean-800) 100%); }
.hero .h-container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 150px; position: relative; z-index: 2; }
@media (max-width: 980px) { .hero .h-container { grid-template-columns: 1fr; padding-top: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(242,120,92,.15); color: var(--salmon-300); font-weight: 650; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; margin: 18px 0; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--salmon-500); }
.hero .lead { color: #b9d6e2; font-size: 1.15rem; max-width: 560px; line-height: 1.6; }
.hero .btn-row { margin-top: 30px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 26px; margin-top: 44px; justify-content: start; }
.facts b { display: block; font-size: 1.9rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.facts span { font-size: .8rem; color: #8fb6c8; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; }

/* Maqueta de tablet */
.tablet { background: #0a1f2e; border-radius: 26px; padding: 14px; box-shadow: 0 40px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08) inset; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
.screen { background: var(--bg); border-radius: 14px; overflow: hidden; color: var(--text); font-size: 12px; }
.screen .bar { background: linear-gradient(90deg, var(--ocean-950), var(--ocean-800)); color: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.screen .bar b { color: var(--salmon-500); }
.screen .body { padding: 14px; display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mini-ring { display: grid; place-items: center; text-align: center; }
.mini-ring .t { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.mini-phase { display: grid; grid-template-columns: 70px 1fr 38px; gap: 8px; align-items: center; margin: 7px 0; font-weight: 600; color: var(--ocean-800); }
.mini-phase .tr { height: 7px; border-radius: 9px; background: var(--line-soft); overflow: hidden; }
.mini-phase .tr i { display: block; height: 100%; background: var(--teal-500); border-radius: 9px; }
.mini-row { display: grid; grid-template-columns: 4px 1fr auto; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px 6px 0; margin-top: 6px; overflow: hidden; }
.mini-row .s { align-self: stretch; }
.mini-row .c { font-weight: 650; color: var(--ocean-800); }
.mini-row .m { color: var(--muted); font-size: 10.5px; }

/* Secciones */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg); }
.sec-dark { background: linear-gradient(170deg, var(--ocean-950), var(--ocean-800)); color: #fff; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sec-head .kicker { color: var(--salmon-600); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.sec-dark .sec-head .kicker { color: var(--salmon-300); }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.02em; margin: 10px 0 12px; font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; line-height: 1.6; }
.sec-dark .sec-head p { color: #b9d6e2; }

/* Antes / después */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }
.compare .side { border-radius: 18px; padding: 28px; }
.compare .before { background: #fff; border: 1px dashed #cbd5dc; }
.compare .after { background: linear-gradient(160deg, var(--teal-100), #fff); border: 1px solid #b8dfe4; }
.compare ul { list-style: none; padding: 0; margin: 14px 0 0; }
.compare li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.45; }
.compare li:last-child { border-bottom: 0; }
.ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.ic-x { background: var(--rojo-bg); color: var(--rojo); }
.ic-ok { background: var(--verde-bg); color: var(--verde); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: paso; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.stp { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: relative; box-shadow: var(--shadow); }
.stp .no { width: 46px; height: 46px; border-radius: 14px; background: var(--ocean-800); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.stp:nth-child(2) .no { background: var(--teal-600); }
.stp:nth-child(3) .no { background: var(--salmon-500); }
.stp:nth-child(4) .no { background: var(--verde); }
.stp h3 { font-size: 1.08rem; margin-bottom: 8px; }
.stp p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.55; }

/* Variables del índice */
.vars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .vars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vars { grid-template-columns: 1fr; } }
.vgroup { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px; }
.vgroup h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.vgroup h3 span { color: var(--salmon-300); font-size: .9rem; }
.vitem { display: grid; grid-template-columns: 1fr 44px; gap: 4px 10px; align-items: center; margin-top: 12px; font-size: .9rem; color: #d6e7ee; }
.vitem .w { text-align: right; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.vitem .tr { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,.08); border-radius: 9px; overflow: hidden; }
.vitem .tr i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--salmon-500)); border-radius: 9px; }
.scale-big { margin: 56px auto 0; max-width: 860px; }
.scale-big .bar { display: grid; grid-template-columns: 25fr 45fr 30fr; border-radius: 14px; overflow: hidden; font-weight: 700; }
.scale-big .bar div { padding: 16px; text-align: center; }
.scale-big .bar small { display: block; font-weight: 500; opacity: .9; font-size: .8rem; }
.scale-big .ticks { display: grid; grid-template-columns: 25fr 45fr 30fr; color: #8fb6c8; font-size: .8rem; margin-top: 8px; }
.scale-big .ticks span:nth-child(2), .scale-big .ticks span:nth-child(3) { text-align: left; }
.scale-big p { text-align: center; color: #b9d6e2; margin-top: 18px; }

/* Funcionalidades */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: transform .15s, box-shadow .15s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(6,40,61,.1); }
.feat .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--salmon-100); color: var(--salmon-600); margin-bottom: 14px; }
.feat:nth-child(3n+2) .fi { background: var(--teal-100); color: var(--teal-600); }
.feat:nth-child(3n) .fi { background: #e3eaf2; color: var(--ocean-800); }
.feat h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }

/* Para quién */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }
.role { border-radius: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--salmon-500); }
.role:nth-child(2) { border-top-color: var(--teal-600); }
.role:nth-child(3) { border-top-color: var(--ocean-800); }
.role:nth-child(4) { border-top-color: var(--verde); }
.role h3 { font-size: 1.02rem; }
.role p { color: var(--muted); margin: 0; font-size: .93rem; line-height: 1.55; }

/* Fotos del manual */
.gallery { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } }
.gallery .imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery .imgs figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; border: 3px solid transparent; }
.gallery .imgs figure.sel { border-color: var(--salmon-500); }
.gallery .imgs img { width: 100%; height: 110px; object-fit: cover; display: block; }
.gallery .imgs figcaption { position: absolute; left: 6px; bottom: 6px; background: rgba(4,28,44,.75); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { display: flex; gap: 12px; padding: 8px 0; line-height: 1.5; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact .card { padding: 30px; border-radius: 20px; }
.contact h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.contact .bul { color: #cfe3ec; }

.h-footer { background: var(--ocean-950); color: #8fb6c8; padding: 36px 0; font-size: .9rem; }
.h-footer .h-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ===== Pie legal, páginas legales, preguntas frecuentes y aviso de cookies ===== */
.pie-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pie-links a { color: #cfe3ec; }
.legal { background: var(--bg); padding: 40px 0 72px; }
.legal-in { max-width: 860px; }
.legal article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px 40px; line-height: 1.65; color: var(--text); }
.legal article h1 { font-size: 2rem; margin: 0 0 6px; letter-spacing: -.02em; }
.legal article h2 { font-size: 1.15rem; margin: 30px 0 8px; color: var(--ocean-900); }
.legal article h3 { font-size: 1rem; margin: 18px 0 6px; }
.legal article table { margin: 10px 0; font-size: .9rem; }
.legal article td, .legal article th { vertical-align: top; }
.legal .meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.legal .indice { background: var(--bg); border-radius: 12px; padding: 14px 18px; font-size: .92rem; }
.legal .indice ol { margin: 6px 0 0; padding-left: 20px; columns: 2; }
.legal .nota { background: var(--salmon-100); border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal-600); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
.aviso-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; background: #06283d; color: #e1f2f4;
  border-radius: 14px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; box-shadow: 0 16px 40px rgba(0,0,0,.3); font-size: .9rem; }
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { margin: 0; flex: 1; }
.aviso-cookies a { color: #7fd6df; }
@media (max-width: 640px) {
  .legal article { padding: 22px 18px; }
  .legal .indice ol { columns: 1; }
  .aviso-cookies { flex-direction: column; align-items: stretch; }
  .h-footer .h-container { flex-direction: column; align-items: flex-start; }
}
.legal article th { white-space: normal; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.legal article table:not(.compact) th, .legal article tr > th:first-child { width: 34%; }
@media (max-width: 640px) {
  .legal article table { display: block; overflow-x: auto; }
  .legal article td, .legal article th { padding: 6px 8px; font-size: .82rem; }
  .legal article h1 { font-size: 1.6rem; }
}

/* Saltos a secciones: desplazamiento suave y sin quedar bajo el encabezado fijo. */
html { scroll-behavior: smooth; }
.h-body section[id] { scroll-margin-top: 68px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- Rediseño 2026-11: plataforma completa ------------------------------------------------- */
/* Franja de confianza bajo el hero */
.confianza { background: #fff; border-bottom: 1px solid var(--line); }
.confianza .h-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; padding-top: 6px; padding-bottom: 26px; }
.confianza span { display: inline-flex; align-items: center; gap: 8px; color: var(--ocean-800); font-weight: 600; font-size: .92rem; }
.confianza svg { width: 20px; height: 20px; color: var(--teal-600); }

/* El ciclo completo */
.ciclo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.ciclo::before { content: ""; position: absolute; top: 31px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--teal-600), var(--salmon-500)); opacity: .35; }
.ciclo > li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px 16px; box-shadow: var(--shadow); }
.ciclo-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ocean-800); color: #fff; position: relative; margin-bottom: 12px; }
.ciclo > li:nth-child(2) .ciclo-ic { background: var(--teal-600); }
.ciclo > li:nth-child(3) .ciclo-ic { background: var(--salmon-500); }
.ciclo > li:nth-child(4) .ciclo-ic { background: #0e5a7a; }
.ciclo > li:nth-child(5) .ciclo-ic { background: #179aa8; }
.ciclo > li:nth-child(6) .ciclo-ic { background: var(--verde); }
.ciclo-ic span { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--ocean-900); font-size: .7rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.ciclo h3 { font-size: 1.02rem; margin: 0 0 8px; }
.ciclo ul { margin: 0; padding: 0 0 0 16px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.ciclo ul li { margin: 3px 0; }
.ciclo-pie { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 0; color: var(--ocean-800); font-weight: 600; text-align: center; }
.ciclo-pie svg { color: var(--salmon-500); flex: none; }
@media (max-width: 1180px) { .ciclo { grid-template-columns: repeat(3, 1fr); } .ciclo::before { display: none; } }
@media (max-width: 700px) { .ciclo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .ciclo { grid-template-columns: 1fr; } }

/* Decisión: maqueta ilustrativa */
.decision { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .decision { grid-template-columns: 1fr; gap: 32px; } }
.maqueta { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 24px 60px rgba(6, 40, 61, .14); }
.mq-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); color: var(--ocean-900); }
.mq-bloque { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.mq-bloque:last-of-type { border-bottom: 0; }
.mq-t { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.mq-linea { position: relative; height: 14px; background: var(--bg); border-radius: 7px; }
.mq-linea i { position: absolute; top: 0; bottom: 0; }
.mq-ventana { background: linear-gradient(90deg, rgba(46,158,91,.35), rgba(46,158,91,.75)); border-radius: 7px; }
.mq-hoy { width: 3px; background: var(--ocean-800); top: -4px !important; bottom: -4px !important; border-radius: 2px; }
.mq-traslado { width: 3px; background: var(--salmon-500); top: -4px !important; bottom: -4px !important; border-radius: 2px; }
.mq-leyenda { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.mq-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.l-v { background: rgba(46,158,91,.6); } .l-h { background: var(--ocean-800); } .l-t { background: var(--salmon-500); }
.mq-esc { display: grid; grid-template-columns: 22px 1fr 110px auto; gap: 10px; align-items: center; font-size: .86rem; padding: 4px 0; }
.mq-esc b { width: 22px; height: 22px; border-radius: 6px; background: var(--bg); display: grid; place-items: center; font-size: .75rem; }
.mq-esc div { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.mq-esc div i { display: block; height: 100%; background: #9fb3c2; border-radius: 4px; }
.mq-esc.mejor b { background: var(--verde); color: #fff; }
.mq-esc.mejor div i { background: var(--verde); }
.mq-esc em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--verde); }
.mq-aprob { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; }
.mq-aprob i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: .72rem; font-weight: 800; margin-right: 6px; }
.mq-aprob .ok { background: var(--verde); color: #fff; } .mq-aprob .pend { background: var(--ambar); color: #fff; }
.mq-nota { position: absolute; right: 18px; bottom: -12px; background: var(--ocean-900); color: #fff; font-size: .7rem; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 480px) { .mq-esc { grid-template-columns: 22px 1fr 60px; } .mq-esc em { display: none; } }

/* Funcionalidades por pestañas */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -24px 0 30px; }
.tabs button { border: 1px solid var(--line); background: #fff; color: var(--ocean-800); font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.tabs button:hover { border-color: var(--teal-600); }
.tabs button[aria-selected="true"] { background: var(--ocean-800); color: #fff; border-color: var(--ocean-800); }
.tabs { display: none; }
.con-tabs .tabs { display: flex; }
.mod + .mod { margin-top: 18px; }
.con-tabs .mod + .mod { margin-top: 0; }
.mod[hidden] { display: none; }
#funcionalidades .feat { background: #fff; }

/* Seis perfiles */
.roles-6 { grid-template-columns: repeat(3, 1fr); }
.roles-6 .role:nth-child(5) { border-top-color: #179aa8; }
.roles-6 .role:nth-child(6) { border-top-color: #0e5a7a; }
@media (max-width: 900px) { .roles-6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .roles-6 { grid-template-columns: 1fr; } }

/* Integraciones y seguridad */
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .dos-col { grid-template-columns: 1fr; } }
.dos-col .bloque { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: #fff; box-shadow: var(--shadow); }
.dos-col .kicker { color: var(--salmon-600); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.dos-col h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 8px 0 10px; letter-spacing: -.02em; }
.dos-col p { color: var(--muted); line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chips span { background: var(--teal-100); color: var(--ocean-800); border-radius: 999px; padding: 6px 13px; font-size: .86rem; font-weight: 600; }

@media (max-width: 640px) { .sec { padding: 64px 0; } .confianza .h-container { justify-content: flex-start; gap: 10px 18px; } }
/* El hero nunca se ensancha por su contenido en pantallas angostas. */
.hero .h-container > * { min-width: 0; }
.mini-row > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .eyebrow { font-size: .7rem; letter-spacing: .03em; } .mini-row .m { display: none; } }
@media (max-width: 480px) {
  .tablet { transform: none; padding: 10px; border-radius: 20px; }
  .screen .body { grid-template-columns: 1fr; }
  .mini-ring { display: grid; grid-template-columns: auto 1fr; align-items: center; justify-items: start; column-gap: 14px; }
  .mini-ring svg { grid-row: span 2; width: 84px; height: 84px; }
}
