:root{
  --navy:#082f58;
  --navy-2:#0e416f;
  --green:#29a844;
  --lime:#58c91f;
  --teal:#008d98;
  --muted:#5b7188;
  --line:#d8e5ed;
  --soft:#f7fafb;
  --soft-green:#f1faf2;
  --danger:#d44a3a;
  --shadow:0 14px 38px rgba(14,65,111,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#102a43;background:#fff}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
.container{width:min(1180px,calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid #e7eef3}
.header-inner{height:80px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.2px;color:var(--navy);font-size:22px}
.brand-mark{width:48px;height:48px;border-radius:50%;border:4px solid var(--navy-2);position:relative;background:linear-gradient(140deg,#fff 45%,#eaf8ee)}
.brand-mark:before{content:"";position:absolute;width:28px;height:6px;background:var(--green);border-radius:10px;transform:rotate(-38deg);left:7px;top:19px}
.brand-mark:after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:var(--navy-2);left:17px;top:8px;box-shadow:10px 19px 0 -1px var(--lime)}
.brand span{color:var(--green)}
.nav{display:flex;align-items:center;gap:28px;font-size:14px;color:#263f5b}
.nav a{padding:28px 2px 22px;border-bottom:3px solid transparent}
.nav a.active{color:var(--green);border-bottom-color:var(--green);font-weight:700}
.btn{border:0;border-radius:10px;padding:13px 18px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn-primary{color:#fff;background:linear-gradient(115deg,var(--teal),#21b691,var(--lime));box-shadow:0 8px 20px rgba(0,141,152,.2)}
.btn-outline{background:#fff;color:var(--navy);border:1px solid #9db4c7}
.btn-soft{background:#edf4f7;color:var(--navy)}
.btn-danger{background:#fff;color:var(--danger);border:1px solid #f2c7c1}
.hero-blog{padding:72px 0 40px;background:linear-gradient(#fff,#fbfdfd)}
.eyebrow{color:var(--green);letter-spacing:8px;font-weight:800;text-transform:uppercase;font-size:13px}
.hero-blog h1{font-size:clamp(40px,6vw,72px);line-height:1.02;color:var(--navy);margin:12px 0 16px;max-width:900px}
.hero-blog p{font-size:20px;color:var(--muted);max-width:760px;line-height:1.55}
.blog-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,.7fr);gap:42px;padding:20px 0 70px}
.card{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.featured-card{overflow:hidden}
.featured-image-wrap{height:520px;background:#0c1720;display:flex;align-items:center;justify-content:center;overflow:hidden}
.featured-card img{width:100%;height:100%;object-fit:contain;display:block}
.featured-body{padding:28px}
.category{color:var(--green);font-weight:800;font-size:12px;letter-spacing:1.2px;text-transform:uppercase}
.featured-body h2{font-size:36px;line-height:1.13;color:var(--navy);margin:8px 0 10px}
.excerpt{color:var(--muted);font-size:17px;line-height:1.6}
.meta{display:flex;flex-wrap:wrap;gap:16px;color:#73869a;font-size:13px;margin-top:18px}
.side-title{color:var(--navy);font-size:18px;margin:0 0 14px}
.related{display:grid;gap:16px}
.related-card{display:grid;grid-template-columns:100px 1fr;gap:14px;padding:12px}
.related-card img{width:100px;height:95px;object-fit:cover;border-radius:10px}
.related-card h3{margin:4px 0 6px;color:var(--navy);font-size:16px;line-height:1.2}
.related-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
.cta-card{padding:24px;margin-top:18px;background:var(--soft-green)}
.cta-card h3{color:var(--navy);font-size:20px;margin:0 0 6px}
.cta-card strong{color:var(--green)}
.article-list{padding:20px 0 80px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}
.section-head h2{font-size:34px;color:var(--navy);margin:0}
.cards-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.post-card{overflow:hidden}
.post-card img{width:100%;height:210px;object-fit:cover;display:block}
.post-card .body{padding:20px}
.post-card h3{color:var(--navy);font-size:21px;line-height:1.25;margin:8px 0 8px}
.post-card p{color:var(--muted);line-height:1.5;font-size:14px}
footer{border-top:1px solid #e5edf2;padding:35px 0;color:#5f7185;font-size:13px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:30px}
.footer-grid h4{color:var(--navy);margin:0 0 10px}
/* Article */
.article-wrap{display:grid;grid-template-columns:minmax(0,1.6fr) 340px;gap:50px;padding:54px 0 70px}
.article-main h1{font-size:48px;line-height:1.05;color:#0b1f54;margin:8px 0 14px}
.article-main .lead{font-size:18px;color:var(--muted);line-height:1.5}
.article-photo-frame{background:#0c1720;border-radius:14px;margin:20px 0 28px;display:flex;justify-content:center;overflow:hidden}
.hero-img{width:100%;max-height:680px;object-fit:contain;display:block}
.article-content{font-size:17px;line-height:1.72;color:#263b52}
.article-content h2{color:var(--navy);margin-top:34px;font-size:28px}
.article-content blockquote{margin:28px 0;padding:20px 24px;border-radius:12px;background:#f2faf4;border:1px solid #cfe8d4;color:var(--navy);font-size:20px;font-weight:700;text-align:center}
.share-row{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:28px}
.circle{width:38px;height:38px;border-radius:50%;border:1px solid #cddbe5;display:grid;place-items:center;font-weight:800;color:var(--navy)}
/* Admin */
.admin-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh;background:#f8fbfc}
.sidebar{background:#fff;border-right:1px solid #e3ebf0;padding:24px 18px;display:flex;flex-direction:column;gap:24px}
.sidebar .brand{font-size:18px}
.sidebar nav{display:grid;gap:4px}
.sidebar nav a{padding:11px 12px;border-radius:9px;color:#566b80;font-size:14px}
.sidebar nav a.active,.sidebar nav a:hover{background:#f0f8f1;color:var(--green);font-weight:700}
.side-note{margin-top:auto;background:#f3faf4;border:1px solid #d8ecdc;border-radius:14px;padding:18px;text-align:center;color:#526979;font-size:13px;line-height:1.5}
.admin-main{padding:28px 34px 60px}
.admin-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.admin-top h1{margin:0;color:#0b1f54;font-size:30px}.admin-top p{margin:5px 0 0;color:#6c8092}
.admin-actions{display:flex;gap:10px}
.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px}
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.field{margin-bottom:16px}.field label{display:block;font-size:13px;color:#183d5d;font-weight:800;margin-bottom:7px}
.field input,.field textarea,.field select{width:100%;border:1px solid #cbdce7;border-radius:9px;padding:12px 13px;background:#fff;color:#163750;outline:none}
.field textarea{min-height:120px;resize:vertical;line-height:1.55}
.field textarea.content{min-height:250px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.image-drop{border:1.5px dashed #a9bdcb;border-radius:10px;padding:14px;text-align:center;background:#fbfdfd}
.image-preview{width:100%;height:170px;object-fit:cover;border-radius:8px;margin-top:10px;display:none}
.side-panel h3{color:#0b1f54;margin:0 0 14px}
.status-pill{display:inline-flex;padding:6px 10px;border-radius:999px;background:#edf3f5;color:#6d7f8f;font-size:12px;font-weight:800}
.seo-good{display:inline-block;background:#e8f7eb;color:#21873a;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800}
.progress{height:8px;background:#e7f1e8;border-radius:999px;overflow:hidden;margin:10px 0}.progress span{display:block;width:78%;height:100%;background:linear-gradient(90deg,#2faf45,#66c738)}
.slug-preview{font-size:11px;color:#778b9d;word-break:break-all}
.toast{position:fixed;right:24px;bottom:24px;background:#123f63;color:#fff;padding:14px 18px;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.18);opacity:0;transform:translateY(10px);pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:none}
@media(max-width:900px){
  .nav{display:none}.blog-grid,.article-wrap,.editor-grid{grid-template-columns:1fr}.cards-3{grid-template-columns:1fr 1fr}.admin-shell{grid-template-columns:1fr}.sidebar{display:none}.article-main h1{font-size:38px}.featured-card img{height:320px}.footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){.container{width:min(100% - 24px,1180px)}.header-inner{height:68px}.hero-blog{padding-top:42px}.hero-blog h1{font-size:42px}.cards-3{grid-template-columns:1fr}.admin-main{padding:18px 14px}.admin-top{align-items:flex-start;flex-direction:column}.admin-actions{width:100%}.admin-actions .btn{flex:1}.two-col{grid-template-columns:1fr}.featured-body h2{font-size:28px}.article-main h1{font-size:33px}.footer-grid{grid-template-columns:1fr}.article-wrap{padding-top:28px}}

/* Real EjeNova360 branding */
.brand-image{gap:0;display:flex;align-items:center}
.brand-image img{height:62px;width:auto;display:block;object-fit:contain}
.footer-logo{height:82px;width:auto;display:block;object-fit:contain;margin-bottom:8px}
.admin-logo{display:block;text-align:center;padding:4px 0 12px}
.admin-logo img{width:170px;max-width:100%;height:auto;display:block;margin:auto}
.admin-title-row{display:flex;align-items:center;gap:14px}
.admin-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;object-position:center 28%;border:2px solid #dbe8ef}
.author-card{padding:14px;display:flex;gap:14px;align-items:center;margin-bottom:18px}
.author-card>img{width:78px;height:78px;border-radius:14px;object-fit:cover;object-position:center 26%;flex:0 0 auto}
.author-card h3{margin:4px 0 6px;color:var(--navy);font-size:19px}
.author-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.author-card-vertical{display:block;padding:18px}
.author-card-vertical>img{width:100%;height:210px;border-radius:12px;object-fit:cover;object-position:center 28%;margin-bottom:14px}
.article-author-row{display:flex;align-items:center;gap:12px;margin:16px 0 10px}
.article-author-row>img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:center 28%;border:1px solid #d5e2ea}
.article-author-row .meta{margin-top:0}
.steps-list{counter-reset:steps;list-style:none;padding:0;margin:20px 0;display:grid;gap:8px}
.steps-list li{counter-increment:steps;position:relative;padding:13px 16px 13px 58px;background:#f7fafb;border:1px solid var(--line);border-radius:10px}
.steps-list li:before{content:counter(steps);position:absolute;left:0;top:0;bottom:0;width:42px;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:800;border-radius:10px 0 0 10px}
.closing-line{text-align:center;color:var(--teal);font-size:21px;margin-top:28px}
.empty-state{grid-column:1/-1;padding:28px;border:1px dashed #bfd0dc;border-radius:14px;color:var(--muted);background:#fbfdfd;text-align:center}
.blog-aside{min-width:0}
@media(max-width:900px){.brand-image img{height:54px}.featured-image-wrap{height:440px}.author-card-vertical>img{height:300px}}
@media(max-width:620px){.brand-image img{height:48px}.featured-image-wrap{height:360px}.article-photo-frame{margin-top:14px}.hero-img{max-height:560px}.admin-title-row{align-items:flex-start}.admin-avatar{width:42px;height:42px}.author-card-vertical>img{height:260px}}


/* v3 adjustments requested 2026-08-31 */
.header-inner{height:118px}
.brand-image img{width:170px;height:auto;max-height:104px;object-fit:contain}
.featured-image-wrap{height:600px;background:#fff}
.featured-card img{width:100%;height:100%;object-fit:cover;object-position:center center}
.article-photo-frame{background:#fff;height:720px}
.hero-img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center center}
@media(max-width:900px){
  .header-inner{height:104px}
  .brand-image img{width:150px;height:auto;max-height:92px}
  .featured-image-wrap{height:520px}
  .article-photo-frame{height:620px}
}
@media(max-width:620px){
  .header-inner{height:92px}
  .brand-image img{width:132px;height:auto;max-height:82px}
  .featured-image-wrap{height:420px}
  .article-photo-frame{height:500px}
}


/* v4 adjustments requested 2026-08-31 */
/* Same logo size as admin panel */
.site-header .brand-image img{width:170px;height:auto;max-height:none;object-fit:contain}
/* Show Hans image complete, slightly smaller, without dark side bands */
.featured-image-wrap{height:auto;min-height:0;background:#fff;padding:22px 18px}
.featured-card img{width:auto;height:auto;max-width:100%;max-height:650px;object-fit:contain;object-position:center center;margin:0 auto;border-radius:12px}
.article-photo-frame{height:auto;min-height:0;background:#fff;padding:10px 0}
.hero-img{width:auto;height:auto;max-width:100%;max-height:620px;object-fit:contain;object-position:center center;margin:0 auto;border-radius:12px}
@media(max-width:900px){
  .site-header .brand-image img{width:170px;height:auto;max-height:none}
  .featured-image-wrap{height:auto;padding:16px 10px}
  .featured-card img{max-height:570px}
  .article-photo-frame{height:auto}
  .hero-img{max-height:560px}
}
@media(max-width:620px){
  .site-header .brand-image img{width:145px;height:auto;max-height:none}
  .featured-card img{max-height:480px}
  .hero-img{max-height:500px}
}

/* v5 footer logo adjustment requested 2026-08-31 */
.footer-logo{width:170px;height:auto;max-height:none;object-fit:contain;margin-bottom:8px}
@media(max-width:620px){.footer-logo{width:145px;height:auto;max-height:none}}


/* v7 - editor enriquecido + próximo artículo */
.editor-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px;border:1px solid #cbdce7;border-bottom:0;border-radius:9px 9px 0 0;background:#f7fafb}
.format-btn{min-width:34px;height:32px;border:1px solid #cbdce7;border-radius:6px;background:#fff;color:#123f63;font-weight:700;cursor:pointer;padding:0 9px}
.format-btn:hover{background:#edf6f8;border-color:#9fb9ca}
.toolbar-sep{width:1px;height:24px;background:#d6e2e9;margin:0 2px}
.rich-editor{width:100%;min-height:235px;max-height:380px;overflow:auto;border:1px solid #cbdce7;border-radius:0 0 9px 9px;padding:14px;background:#fff;color:#163750;line-height:1.58;outline:none}
.rich-editor:empty:before{content:attr(data-placeholder);color:#8a9aaa;pointer-events:none}
.rich-editor h2{color:var(--navy);font-size:22px;margin:18px 0 8px}
.rich-editor blockquote{margin:16px 0;padding:12px 16px;background:#f2faf4;border-left:4px solid var(--green);color:var(--navy)}
.field-help{display:block;color:#768b9d;font-size:11px;line-height:1.4;margin-top:6px}
.next-article-box{margin:34px 0 8px;padding:20px 22px;border:1px solid #cfe8d4;background:#f3faf4;border-radius:12px;color:var(--navy)}
.next-article-box span{display:block;color:var(--green);font-size:12px;font-weight:800;letter-spacing:1.4px;margin-bottom:7px}
.next-article-box strong{display:block;font-size:21px;line-height:1.3}

/* v8 - admin compact excerpt */
#excerpt{min-height:64px;height:64px;resize:vertical}
#seoDescription{min-height:76px;height:76px;resize:vertical}

/* v8 - reading progress (private analytics, no public counter) */
.read-progress{position:fixed;left:0;top:0;height:3px;width:0;background:var(--green);z-index:9999;transition:width .15s linear;pointer-events:none}


/* Suscripción al Blog EjeNova360 */
.newsletter-card{margin:34px 0 46px;padding:28px 30px;border:1px solid #cfe8d4;border-radius:18px;background:#f3faf4;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.75fr);gap:28px;align-items:center}
.newsletter-card h2{margin:6px 0 8px;color:var(--navy);font-size:28px;line-height:1.18}
.newsletter-card p{margin:0;color:var(--muted);line-height:1.5}
.newsletter-form{display:grid;gap:10px}
.newsletter-form input[type="email"]{width:100%;border:1px solid #bcd2df;border-radius:9px;padding:12px 13px;background:#fff;color:#163750;outline:none}
.newsletter-consent{display:flex;gap:8px;align-items:flex-start;color:#526979;font-size:12px;line-height:1.35}
.newsletter-consent input{margin-top:2px}
.newsletter-status{min-height:18px;color:#276a38;font-size:12px;font-weight:700}
@media(max-width:760px){.newsletter-card{grid-template-columns:1fr;padding:22px 18px}.newsletter-card h2{font-size:24px}}

.share-btn{background:#fff;cursor:pointer;font-family:inherit;padding:0}
.share-btn:hover{background:#f3faf4;border-color:#9fcdb2}
