@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

*{margin:0;padding:0;box-sizing:border-box;}
:root{
  --primary:#001A99;
  --primary-hover:#0022cc;
  --primary-light:#e8ecff;
  --text:#1a1a1a;
  --muted:#6b7280;
  --bg:#ffffff;
  --white:#ffffff;
  --border:#e5e7eb;
  --radius:12px;
  --danger:#dc2626;
  --success:#16a34a;
}

body{font-family:'DM Sans',system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;}

/* NAV */
nav{background:var(--white);border-bottom:1px solid var(--border);padding:0 2rem;display:flex;align-items:center;justify-content:space-between;height:64px;position:sticky;top:0;z-index:100;box-shadow:0 1px 4px rgba(0,0,0,.05);}
.SPM__Prysma__es__blog__nav-logo{font-family:'Playfair Display',serif;font-size:1.4rem;font-weight:800;color:var(--primary);text-decoration:none;letter-spacing:-.5px;}
.SPM__Prysma__es__blog__nav-links a{text-decoration:none;color:var(--text);margin-left:1.5rem;font-weight:500;font-size:.9rem;transition:color .2s;}
.SPM__Prysma__es__blog__nav-links a:hover{color:var(--primary);}

/* HERO */
.SPM__Prysma__es__blog__hero{background:linear-gradient(135deg,#001A99 0%,#0033dd 100%);color:white;text-align:center;padding:5rem 2rem;}
.SPM__Prysma__es__blog__hero h1{font-family:'Playfair Display',serif;font-size:3rem;font-weight:800;margin-bottom:.8rem;letter-spacing:-.5px;}
.SPM__Prysma__es__blog__hero p{font-size:1.1rem;opacity:.85;max-width:540px;margin:0 auto;}

/* CONTAINER */
.SPM__Prysma__es__blog__container{max-width:1100px;margin:0 auto;padding:3rem 2rem;}

/* GRID */
.SPM__Prysma__es__blog__posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
@media(max-width:900px){.SPM__Prysma__es__blog__posts-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:580px){.SPM__Prysma__es__blog__posts-grid{grid-template-columns:1fr;}}

/* CARD LINK WRAPPER */
.SPM__Prysma__es__blog__card-link{text-decoration:none;color:inherit;display:block;height:100%;}
.SPM__Prysma__es__blog__card-link:hover .SPM__Prysma__es__blog__card{box-shadow:0 4px 16px rgba(0,0,0,.08);}

/* CARD — matches screenshot: border, no heavy shadow, clean white */
.SPM__Prysma__es__blog__card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  transition:box-shadow .2s;
  display:flex;
  flex-direction:column;
  height:100%;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.SPM__Prysma__es__blog__card-img-wrap{overflow:hidden;flex-shrink:0;}
.SPM__Prysma__es__blog__card-img-wrap img{width:100%;height:190px;object-fit:cover;display:block;}
.SPM__Prysma__es__blog__card-body{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;flex:1;}

/* Date — grey, small, no color */
.SPM__Prysma__es__blog__card-meta{font-size:.78rem;color:var(--muted);margin-bottom:.5rem;font-weight:400;}

/* Title — bold, DM Sans, dark */
.SPM__Prysma__es__blog__card h2{
  font-family:'DM Sans',system-ui,sans-serif;
  font-size:1rem;
  font-weight:700;
  color:var(--text);
  line-height:1.35;
  margin-bottom:.5rem;
}

/* Excerpt — 3 lines max */
.SPM__Prysma__es__blog__card p{
  font-size:.875rem;
  color:#4b5563;
  line-height:1.55;
  flex:1;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
}

/* TAGS & BTN */
.SPM__Prysma__es__blog__tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.9rem;}
.SPM__Prysma__es__blog__tag{background:var(--primary-light);color:var(--primary);font-size:.75rem;padding:.2rem .65rem;border-radius:20px;font-weight:600;}
.SPM__Prysma__es__blog__btn{display:inline-block;background:var(--primary);color:white;padding:.6rem 1.4rem;border-radius:8px;text-decoration:none;font-weight:600;font-size:.88rem;margin-top:1.1rem;transition:background .2s;border:none;cursor:pointer;font-family:inherit;}
.SPM__Prysma__es__blog__btn:hover{background:var(--primary-hover);}

/* ── SINGLE POST PAGE ──
   Matches screenshot: full-width image, blue date, large bold title, clean body text
*/
.SPM__Prysma__es__blog__single-post{max-width:860px;margin:0 auto;padding:2.5rem 1.5rem 4rem;}

/* Full-width image with rounded corners */
.SPM__Prysma__es__blog__single-post-img{margin-bottom:2rem;border-radius:16px;overflow:hidden;}
.SPM__Prysma__es__blog__single-post-img img{width:100%;max-height:560px;object-fit:cover;display:block;}

/* Date in brand blue — matches screenshot */
.SPM__Prysma__es__blog__single-post-meta{
  font-size:.88rem;
  color:var(--primary);
  font-weight:600;
  margin-bottom:.8rem;
  letter-spacing:.01em;
}

/* Large bold title — matches screenshot */
.SPM__Prysma__es__blog__single-post-title{
  font-family:'DM Sans',system-ui,sans-serif;
  font-size:2.2rem;
  font-weight:800;
  color:var(--text);
  line-height:1.2;
  margin-bottom:1.8rem;
}

.SPM__Prysma__es__blog__single-post-body .SPM__Prysma__es__blog__post-content{font-size:1rem;line-height:1.85;color:#374151;}

/* POST CONTENT */
.SPM__Prysma__es__blog__post-content{margin:0 auto;font-size:1.05rem;line-height:1.85;color:#374151;}
.SPM__Prysma__es__blog__post-content p{margin-bottom:1.2rem;}
.SPM__Prysma__es__blog__post-content h1,.SPM__Prysma__es__blog__post-content h2,.SPM__Prysma__es__blog__post-content h3{font-family:'DM Sans',system-ui,sans-serif;margin:2rem 0 .8rem;color:var(--text);font-weight:700;}
.SPM__Prysma__es__blog__post-content h1{font-size:1.75rem;}
.SPM__Prysma__es__blog__post-content h2{font-size:1.4rem;}
.SPM__Prysma__es__blog__post-content h3{font-size:1.15rem;}
.SPM__Prysma__es__blog__post-content ul,.SPM__Prysma__es__blog__post-content ol{margin:1rem 0 1rem 1.5rem;}
.SPM__Prysma__es__blog__post-content li{margin-bottom:.4rem;}
.SPM__Prysma__es__blog__post-content strong{font-weight:700;}
.SPM__Prysma__es__blog__post-content em{font-style:italic;}
.SPM__Prysma__es__blog__post-content a{color:var(--primary);text-decoration:underline;}
.SPM__Prysma__es__blog__post-content img{max-width:100%;border-radius:8px;margin:.8rem 0;}

.SPM__Prysma__es__blog__back-link{display:inline-flex;align-items:center;gap:.4rem;margin-bottom:2rem;color:var(--primary);text-decoration:none;font-weight:600;font-size:.9rem;}
.SPM__Prysma__es__blog__back-link:hover{text-decoration:underline;}

/* hide old post-hero */
.SPM__Prysma__es__blog__post-hero{display:none;}

/* PAGINATION */
.SPM__Prysma__es__blog__blog-pagination{display:flex;align-items:center;justify-content:center;gap:6px;padding:2.5rem 0 1rem;flex-wrap:wrap;}
.SPM__Prysma__es__blog__pag-btn{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 12px;border-radius:9px;border:1.5px solid #e5e7eb;background:#fff;color:#1a1a1a;font-size:.88rem;font-weight:500;cursor:pointer;font-family:'DM Sans',system-ui,sans-serif;transition:all .15s;}
.SPM__Prysma__es__blog__pag-btn:hover:not(:disabled){background:#e8ecff;border-color:var(--primary);color:var(--primary);}
.SPM__Prysma__es__blog__pag-btn.SPM__Prysma__es__blog__active{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:700;cursor:default;}
.SPM__Prysma__es__blog__pag-btn.SPM__Prysma__es__blog__disabled,.SPM__Prysma__es__blog__pag-btn:disabled{opacity:.35;cursor:default;}
.SPM__Prysma__es__blog__pag-dots{color:#9ca3af;padding:0 4px;font-size:.9rem;line-height:38px;}

/* FOOTER */
footer{text-align:center;padding:2rem;color:var(--muted);font-size:.85rem;border-top:1px solid var(--border);margin-top:4rem;}

/* STATES */
.SPM__Prysma__es__blog__loading,.SPM__Prysma__es__blog__error-msg{text-align:center;padding:4rem;color:var(--muted);font-size:1rem;}

/* EMBED MODE */
body.embed-mode nav,body.embed-mode .SPM__Prysma__es__blog__hero,body.embed-mode footer{display:none!important;}
body.embed-mode .SPM__Prysma__es__blog__container{padding:1.5rem 1rem;}
body.embed-mode .SPM__Prysma__es__blog__back-link{display:none!important;}

/* RESPONSIVE */
@media(max-width:600px){
  .SPM__Prysma__es__blog__hero h1{font-size:2rem;}
  .SPM__Prysma__es__blog__posts-grid{grid-template-columns:1fr;}
  .SPM__Prysma__es__blog__single-post{padding:1.5rem 1rem 3rem;}
  .SPM__Prysma__es__blog__single-post-title{font-size:1.5rem;}
}