/* =========================================================
   IMPACT CONTEC - Interfaces web
   HTML + CSS + JS sin dependencias externas
   ========================================================= */

:root{
  --navy:#082b66;
  --navy-2:#164fa3;
  --teal:#d72638;
  --teal-2:#ef4455;
  --cyan:#e5edff;
  --aqua:#fff0f2;
  --soft:#f7f9fd;
  --line:#d9e2f3;
  --text:#17365f;
  --muted:#63748c;
  --green:#67bba4;
  --orange:#f59e0b;
  --red:#d72638;
  --red-2:#ef4455;
  --purple:#8b5cf6;
  --impact-bg:#edf3ff;
  --impact-panel:#f8faff;
  --impact-hero:#fff1f3;
  --impact-button:#124da8;
  --shadow:0 20px 48px rgba(8, 43, 102, .16);
  --radius:22px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
}

.hidden{
  display:none !important;
}

/* LOGIN */

.login-screen{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px;
  background:linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(229,237,255,0.98) 52%, rgba(255,224,229,1) 100%);
}

.bg-wave{
  position:absolute;
  width:760px;
  height:320px;
  background:rgba(215, 38, 56, 0.10);
  border-radius:48%;
  filter:blur(0.5px);
  transform:rotate(-12deg);
}

.wave-a{
  left:-250px;
  top:-10px;
}

.wave-b{
  right:-180px;
  bottom:-90px;
  transform:rotate(-10deg);
}

.login-card{
  width:min(1100px, 96vw);
  min-height:620px;
  background:rgba(255,255,255,0.76);
  border:1px solid rgba(8, 43, 102, 0.16);
  border-radius:28px;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:1fr 1.08fr;
  overflow:hidden;
  position:relative;
  z-index:2;
}

.login-form{
  padding:54px 70px 42px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:rgba(255,255,255,0.30);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:35px;
}

.brand-center{
  justify-content:center;
  text-align:left;
}

.brand-icon{
  width:72px;
  height:72px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:30px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg, var(--navy) 0%, var(--red) 100%);
  box-shadow:0 12px 24px rgba(228, 81, 81, 0.22);
}

.brand h1{
  margin:0;
  letter-spacing:8px;
  color:var(--navy);
  font-size:42px;
  line-height:.9;
  font-weight:900;
}

.brand span{
  color:var(--teal);
  letter-spacing:7px;
  font-weight:800;
  font-size:20px;
}

.login-form h2{
  text-align:center;
  font-size:36px;
  color:var(--navy);
  margin:0;
  font-weight:800;
}

.login-form p{
  text-align:center;
  margin:6px 0 28px;
  color:var(--muted);
  font-size:17px;
}

label{
  display:block;
  font-weight:700;
  color:var(--text);
  margin:14px 0 8px;
}

.input-group{
  display:flex;
  align-items:center;
  gap:12px;
  border:1.5px solid #cbd8ee;
  border-radius:13px;
  padding:0 15px;
  background:rgba(255,255,255,0.86);
  height:54px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.input-group input,
.table-tools input,
.table-tools select,
.form-grid input,
textarea,
select,
.panel label input{
  width:100%;
  border:none;
  outline:none;
  font:inherit;
  color:var(--text);
  background:transparent;
}

.input-group button{
  border:none;
  background:transparent;
  color:var(--teal);
  font-weight:700;
  cursor:pointer;
}

.forgot{
  text-align:right;
  margin:10px 0 22px;
  color:var(--teal);
  font-weight:700;
}

.primary-btn,
.outline-btn,
.danger-btn,
.small-btn,
.icon-btn{
  border:none;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  transition:.2s;
}

.primary-btn{
  background:linear-gradient(135deg, var(--impact-button) 0%, var(--teal) 100%);
  color:#fff;
  padding:13px 18px;
  box-shadow:0 12px 24px rgba(31, 102, 214, 0.22);
}

.primary-btn:hover{
  transform:translateY(-1px);
}

.outline-btn{
  background:rgba(255,255,255,0.40);
  border:1.5px solid rgba(8, 168, 193, 0.8);
  color:var(--navy);
  padding:12px 18px;
}

.danger-btn{
  background:#fff;
  border:1.5px solid var(--red);
  color:var(--red);
  padding:12px 18px;
}

.full{
  width:100%;
  margin-top:10px;
}

.divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:22px 0 8px;
  color:var(--muted);
}

.divider::before,
.divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}

.divider span{
  border:1px solid var(--line);
  border-radius:50%;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  background:#fff;
}

.login-hero{
  position:relative;
  background:linear-gradient(135deg, rgba(232, 240, 255, 0.92) 0%, rgba(255, 240, 242, 0.9) 100%);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  overflow:hidden;
  padding:28px 40px;
}

.hero-photo{
  width:min(82%, 430px);
  height:300px;
  border-radius:28px;
  background:linear-gradient(135deg, rgba(230, 240, 255, 0.96), rgba(255, 242, 245, 0.96));
  display:flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  font-size:120px;
  opacity:.95;
  border:1px solid rgba(31, 102, 214, 0.08);
}

.hero-person.patient{
  transform:translateY(35px);
}

.hero-text{
  margin-top:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:26px;
  line-height:1.2;
  color:var(--navy);
  flex-wrap:wrap;
  text-align:center;
}

.hero-text strong,
.hero-text span{
  font-weight:800;
  letter-spacing:-0.02em;
}

.hero-text span{
  color:var(--red);
}

.heart{
  width:52px;
  height:52px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:white;
  background:linear-gradient(135deg,var(--teal),var(--teal-2));
}

.service-row{
  margin-top:34px;
  width:min(900px, 96vw);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  position:relative;
  z-index:2;
}

.service-row div{
  text-align:center;
  color:var(--text);
}

.service-row span{
  width:66px;
  height:66px;
  display:grid;
  place-items:center;
  margin:auto;
  border-radius:50%;
  background:rgba(8, 168, 193, 0.08);
  border:1px solid rgba(8, 168, 193, 0.12);
  color:var(--navy);
  font-size:28px;
  font-weight:800;
}

.service-row p{
  margin:8px 0 0;
  font-weight:700;
}

/* APP LAYOUT */

.app{
  min-height:100vh;
  display:grid;
  grid-template-columns:280px 1fr;
  background:#f8fcfe;
}

.sidebar{
  background:#fff;
  border-right:1px solid var(--line);
  padding:25px 22px;
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
}

.sidebar .brand{
  justify-content:center;
  flex-direction:column;
  gap:8px;
  text-align:center;
  margin-bottom:25px;
}

.sidebar .brand-icon{
  width:82px;
  height:82px;
}

.sidebar .brand h1{
  font-size:35px;
}

.menu{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nav-link{
  border:none;
  background:transparent;
  color:var(--text);
  text-align:left;
  padding:14px 16px;
  border-radius:12px;
  font-weight:750;
  cursor:pointer;
  font-size:15px;
}

.nav-link.active,
.nav-link:hover{
  background:var(--aqua);
  color:var(--teal);
}

.sidebar-card{
  margin-top:30px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(180deg,#eef3ff,#fff);
  text-align:center;
}

.mini-therapy{
  font-size:54px;
  background:#e4f6f8;
  border-radius:22px;
  padding:20px 0;
}

.sidebar-card b,
.pulse{
  color:var(--teal);
}

.main{
  min-width:0;
}

.topbar{
  height:78px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  position:sticky;
  top:0;
  z-index:5;
}

.search{
  width:min(760px, 60vw);
  height:46px;
  border:1px solid var(--line);
  border-radius:999px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 18px;
  background:#fff;
}

.search input{
  border:none;
  outline:none;
  width:100%;
  font:inherit;
}

.top-actions{
  display:flex;
  align-items:center;
  gap:22px;
}

.icon-btn{
  background:#fff;
  color:var(--navy);
  font-size:22px;
  position:relative;
}

.icon-btn span{
  position:absolute;
  top:-9px;
  right:-9px;
  background:var(--teal);
  color:#fff;
  font-size:11px;
  padding:3px 6px;
  border-radius:999px;
}

.profile{
  display:flex;
  align-items:center;
  gap:10px;
}

.avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--aqua);
}

.page{
  display:none;
  padding:30px 34px 50px;
  position:relative;
}

.active-page{
  display:block;
}

.page::before{
  content:"";
  position:absolute;
  top:15px;
  right:10px;
  width:520px;
  height:150px;
  background:rgba(215,38,56,.10);
  border-radius:50%;
  transform:rotate(8deg);
  z-index:0;
}

.page > *{
  position:relative;
  z-index:1;
}

.page-title{
  margin-bottom:24px;
}

.page-title h2{
  color:var(--navy);
  font-size:36px;
  margin:0;
}

.page-title p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:17px;
}

.with-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(180px,1fr));
  gap:18px;
  margin-bottom:20px;
}

.stat-card,
.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.stat-card{
  padding:22px;
  display:grid;
  grid-template-columns:70px 1fr;
  align-items:center;
  gap:10px;
}

.stat-card span{
  grid-row:span 3;
  width:58px;
  height:58px;
  border-radius:50%;
  background:var(--aqua);
  display:grid;
  place-items:center;
  font-size:26px;
}

.stat-card p{
  margin:0;
  font-weight:800;
  color:var(--text);
}

.stat-card h3{
  margin:4px 0;
  font-size:32px;
  color:var(--navy);
}

.stat-card small{
  color:var(--teal);
  font-weight:800;
}

.panel{
  padding:20px;
  min-width:0;
}

.dashboard-grid{
  display:grid;
  grid-template-columns:2fr 1.15fr;
  gap:18px;
}

.dashboard-grid .large{
  grid-row:span 2;
}

.panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.panel-header h3,
.panel h3{
  margin:0 0 12px;
  color:var(--navy);
}

.small-btn{
  background:#fff;
  border:1px solid var(--line);
  padding:8px 12px;
  color:var(--teal);
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

th{
  text-align:left;
  color:var(--navy);
  font-size:13px;
  padding:13px 10px;
  border-bottom:1px solid var(--line);
}

td{
  padding:13px 10px;
  border-bottom:1px solid #edf3f6;
}

tr:hover{
  background:#f5fbfd;
}

.badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:800;
}

.badge.teal{
  background:#ffe4e8;
  color:#c41f32;
}

.badge.green{
  background:#dff8ea;
  color:#11875a;
}

.badge.orange{
  background:#fff1d6;
  color:#b96a00;
}

.badge.red{
  background:#ffe4e4;
  color:#c62929;
}

.badge.gray{
  background:#edf0f4;
  color:#607086;
}

.list{
  display:grid;
  gap:10px;
}

.list-item,
.notice,
.info-card{
  border:1px solid #e7eef2;
  border-radius:13px;
  padding:12px;
  background:#fff;
}

.list-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.notice{
  margin-bottom:10px;
}

.notice.warning{
  background:#fff8ed;
  border-color:#ffe0a3;
  color:#965200;
}

.mini-stat{
  font-size:32px;
  font-weight:900;
  color:var(--navy);
}

.mini-stat span{
  font-size:14px;
  color:var(--teal);
}

.sparkline,
.line-chart{
  height:72px;
  border-radius:12px;
  background:
    linear-gradient(160deg, transparent 0 45%, rgba(215,38,56,.20) 46% 55%, transparent 56%),
    linear-gradient(180deg,#fff,#fff1f3);
  margin-top:16px;
}

.content-two{
  display:grid;
  grid-template-columns:2fr .9fr;
  gap:18px;
  margin-bottom:20px;
}

.content-two.wide-left{
  grid-template-columns:.85fr 2fr;
}

.table-tools{
  display:flex;
  gap:12px;
  margin-bottom:16px;
  align-items:center;
  flex-wrap:wrap;
}

.table-tools input,
.table-tools select,
select,
.form-grid input,
.panel label input,
textarea{
  border:1px solid var(--line);
  border-radius:12px;
  min-height:43px;
  padding:10px 12px;
  background:#fff;
}

.table-tools input{
  flex:1;
  min-width:260px;
}

.detail-card{
  align-self:start;
}

.detail-avatar{
  width:88px;
  height:88px;
  border-radius:50%;
  background:var(--aqua);
  display:grid;
  place-items:center;
  font-size:48px;
  margin-bottom:10px;
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.actions.right{
  justify-content:flex-end;
  margin-top:18px;
}

.patient-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.tabs{
  display:flex;
  gap:8px;
  margin:18px 0;
  flex-wrap:wrap;
}

.tab{
  border:none;
  background:#fff;
  border:1px solid var(--line);
  color:var(--text);
  font-weight:800;
  border-radius:999px;
  padding:11px 16px;
  cursor:pointer;
}

.tab.active{
  background:var(--aqua);
  color:var(--teal);
  border-color:var(--teal);
}

.tab-content{
  display:none;
}

.active-tab{
  display:block;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(180px,1fr));
  gap:12px;
}

textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
}

.timeline{
  border-left:3px solid var(--aqua);
  padding-left:16px;
}

.timeline p{
  margin:0 0 16px;
}

.metric-row{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
  margin-bottom:18px;
}

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

.metric span{
  display:block;
  font-weight:800;
  color:var(--navy);
}

.metric b{
  display:block;
  margin:8px 0;
  font-size:24px;
  color:var(--navy);
}

.metric small{
  color:var(--muted);
}

.info-card{
  margin-bottom:12px;
}

.recommendations{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  background:#f4fbff;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px 20px;
}

.recommendations h3{
  grid-column:span 2;
}

.calendar-grid{
  display:grid;
  grid-template-columns:70px repeat(7,1fr);
  min-height:620px;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
}

.calendar-cell{
  border-right:1px solid #edf3f6;
  border-bottom:1px solid #edf3f6;
  padding:8px;
  min-height:78px;
  font-size:13px;
}

.calendar-head{
  background:#f5fbfd;
  font-weight:900;
  color:var(--navy);
  text-align:center;
  min-height:54px;
}

.appointment{
  background:#e5f6ff;
  border:1px solid #b7e5f7;
  color:var(--navy);
  border-radius:10px;
  padding:8px;
  margin-top:4px;
  font-weight:700;
}

.appointment.green{
  background:#e6faee;
  border-color:#c5efd5;
}

.appointment.orange{
  background:#fff2df;
  border-color:#ffd5a4;
}

.appointment.purple{
  background:#f1ebff;
  border-color:#dacbff;
}

.report-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
  margin-bottom:18px;
}

.big-number{
  font-size:30px;
  font-weight:900;
  color:var(--navy);
}

.line-chart.down{
  background:
    linear-gradient(25deg, transparent 0 45%, rgba(215,38,56,.25) 46% 54%, transparent 55%),
    linear-gradient(180deg,#fff,#fff1f3);
}

.line-chart.up{
  background:
    linear-gradient(155deg, transparent 0 45%, rgba(215,38,56,.25) 46% 54%, transparent 55%),
    linear-gradient(180deg,#fff,#fff1f3);
}

.line-chart.orange{
  background:
    linear-gradient(25deg, transparent 0 45%, rgba(245,158,11,.35) 46% 54%, transparent 55%),
    linear-gradient(180deg,#fff,#fff9f0);
}

.line-chart.purple{
  background:
    linear-gradient(25deg, transparent 0 45%, rgba(139,92,246,.30) 46% 54%, transparent 55%),
    linear-gradient(180deg,#fff,#f6f2ff);
}

.filter-panel{
  display:grid;
  grid-template-columns:1fr 1fr 1fr auto;
  gap:14px;
  align-items:end;
  margin-bottom:18px;
}

.toast{
  position:fixed;
  bottom:24px;
  right:24px;
  z-index:50;
  background:var(--navy);
  color:#fff;
  padding:14px 18px;
  border-radius:12px;
  box-shadow:var(--shadow);
}

/* DEMO ROLES */
.demo-roles {
  margin-top: 20px;
  border-top: 1px dashed var(--line);
  padding-top: 15px;
}
.demo-roles-title {
  font-size: 13px !important;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px !important;
  text-align: left;
}
.demo-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.demo-role-btn {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.demo-role-btn:hover {
  background: var(--aqua);
  border-color: var(--teal);
  color: var(--teal);
}

/* PROFILE DROPDOWN */
#profileDropdownTrigger {
  position: relative;
}
.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.profile-meta small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.profile-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 100;
  min-width: 150px;
}
.profile-dropdown button {
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
.profile-dropdown button:hover {
  background: #fff5f5;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 45, 99, 0.4);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s;
}
.modal-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(5, 45, 99, 0.15);
  border: 1px solid var(--line);
  width: min(650px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalEnter {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--soft);
}
.modal-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--red);
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* CHART CONTAINER FOR CHART.JS */
.chart-container {
  position: relative;
  height: 140px;
  width: 100%;
  margin-top: 10px;
}

/* ROLE DISPLAY STYLES */
.role-restricted {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed !important;
}

/* PRINT STYLES */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .sidebar, .topbar, .table-tools, button, .actions, .sidebar-card, #toast, .modal-overlay {
    display: none !important;
  }
  .app {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .page {
    display: none !important;
    padding: 0 !important;
  }
  #page-reportes {
    display: block !important;
  }
  .panel {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
  }
  .chart-container {
    height: 250px !important;
  }
  .report-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
}

/* RESPONSIVE */

@media (max-width:1200px){
  .stats-grid,
  .report-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .metric-row{
    grid-template-columns:repeat(3,1fr);
  }

  .content-two,
  .content-two.wide-left,
  .dashboard-grid{
    grid-template-columns:1fr;
  }

  .filter-panel{
    grid-template-columns:1fr;
  }
}

@media (max-width:800px){
  .login-card{
    grid-template-columns:1fr;
  }

  .login-hero{
    display:none;
  }

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

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

  .sidebar{
    position:relative;
    height:auto;
  }

  .topbar{
    position:relative;
    padding:15px;
    height:auto;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .search{
    width:100%;
  }

  .stats-grid,
  .report-grid,
  .metric-row,
  .form-grid{
    grid-template-columns:1fr;
  }

  .page{
    padding:20px;
  }

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

  .calendar-cell{
    min-height:auto;
  }

  table{
    display:block;
    overflow-x:auto;
  }
}

/* Paleta institucional azul y rojo */
.wave-a {
  background: rgba(22, 79, 163, 0.12);
}
.wave-b {
  background: rgba(215, 38, 56, 0.12);
}
.primary-btn {
  background: linear-gradient(135deg, var(--navy-2), var(--red));
}
.primary-btn:hover {
  background: linear-gradient(135deg, var(--navy), #b91c2e);
}
.nav-link.active,
.nav-link:hover {
  border-left-color: var(--red);
}
/* Logo principal del panel de acceso */
.hero-photo img {
  display: block;
  width: min(90%, 520px);
  height: auto;
  max-height: 300px;
  object-fit: contain;
}