:root {
    --r27-noche:   #070b22;
    --r27-hueso:   #f5f2ea;
    --r27-calido:  #fbf7ef;
    --r27-tinta:   #0d1230;
    --r27-tinta-2: #4a5070;
    --r27-display: "Bricolage Grotesque", "Inter", sans-serif;
    --r27-serif:   "Instrument Serif", Georgia, serif;
}

body.blog-page {
    background:
        radial-gradient(ellipse 55% 40% at 85% 0%, rgba(41,121,255,.22), transparent 70%),
        radial-gradient(ellipse 45% 35% at 5% 5%, rgba(0,230,118,.12), transparent 70%),
        var(--r27-noche);
    background-attachment: scroll;
}
body.blog-page::before { display: none; }

.blog-page h1, .blog-page h2, .blog-page h3 { font-family: var(--r27-display); letter-spacing: -0.03em; }
.blog-page h1 { font-weight: 800; line-height: 1.02; }

/* Cabecera */
.blog-header { background: rgba(7,11,34,.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.1); }
.blog-brand span { font-family: var(--r27-display); font-weight: 800; letter-spacing: -0.02em; }
.blog-nav { gap: .2rem; }
.blog-nav a { border-radius: 100px; padding: .45rem .85rem; transition: background .2s, color .2s; }
.blog-nav a:hover { background: rgba(255,255,255,.07); }
.blog-nav a.blog-nav-active { background: rgba(0,230,118,.12); color: #00e676; }
.blog-nav a.r27-nav-campus { background: #00e676; color: #03150b; font-weight: 700; }
@media (max-width: 900px) {
    .blog-header-inner { flex-wrap: wrap; row-gap: .4rem; }
    .blog-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .3rem; }
    .blog-nav::-webkit-scrollbar { display: none; }
    .blog-nav a { white-space: nowrap; flex: none; }
}

/* Índice del blog */
.blog-index-header h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.blog-card {
    border-radius: 24px; border: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
    transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, background .35s;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(0,230,118,.4); background: linear-gradient(160deg, rgba(0,230,118,.1), rgba(255,255,255,.02)); }
.blog-card-title { font-family: var(--r27-display); font-weight: 700; letter-spacing: -0.02em; }
.blog-card-category, .article-category { border-radius: 100px; }

/* Artículo */
.article-header h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.article-subtitle, .article-lead { font-family: var(--r27-serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.4; color: rgba(255,255,255,.82); }
.article-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.1; margin-top: 2.6rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body blockquote { font-family: var(--r27-serif); font-style: italic; font-size: 1.3rem; border-left: 3px solid #00e676; }
.article-figure img, .article-body img { border-radius: 18px; }
.article-notice { border-radius: 18px; }
.article-cta-box {
    background: linear-gradient(160deg, #00e676 0%, #00c46a 45%, #00a3a3 100%) !important;
    color: #03150b !important; border: 0 !important; border-radius: 26px !important;
    box-shadow: 0 40px 70px -40px rgba(0,120,60,.8);
}
.article-cta-box * { color: #03150b !important; }
.article-cta-box h2, .article-cta-box h3 { font-family: var(--r27-display); letter-spacing: -0.03em; }
.article-cta-btn { background: var(--r27-tinta) !important; color: #fff !important; border-radius: 100px !important; border: 0 !important; }
.article-cta-box .article-cta-btn, .article-cta-box .article-cta-btn * { color: #fff !important; }
.article-author-card { border-radius: 22px; }
.share-btn { border-radius: 100px; }

/* FAQ de artículos (claro) */
.article-faq { background: var(--r27-calido); color: var(--r27-tinta); border-radius: 28px; padding: 2rem 1.6rem; }
.article-faq h2, .article-faq h3, .article-faq summary, .article-faq strong { color: var(--r27-tinta) !important; }
.article-faq p, .article-faq li { color: var(--r27-tinta-2) !important; }
.article-faq details { background: #fff; border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: .7rem; border: 1px solid #efe8d8; }

/* Pie */
.blog-footer { background: var(--r27-noche); border-top: 1px solid rgba(255,255,255,.1); }
.r27-redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0 0 1.4rem; }
.r27-red { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: #fff; padding: .85rem 1.4rem .85rem .85rem; border-radius: 100px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); transition: transform .25s, background .25s, border-color .25s; text-align: left; }
.r27-red:hover { transform: translateY(-3px); }
.r27-red svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; fill: #fff; flex: none; }
.r27-red.ig svg { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.r27-red.li svg { background: #0a66c2; }
.r27-red.ig:hover { border-color: rgba(238,42,123,.6); background: rgba(238,42,123,.08); }
.r27-red.li:hover { border-color: rgba(10,102,194,.7); background: rgba(10,102,194,.12); }
.r27-red span { font-family: var(--r27-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.r27-red small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: .76rem; color: rgba(255,255,255,.5); }

/* Consultoría estratégica */
.cs-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem) !important; line-height: 1 !important; }
.cs-hero h1 em { font-family: var(--r27-serif); font-style: italic; font-weight: 400; color: #00e676; }
.cs-kicker { border-radius: 100px !important; }
.cs-price { font-family: var(--r27-display) !important; font-weight: 800 !important; letter-spacing: -0.04em; }
.cs-cta {
    position: relative; overflow: hidden; border-radius: 100px !important;
    background: #00e676 !important; color: #03150b !important;
    box-shadow: 0 12px 40px -12px rgba(0,230,118,.8) !important;
}
.cs-cta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: r27-brillo 3.6s ease-in-out infinite; }
@keyframes r27-brillo { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cs-section {
    border-radius: 26px !important; border: 1px solid rgba(255,255,255,.1) !important;
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important;
}
.cs-section:nth-of-type(3) { background: var(--r27-calido) !important; color: var(--r27-tinta); border: 0 !important; }
.cs-section:nth-of-type(3) h2 { color: var(--r27-tinta) !important; }
.cs-section:nth-of-type(3) li, .cs-section:nth-of-type(3) b { color: var(--r27-tinta-2) !important; }
.cs-section:nth-of-type(3) b { color: var(--r27-tinta) !important; }
.cs-faq-item { border-radius: 16px !important; }
.cs-final {
    background: linear-gradient(160deg, #00e676 0%, #00c46a 45%, #00a3a3 100%) !important;
    border: 0 !important; border-radius: 28px !important; color: #03150b;
}
.cs-final h2 { color: #03150b !important; font-size: clamp(2rem, 5vw, 3rem) !important; }
.cs-final .cs-cta { background: var(--r27-tinta) !important; color: #fff !important; box-shadow: none !important; }

@media (prefers-reduced-motion: reduce) {
    .cs-cta::after { animation: none; }
}

.blog-nav a { white-space: nowrap; padding: .4rem .7rem; font-size: .88rem; }
.blog-header-inner { max-width: 1200px; }
.cs-section { padding: 1.8rem 1.6rem !important; margin-bottom: 1.1rem; }
.cs-section:nth-of-type(3) .cs-steps, .cs-section:nth-of-type(3) .cs-steps div, .cs-section:nth-of-type(3) .cs-steps li { color: var(--r27-tinta-2) !important; }
.cs-final { padding: 3rem 1.6rem !important; }
.cs-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.cs-cta--gs { background: #fff !important; color: var(--r27-tinta) !important; box-shadow: 0 12px 40px -16px rgba(255,255,255,.5) !important; }
.cs-final .cs-cta--gs { background: #fff !important; color: var(--r27-tinta) !important; }
.cs-price-note b { color: #fff; }
@media (max-width: 560px) { .cs-ctas .cs-cta { width: 100%; justify-content: center; } }
