/* blog.css — Maquetación de artículos del blog (Centre de Formació Versailles)
   Reglas: ancho de lectura controlado, jerarquía clara, contraste AA,
   tablas, citas, callouts, CTAs y listas semánticas. */

/* ===== Portada del blog (listado) ===== */
.vs-bloglist { color:#20202e; }
.vs-bloglist-hero { background:var(--vs-dark,#1a1a2e); color:#fff; text-align:center; padding:116px 24px 70px; position:relative; }
.vs-bloglist-hero::after { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:var(--vs-gradient,#c4365a); }
.vs-bloglist-hero .eyebrow { display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:#f3aebf; margin-bottom:14px; }
.vs-bloglist-hero h1 { font-size:clamp(2rem,5vw,3rem); font-weight:800; margin:0 0 14px; letter-spacing:-.02em; }
.vs-bloglist-hero p { font-size:1.12rem; color:rgba(255,255,255,.8); max-width:640px; margin:0 auto; }
.vs-bloglist-grid { max-width:1120px; margin:0 auto; padding:54px 24px 80px; display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
@media (max-width:900px){ .vs-bloglist-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .vs-bloglist-grid{grid-template-columns:1fr;} }
.vs-post-card { display:flex; flex-direction:column; background:#fff; border:1px solid #eceaf0; border-radius:16px; overflow:hidden; text-decoration:none; color:inherit; box-shadow:0 6px 22px rgba(0,0,0,.06); transition:transform .25s ease, box-shadow .25s ease; }
.vs-post-card:hover { transform:translateY(-6px); box-shadow:0 18px 40px rgba(196,54,90,.14); }
.vs-post-card .thumb { aspect-ratio:16/10; overflow:hidden; }
.vs-post-card .thumb img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.vs-post-card:hover .thumb img { transform:scale(1.06); }
.vs-post-card .pad { padding:24px; display:flex; flex-direction:column; flex:1; }
.vs-post-card .cat { align-self:flex-start; font-size:.7rem; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:#fff; background:var(--vs-gradient,#c4365a); padding:5px 12px; border-radius:50px; margin-bottom:14px; }
.vs-post-card h2 { font-size:1.18rem; font-weight:700; color:#14141f; line-height:1.35; margin:0 0 10px; }
.vs-post-card p { color:#555; font-size:.95rem; line-height:1.6; margin:0 0 16px; flex:1; }
.vs-post-card .meta { display:flex; gap:12px; align-items:center; font-size:.82rem; color:#8a8a96; }
.vs-post-card .meta .dot { width:4px; height:4px; border-radius:50%; background:#c4365a; }

.vs-article {
    --read: 760px;
    color: #20202e;
    background: #fff;
    padding-top: var(--vs-header-height, 80px);
}

/* ---------- Contenedores ---------- */
.vs-article-wrap { max-width: var(--read); margin: 0 auto; padding: 0 24px; }
.vs-article-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Breadcrumb ---------- */
.vs-breadcrumb { font-size: 0.85rem; color: #6b7280; padding: 28px 0 8px; }
.vs-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.vs-breadcrumb a { color: #6b7280; text-decoration: none; }
.vs-breadcrumb a:hover { color: var(--vs-magenta, #c4365a); }
.vs-breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #c4365a; }
.vs-breadcrumb [aria-current] { color: #1a1a2e; font-weight: 600; }

/* ---------- Cabecera del artículo ---------- */
.vs-article-head { padding: 8px 0 0; }
.vs-article-cat {
    display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: #fff; background: var(--vs-gradient, #c4365a);
    padding: 6px 14px; border-radius: 50px; margin-bottom: 18px;
}
.vs-article-title {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; font-weight: 800;
    color: #14141f; margin: 0 0 16px; letter-spacing: -0.02em;
}
.vs-article-lead { font-size: 1.2rem; line-height: 1.6; color: #4b4b5a; margin: 0 0 24px; }

.vs-article-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
    padding: 18px 0; border-top: 1px solid #ececf1; border-bottom: 1px solid #ececf1;
    font-size: 0.9rem; color: #6b7280;
}
.vs-article-meta .vs-author { display: flex; align-items: center; gap: 10px; color: #1a1a2e; font-weight: 600; }
.vs-author-avatar {
    width: 42px; height: 42px; border-radius: 50%; background: var(--vs-gradient, #c4365a);
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.vs-article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #c4365a; }

/* ---------- Imagen destacada ---------- */
.vs-article-figure { margin: 32px 0; }
.vs-article-figure img {
    width: 100%; height: auto; border-radius: 16px; display: block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.vs-article-figure figcaption { font-size: 0.85rem; color: #8a8a96; margin-top: 10px; text-align: center; }

/* ---------- Tabla de contenidos ---------- */
.vs-toc {
    background: #fdf2f4; border: 1px solid #f3d3db; border-radius: 14px;
    padding: 22px 26px; margin: 32px 0;
}
.vs-toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #9e2b48; margin: 0 0 12px; }
.vs-toc ol { margin: 0; padding-left: 20px; color: #4b4b5a; }
.vs-toc li { margin: 6px 0; }
.vs-toc a { color: #4b4b5a; text-decoration: none; }
.vs-toc a:hover { color: var(--vs-magenta, #c4365a); text-decoration: underline; }

/* ---------- Prosa ---------- */
.vs-prose { font-size: 1.08rem; line-height: 1.8; color: #2b2b38; }
.vs-prose > * + * { margin-top: 1.2em; }
.vs-prose h2 {
    font-size: 1.7rem; font-weight: 800; color: #14141f; line-height: 1.25;
    margin: 1.8em 0 0.2em; padding-top: 0.4em; scroll-margin-top: 100px;
}
.vs-prose h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--vs-gradient, #c4365a); border-radius: 4px; margin-top: 14px; }
.vs-prose h3 { font-size: 1.3rem; font-weight: 700; color: #1a1a2e; margin: 1.5em 0 0.2em; scroll-margin-top: 100px; }
.vs-prose p { margin: 0; }
.vs-prose a { color: #9e2b48; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.vs-prose a:hover { color: #c4365a; }
.vs-prose strong { color: #14141f; font-weight: 700; }

/* Listas */
.vs-prose ul, .vs-prose ol { padding-left: 4px; margin: 1.2em 0; }
.vs-prose ul { list-style: none; }
.vs-prose ul li { position: relative; padding-left: 30px; margin: 10px 0; }
.vs-prose ul li::before {
    content: ""; position: absolute; left: 4px; top: 0.55em; width: 9px; height: 9px;
    background: var(--vs-magenta, #c4365a); border-radius: 50%;
}
.vs-prose ol { padding-left: 22px; }
.vs-prose ol li { margin: 10px 0; padding-left: 6px; }
.vs-prose ol li::marker { color: #9e2b48; font-weight: 700; }

/* Lista check / cross */
.vs-list-check li::before, .vs-list-cross li::before { background: transparent !important; }
.vs-list-check li { padding-left: 34px; }
.vs-list-check li::before {
    content: "✓"; color: #15803d; font-weight: 800; top: 0; left: 2px;
    width: auto; height: auto; border-radius: 0;
}
.vs-list-cross li { padding-left: 34px; }
.vs-list-cross li::before {
    content: "✕"; color: #b91c1c; font-weight: 800; top: 0; left: 2px;
    width: auto; height: auto; border-radius: 0;
}

/* ---------- Cita ---------- */
.vs-quote {
    margin: 2em 0; padding: 26px 30px; background: #1a1a2e; color: #fff;
    border-radius: 16px; border-left: 6px solid #c4365a; position: relative;
}
.vs-quote p { font-size: 1.25rem; line-height: 1.5; font-style: italic; margin: 0; }
.vs-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.9rem; color: #d64d6f; font-weight: 600; }

/* ---------- Callouts ---------- */
.vs-callout {
    display: flex; gap: 16px; padding: 20px 22px; border-radius: 14px; margin: 1.8em 0;
    border: 1px solid; line-height: 1.65;
}
.vs-callout .ico { flex: 0 0 26px; font-size: 1.3rem; line-height: 1.4; }
.vs-callout h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.vs-callout p { margin: 0; font-size: 0.98rem; }
.vs-callout--tip { background: #f0faf4; border-color: #bfe6cd; color: #14532d; }
.vs-callout--tip h4 { color: #15803d; }
.vs-callout--info { background: #eef4ff; border-color: #c9dbff; color: #1e3a5f; }
.vs-callout--info h4 { color: #1d4ed8; }
.vs-callout--warn { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }
.vs-callout--warn h4 { color: #c2410c; }

/* ---------- Tablas ---------- */
.vs-table-wrap { overflow-x: auto; margin: 1.8em 0; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.vs-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; background: #fff; min-width: 520px; }
.vs-table thead th {
    background: var(--vs-gradient, #c4365a); color: #fff; text-align: left;
    padding: 14px 18px; font-weight: 700; font-size: 0.9rem;
}
.vs-table th, .vs-table td { padding: 13px 18px; border-bottom: 1px solid #ececf1; vertical-align: top; }
.vs-table tbody tr:nth-child(even) { background: #faf6f7; }
.vs-table tbody tr:hover { background: #fdf2f4; }
.vs-table td strong { color: #9e2b48; }
.vs-table caption { caption-side: bottom; font-size: 0.82rem; color: #8a8a96; padding-top: 10px; text-align: left; }

/* ---------- CTA destacado ---------- */
.vs-cta-box {
    margin: 2.4em 0; padding: 36px; border-radius: 20px; text-align: center;
    background: var(--vs-gradient, linear-gradient(135deg,#c4365a,#9e2b48)); color: #fff;
    box-shadow: 0 14px 40px rgba(196,54,90,0.3);
}
.vs-cta-box h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; color: #fff; }
.vs-cta-box p { margin: 0 0 22px; font-size: 1.05rem; color: rgba(255,255,255,0.9); }
.vs-cta-box .vs-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.vs-cta-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px;
    font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.vs-cta-btn--solid { background: #fff; color: #9e2b48; }
.vs-cta-btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.vs-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.2); }

/* ---------- Caja autor ---------- */
.vs-author-box {
    display: flex; gap: 18px; align-items: flex-start; margin: 2.4em 0 1em;
    padding: 26px; background: #f8f9fb; border-radius: 16px; border: 1px solid #ececf1;
}
.vs-author-box .vs-author-avatar { width: 60px; height: 60px; font-size: 1.3rem; flex-shrink: 0; }
.vs-author-box h4 { margin: 0 0 4px; color: #14141f; font-size: 1.05rem; }
.vs-author-box .role { color: #9e2b48; font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; }
.vs-author-box p { margin: 0; color: #4b4b5a; font-size: 0.95rem; line-height: 1.6; }

/* ---------- FAQ del artículo (usa el JS .vs-faq-item existente) ---------- */
.vs-article-faq { margin: 2.4em 0; }
.vs-article-faq .vs-faq-item { border: 1px solid #ececf1; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.vs-article-faq .vs-faq-question {
    width: 100%; text-align: left; background: #fff; border: none; cursor: pointer;
    padding: 18px 22px; font-size: 1.05rem; font-weight: 700; color: #1a1a2e;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.vs-article-faq .vs-faq-question::after { content: "+"; color: #c4365a; font-size: 1.5rem; line-height: 1; transition: transform .3s ease; }
.vs-article-faq .vs-faq-item.active .vs-faq-question::after { transform: rotate(45deg); }
.vs-article-faq .vs-faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 22px; color: #4b4b5a; line-height: 1.7; }
.vs-article-faq .vs-faq-item.active .vs-faq-answer { max-height: 400px; padding: 0 22px 20px; }

@media (max-width: 600px) {
    .vs-cta-box { padding: 26px 20px; }
    .vs-author-box { flex-direction: column; }
    .vs-quote p { font-size: 1.1rem; }
}
