/* MEDICORE ENTERPRISE · ATENEA / HESTIA Foundation */
.me-page-hero{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;background:linear-gradient(135deg,#0f172a,#0f766e);color:#fff;border-radius:28px;padding:1.65rem;margin-bottom:1rem;box-shadow:0 18px 45px rgba(15,23,42,.18)}
.me-page-hero h1{margin:.25rem 0 .35rem;font-size:2.2rem;letter-spacing:-.06em;color:#fff}.me-page-hero p{margin:0;max-width:780px;color:#dbeafe;line-height:1.45}.me-eyebrow{display:inline-flex;align-items:center;gap:.4rem;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.12);border-radius:999px;padding:.25rem .65rem;font-size:.76rem;font-weight:950;letter-spacing:.08em}.me-hero-actions{display:flex;gap:.65rem;flex-wrap:wrap;justify-content:flex-end}.me-btn,.me-mini-btn{border:0;border-radius:14px;background:linear-gradient(135deg,#14b8a6,#2563eb);color:#fff!important;padding:.68rem .95rem;font-weight:950;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;box-shadow:0 10px 22px rgba(14,165,167,.18)}.me-btn.ghost{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);box-shadow:none}.me-mini-btn{font-size:.82rem;padding:.45rem .65rem;border-radius:11px;box-shadow:none;background:#eaf2ff;color:#135fba!important}.me-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1rem}.me-col-3{grid-column:span 3}.me-col-4{grid-column:span 4}.me-col-5{grid-column:span 5}.me-col-7{grid-column:span 7}.me-col-8{grid-column:span 8}.me-card{background:#fff;border:1px solid #dbe5ef;border-radius:24px;padding:1.15rem;box-shadow:0 16px 40px rgba(15,23,42,.08);margin-bottom:1rem}.me-kpi{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:116px}.me-kpi strong{display:block;font-size:2rem;letter-spacing:-.06em;color:#0f172a;line-height:1}.me-kpi span{display:block;color:#64748b;font-weight:850;margin-top:.25rem}.me-kpi-icon{width:48px;height:48px;border-radius:18px;display:grid;place-items:center;background:#eff6ff;font-size:1.45rem}.me-muted{color:#64748b}.me-status{display:inline-flex;align-items:center;border-radius:999px;padding:.25rem .6rem;font-size:.78rem;font-weight:950;background:#e0f2fe;color:#0369a1;text-transform:capitalize}.me-status.ok{background:#dcfce7;color:#166534}.me-status.warn{background:#fef3c7;color:#92400e}.me-status.muted{background:#f1f5f9;color:#64748b}.me-table-wrap{overflow:auto}.me-table{width:100%;min-width:680px}.me-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.me-field.full{grid-column:1/-1}.me-field label{margin-top:0}.me-divider{height:1px;background:#dbe5ef;margin:1rem 0}.me-small{font-size:.9rem;color:#475569}.me-empty{padding:1rem;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;color:#64748b}
.hestia-hero{background:radial-gradient(circle at top right,rgba(20,184,166,.42),transparent 35%),linear-gradient(135deg,#06182a 0%,#0f172a 48%,#0f766e 100%)}.hestia-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.hestia-card-head h2,.me-card h2{margin:.1rem 0 .3rem;color:#0f172a;letter-spacing:-.035em}.hestia-builder-flow{display:grid;gap:.72rem}.hestia-block{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid #dbe5ef;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbff);padding:.9rem;transition:.15s ease}.hestia-block:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(15,23,42,.08)}.hestia-block.is-disabled{opacity:.72}.hestia-block-main{display:flex;align-items:center;gap:.8rem;min-width:0}.hestia-handle{width:34px;height:34px;border-radius:13px;display:grid;place-items:center;background:#eef6ff;color:#2563eb;font-weight:950}.hestia-icon{width:42px;height:42px;border-radius:16px;display:grid;place-items:center;background:#ecfdf5;font-size:1.2rem}.hestia-block strong{display:block;color:#0f172a;font-size:1rem}.hestia-block small{display:block;color:#475569;line-height:1.35;margin:.12rem 0}.hestia-block em{display:block;color:#94a3b8;font-size:.78rem;font-style:normal}.hestia-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.hestia-plan{line-height:1.75;margin-bottom:0;padding-left:1.25rem}
@media(max-width:1100px){.me-col-3,.me-col-4,.me-col-5,.me-col-7,.me-col-8{grid-column:span 12}.me-page-hero{flex-direction:column}.me-hero-actions{justify-content:flex-start}.hestia-block{align-items:flex-start;flex-direction:column}.hestia-actions{justify-content:flex-start}.me-form-grid{grid-template-columns:1fr}}
/* HESTIA Sprint 5.16 · Block Engine */
.hestia-component-mini{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:.45rem 0 .2rem;font-size:.78rem;color:#64748b}.hestia-component-mini span{background:#eef6ff;color:#2563eb;border-radius:999px;padding:.15rem .45rem;font-weight:950}.hestia-component-mini b{color:#0f172a}.hestia-component-mini em{font-style:normal;color:#94a3b8}.hestia-engine-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:.75rem 0 1rem}.hestia-engine-list div{border:1px solid #dbe5ef;background:#f8fafc;border-radius:18px;padding:.75rem;text-align:center}.hestia-engine-list strong{display:block;font-size:1.55rem;color:#0f172a;letter-spacing:-.05em}.hestia-engine-list span{display:block;color:#64748b;font-size:.78rem;font-weight:850}.hestia-component-preview{display:flex;gap:.7rem;align-items:flex-start;border:1px solid #dbe5ef;border-radius:18px;background:#fff;padding:.75rem}.hestia-component-preview-icon{width:38px;height:38px;border-radius:15px;display:grid;place-items:center;background:#ecfdf5}.hestia-component-preview strong,.hestia-component-preview small,.hestia-component-preview em{display:block}.hestia-component-preview small{color:#64748b}.hestia-component-preview em{font-style:normal;color:#94a3b8;font-size:.78rem}
/* HESTIA Sprint 5.17 · Theme Engine */
.hestia-theme-scope{font-family:var(--mc-font)}.hestia-theme-scope .me-page-hero{background:radial-gradient(circle at top right,color-mix(in srgb,var(--mc-primary) 42%,transparent),transparent 35%),linear-gradient(135deg,var(--mc-secondary) 0%,#0f172a 48%,var(--mc-primary) 100%);box-shadow:var(--mc-shadow)}.hestia-theme-scope .me-btn{background:linear-gradient(135deg,var(--mc-primary),var(--mc-accent))}.hestia-theme-scope .me-card{border-radius:var(--mc-radius);box-shadow:var(--mc-shadow)}.hestia-theme-card{overflow:hidden}.hestia-theme-swatches{display:grid;grid-template-columns:1fr;gap:.5rem;margin:.75rem 0 1rem}.hestia-theme-token{display:grid;grid-template-columns:28px 86px 1fr;align-items:center;gap:.5rem;border:1px solid #dbe5ef;background:#f8fafc;border-radius:15px;padding:.55rem}.hestia-theme-token span{width:24px;height:24px;border-radius:9px;border:1px solid rgba(15,23,42,.14)}.hestia-theme-token strong{font-size:.78rem;color:#0f172a;text-transform:uppercase}.hestia-theme-token small{font-size:.75rem;color:#64748b;word-break:break-word}.hestia-theme-sample{display:grid;gap:.55rem}.hestia-theme-sample button{border:0;border-radius:calc(var(--mc-radius) / 1.7);background:var(--mc-primary);color:#fff;font-weight:950;padding:.65rem .85rem}.hestia-theme-sample article{border:1px solid #dbe5ef;border-radius:var(--mc-radius);padding:.75rem;background:var(--mc-surface);color:var(--mc-text)}.hestia-theme-sample small{display:block;color:var(--mc-muted);margin-top:.15rem}

/* Sprint 5.18 - HESTIA Layout Manager */
.hestia-layout-card{overflow:hidden}.hestia-layout-map{display:grid;gap:.65rem}.hestia-layout-region{display:grid;grid-template-columns:42px 1fr auto;gap:.75rem;align-items:center;border:1px solid #dbe5ef;background:linear-gradient(180deg,#fff,#f8fafc);border-radius:18px;padding:.78rem}.hestia-layout-icon{width:42px;height:42px;border-radius:16px;display:grid;place-items:center;background:#eef6ff;font-size:1.15rem}.hestia-layout-region strong{display:block;color:#0f172a}.hestia-layout-region small{display:block;color:#64748b;line-height:1.35}.hestia-layout-region em{font-style:normal;color:#94a3b8;font-size:.78rem}@media(max-width:760px){.hestia-layout-region{grid-template-columns:42px 1fr}.hestia-layout-region .me-status{grid-column:1/-1;justify-self:start}}

/* Sprint 5.19 - HESTIA Menu Engine */
.hestia-menu-card{overflow:hidden}.hestia-menu-list{display:grid;gap:.55rem}.hestia-menu-item{display:grid;grid-template-columns:34px 1fr 42px auto;align-items:center;gap:.6rem;border:1px solid #dbe5ef;border-radius:16px;background:#fff;padding:.62rem}.hestia-menu-item.is-disabled{opacity:.62}.hestia-menu-item>span{width:34px;height:34px;border-radius:13px;background:#ecfdf5;display:grid;place-items:center}.hestia-menu-item strong{display:block;color:#0f172a}.hestia-menu-item small{display:block;color:#64748b}.hestia-menu-item em{font-style:normal;color:#94a3b8;font-size:.78rem;font-weight:900}@media(max-width:760px){.hestia-menu-item{grid-template-columns:34px 1fr}.hestia-menu-item em,.hestia-menu-item b{grid-column:2/-1;justify-self:start}}

/* Sprint 5.20 - HESTIA Page Engine */
.hestia-page-card{overflow:hidden}.hestia-page-health{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:.75rem 0 1rem}.hestia-page-health div{border:1px solid #dbe5ef;background:#f8fafc;border-radius:18px;padding:.75rem;text-align:center}.hestia-page-health strong{display:block;font-size:1.45rem;color:#0f172a;letter-spacing:-.045em}.hestia-page-health span{display:block;color:#64748b;font-size:.78rem;font-weight:850}.hestia-page-list{display:grid;gap:.65rem}.hestia-page-item{display:grid;grid-template-columns:1fr auto;gap:.75rem;align-items:center;border:1px solid #dbe5ef;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fafc);padding:.78rem}.hestia-page-item.is-disabled{opacity:.62}.hestia-page-item strong{display:block;color:#0f172a}.hestia-page-item small{display:block;color:#64748b}.hestia-page-item em{display:block;color:#94a3b8;font-size:.78rem;font-style:normal;line-height:1.35}.hestia-page-meta{display:grid;justify-items:end;gap:.25rem}.hestia-page-meta b{color:#0f172a;font-size:.8rem}@media(max-width:760px){.hestia-page-health{grid-template-columns:1fr}.hestia-page-item{grid-template-columns:1fr}.hestia-page-meta{justify-items:start}}

/* Sprint 5.21 - HESTIA Visual Builder */
.hestia-visual-card{overflow:hidden}.hestia-visual-health{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:.75rem 0 1rem}.hestia-visual-health div{border:1px solid #dbe5ef;background:#f8fafc;border-radius:18px;padding:.75rem;text-align:center}.hestia-visual-health strong{display:block;font-size:1.45rem;color:#0f172a;letter-spacing:-.045em}.hestia-visual-health span{display:block;color:#64748b;font-size:.78rem;font-weight:850}.hestia-visual-workspace{display:grid;gap:.8rem}.hestia-visual-page{border:1px solid #dbe5ef;border-radius:20px;background:#fff;padding:.8rem}.hestia-visual-page header{display:flex;justify-content:space-between;gap:.75rem;margin-bottom:.65rem}.hestia-visual-page header strong{color:#0f172a}.hestia-visual-page header small{color:#64748b}.hestia-visual-block{display:grid;grid-template-columns:44px 34px 1fr auto;align-items:center;gap:.6rem;border:1px dashed #cbd5e1;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fafc);padding:.6rem;margin:.5rem 0}.hestia-visual-block.is-disabled{opacity:.62}.hestia-visual-position{font-size:.78rem;font-weight:950;color:#2563eb;background:#eef6ff;border-radius:999px;padding:.18rem .5rem;text-align:center}.hestia-visual-block>b{width:34px;height:34px;border-radius:13px;background:#ecfdf5;display:grid;place-items:center}.hestia-visual-block strong{display:block;color:#0f172a}.hestia-visual-block small{display:block;color:#64748b}.hestia-visual-actions{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}.hestia-visual-actions button{border:1px solid #dbe5ef;background:#fff;border-radius:999px;padding:.28rem .55rem;font-size:.72rem;font-weight:900;color:#334155}.hestia-visual-actions button.is-disabled{opacity:.55}.hestia-visual-next{margin-top:.85rem;border:1px solid #dbe5ef;border-radius:18px;background:#f8fafc;padding:.75rem}.hestia-visual-next strong{display:block;color:#0f172a;margin-bottom:.35rem}.hestia-visual-next ul{margin:.2rem 0 0;padding-left:1.15rem;color:#64748b}@media(max-width:900px){.hestia-visual-block{grid-template-columns:44px 34px 1fr}.hestia-visual-actions{grid-column:1/-1;justify-content:flex-start}.hestia-visual-health{grid-template-columns:1fr}.hestia-visual-page header{display:block}}
.hestia-seo-card{border-color:#dbeafe}.hestia-seo-health{grid-template-columns:repeat(4,minmax(0,1fr))}.hestia-seo-item{background:linear-gradient(180deg,#fff,#f8fbff)}.hestia-seo-wins{margin-top:.85rem}.hestia-seo-wins ul{margin:.5rem 0 0;padding-left:1.1rem;color:#64748b}@media(max-width:760px){.hestia-seo-health{grid-template-columns:1fr 1fr}}

/* ==========================================================
   MEDICORE UX GLOBAL 1.0 · Action System
   Base visual reusable para navegación y acciones operativas.
   ========================================================== */
.mc-actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.mc-btn{--mc-btn-bg:#fff;--mc-btn-color:#0f172a;--mc-btn-border:#cbd5e1;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:42px;padding:.62rem .95rem;border:1px solid var(--mc-btn-border);border-radius:11px;background:var(--mc-btn-bg);color:var(--mc-btn-color)!important;text-decoration:none!important;font:inherit;font-weight:850;line-height:1.1;cursor:pointer;box-shadow:0 4px 10px rgba(15,23,42,.06);transition:transform .14s ease,box-shadow .14s ease,filter .14s ease,border-color .14s ease}
.mc-btn:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(15,23,42,.1);filter:brightness(.985);text-decoration:none!important}
.mc-btn:focus-visible{outline:3px solid rgba(14,165,233,.28);outline-offset:2px}
.mc-btn:disabled,.mc-btn[aria-disabled="true"],.mc-btn.is-disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none}
.mc-btn--primary{--mc-btn-bg:#0f9eac;--mc-btn-color:#fff;--mc-btn-border:#0f9eac}
.mc-btn--secondary{--mc-btn-bg:#2563eb;--mc-btn-color:#fff;--mc-btn-border:#2563eb}
.mc-btn--success{--mc-btn-bg:#16a34a;--mc-btn-color:#fff;--mc-btn-border:#16a34a}
.mc-btn--warning{--mc-btn-bg:#f59e0b;--mc-btn-color:#422006;--mc-btn-border:#f59e0b}
.mc-btn--danger{--mc-btn-bg:#dc2626;--mc-btn-color:#fff;--mc-btn-border:#dc2626}
.mc-btn--nav{--mc-btn-bg:#f8fafc;--mc-btn-color:#0f5f79;--mc-btn-border:#bdd4e2}
.mc-btn--nav:hover{--mc-btn-bg:#eef8fb;--mc-btn-border:#78b6ca}
.mc-btn--ghost{--mc-btn-bg:#fff;--mc-btn-color:#334155;--mc-btn-border:#d8e2ea;box-shadow:none}
.mc-btn--sm{min-height:36px;padding:.48rem .72rem;border-radius:9px;font-size:.88rem}
.mc-btn--lg{min-height:48px;padding:.75rem 1.15rem;border-radius:12px}
.mc-btn-icon{font-size:1rem;line-height:1;flex:0 0 auto}
.mc-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}
@media(max-width:700px){.mc-page-actions,.mc-actions{align-items:stretch}.mc-page-actions .mc-btn,.mc-actions .mc-btn{width:100%}}
