:root {
  --wine: #8e1730;
  --wine-dark: #681021;
  --wine-soft: #f8eef1;
  --navy: #143b58;
  --blue: #1a668f;
  --gold: #d49a2f;
  --ink: #1d2935;
  --muted: #62717d;
  --line: #e4e9ed;
  --surface: #ffffff;
  --surface-soft: #f5f7f9;
  --shadow: 0 18px 45px rgba(17, 35, 52, .10);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
.page-top-anchor { position:absolute; top:0; left:0; width:1px; height:1px; pointer-events:none; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.top-strip { height: 5px; background: linear-gradient(90deg, var(--wine), var(--gold), var(--navy)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228,233,237,.9);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--wine); color: #fff; font-weight: 800; letter-spacing: .5px; box-shadow: 0 8px 18px rgba(142,23,48,.22);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-kicker { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.brand-copy strong { font-size: 1rem; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 11px 13px; border-radius: 9px; color: #3a4854; font-size: .94rem; font-weight: 600; }
.main-nav a:hover { color: var(--wine); background: var(--wine-soft); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; }

.hero { position: relative; min-height: 550px; overflow: hidden; background: linear-gradient(120deg, #f9f4f5 0%, #fff 48%, #eef5f8 100%); }
.hero::before { content:""; position:absolute; width:430px; height:430px; border-radius:50%; background:rgba(142,23,48,.045); right:-170px; top:-190px; }
.hero-slide { display: none; min-height: 550px; }
.hero-slide.active { display: block; animation: slideIn .5s ease; }
@keyframes slideIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }
.hero-grid { min-height: 550px; display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap:70px; padding-top: 35px; padding-bottom: 65px; }
.eyebrow, .section-kicker { color: var(--wine); text-transform: uppercase; font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.hero-copy h1 { margin: 14px 0 18px; font-size: clamp(2.45rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; max-width: 780px; }
.hero-copy p { max-width: 690px; font-size: 1.09rem; color: var(--muted); margin:0 0 30px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px; border-radius:10px; font-weight:700; }
.btn-primary { background:var(--wine); color:#fff; box-shadow:0 10px 22px rgba(142,23,48,.2); }
.btn-primary:hover { background:var(--wine-dark); }
.btn-secondary { background:#fff; border:1px solid var(--line); }
.btn-secondary:hover { border-color:var(--wine); color:var(--wine); }
.hero-visual { position:relative; min-height:380px; display:grid; place-items:center; }
.visual-card { position:relative; z-index:3; }
.visual-card-main { width:min(420px, 100%); min-height:310px; padding:30px; background:linear-gradient(150deg,#7b1026,#a3203e); color:#fff; border-radius:26px; box-shadow:0 28px 65px rgba(85,20,36,.24); overflow:hidden; }
.visual-card-main::after { content:""; position:absolute; width:180px; height:180px; border-radius:50%; background:rgba(255,255,255,.08); right:-65px; top:-60px; }
.visual-card-main > span { font-size:.85rem; text-transform:uppercase; letter-spacing:.11em; font-weight:700; opacity:.88; }
.mini-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:38px 0 28px; }
.mini-kpis div { padding:14px 8px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); border-radius:12px; text-align:center; }
.mini-kpis b { display:block; font-size:1.65rem; line-height:1.1; }
.mini-kpis small { opacity:.78; }
.chart-bars { height:105px; display:flex; align-items:flex-end; gap:10px; }
.chart-bars i { flex:1; display:block; background:rgba(255,255,255,.82); border-radius:6px 6px 2px 2px; }
.accent-blue { background:linear-gradient(150deg,#143b58,#1b6f9b); }
.accent-gold { background:linear-gradient(150deg,#7b4f0c,#d49a2f); }
.line-chart { color:#fff; margin:55px 0 20px; }
.line-chart svg { width:100%; height:130px; }
.donut { width:145px; height:145px; border-radius:50%; margin:42px auto 24px; background:conic-gradient(#fff 0 76%, rgba(255,255,255,.24) 76% 100%); display:grid; place-items:center; }
.donut::before { content:""; position:absolute; width:92px; height:92px; background:#a8751d; border-radius:50%; }
.donut span { position:relative; z-index:2; font-weight:900; font-size:1.35rem; }
.visual-orbit { position:absolute; border:1px solid rgba(20,59,88,.12); border-radius:50%; }
.orbit-a { width:350px; height:350px; }
.orbit-b { width:470px; height:470px; }
.slider-controls { position:absolute; left:50%; bottom:24px; transform:translateX(-50%); display:flex; gap:8px; }
.slide-dot { width:10px; height:10px; padding:0; border:0; border-radius:50%; background:#c9d1d8; cursor:pointer; }
.slide-dot.active { width:30px; border-radius:8px; background:var(--wine); }

.quick-links, .about-section, .norm-section { padding: 92px 0; }
.section-heading { max-width:760px; margin-bottom:36px; }
.section-heading h2, .about-copy h2 { font-size:clamp(2rem,4vw,3rem); line-height:1.12; margin:8px 0 13px; letter-spacing:-.03em; }
.section-heading p, .about-copy p { color:var(--muted); margin:0; }
.area-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.area-card { position:relative; min-height:330px; padding:27px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; transition:.25s ease; }
.area-card:hover { transform:translateY(-6px); box-shadow:var(--shadow); border-color:transparent; }
.card-icon { width:58px; height:58px; border-radius:15px; display:grid; place-items:center; color:#fff; font-weight:800; margin-bottom:24px; }
.demographic { background:var(--navy); }
.epidemiology { background:var(--wine); }
.services { background:var(--blue); }
.admin { background:var(--gold); }
.area-card h3 { font-size:1.28rem; line-height:1.25; margin:0 0 12px; }
.area-card p { color:var(--muted); font-size:.94rem; }
.text-link { position:absolute; left:27px; bottom:26px; color:var(--wine); font-weight:700; font-size:.92rem; }
.text-link span { margin-left:5px; }

.dashboard-section { padding:92px 0; background:linear-gradient(125deg,#102e43,#173f59 58%,#6d1730 140%); color:#fff; }
.heading-light .section-kicker { color:#f0c9d2; }
.heading-light p { color:#c7d3dc; }
.dashboard-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.dashboard-card { min-height:300px; padding:27px; border-radius:18px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.07); transition:.25s ease; }
.dashboard-card:hover { background:rgba(255,255,255,.12); transform:translateY(-5px); }
.dashboard-tag { display:inline-block; padding:6px 9px; border-radius:7px; background:rgba(255,255,255,.12); font-size:.75rem; text-transform:uppercase; letter-spacing:.07em; }
.dashboard-card h3 { font-size:1.5rem; margin:34px 0 12px; }
.dashboard-card p { color:#c7d3dc; font-size:.93rem; }
.dashboard-cta { display:block; margin-top:30px; font-weight:700; color:#fff; }

.about-section { background:#f7f9fa; }
.about-grid { display:grid; grid-template-columns:.75fr 1.25fr; align-items:center; gap:80px; }
.about-badge { min-height:380px; display:grid; place-items:center; position:relative; }
.badge-ring { position:absolute; width:320px; height:320px; border-radius:50%; border:38px solid #e6edf1; border-top-color:var(--wine); border-right-color:var(--navy); transform:rotate(18deg); }
.badge-center { width:205px; height:205px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#fff; box-shadow:var(--shadow); text-align:center; position:relative; z-index:2; }
.badge-center strong { color:var(--wine); font-size:2.7rem; line-height:1; }
.badge-center span { color:var(--muted); font-size:.85rem; margin-top:8px; }
.about-copy p + p { margin-top:12px; }
.about-points { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:30px; }
.about-points div { display:flex; align-items:center; gap:12px; padding:15px; border:1px solid var(--line); background:#fff; border-radius:11px; }
.about-points b { color:var(--wine); font-size:1.2rem; }
.about-points span { font-weight:600; font-size:.92rem; }

.norm-table-wrap { border:1px solid var(--line); border-radius:16px; overflow:auto; background:#fff; box-shadow:0 10px 30px rgba(17,35,52,.06); }
.norm-table { width:100%; border-collapse:collapse; min-width:760px; }
.norm-table th { background:var(--navy); color:#fff; text-align:left; padding:16px 18px; font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; }
.norm-table td { padding:18px; border-bottom:1px solid var(--line); vertical-align:top; }
.norm-table tr:last-child td { border-bottom:0; }
.norm-table td:first-child { font-weight:800; color:var(--wine); }
.doc-btn { border:0; border-radius:8px; background:var(--wine-soft); color:var(--wine); font-weight:700; padding:8px 11px; cursor:pointer; white-space:nowrap; }
.doc-btn:hover { background:var(--wine); color:#fff; }

.site-footer { background:#101c25; color:#fff; }
.footer-grid { display:grid; grid-template-columns:1.4fr .7fr 1fr; gap:60px; padding:58px 0; }
.footer-brand { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand span { width:42px; height:42px; display:grid; place-items:center; border-radius:10px; background:var(--wine); font-weight:800; }
.footer-grid p { color:#aab7c0; margin:6px 0; font-size:.92rem; }
.footer-grid h4 { margin:0 0 14px; }
.footer-grid a { display:block; color:#c5d0d7; margin:7px 0; font-size:.92rem; }
.footer-grid a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); color:#8697a3; font-size:.84rem; padding:18px 0; }

@media (max-width: 1000px) {
  .main-nav { position:absolute; top:82px; left:0; right:0; display:none; flex-direction:column; align-items:stretch; background:#fff; border-bottom:1px solid var(--line); padding:12px 20px 20px; box-shadow:0 15px 28px rgba(15,28,38,.08); }
  .main-nav.open { display:flex; }
  .menu-toggle { display:block; }
  .hero-grid { grid-template-columns:1fr; gap:20px; padding-top:65px; }
  .hero-copy { text-align:center; }
  .hero-copy p { margin-left:auto; margin-right:auto; }
  .hero-actions { justify-content:center; }
  .hero-visual { min-height:330px; }
  .area-grid, .dashboard-grid { grid-template-columns:repeat(2,1fr); }
  .about-grid { grid-template-columns:1fr; gap:25px; }
  .about-badge { min-height:330px; }
}

@media (max-width: 640px) {
  .container { width:min(var(--container), calc(100% - 26px)); }
  .header-inner { min-height:72px; }
  .brand-kicker { display:none; }
  .brand-copy strong { font-size:.85rem; max-width:205px; }
  .brand-mark { width:44px; height:44px; }
  .main-nav { top:72px; }
  .hero, .hero-slide, .hero-grid { min-height:auto; }
  .hero-grid { padding-top:60px; padding-bottom:70px; }
  .hero-copy h1 { font-size:2.35rem; }
  .hero-visual { min-height:295px; }
  .visual-card-main { min-height:270px; padding:24px; }
  .orbit-b { width:340px; height:340px; }
  .orbit-a { width:270px; height:270px; }
  .mini-kpis { margin-top:28px; }
  .quick-links, .about-section, .norm-section, .dashboard-section { padding:68px 0; }
  .area-grid, .dashboard-grid, .about-points, .footer-grid { grid-template-columns:1fr; }
  .area-card { min-height:285px; }
  .footer-grid { gap:28px; }
  .badge-ring { width:270px; height:270px; border-width:32px; }
  .badge-center { width:175px; height:175px; }
}

/* =========================================================
   PÁGINA INTERNA DE DASHBOARD - extensión de la V1
   Mantiene la identidad visual de la portada original.
   ========================================================= */
.nav-current { color: var(--wine) !important; background: var(--wine-soft); }
.dashboard-page-v1 { background: #f7f9fa; }
.dashboard-main-v1 { padding: 32px 0 78px; min-height: 70vh; }
.breadcrumb-v1 { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-bottom:26px; color:var(--muted); font-size:.9rem; }
.breadcrumb-v1 a { color:var(--blue); font-weight:600; }
.breadcrumb-v1 a:hover { color:var(--wine); }
.breadcrumb-v1 span:last-child { color:var(--ink); font-weight:600; }
.dashboard-heading-v1 { display:flex; justify-content:space-between; gap:34px; align-items:flex-end; margin-bottom:28px; }
.dashboard-heading-v1 h1 { margin:8px 0 8px; font-size:clamp(2rem,4vw,3.25rem); line-height:1.08; letter-spacing:-.035em; }
.dashboard-heading-v1 p { margin:0; color:var(--muted); max-width:820px; }
.back-dashboard-link { flex:0 0 auto; color:var(--wine); font-weight:700; border:1px solid #ead7dc; background:#fff; padding:10px 14px; border-radius:9px; }
.back-dashboard-link:hover { background:var(--wine-soft); }
.tableau-frame-v1 { position:relative; min-height:760px; background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:var(--shadow); }
.tableau-mount-v1 { width:100%; min-height:760px; background:#fff; }
.tableau-mount-v1 tableau-viz { display:block; width:100%; min-height:760px; }
.tableau-placeholder-v1 { position:absolute; inset:0; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:40px; background:linear-gradient(145deg,#fff 0%,#f8fafb 55%,#f8eef1 150%); color:var(--muted); }
.tableau-placeholder-v1 strong { color:var(--ink); font-size:1.15rem; margin-top:4px; }
.tableau-placeholder-v1 p { max-width:650px; margin:4px 0 0; }
.tableau-placeholder-v1.is-hidden { display:none; }
.tableau-loader-v1 { width:54px; height:54px; border-radius:50%; border:5px solid #e5eaee; border-top-color:var(--wine); animation:tableauSpin 1s linear infinite; margin-bottom:10px; }
.tableau-placeholder-v1.is-placeholder .tableau-loader-v1 { animation:none; border-color:#e6e9ec; border-top-color:var(--wine); position:relative; }
.tableau-placeholder-v1.is-placeholder .tableau-loader-v1::after { content:"T"; position:absolute; inset:0; display:grid; place-items:center; font-weight:900; color:var(--wine); font-size:1.25rem; }
.tableau-help-v1 { margin-top:18px; border-left:5px solid var(--wine); background:#fff; border-radius:0 10px 10px 0; padding:15px 18px; color:var(--muted); box-shadow:0 8px 24px rgba(17,35,52,.05); }
.tableau-help-v1 strong { color:var(--ink); }
.tableau-help-v1 code { background:var(--surface-soft); color:var(--wine); border:1px solid var(--line); border-radius:5px; padding:2px 5px; }
@keyframes tableauSpin { to { transform:rotate(360deg); } }

@media (max-width: 800px) {
  .dashboard-heading-v1 { align-items:flex-start; flex-direction:column; }
  .tableau-frame-v1, .tableau-mount-v1, .tableau-mount-v1 tableau-viz { min-height:650px; }
}

/* =========================================================
   EXTENSIONES V1 - PORTAL COMPLETO
   ========================================================= */
.systems-strip { padding: 42px 0 48px; border-bottom:1px solid var(--line); background:#fff; }
.systems-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.systems-head h2 { margin:5px 0 0; font-size:1.6rem; letter-spacing:-.02em; }
.systems-controls { display:flex; gap:8px; }
.systems-controls button {
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  font-size:0;
  cursor:pointer;
  display:grid;
  place-items:center;
  padding:0;
}
.systems-controls button::before {
  font-size:1.5rem;
  line-height:1;
  transform:translateY(-2px);
}
.systems-controls #systemsPrev::before { content:"‹"; }
.systems-controls #systemsNext::before { content:"›"; }
.systems-controls button:hover { border-color:var(--wine); color:var(--wine); }
.systems-window { overflow:hidden; }
.systems-track { display:flex; gap:16px; transition:transform .45s ease; will-change:transform; }
.system-card {
  flex:0 0 calc((100% - 48px)/4);
  min-height:118px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:none !important;
  background:transparent !important;
  color:#7d8a95;
  transition:transform .25s ease, color .25s ease;
}
.system-card:hover,
.system-card:focus,
.system-card:focus-visible,
.system-card:active {
  transform:translateY(-4px);
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:none !important;
  background:transparent !important;
  color:var(--navy);
}
.system-card::before,
.system-card::after,
.system-card:hover::before,
.system-card:hover::after,
.system-card:focus::before,
.system-card:focus::after {
  content:none !important;
  display:none !important;
}
.system-logo-text { font-size:1.55rem; font-weight:900; letter-spacing:-.04em; color:#8d99a4; }
.system-card:hover .system-logo-text { color:var(--wine); }
.system-card small { max-width:220px; margin-top:5px; line-height:1.3; }
.system-card.link-needs-config { outline:none !important; }
.link-needs-config:not(.system-card) { outline:3px solid rgba(212,154,47,.28); }

.dashboard-grid-expanded { grid-template-columns:repeat(4,1fr); }
.featured-dashboard { background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.06)); }
.dashboard-meta { display:block; margin-top:16px; color:#f1d7a7; font-size:.84rem; font-weight:700; }

.sabanas-section { padding:92px 0; background:#f7f9fb; }
.sabana-feature { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; padding:48px 0; border-top:1px solid var(--line); }
.sabana-feature:first-of-type { border-top:0; padding-top:8px; }
.sabana-reverse .sabana-copy { order:2; }
.sabana-reverse .sabana-preview { order:1; }
.feature-label { display:inline-block; color:#0aa58c; font-size:.76rem; font-weight:800; letter-spacing:.12em; }
.sabana-copy h3 { margin:8px 0 12px; font-size:2rem; letter-spacing:-.025em; }
.sabana-copy p { color:var(--muted); margin:0 0 22px; }
.check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 22px; margin-bottom:26px; }
.check-grid.one-column { grid-template-columns:1fr; }
.check-grid span { color:#344451; font-weight:600; }
.sabana-preview { min-height:320px; position:relative; border-radius:22px; background:linear-gradient(145deg,#fff,#eef3f6); border:1px solid var(--line); overflow:hidden; box-shadow:0 20px 45px rgba(17,35,52,.08); }
.sabana-preview::before { content:""; position:absolute; inset:auto -70px -90px auto; width:240px; height:240px; border-radius:50%; background:rgba(26,102,143,.07); }
.sheet { position:absolute; background:#fff; border:1px solid #dfe7ec; border-radius:11px; box-shadow:0 14px 28px rgba(17,35,52,.13); overflow:hidden; }
.sheet-main { left:7%; top:18%; width:66%; height:52%; padding:14px; border-top:10px solid #188db2; }
.sheet-main.orange { border-top-color:#b84c28; }
.sheet-main b, .sheet-dashboard b, .sheet-matrix b { display:block; font-size:.78rem; color:var(--navy); }
.sheet-main span { color:#788995; font-size:.66rem; }
.sheet-main i { display:block; height:8px; margin-top:9px; border-radius:3px; background:linear-gradient(90deg,#e8f2f6 0 18%,#cae9f4 18% 42%,#eef2f4 42% 58%,#d3edf3 58% 75%,#e7edf0 75%); }
.sheet-dashboard { right:5%; top:12%; width:31%; height:39%; padding:12px; }
.sheet-matrix { right:2%; bottom:10%; width:43%; height:34%; padding:10px; }
.mini-donut { width:62px; height:62px; margin:18px auto 8px; border-radius:50%; background:conic-gradient(#0aa58c 0 67%,#e8eef1 67%); position:relative; }
.mini-donut::after { content:""; position:absolute; inset:13px; background:#fff; border-radius:50%; }
.mini-lines { height:46px; margin-top:8px; background:repeating-linear-gradient(to bottom,#dce6eb 0 3px,transparent 3px 11px); }
.matrix-grid { height:90%; margin-top:8px; background:linear-gradient(90deg,transparent 24%,#e8edf0 24% 26%,transparent 26% 49%,#e8edf0 49% 51%,transparent 51% 74%,#e8edf0 74% 76%,transparent 76%),repeating-linear-gradient(to bottom,#f0f4f6 0 13px,#fff 13px 25px); }
.private-note { margin-top:20px; padding:16px 18px; border-left:5px solid var(--gold); background:#fffaf0; color:#6b604d; border-radius:0 10px 10px 0; }
.private-note strong { color:#594713; }

.manuals-section { padding:92px 0; background:#fff; }
.centered-heading { margin-left:auto; margin-right:auto; text-align:center; }
.narrow-heading { max-width:850px; }

.manual-grid { 
  display:grid; 
  grid-template-columns:repeat(3,1fr); 
  gap:28px; 
}

.manual-card { 
  display:flex; 
  flex-direction:column; 
  min-width:0; 
}


/* =========================================================
   PORTADAS DE MANUALES
   ========================================================= */

.manual-cover { 
  display:block; 
  max-width:290px; 
  width:100%; 
  margin:0 auto 18px; 
  border-radius:10px; 
  overflow:hidden; 
  box-shadow:0 16px 35px rgba(17,35,52,.12); 
  transition:.25s ease; 
}

.manual-cover:hover { 
  transform:translateY(-5px); 
  box-shadow:0 22px 42px rgba(17,35,52,.16); 
}

/* La imagen conserva su proporción original:
   no corta laterales y no deja espacio blanco inferior */
.manual-cover img { 
  width:100%; 
  height:auto; 
  display:block; 
}


/* Portada alternativa cuando no existe una imagen */
.manual-cover-placeholder { 
  min-height:374px;
  display:flex; 
  flex-direction:column; 
  justify-content:flex-end; 
  gap:8px; 
  padding:28px 22px; 
  color:#fff; 
  position:relative; 
  overflow:hidden; 
}

.manual-cover-placeholder::before { 
  content:""; 
  position:absolute; 
  width:160px; 
  height:160px; 
  border:22px solid rgba(255,255,255,.16); 
  border-radius:50%; 
  right:-70px; 
  top:-65px; 
}

.manual-cover-placeholder span { 
  position:relative; 
  font-weight:900; 
  font-size:1.55rem; 
  line-height:1.05; 
}

.manual-cover-placeholder small { 
  position:relative; 
  opacity:.85; 
}

.theme-teal { 
  background:linear-gradient(160deg,#0d5e5b,#168a7d); 
}

.theme-paper { 
  background:linear-gradient(160deg,#f8f8f7,#e8e6df); 
  color:#222; 
  border:1px solid #e5e2da; 
}

.theme-blue { 
  background:linear-gradient(160deg,#0d3577,#148bc3); 
}

.theme-cyan { 
  background:linear-gradient(160deg,#00557f,#0ea8c1); 
}

.theme-purple { 
  background:linear-gradient(160deg,#47306e,#8a5ab1); 
}

.theme-green { 
  background:linear-gradient(160deg,#2b7d77,#7ebd49); 
}

.manual-body { 
  text-align:center; 
}

.manual-body h3 { 
  margin:0 0 8px; 
  font-size:1.17rem; 
  line-height:1.3; 
}

.manual-body p { 
  margin:0 auto 10px; 
  max-width:360px; 
  color:var(--muted); 
  font-size:.92rem; 
}

.manual-link { 
  color:var(--wine); 
  font-weight:700; 
  font-size:.9rem; 
}


/* =========================================================
   ÁREAS DE GESTIÓN
   ========================================================= */

.management-section { padding:92px 0; background:#f2f6f9; }

.management-grid { 
  display:grid; 
  grid-template-columns:repeat(3,1fr); 
  gap:22px; 
  align-items:start; 
}

.management-card { 
  position:relative; 
  padding:28px; 
  background:#fff; 
  border:1px solid var(--line); 
  border-radius:14px; 
  min-height:460px; 
  box-shadow:0 10px 24px rgba(17,35,52,.04); 
  overflow:hidden; 
}

.management-main { 
  box-shadow:0 18px 38px rgba(17,35,52,.09); 
}

.management-icon { 
  width:48px; 
  height:48px; 
  display:grid; 
  place-items:center; 
  margin-left:auto; 
  border-radius:50%; 
  background:#f2f6f9; 
  color:var(--navy); 
  font-weight:900; 
}

.management-card h3 { 
  margin:8px 0 3px; 
  line-height:1.2; 
}

.management-subtitle { 
  color:#7b8994; 
  margin:0 0 26px; 
}

.management-card ul { 
  list-style:none; 
  padding:0; 
  margin:0; 
}

.management-card li { 
  position:relative; 
  padding-left:20px; 
  margin:0 0 17px; 
  color:#6d7b86; 
  font-size:.92rem; 
}

.management-card li::before { 
  content:"✓"; 
  position:absolute; 
  left:0; 
  color:#0eb59b; 
  font-weight:900; 
}

.ribbon { 
  position:absolute; 
  top:20px; 
  right:-39px; 
  width:145px; 
  padding:5px 0; 
  transform:rotate(45deg); 
  text-align:center; 
  background:#ef6548; 
  color:#fff; 
  font-size:.75rem; 
  font-weight:800; 
}


/* =========================================================
   PROCESO HIS
   ========================================================= */

.his-process-section { 
  padding:92px 0; 
  background:#fff; 
}

.process-grid { 
  display:grid; 
  grid-template-columns:repeat(3,1fr); 
  gap:34px; 
  text-align:center; 
}

.process-grid article { 
  padding:18px 22px; 
  position:relative; 
}

.process-grid article:not(:last-child)::after { 
  content:"→"; 
  position:absolute; 
  right:-25px; 
  top:34px; 
  color:#dfe4e7; 
  font-size:2.4rem; 
}

.process-icon { 
  width:58px; 
  height:58px; 
  border-radius:50%; 
  display:grid; 
  place-items:center; 
  margin:0 auto 18px; 
  background:#e6f8f5; 
  color:#0aa58c; 
  font-weight:900; 
}

.process-grid h3 { 
  margin:0 0 8px; 
  font-size:1.1rem; 
}

.process-grid p { 
  margin:0; 
  color:var(--muted); 
  font-size:.92rem; 
}


/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */

.faq-section { 
  padding:92px 0; 
  background:#fbfcfd; 
  border-top:1px solid var(--line); 
}

.faq-heading { 
  text-align:center; 
  max-width:850px; 
  margin:0 auto 42px; 
}

.faq-heading h2 { 
  margin:7px 0 8px; 
  font-size:2rem; 
}

.faq-heading p { 
  color:var(--muted); 
  margin:0 0 18px; 
}

.faq-columns { 
  display:grid; 
  grid-template-columns:repeat(2,1fr); 
  gap:44px; 
}

.faq-columns h3 { 
  font-size:1.05rem; 
  margin:0 0 14px; 
  color:var(--navy); 
}

.accordion { 
  display:grid; 
  gap:9px; 
}

.accordion-button { 
  width:100%; 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  gap:18px; 
  text-align:left; 
  border:1px solid var(--line); 
  border-radius:8px; 
  background:#fff; 
  padding:15px 17px; 
  cursor:pointer; 
  color:var(--ink); 
}

.accordion-button b { 
  color:var(--navy); 
  font-size:1.2rem; 
}

.accordion-button.open { 
  border-radius:8px 8px 0 0; 
  background:#f3f6f8; 
}

.accordion-panel { 
  display:none; 
  border:1px solid var(--line); 
  border-top:0; 
  margin-top:-9px; 
  border-radius:0 0 8px 8px; 
  padding:16px 18px; 
  background:#fff; 
}

.accordion-panel.open { 
  display:block; 
}

.accordion-panel p { 
  margin:0; 
  color:var(--muted); 
  font-size:.92rem; 
}


/* =========================================================
   INFORMACIÓN INSTITUCIONAL
   ========================================================= */

.institution-section { 
  background:linear-gradient(125deg,#344f83,#465d92); 
  color:#fff; 
}

.testimonial-card { 
  min-height:340px; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  justify-content:center; 
  text-align:center; 
  padding:55px 12%; 
}

.quote-mark { 
  font-size:5rem; 
  color:#16c1a4; 
  line-height:.7; 
  font-weight:900; 
}

.testimonial-card strong { 
  font-size:1.3rem; 
}

.testimonial-card strong span { 
  color:#1ed0b2; 
}

.testimonial-card p { 
  max-width:820px; 
  margin:28px 0 12px; 
  color:#cbd5e5; 
  font-size:1.06rem; 
}

.testimonial-card small { 
  color:#e9edf4; 
}

.institution-stats { 
  display:grid; 
  grid-template-columns:repeat(4,1fr); 
  background:#f5f7f9; 
  color:var(--ink); 
}

.institution-stats div { 
  text-align:center; 
  padding:34px 15px; 
  border-right:1px solid var(--line); 
}

.institution-stats div:last-child { 
  border-right:0; 
}

.institution-stats b { 
  display:block; 
  font-size:2rem; 
}

.institution-stats span { 
  color:var(--muted); 
  font-size:.9rem; 
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-grid-expanded { 
  grid-template-columns:1.35fr .65fr .7fr 1fr; 
}


/* =========================================================
   DASHBOARD DETAIL
   ========================================================= */

.dashboard-detail-v1 { 
  display:grid; 
  grid-template-columns:1.5fr .7fr; 
  gap:24px; 
  margin-top:28px; 
  align-items:stretch; 
}

.dashboard-description-card { 
  background:#fff; 
  border:1px solid var(--line); 
  border-radius:16px; 
  padding:28px; 
}

.dashboard-description-card h2 { 
  margin:5px 0 8px; 
  font-size:1.45rem; 
}

.dashboard-description-card p { 
  margin:0; 
  color:var(--muted); 
}

.dashboard-description-card small { 
  display:block; 
  margin-top:16px; 
  color:#8b98a2; 
}

.dashboard-numbers { 
  display:grid; 
  grid-template-columns:repeat(2,1fr); 
  gap:14px; 
}

.dashboard-numbers div { 
  display:flex; 
  flex-direction:column; 
  justify-content:center; 
  align-items:center; 
  text-align:center; 
  background:#fff; 
  border:1px solid var(--line); 
  border-radius:16px; 
  padding:22px; 
}

.dashboard-numbers b { 
  font-size:2rem; 
  color:var(--navy); 
}

.dashboard-numbers span { 
  color:var(--muted); 
  font-size:.9rem; 
}


/* =========================================================
   ÁREA PROFESIONALES
   ========================================================= */

.professional-page { 
  background:#f4f7f9; 
  min-height:100vh; 
}

.professional-nav { 
  margin-left:auto; 
}

.professional-main { 
  padding:72px 0; 
}

.professional-card { 
  max-width:860px; 
  text-align:center; 
  background:#fff; 
  border:1px solid var(--line); 
  border-radius:22px; 
  padding:54px; 
  box-shadow:var(--shadow); 
}

.lock-mark { 
  width:76px; 
  height:76px; 
  display:grid; 
  place-items:center; 
  margin:0 auto 18px; 
  background:var(--wine-soft); 
  border-radius:50%; 
  font-size:2rem; 
}

.professional-card h1 { 
  font-size:2.5rem; 
  margin:8px 0 12px; 
}

.professional-card > p { 
  color:var(--muted); 
  max-width:700px; 
  margin:0 auto 30px; 
}

.professional-plan { 
  display:grid; 
  grid-template-columns:repeat(4,1fr); 
  gap:12px; 
  margin:30px 0; 
}

.professional-plan div { 
  padding:18px 12px; 
  border:1px solid var(--line); 
  border-radius:12px; 
}

.professional-plan b { 
  display:block; 
  color:var(--wine); 
  font-size:1.4rem; 
}

.professional-plan span { 
  color:var(--muted); 
  font-size:.85rem; 
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .system-card { 
    flex-basis:calc((100% - 16px)/2); 
  }

  .dashboard-grid-expanded { 
    grid-template-columns:repeat(2,1fr); 
  }

  .sabana-feature { 
    grid-template-columns:1fr; 
    gap:28px; 
  }

  .sabana-reverse .sabana-copy, 
  .sabana-reverse .sabana-preview { 
    order:initial; 
  }

  .manual-grid { 
    grid-template-columns:repeat(2,1fr); 
  }

  .management-grid { 
    grid-template-columns:1fr; 
  }

  .management-card { 
    min-height:auto; 
  }

  .process-grid { 
    grid-template-columns:1fr; 
    gap:12px; 
  }

  .process-grid article:not(:last-child)::after { 
    display:none; 
  }

  .faq-columns { 
    grid-template-columns:1fr; 
  }

  .footer-grid-expanded { 
    grid-template-columns:repeat(2,1fr); 
  }

  .dashboard-detail-v1 { 
    grid-template-columns:1fr; 
  }

}


/* =========================================================
   RESPONSIVE - CELULAR
   ========================================================= */

@media (max-width: 640px) {

  .systems-strip, 
  .sabanas-section, 
  .manuals-section, 
  .management-section, 
  .his-process-section, 
  .faq-section { 
    padding:64px 0; 
  }

  .systems-head { 
    align-items:center; 
  }

  .systems-head h2 { 
    font-size:1.25rem; 
  }

  .system-card { 
    flex-basis:100%; 
    min-height:105px; 
  }

  .dashboard-grid-expanded, 
  .manual-grid { 
    grid-template-columns:1fr; 
  }

  .sabana-feature { 
    padding:35px 0; 
  }

  .sabana-preview { 
    min-height:270px; 
  }

  .check-grid { 
    grid-template-columns:1fr; 
  }

  .manual-cover { 
    max-width:250px; 
  }

  .manual-cover-placeholder {
    min-height:322px;
  }

  .institution-stats { 
    grid-template-columns:repeat(2,1fr); 
  }

  .institution-stats div:nth-child(2) { 
    border-right:0; 
  }

  .institution-stats div:nth-child(-n+2) { 
    border-bottom:1px solid var(--line); 
  }

  .footer-grid-expanded { 
    grid-template-columns:1fr; 
  }

  .dashboard-numbers { 
    grid-template-columns:1fr 1fr; 
  }

  .professional-card { 
    padding:36px 22px; 
  }

  .professional-plan { 
    grid-template-columns:1fr 1fr; 
  }

}

/* Separación de Indicadores y Dashboards */
.indicator-section {
  background: linear-gradient(125deg,#102e43,#173f59 58%,#6d1730 140%);
}
.indicator-grid {
  grid-template-columns: repeat(3, 1fr);
}
.dashboard-section-alt {
  background: linear-gradient(125deg,#153e59,#0f566f 62%,#164259 100%);
  border-top: 1px solid rgba(255,255,255,.08);
}
.dashboard-section-alt .section-kicker { color:#bfe5ed; }
.dashboard-section-alt .dashboard-meta { color:#cceaf0; }

@media (max-width: 1000px) {
  .indicator-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .indicator-grid { grid-template-columns: 1fr; }
}
.system-logo-img {
    width: 150px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin-bottom: 7px;
}

/* TABLEAU RESPONSIVE - NO CORTAR DASHBOARD */

.tableau-frame-v1 {
    width: 100%;
    min-height: 0 !important;
    overflow: hidden;
}

.tableau-mount-v1 {
    position: relative;
    width: 100%;
    min-height: 0 !important;
    overflow: hidden;
}

.tableau-mount-v1 tableau-viz {
    display: block;
    min-height: 0 !important;
    transform-origin: top left;
}

/* =========================================================
   NORMATIVA - ACORDEÓN
   ========================================================= */

.norm-accordion {
    display: grid;
    gap: 14px;
    margin-top: 35px;
}


.norm-group {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: .3s ease;
}


.norm-group:hover {
    box-shadow: 0 12px 30px rgba(17, 35, 52, .06);
}


/* CABECERA */

.norm-group-button {
    width: 100%;
    border: 0;
    background: #ffffff;
    padding: 22px 24px;

    display: grid;
    grid-template-columns: 55px 1fr 35px;
    align-items: center;
    gap: 18px;

    cursor: pointer;
    text-align: left;
}


.norm-group-number {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--navy);
    color: #ffffff;

    font-weight: 800;
}


.norm-group-title {
    display: flex;
    flex-direction: column;
}


.norm-group-title strong {
    font-size: 1.05rem;
    color: var(--ink);
}


.norm-group-title span {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 3px;
}


/* FLECHA */

.norm-arrow {
    font-size: 1.6rem;
    color: var(--wine);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform .3s ease;
}


.norm-group.open .norm-arrow {
    transform: rotate(180deg);
}


/* CONTENIDO DESLIZABLE */

.norm-group-content {
    max-height: 0;
    overflow: hidden;

    background: #f8fafb;

    transition:
        max-height .45s ease,
        padding .45s ease;
}


.norm-group.open .norm-group-content {
    max-height: 1000px;
}


/* DOCUMENTOS */

.norm-document {
    display: grid;

    grid-template-columns:
        55px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 18px;

    padding: 20px 24px;

    border-top: 1px solid var(--line);
}


.norm-pdf-icon {
    width: 45px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background: #f8eef1;

    color: var(--wine);

    font-size: .75rem;
    font-weight: 900;
}


.norm-document-info {
    display: flex;
    flex-direction: column;
}


.norm-document-info strong {
    color: var(--ink);
}


.norm-document-info span {
    color: var(--muted);
    font-size: .88rem;
    margin-top: 4px;
}


/* BOTONES */

.norm-document-actions {
    display: flex;
    gap: 8px;
}


.norm-view-btn,
.norm-download-btn {
    min-height: 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border-radius: 8px;

    font-size: .85rem;
    font-weight: 700;

    transition: .25s ease;
}


.norm-view-btn {
    border: 1px solid #dce3e8;
    background: #ffffff;
    color: var(--navy);
}


.norm-view-btn:hover {
    border-color: var(--navy);
}


.norm-download-btn {
    background: var(--wine);
    color: #ffffff;
}


.norm-download-btn:hover {
    background: var(--wine-dark);
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .norm-group-button {
        grid-template-columns: 48px 1fr 25px;
        padding: 18px;
    }

    .norm-group-title span {
        display: none;
    }

    .norm-document {
        grid-template-columns: 45px 1fr;
        padding: 18px;
    }

    .norm-document-actions {
        grid-column: 1 / -1;
        padding-left: 63px;
    }

}

.brand-logo {
    display: block;
    height: 58px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 640px) {
    .brand-logo {
        height: 48px;
        max-width: 280px;
    }
}

.footer-logo {
    display: block;
    width: auto;
    height: 30px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .footer-logo {
        height: 26px;
    }
}

.normativa-block {
    margin-top: 80px;
}