/* Blog de Cuimo — estilos. Los tokens (colores, tipografía Jokker) vienen de colors_and_type.css */
:root { --accent: #FF441E; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #F6F6F6; color: #000; min-height: 100vh; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1320px; margin: 0 auto; }

/* ---------- Cabecera ---------- */
.cuimo-logo { height: 30px; width: auto; display: block; }
footer .cuimo-logo { height: 34px; }
footer .cuimo-logo path { fill: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #E5E5E5; }
.site-header .cab { padding: 0 clamp(20px, 2.2vw, 40px); min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link:hover { opacity: .8; }
.nav-desktop { display: flex; align-items: center; gap: 22px; flex: 1; margin-left: 12px; }
.nav-desktop a, .nav-desktop summary { font-weight: 500; font-size: 17px; color: #000; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; }
.nav-desktop summary { display: inline-flex; align-items: center; gap: 6px; }
.nav-desktop summary svg { width: 18px; height: 18px; }
.nav-desktop a:hover, .nav-desktop summary:hover { opacity: .7; }
.nav-desktop summary::-webkit-details-marker { display: none; }
.info { position: relative; }
.info-panel { position: absolute; top: calc(100% + 14px); left: 0; background: #fff; border: 1px solid #E5E5E5; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; min-width: 230px; z-index: 60; }
.nav-desktop .info-panel a { font-size: 15px; padding: 10px 14px; border-radius: 10px; }
.nav-desktop .info-panel a:hover { background: #F6F6F6; opacity: 1; }
.info-panel a.activo { color: var(--accent); }
.cab-acciones { display: flex; align-items: center; gap: 30px; }
.tel { display: inline-flex; align-items: center; gap: 8px; color: #000; font-weight: 500; font-size: 17px; text-decoration: none; white-space: nowrap; }
.tel svg { width: 26px; height: 26px; }
.ico { display: flex; }
.ico svg { width: 28px; height: 28px; }
.tel:hover, .ico:hover { opacity: .7; }
.nav-movil { display: none; }
.nav-movil summary { list-style: none; cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; }
.nav-movil summary::-webkit-details-marker { display: none; }
.nav-movil-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #F1EEEE; border-bottom: 1px solid #E5E5E5; padding: 8px 24px 18px; display: flex; flex-direction: column; }
.nav-movil-panel a { font-weight: 500; font-size: 17px; color: #000; text-decoration: none; padding: 13px 0; border-bottom: 1px solid #F6F6F6; }
.nav-movil-panel a.activo { color: var(--accent); font-weight: 600; border-bottom: 0; }
.movil-fila { display: none; align-items: center; gap: 18px; }
@media (max-width: 1279px) {
  .nav-desktop, .cab-acciones.desktop { display: none; }
  .movil-fila { display: flex; }
  .nav-movil { display: block; }
  .tel.movil { font-size: 16px; }
  .tel.movil svg { width: 24px; height: 24px; }
}

/* ---------- Home ---------- */
.home { max-width: 1320px; margin: 0 auto; padding: 56px 24px 80px; }
.intro { max-width: 820px; margin-bottom: 48px; }
.pill-blog { display: inline-block; background: rgba(255,68,30,.10); color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.intro h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -.025em; line-height: 1.04; margin: 0 0 18px; }
.intro p { font-size: 18px; color: #53525C; line-height: 1.55; max-width: 640px; margin: 0; }
.buscador { margin-top: 26px; position: relative; max-width: 420px; }
.buscador input { width: 100%; background: #fff; border: 1px solid #E5E5E5; border-radius: 999px; padding: 14px 20px; font-family: inherit; font-size: 15px; font-weight: 500; color: #000; outline: none; }
.buscador input:focus { border-color: var(--accent); }
.bloque { margin-bottom: 56px; }
.bloque-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.bloque h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 18px; }
.bloque-cab h2 { margin: 0; }
.flechas { display: flex; gap: 8px; }
.flechas button { width: 40px; height: 40px; border-radius: 999px; background: #fff; border: 1px solid #E5E5E5; color: #000; font-family: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.flechas button:hover { border-color: #000; }
.carrusel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.carrusel::-webkit-scrollbar { display: none; }
.card-peq { flex: 0 0 auto; width: 270px; scroll-snap-align: start; background: #fff; border: 1px solid #E5E5E5; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .25s ease; }
.card-peq:hover { box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.thumb { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #ECECEC; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sin-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--accent); }
.sin-img .cuimo-logo { width: 46%; max-width: 220px; height: auto; }
.sin-img .cuimo-logo path { fill: #fff; }
.leido .mini .sin-img .cuimo-logo { width: 70%; }
.card-cuerpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.cat { color: var(--accent); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 10px; }
.card-peq h3 { font-size: 15.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #929194; font-weight: 500; }
.meta .punto, .autor .punto { width: 4px; height: 4px; border-radius: 999px; background: #D9D9D9; display: inline-block; }
.leidos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.leido { position: relative; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #E5E5E5; border-radius: 16px; padding: 12px; text-decoration: none; transition: box-shadow .25s ease; }
.leido:hover { box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.leido .mini { width: 92px; height: 68px; border-radius: 12px; flex-shrink: 0; overflow: hidden; background: #ECECEC; }
.leido .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leido .rank { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 900; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.leido .txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.leido .tit { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; align-items: center; }
.filtro { background: #fff; color: #000; border: 1px solid #E5E5E5; font-weight: 500; font-size: 14px; padding: 10px 19px; border-radius: 999px; text-decoration: none; transition: opacity .15s ease; }
.filtro:hover { opacity: .75; }
.filtro.activo { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid #E5E5E5; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .25s ease, transform .25s ease; }
.card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.10); transform: translateY(-3px); }
.card .etiqueta { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--accent); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px; padding: 6px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.card .cuerpo { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.012em; line-height: 1.28; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card p { font-size: 14px; color: #53525C; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { padding-top: 8px; font-size: 12.5px; gap: 9px; }
.vacio { text-align: center; padding: 80px 20px; color: #929194; }
.vacio strong { display: block; font-size: 18px; color: #000; }
.paginacion { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; }
.paginacion a, .paginacion span { min-width: 42px; height: 42px; padding: 0 8px; border-radius: 999px; background: #fff; color: #000; border: 1px solid #E5E5E5; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.paginacion a:hover { opacity: .8; }
.paginacion .actual { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.paginacion .flecha { border-color: #000; font-weight: 600; font-size: 16px; }
.paginacion .flecha.off { color: #C9C9C9; border-color: #E5E5E5; pointer-events: none; }
#resultados { margin-top: 28px; }
#resultados[hidden] { display: none; }

/* ---------- Entrada ---------- */
.volver { position: sticky; top: var(--alto-cabecera, 73px); z-index: 40; background: #fff; border-bottom: 1px solid #E5E5E5; }
.volver .wrap { padding: 10px 24px; }
.volver a { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #E5E5E5; color: #000; font-weight: 600; font-size: 14px; padding: 0 20px; height: 38px; border-radius: 999px; text-decoration: none; }
.volver a:hover { border-color: #000; }
.volver svg { width: 17px; height: 17px; }
.entrada { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.entrada .pill-cat { display: inline-block; background: var(--accent); color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; padding: 6px 13px; border-radius: 999px; white-space: nowrap; text-decoration: none; margin-bottom: 20px; }
.entrada h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 22px; }
.autor { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #929194; font-weight: 500; margin-bottom: 32px; flex-wrap: wrap; }
.autor strong { color: #000; font-weight: 600; }
.hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 22px; display: block; background: #ECECEC; margin-bottom: 40px; }
.article-prose { font-size: 18px; line-height: 1.62; color: #000; font-weight: 500; }
.article-prose h2 { font-size: 27px; font-weight: 600; letter-spacing: -.02em; line-height: 1.18; margin: 42px 0 14px; }
.article-prose h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 30px 0 10px; line-height: 1.25; }
.article-prose h4 { font-size: 18px; font-weight: 600; margin: 22px 0 8px; }
.article-prose p { margin: 0 0 20px; }
.article-prose strong { font-weight: 600; }
.article-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-prose a:hover { opacity: .8; }
.article-prose ul, .article-prose ol { margin: 0 0 20px; padding-left: 22px; }
.article-prose li { margin: 0 0 10px; }
.article-prose li p { margin: 0; }
.article-prose li::marker { color: var(--accent); }
.article-prose img { width: 100%; height: auto; border-radius: 18px; margin: 28px 0; display: block; }
.article-prose em, .article-prose i { font-style: normal; }
.article-prose button { display: none; }
.article-prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.article-prose td, .article-prose th { border: 1px solid #E5E5E5; padding: 10px 14px; text-align: left; }
.article-prose th { background: #F6F6F6; font-weight: 600; }
.cta-final { background: var(--accent); border-radius: 24px; padding: clamp(28px, 5vw, 48px); margin-top: 56px; text-align: center; }
.cta-final .cta-titulo { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; display: block; }
.cta-final p:not(.cta-titulo) { color: #fff; opacity: .92; font-size: 16px; line-height: 1.5; margin: 0 auto 26px; max-width: 460px; }
.cta-botones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-botones a { font-weight: 600; font-size: 15px; padding: 14px 30px; border-radius: 999px; text-decoration: none; }
.cta-botones .primario { background: #fff; color: var(--accent); }
.cta-botones .secundario { background: transparent; color: #fff; border: 1px solid #fff; }
.cta-botones a:hover { opacity: .88; }
.relacionadas { margin-top: 64px; }
.relacionadas h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 26px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.rel { background: #fff; border: 1px solid #E5E5E5; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .25s ease, transform .25s ease; }
.rel:hover { box-shadow: 0 12px 28px rgba(0,0,0,.10); transform: translateY(-3px); }
.rel .cuerpo { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rel h3 { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rel .min { margin-top: auto; padding-top: 6px; font-size: 12px; color: #929194; font-weight: 500; }
.p404 { max-width: 640px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.p404 h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; }
.p404 p { font-size: 18px; color: #53525C; margin: 0 0 28px; }
.p404 a { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; padding: 14px 30px; border-radius: 999px; text-decoration: none; }

/* ---------- Pie ---------- */
footer a:hover { opacity: .7; }
footer a[href^="https://www.google"] { opacity: .92; }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa summary { list-style: none; width: 60px; height: 60px; border-radius: 999px; background: #25D366; cursor: pointer; box-shadow: 0 6px 22px rgba(37,211,102,.45); display: flex; align-items: center; justify-content: center; order: 2; }
.wa summary::-webkit-details-marker { display: none; }
.wa summary:hover { opacity: .9; }
.wa summary svg { width: 32px; height: 32px; fill: #fff; }
.wa-panel { width: 330px; max-width: calc(100vw - 48px); background: #fff; border-radius: 20px; box-shadow: 0 16px 48px rgba(0,0,0,.20); overflow: hidden; order: 1; }
.wa-cab { background: #25D366; padding: 18px 20px; display: flex; align-items: center; gap: 12px; color: #fff; }
.wa-cab svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.wa-cab b { display: block; font-weight: 600; font-size: 15px; }
.wa-cab small { opacity: .9; font-size: 12.5px; }
.wa-cuerpo { padding: 16px; }
.wa-cuerpo p { font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.wa-cuerpo a { display: flex; flex-direction: column; gap: 3px; background: #F6F6F6; border: 1px solid #E5E5E5; border-radius: 14px; padding: 12px 14px; text-decoration: none; margin-bottom: 10px; }
.wa-cuerpo a:hover { border-color: #25D366; background: #fff; }
.wa-cuerpo a b { font-size: 14px; font-weight: 600; color: #000; }
.wa-cuerpo a span { font-size: 12.5px; color: #595959; font-weight: 500; }
.wa:not([open]) .wa-panel { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Diseño de solo texto (tarjetas sin imagen) ---------- */
.pill { align-self: flex-start; background: rgba(255,68,30,.1); color: var(--accent); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px; padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.card { border-radius: 20px; min-height: 300px; transition: border-color .2s ease; }
.card:hover { box-shadow: none; transform: none; border-color: var(--accent); }
.card .cuerpo { padding: 26px 26px 24px; gap: 14px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-top .lectura { font-size: 12.5px; color: #929194; font-weight: 500; white-space: nowrap; }
.card h3 { font-size: 23px; letter-spacing: -.02em; line-height: 1.2; margin: 4px 0 0; text-wrap: pretty; -webkit-line-clamp: 4; color: #000; }
.card p { font-size: 15px; -webkit-line-clamp: 3; }
.card-pie { margin-top: auto; padding-top: 16px; border-top: 1px solid #F1EEEE; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; color: #929194; }
.card-pie .leer { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card-pie .leer svg { width: 16px; height: 16px; }
.card-peq { width: 300px; min-height: 210px; border-radius: 20px; transition: border-color .2s ease; }
.card-peq:hover { box-shadow: none; border-color: var(--accent); }
.card-peq .card-cuerpo { padding: 22px 22px 20px; gap: 12px; }
.card-peq h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; -webkit-line-clamp: 4; text-wrap: pretty; color: #000; }
.leido { gap: 18px; padding: 16px 20px; transition: border-color .2s ease; }
.leido:hover { box-shadow: none; border-color: var(--accent); }
.leido .rank { position: static; flex-shrink: 0; width: 44px; height: 44px; font-size: 18px; }
.leido .tit { color: #000; }
.rel { min-height: 170px; transition: border-color .2s ease; }
.rel:hover { box-shadow: none; transform: none; border-color: var(--accent); }
.rel .cuerpo { padding: 20px; gap: 10px; }
.rel h3 { color: #000; }
.separador { height: 1px; background: #E5E5E5; margin: 0 0 36px; }
@media (max-width: 640px) { .card-peq { width: 260px; } .card h3 { font-size: 21px; } }
