/* BIK Design System — Web/Blog v1 · 2026-09-02
   Primera implementación formal. Mobile first.
   Identidad: fucsia #E6007E · lima #32FF00 · Verdana.
*/
:root{
  --bik-fuchsia:#E6007E;
  --bik-fuchsia-strong:#C9006E;
  --bik-lime:#32FF00;
  --bik-text:#222222;
  --bik-text-strong:#111111;
  --bik-text-muted:#666666;
  --bik-background:#FFFFFF;
  --bik-surface:#F7F7F7;
  --bik-border:#DEDEDE;
  --bik-focus:#111111;
  --bik-font:Verdana,Arial,sans-serif;
  --bik-radius-sm:10px;
  --bik-radius-md:16px;
  --bik-radius-lg:20px;
  --bik-reading-width:46rem;
  --bik-page-width:58rem;
  --bik-space-xs:.35rem;
  --bik-space-sm:.75rem;
  --bik-space-md:1.25rem;
  --bik-space-lg:2rem;
  --bik-space-xl:3rem;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bik-surface);color:var(--bik-text);font-family:var(--bik-font);font-size:17px;line-height:1.62;text-rendering:optimizeLegibility}
a{color:var(--bik-fuchsia);text-decoration-thickness:.08em;text-underline-offset:.16em}
a:hover{color:var(--bik-text-strong)}
a:focus-visible,button:focus-visible,[role="button"]:focus-visible{outline:3px solid var(--bik-lime);outline-offset:3px}
.previewbar{background:var(--bik-text-strong);color:#fff;padding:10px max(18px,env(safe-area-inset-left));font-size:12px;line-height:1.35;letter-spacing:.02em}
.previewbar strong{font-size:12px}
.article-shell{width:100%;background:var(--bik-background)}
.article{width:min(100%,var(--bik-reading-width));margin:0 auto;padding:28px 20px 56px}
.meta{margin:0 0 18px;color:var(--bik-text-muted);font-size:12px;line-height:1.45;text-transform:uppercase;letter-spacing:.055em;overflow-wrap:anywhere}
.hero-image{display:block;width:100%;height:auto;margin:0 0 26px;border-radius:var(--bik-radius-md);object-fit:cover}
h1,.body h2,.body h3,.body h4{color:var(--bik-fuchsia)}
h1{margin:0;font-size:clamp(2rem,8.4vw,3.2rem);line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
.intro{margin:18px 0 28px;color:#4B4B4B;font-size:1.08rem;line-height:1.58;font-weight:400}
.body{font-size:1rem;line-height:1.66;overflow-wrap:anywhere}
.body p{margin:0 0 .82em}
.body h2{margin:1.8em 0 .58em;font-size:1.42rem;line-height:1.22;letter-spacing:-.018em}
.body h3{margin:1.55em 0 .5em;font-size:1.18rem;line-height:1.3}
.body h4{margin:1.4em 0 .45em;font-size:1.05rem;line-height:1.35}
.body ul,.body ol{margin:.45em 0 1.05em;padding-left:1.35em}.body li{margin:.32em 0}
.body blockquote{margin:1.35em 0;padding:.2em 0 .2em 1em;border-left:4px solid var(--bik-fuchsia);color:#535353}
.body strong{color:var(--bik-text-strong)}
.body iframe{display:block;width:100%;max-width:100%;aspect-ratio:16/9;height:auto;margin:1.35em 0;border:0;border-radius:12px;background:#111}
.body .video-wrapper{margin:1.35em 0}.body .video-wrapper iframe{margin:0}
/* CTA principal BIK: fucsia -> lima/negro en hover */
.body .cta-bik,.bik-button-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin:1.25em 0 .35em;padding:12px 18px;border:2px solid var(--bik-fuchsia);border-radius:var(--bik-radius-sm);background:var(--bik-fuchsia);color:#fff;text-decoration:none;font-family:var(--bik-font);font-weight:700;line-height:1.3;cursor:pointer;transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}
.body .cta-bik:hover,.bik-button-primary:hover{background:var(--bik-lime);border-color:var(--bik-lime);color:#000}
.body .cta-bik:active,.bik-button-primary:active{transform:translateY(1px)}
.bik-button-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border:2px solid var(--bik-fuchsia);border-radius:var(--bik-radius-sm);background:#fff;color:var(--bik-fuchsia);font:700 1rem/1.3 var(--bik-font);text-decoration:none;cursor:pointer}
.bik-button-secondary:hover{background:var(--bik-lime);border-color:var(--bik-lime);color:#000}
.body .back-blog{display:inline-block;margin-top:.75em;color:var(--bik-text-muted);font-size:.92rem}
.body .back-blog:hover{color:var(--bik-fuchsia)}
.body>:first-child{margin-top:0}.body>:last-child{margin-bottom:0}
@media(min-width:700px){body{font-size:18px}.article-shell{width:min(100% - 40px,var(--bik-page-width));margin:32px auto;border:1px solid var(--bik-border);border-radius:var(--bik-radius-lg);box-shadow:0 8px 30px rgba(0,0,0,.055)}.article{padding:52px 56px 72px}.meta{margin-bottom:22px}.hero-image{margin-bottom:34px}.intro{margin:22px 0 34px;font-size:1.12rem}.body p{margin-bottom:.9em}.body h2{margin-top:1.95em}}
@media(min-width:1100px){.article{padding-left:64px;padding-right:64px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.body .cta-bik,.bik-button-primary{transition:none}}

/* BIK Design System — Header + Footer preview v1 */
body{padding-top:72px}
.previewbar{position:relative;z-index:7000}
.bik-site-header{position:fixed;top:0;left:0;right:0;height:72px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;background:#0d0d0d;z-index:6000;border-bottom:1px solid rgba(255,255,255,.08)}
.bik-site-logo{display:inline-flex;align-items:center}.bik-site-logo img{display:block;height:42px;width:auto}
.bik-header-actions{display:flex;align-items:center;gap:14px}.bik-language{display:flex;gap:6px}.bik-language a{min-width:38px;padding:7px 8px;border-radius:8px;background:var(--bik-fuchsia);color:#fff;text-align:center;text-decoration:none;font-size:.78rem;font-weight:700}.bik-language a:hover,.bik-language a.active{background:var(--bik-lime);color:#000}
.bik-menu-button{position:relative;width:44px;height:44px;padding:0;border:0;background:transparent;cursor:pointer}.bik-menu-button span{position:absolute;left:8px;width:28px;height:3px;border-radius:3px;background:#fff;transition:transform .18s ease,opacity .18s ease,top .18s ease}.bik-menu-button span:nth-child(1){top:11px}.bik-menu-button span:nth-child(2){top:20px}.bik-menu-button span:nth-child(3){top:29px}.bik-menu-button.active span:nth-child(1){top:20px;transform:rotate(45deg)}.bik-menu-button.active span:nth-child(2){opacity:0}.bik-menu-button.active span:nth-child(3){top:20px;transform:rotate(-45deg)}
.bik-menu-overlay{position:fixed;inset:72px 0 0;background:rgba(0,0,0,.45);z-index:4990}.bik-site-nav{position:fixed;top:72px;right:0;width:min(92vw,390px);height:calc(100dvh - 72px);padding:30px 28px 48px;background:#111;z-index:5000;overflow:auto;transform:translateX(102%);transition:transform .2s ease}.bik-site-nav.active{transform:translateX(0)}.bik-nav-group{display:flex;flex-direction:column;margin-bottom:28px}.bik-nav-group strong{margin-bottom:9px;color:var(--bik-lime);font-size:.76rem;letter-spacing:.08em}.bik-site-nav a{display:block;padding:7px 0;color:#fff;text-decoration:none;font-size:1rem}.bik-site-nav a:hover{color:var(--bik-lime)}.bik-nav-contact{font-weight:700;color:var(--bik-fuchsia)!important}.bik-nav-contact:hover{color:var(--bik-lime)!important}body.bik-menu-open{overflow:hidden}
.bik-site-footer{background:#101010;color:#d8d8d8;padding:48px 20px 22px}.bik-footer-grid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1fr;gap:32px}.bik-site-footer h2{margin:0 0 12px;color:var(--bik-fuchsia);font-size:1rem}.bik-site-footer a{display:block;width:max-content;max-width:100%;padding:4px 0;color:#e7e7e7;text-decoration:none;font-size:.9rem}.bik-site-footer a:hover{color:var(--bik-lime)}.bik-footer-brand img{height:46px;width:auto}.bik-footer-brand p{max-width:30rem;margin:14px 0 0;color:#c8c8c8;font-size:.9rem;line-height:1.65}.bik-footer-bottom{max-width:1180px;margin:36px auto 0;padding-top:18px;border-top:1px solid #333;display:flex;flex-direction:column;gap:12px;font-size:.78rem;color:#999}.bik-footer-bottom div{display:flex;flex-wrap:wrap;gap:14px}.bik-footer-bottom a{padding:0;color:#aaa;font-size:.78rem}
@media(min-width:760px){body{padding-top:80px}.bik-site-header{height:80px;padding:0 30px}.bik-site-logo img{height:46px}.bik-menu-overlay{inset:80px 0 0}.bik-site-nav{top:80px;height:calc(100dvh - 80px);width:min(42vw,430px);padding:42px 38px}.bik-footer-grid{grid-template-columns:2fr repeat(4,1fr);gap:36px}.bik-footer-bottom{flex-direction:row;align-items:center;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.bik-site-nav,.bik-menu-button span{transition:none}}

/* BIK Blog público — listado y utilidades v1 */
.blog-index-main{background:var(--bik-background);min-height:60vh}
.blog-index-wrap{width:min(100%,74rem);margin:0 auto;padding:34px 20px 64px}
.blog-index-heading{max-width:48rem;margin:0 0 34px}
.blog-index-heading .eyebrow{margin:0 0 8px;color:var(--bik-text-muted);font-size:.76rem;line-height:1.4;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.blog-index-heading h1{margin:0 0 14px;color:var(--bik-fuchsia);font-size:clamp(2.15rem,10vw,4.2rem);line-height:1.02;letter-spacing:-.045em}
.blog-index-heading p{margin:0;color:#4b4b4b;font-size:1.05rem;line-height:1.62}
.blog-grid{display:grid;grid-template-columns:1fr;gap:18px}
.blog-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--bik-border);border-radius:var(--bik-radius-md);background:#fff;color:var(--bik-text);text-decoration:none;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.blog-card:hover{border-color:var(--bik-fuchsia);color:var(--bik-text);transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.07)}
.blog-card-media{aspect-ratio:16/9;background:var(--bik-surface);overflow:hidden}
.blog-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.blog-card-body{display:flex;flex:1;flex-direction:column;padding:20px}
.blog-card-meta{margin:0 0 8px;color:var(--bik-text-muted);font-size:.72rem;line-height:1.4;font-weight:700;letter-spacing:.055em;text-transform:uppercase}
.blog-card h2{margin:0 0 10px;color:var(--bik-fuchsia);font-size:1.25rem;line-height:1.2;letter-spacing:-.02em}
.blog-card p{margin:0;color:#505050;font-size:.93rem;line-height:1.58}
.blog-card-status{display:inline-block;margin-left:.45rem;padding:.16rem .4rem;border-radius:999px;background:#111;color:#fff;font-size:.62rem;letter-spacing:.04em;vertical-align:middle}
.blog-empty{padding:28px;border:1px dashed var(--bik-border);border-radius:var(--bik-radius-md);background:var(--bik-surface);color:var(--bik-text-muted)}
.article .article-category{margin:0 0 18px;color:var(--bik-text-muted);font-size:12px;line-height:1.45;text-transform:uppercase;letter-spacing:.055em}
.article .article-date{font-weight:400;text-transform:none;letter-spacing:0}
.article .article-back{display:inline-flex;margin:0 0 24px;color:var(--bik-fuchsia);font-size:.86rem;font-weight:700;text-decoration:none}
.article .article-back:hover{color:#000}
.previewbar a{color:var(--bik-lime);font-weight:700}
@media(min-width:680px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.blog-index-wrap{padding-top:52px}.blog-card-body{padding:24px}}
@media(min-width:1040px){.blog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.blog-index-wrap{padding:64px 28px 84px}.blog-index-heading{margin-bottom:42px}}
@media(prefers-reduced-motion:reduce){.blog-card{transition:none}}

/* BIK Blog público — paginación + imagen obligatoria visual v2 */
.blog-card-media-empty{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fafafa,#f2f2f2)}
.blog-card-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;width:100%;height:100%;padding:18px;color:var(--bik-text-muted);font-size:.72rem;font-weight:700;letter-spacing:.045em;text-transform:uppercase}
.blog-card-placeholder img{width:auto!important;height:34px!important;max-width:90px;object-fit:contain!important;filter:grayscale(1);opacity:.42}
.blog-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:38px auto 0;padding-top:26px;border-top:1px solid var(--bik-border)}
.blog-page-numbers{display:flex;align-items:center;justify-content:center;gap:7px}
.blog-page{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;border:2px solid var(--bik-fuchsia);border-radius:10px;background:#fff;color:var(--bik-fuchsia);font-size:.86rem;font-weight:700;line-height:1;text-decoration:none}
a.blog-page:hover{border-color:var(--bik-lime);background:var(--bik-lime);color:#000}
.blog-page.is-current{border-color:var(--bik-fuchsia);background:var(--bik-fuchsia);color:#fff}
.blog-page-prev,.blog-page-next{min-width:auto;padding-inline:14px}
.blog-page-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:24px;color:var(--bik-text-muted)}
@media(max-width:520px){.blog-pagination{gap:10px}.blog-page-prev,.blog-page-next{order:2;flex:1;max-width:150px}.blog-page-numbers{order:1;width:100%}}


/* BIK Blog — imagen de reserva corporativa v1
   Si un artículo no tiene imagen principal, se muestra automáticamente /img/logo.png.
   No se crea un registro de Medios ni se modifica el artículo.
*/
.blog-card-media.is-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(24px,5vw,42px);
  background:#fff;
}
.blog-card-media.is-fallback img{
  width:min(72%,220px);
  height:auto;
  max-height:70%;
  object-fit:contain;
}
.hero-image-frame{
  width:100%;
  margin:0 0 26px;
}
.hero-image-frame .hero-image{
  margin:0;
}
.hero-image-frame.is-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:210px;
  padding:38px 24px;
  border:1px solid var(--bik-border);
  border-radius:var(--bik-radius-md);
  background:#fff;
}
.hero-image-frame.is-fallback .hero-image{
  width:min(58%,260px);
  height:auto;
  max-height:150px;
  object-fit:contain;
  border-radius:0;
}
@media(min-width:700px){
  .hero-image-frame{margin-bottom:34px}
  .hero-image-frame.is-fallback{min-height:280px;padding:48px 32px}
  .hero-image-frame.is-fallback .hero-image{width:min(46%,300px);max-height:180px}
}

/* PATCH BIK fallback logo corregido V2 · 2026-09-02 */

/* BIK SEO/Editorial: autor visible coherente con BlogPosting */
.article-author{font-weight:700;color:var(--bik-text, #222);}
