*{box-sizing:border-box} :root{--navy:#083b70;--teal:#1599a7;--bg:#eef6fb;--white:#fff;--text:#17324d;--muted:#6f8296;--line:#d8e6f0;--shadow:0 18px 45px rgba(13,56,91,.12)} html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(135deg,#f8fcff,#eef6fb);color:var(--text)} a{text-decoration:none;color:inherit}.topbar{min-height:84px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:14px 28px;position:sticky;top:0;z-index:20;box-shadow:0 4px 20px rgba(7,52,87,.05)}.brand{display:flex;align-items:center;gap:15px}.brand img{width:135px}.brand-title{font-weight:800;letter-spacing:.06em;color:var(--navy);font-size:18px}.brand-subtitle{font-size:12px;color:var(--muted)}.top-user{display:flex;align-items:center;gap:16px;font-size:14px}.top-user a{background:var(--navy);color:#fff;padding:10px 14px;border-radius:10px;font-weight:700}.container{max-width:1240px;margin:0 auto;padding:32px 24px 48px}.hero{background:linear-gradient(135deg,#0a457e,#14639e);color:#fff;border-radius:26px;padding:34px 36px;box-shadow:var(--shadow);display:flex;justify-content:space-between;align-items:center;gap:24px}.hero h1{margin:0 0 8px;font-size:34px}.hero p{margin:0;color:#dcecf9;font-size:16px}.hero-badge{width:170px;height:170px;border-radius:50%;background:rgba(255,255,255,.09);display:flex;align-items:center;justify-content:center}.hero-badge span{font-size:72px}.section-title{margin:32px 0 16px;font-size:22px;color:var(--navy)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 10px 30px rgba(20,64,93,.07);min-height:180px}.card-icon{width:56px;height:56px;border-radius:16px;background:#e4f6f8;color:var(--navy);display:flex;align-items:center;justify-content:center;font-size:30px;margin-bottom:18px}.card h3{margin:0 0 8px;color:var(--navy);font-size:20px}.card p{margin:0;color:var(--muted);line-height:1.55}.card .pill{display:inline-block;margin-top:18px;padding:7px 11px;background:#eef4f8;border-radius:999px;color:#0c4e8f;font-size:12px;font-weight:700}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 20px}.stat small{color:var(--muted);display:block}.stat strong{font-size:28px;color:var(--navy);display:block;margin-top:6px}.footer{max-width:1240px;margin:0 auto;padding:0 24px 28px;color:#8495a6;font-size:12px;display:flex;justify-content:space-between}.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.login-visual{background:linear-gradient(135deg,rgba(5,57,104,.95),rgba(18,113,143,.92));display:flex;align-items:center;justify-content:center;padding:48px;color:#fff}.login-visual-inner{max-width:560px}.login-visual img{width:240px;background:#fff;border-radius:18px;padding:16px}.login-visual h1{font-size:44px;line-height:1.05;margin:28px 0 14px}.login-visual p{font-size:18px;line-height:1.6;color:#e3f5fa}.login-side{display:flex;align-items:center;justify-content:center;padding:28px;background:#f8fcff}.login-box{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow);padding:34px}.login-box h2{margin:0;color:var(--navy);font-size:30px}.muted{color:var(--muted);margin:8px 0 26px}.field{margin-bottom:16px}.field label{display:block;font-weight:700;font-size:13px;color:#35516b;margin-bottom:8px}.field input,.field select{width:100%;padding:15px 14px;border:1px solid #cbdbe7;border-radius:12px;outline:none;font-size:16px;background:#fbfdff}.field input:focus,.field select:focus{border-color:var(--teal);box-shadow:0 0 0 4px rgba(21,153,167,.12)}.btn{border:0;border-radius:13px;padding:15px 18px;font-size:16px;font-weight:800;cursor:pointer}.btn-primary{background:var(--navy);color:#fff}.alert{border-radius:12px;padding:12px 14px;background:#fff1f1;color:#a12828;border:1px solid #f1cccc;margin-bottom:16px;font-size:14px}.login-note{margin-top:18px;font-size:12px;color:#8a9cad;text-align:center}@media(max-width:900px){.login-page{grid-template-columns:1fr}.login-visual{min-height:270px;padding:30px}.login-visual h1{font-size:34px}.grid,.stats{grid-template-columns:1fr}.topbar{height:auto;gap:12px;flex-wrap:wrap;padding:15px 18px}.top-user{width:100%;justify-content:flex-end}}

/* =========================================================
   NUEVA IDENTIDAD VISUAL - GESTIÓN ADMINISTRATIVA MEDCOSTA
   ========================================================= */

.topbar{
  margin-left:260px;
  min-height:76px;
  padding:12px 28px;
  background:#ffffff;
  border-bottom:1px solid #dce7ef;
  box-shadow:0 4px 18px rgba(13,56,91,.07);
}

.brand{
  gap:14px;
}

.brand img{
  width:118px;
}

.brand-title{
  font-size:17px;
  letter-spacing:.055em;
}

.brand-subtitle{
  font-size:11px;
}

.top-user{
  gap:14px;
}

.top-user-info{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  line-height:1.2;
}

.top-user-label{
  font-size:10px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}

.top-user-info strong{
  font-size:14px;
  color:var(--navy);
}

.top-user a{
  padding:9px 13px;
  border-radius:9px;
  font-size:12px;
}

/* MENÚ LATERAL */

.sidebar{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:260px;
  background:linear-gradient(180deg,#073968 0%,#082f55 100%);
  color:#fff;
  z-index:50;
  display:flex;
  flex-direction:column;
  box-shadow:8px 0 25px rgba(4,35,61,.12);
}

.sidebar-title{
  min-height:76px;
  padding:0 24px;
  display:flex;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.sidebar-title span{
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
  color:#bcd7e9;
}

.sidebar-nav{
  padding:18px 12px;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.sidebar-link{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:48px;
  padding:10px 14px;
  border-radius:11px;
  color:#dcecf8;
  font-size:13px;
  font-weight:700;
  transition:all .18s ease;
}

.sidebar-link:hover{
  background:rgba(255,255,255,.09);
  color:#fff;
  transform:translateX(2px);
}

.sidebar-link[href="dashboard.php"]{
  background:rgba(255,255,255,.13);
  color:#fff;
}

.sidebar-icon{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(255,255,255,.09);
  font-size:17px;
  flex:none;
}

.sidebar-link:hover .sidebar-icon{
  background:rgba(255,255,255,.15);
}

.sidebar-footer{
  margin-top:auto;
  padding:18px 20px;
  border-top:1px solid rgba(255,255,255,.10);
}

.sidebar-footer-title{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}

.sidebar-footer-text{
  margin-top:4px;
  font-size:10px;
  color:#a9c5d8;
}

/* CONTENIDO */

.container{
  margin-left:260px;
  max-width:none;
  width:auto;
  padding:30px 32px 48px;
}

.footer{
  margin-left:260px;
  max-width:none;
  padding-left:32px;
  padding-right:32px;
}

/* AJUSTE DEL HERO */

.hero{
  border-radius:20px;
  padding:30px 32px;
}

.hero h1{
  font-size:31px;
}

/* TARJETAS */

.card{
  border-radius:17px;
  padding:22px;
  min-height:170px;
  transition:transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 35px rgba(20,64,93,.12);
}

.card-icon{
  width:50px;
  height:50px;
  border-radius:13px;
  font-size:26px;
}

/* ESTADÍSTICAS */

.stat{
  border-radius:15px;
}

/* RESPONSIVE */

@media(max-width:1000px){

  .sidebar{
    width:215px;
  }

  .topbar,
  .container,
  .footer{
    margin-left:215px;
  }

  .container{
    padding-left:20px;
    padding-right:20px;
  }

}

@media(max-width:760px){

  .sidebar{
    position:relative;
    width:100%;
    height:auto;
    min-height:0;
  }

  .sidebar-title{
    min-height:52px;
  }

  .sidebar-nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:10px;
  }

  .sidebar-footer{
    display:none;
  }

  .topbar,
  .container,
  .footer{
    margin-left:0;
  }

  .topbar{
    position:relative;
  }

  .top-user{
    width:auto;
  }

}

@media(max-width:600px){

  .topbar{
    padding:12px 16px;
  }

  .brand img{
    width:100px;
  }

  .brand-title{
    font-size:14px;
  }

  .brand-subtitle{
    display:none;
  }

  .top-user-info{
    display:none;
  }

  .top-user a{
    font-size:11px;
  }

  .sidebar-nav{
    grid-template-columns:1fr;
  }

  .container{
    padding:20px 15px 35px;
  }

  .footer{
    padding-left:15px;
    padding-right:15px;
  }

}


/* =========================================================
   NUEVA IDENTIDAD VISUAL - GESTIÓN ADMINISTRATIVA MEDCOSTA
   ========================================================= */

.topbar{
  margin-left:260px;
  min-height:76px;
  padding:12px 28px;
  background:#ffffff;
  border-bottom:1px solid #dce7ef;
  box-shadow:0 4px 18px rgba(13,56,91,.07);
}

.brand{
  gap:14px;
}

.brand img{
  width:118px;
}

.brand-title{
  font-size:17px;
  letter-spacing:.055em;
}

.brand-subtitle{
  font-size:11px;
}

.top-user{
  gap:14px;
}

.top-user-info{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  line-height:1.2;
}

.top-user-label{
  font-size:10px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}

.top-user-info strong{
  font-size:14px;
  color:var(--navy);
}

.top-user a{
  padding:9px 13px;
  border-radius:9px;
  font-size:12px;
}

/* MENÚ LATERAL */

.sidebar{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:260px;
  background:linear-gradient(180deg,#073968 0%,#082f55 100%);
  color:#fff;
  z-index:50;
  display:flex;
  flex-direction:column;
  box-shadow:8px 0 25px rgba(4,35,61,.12);
}

.sidebar-title{
  min-height:76px;
  padding:0 24px;
  display:flex;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.sidebar-title span{
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
  color:#bcd7e9;
}

.sidebar-nav{
  padding:18px 12px;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.sidebar-link{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:48px;
  padding:10px 14px;
  border-radius:11px;
  color:#dcecf8;
  font-size:13px;
  font-weight:700;
  transition:all .18s ease;
}

.sidebar-link:hover{
  background:rgba(255,255,255,.09);
  color:#fff;
  transform:translateX(2px);
}

.sidebar-link[href="dashboard.php"]{
  background:rgba(255,255,255,.13);
  color:#fff;
}

.sidebar-icon{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(255,255,255,.09);
  font-size:17px;
  flex:none;
}

.sidebar-link:hover .sidebar-icon{
  background:rgba(255,255,255,.15);
}

.sidebar-footer{
  margin-top:auto;
  padding:18px 20px;
  border-top:1px solid rgba(255,255,255,.10);
}

.sidebar-footer-title{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}

.sidebar-footer-text{
  margin-top:4px;
  font-size:10px;
  color:#a9c5d8;
}

/* CONTENIDO */

.container{
  margin-left:260px;
  max-width:none;
  width:auto;
  padding:30px 32px 48px;
}

.footer{
  margin-left:260px;
  max-width:none;
  padding-left:32px;
  padding-right:32px;
}

/* AJUSTE DEL HERO */

.hero{
  border-radius:20px;
  padding:30px 32px;
}

.hero h1{
  font-size:31px;
}

/* TARJETAS */

.card{
  border-radius:17px;
  padding:22px;
  min-height:170px;
  transition:transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 35px rgba(20,64,93,.12);
}

.card-icon{
  width:50px;
  height:50px;
  border-radius:13px;
  font-size:26px;
}

/* ESTADÍSTICAS */

.stat{
  border-radius:15px;
}

/* RESPONSIVE */

@media(max-width:1000px){

  .sidebar{
    width:215px;
  }

  .topbar,
  .container,
  .footer{
    margin-left:215px;
  }

  .container{
    padding-left:20px;
    padding-right:20px;
  }

}

@media(max-width:760px){

  .sidebar{
    position:relative;
    width:100%;
    height:auto;
    min-height:0;
  }

  .sidebar-title{
    min-height:52px;
  }

  .sidebar-nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:10px;
  }

  .sidebar-footer{
    display:none;
  }

  .topbar,
  .container,
  .footer{
    margin-left:0;
  }

  .topbar{
    position:relative;
  }

  .top-user{
    width:auto;
  }

}

@media(max-width:600px){

  .topbar{
    padding:12px 16px;
  }

  .brand img{
    width:100px;
  }

  .brand-title{
    font-size:14px;
  }

  .brand-subtitle{
    display:none;
  }

  .top-user-info{
    display:none;
  }

  .top-user a{
    font-size:11px;
  }

  .sidebar-nav{
    grid-template-columns:1fr;
  }

  .container{
    padding:20px 15px 35px;
  }

  .footer{
    padding-left:15px;
    padding-right:15px;
  }

}


/* =========================================================
   CORRECCIÓN: MÓDULO ACTIVO DEL MENÚ
   ========================================================= */

.sidebar-link[href="dashboard.php"]{
  background:transparent;
  color:#dcecf8;
}

.sidebar-link.active{
  background:rgba(255,255,255,.13);
  color:#fff;
}

.sidebar-link.active .sidebar-icon{
  background:rgba(255,255,255,.15);
}


/* ==========================================================
   MEDCOSTA - UNIFICACIÓN VISUAL
   SIN MODIFICAR HEADER.PHP
   ========================================================== */

/* SIDEBAR */

.sidebar{
    width:230px !important;
    background:linear-gradient(
        180deg,
        #07384d 0%,
        #062f40 100%
    ) !important;
}

.sidebar-title{
    min-height:82px !important;
    padding:0 14px !important;
    display:flex !important;
    align-items:center !important;
    border-bottom:1px solid rgba(255,255,255,.10) !important;
}

.sidebar-title span{
    font-size:0 !important;
    display:flex !important;
    align-items:center !important;
    gap:9px !important;
    color:#fff !important;
}

.sidebar-title span::before{
    content:"";
    width:38px;
    height:38px;
    flex:none;
    display:block;
    background:#fff url("medcosta-logo.png") center/contain no-repeat;
    border-radius:7px;
}

.sidebar-title span::after{
    content:"MEDCOSTA\A Gestión Administrativa";
    white-space:pre;
    font-size:12px;
    line-height:1.35;
    font-weight:800;
    color:#fff;
}

/* MENÚ */

.sidebar-nav{
    padding:18px 8px !important;
    gap:5px !important;
}

.sidebar-link{
    min-height:43px !important;
    padding:10px 13px !important;
    border-radius:9px !important;
    gap:11px !important;
    color:rgba(255,255,255,.84) !important;
    font-size:13px !important;
    font-weight:600 !important;
}

.sidebar-link:hover,
.sidebar-link.active{
    background:rgba(255,255,255,.12) !important;
    color:#fff !important;
    transform:none !important;
}

.sidebar-icon{
    width:22px !important;
    height:22px !important;
    background:transparent !important;
    font-size:17px !important;
}

/* ==========================================================
   BARRA SUPERIOR
   ========================================================== */

.topbar{
    margin-left:230px !important;
    height:82px !important;
    min-height:82px !important;
    padding:12px 25px !important;

    background:linear-gradient(
        90deg,
        #087ca3 0%,
        #0795aa 100%
    ) !important;

    border:0 !important;
    box-shadow:0 5px 20px rgba(0,70,90,.16) !important;
}

/* Ocultar logo duplicado de la barra superior */

.topbar .brand img{
    display:none !important;
}

.topbar .brand{
    gap:0 !important;
}

.topbar .brand-title{
    color:#fff !important;
    font-size:17px !important;
    font-weight:800 !important;
    letter-spacing:.02em !important;
}

.topbar .brand-subtitle{
    color:rgba(255,255,255,.76) !important;
    font-size:10px !important;
}

/* Usuario */

.topbar .top-user-label{
    color:rgba(255,255,255,.70) !important;
}

.topbar .top-user-info strong{
    color:#fff !important;
}

.topbar .top-user a{
    background:rgba(255,255,255,.13) !important;
    color:#fff !important;
    border:1px solid rgba(255,255,255,.18) !important;
    border-radius:9px !important;
}

/* CONTENIDO */

.container{
    margin-left:230px !important;
    width:auto !important;
    max-width:none !important;
    padding:25px !important;
}


/* ==========================================================
   MEDCOSTA - FRANJAS DE ACCIÓN DE MÓDULOS
   ========================================================== */

.dashboard-module{
    padding:18px 18px 0 !important;
    overflow:hidden !important;
}

.dashboard-module > div:nth-child(2){
    flex:1;
}

.dashboard-module-action{
    display:flex !important;
    align-items:center !important;
    min-height:40px !important;
    margin:14px -18px 0 !important;
    padding:0 18px !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:800 !important;
    letter-spacing:.02em !important;
}

/* Gestión de Personal */
.dashboard-module:nth-child(1) .dashboard-module-action{
    background:#1599a7 !important;
}

/* Gestión de Turnos */
.dashboard-module:nth-child(2) .dashboard-module-action{
    background:#2563eb !important;
}

/* Caja Menor */
.dashboard-module:nth-child(3) .dashboard-module-action{
    background:#f59e0b !important;
}

/* Planeador */
.dashboard-module:nth-child(4) .dashboard-module-action{
    background:#7c3aed !important;
}

/* Reportes */
.dashboard-module:nth-child(5) .dashboard-module-action{
    background:#0f766e !important;
}

/* Usuarios */
.dashboard-module:nth-child(6) .dashboard-module-action{
    background:#64748b !important;
}

/* Flecha */
.dashboard-module-arrow{
    color:#0795aa !important;
    font-size:17px !important;
}


/* ==========================================================
   MEDCOSTA - FONDO DEL INICIO
   ========================================================== */

.container{
    position:relative;
    background:
        linear-gradient(
            rgba(244,248,250,.78),
            rgba(244,248,250,.88)
        ),
        url("medcosta-fondo-inicio.png") center top / cover no-repeat;
    background-attachment:local;
}


/* ==========================================================
   MEDCOSTA - FONDO GESTIÓN ADMINISTRATIVA
   ========================================================== */

.container{
    position:relative;
    background:
        linear-gradient(
            rgba(244,248,250,.78),
            rgba(244,248,250,.88)
        ),
        url("gestion-administrativa-fondo.png") center top / cover no-repeat;
    background-attachment:local;
}


/* ==========================================================
   MEDCOSTA - AJUSTE DE OPACIDAD DEL FONDO ADMINISTRATIVO
   ========================================================== */

.container{
    background:
        linear-gradient(
            rgba(244,248,250,.91),
            rgba(244,248,250,.94)
        ),
        url("gestion-administrativa-fondo.png") center top / cover no-repeat !important;
}


/* ==========================================================
   MEDCOSTA - DASHBOARD ADMINISTRATIVO TIPO SYSTEMIPS
   ========================================================== */

/* BANNER PRINCIPAL */

.dashboard-welcome{
    position:relative !important;
    min-height:250px !important;
    height:250px !important;
    padding:0 !important;
    border-radius:18px !important;
    overflow:hidden !important;

    background:
        url("gestion-administrativa-fondo.png")
        center center / cover no-repeat !important;

    box-shadow:
        0 10px 28px rgba(13,56,91,.12) !important;
}

/* La imagen ya contiene el título y la identidad */

.dashboard-welcome-text{
    display:none !important;
}

.dashboard-welcome-icon{
    display:none !important;
}

/* ==========================================================
   RESUMEN - OCULTO PARA DAR PRIORIDAD A LOS ACCESOS
   ========================================================== */

.dashboard-section-title:first-of-type,
.dashboard-stats{
    display:none !important;
}

/* ==========================================================
   ACCESOS PRINCIPALES
   ========================================================== */

.dashboard-section-title{
    margin:24px 0 14px !important;
}

.dashboard-section-title h2{
    color:#083b70 !important;
    font-size:20px !important;
    font-weight:800 !important;
}

.dashboard-section-title h2::first-letter{
    color:#1599a7;
}

/* Cambiar texto visualmente */
.dashboard-section-title h2{
    font-size:0 !important;
}

.dashboard-section-title h2::after{
    content:"🧩  Accesos principales";
    font-size:20px;
}

/* ==========================================================
   TARJETAS
   ========================================================== */

.dashboard-modules{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:16px !important;
}

.dashboard-module{
    min-height:175px !important;
    padding:18px 18px 0 !important;
    border-radius:16px !important;
    overflow:hidden !important;
    background:rgba(255,255,255,.96) !important;
    border:1px solid #d8e5ed !important;
    box-shadow:0 7px 22px rgba(13,56,91,.07) !important;
}

.dashboard-module:hover{
    transform:translateY(-3px) !important;
    box-shadow:0 14px 30px rgba(13,56,91,.13) !important;
}

/* Iconos */

.dashboard-module-icon{
    width:46px !important;
    height:46px !important;
    border-radius:12px !important;
    font-size:24px !important;
}

/* Títulos */

.dashboard-module h3{
    margin:13px 0 6px !important;
    color:#083b70 !important;
    font-size:16px !important;
}

/* Descripción */

.dashboard-module p{
    font-size:12px !important;
    line-height:1.45 !important;
}

/* Flecha */

.dashboard-module-arrow{
    color:#0795aa !important;
}

/* Franja inferior */

.dashboard-module-action{
    min-height:40px !important;
    margin:14px -18px 0 !important;
    padding:0 18px !important;
    display:flex !important;
    align-items:center !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:800 !important;
}

/* Colores */

.dashboard-module:nth-child(1) .dashboard-module-action{
    background:#14a3b3 !important;
}

.dashboard-module:nth-child(2) .dashboard-module-action{
    background:#2563eb !important;
}

.dashboard-module:nth-child(3) .dashboard-module-action{
    background:#f5a400 !important;
}

.dashboard-module:nth-child(4) .dashboard-module-action{
    background:#7c3aed !important;
}

.dashboard-module:nth-child(5) .dashboard-module-action{
    background:#0f8b78 !important;
}

.dashboard-module:nth-child(6) .dashboard-module-action{
    background:#64748b !important;
}

/* ==========================================================
   EVENTOS / INFORMACIÓN
   ========================================================== */

.dashboard-bottom{
    margin-top:18px !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media(max-width:1000px){

    .dashboard-modules{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

}

@media(max-width:650px){

    .dashboard-welcome{
        min-height:190px !important;
        height:190px !important;
    }

    .dashboard-modules{
        grid-template-columns:1fr !important;
    }

}


/* ==========================================================
   CORRECCIÓN DASHBOARD ADMINISTRATIVO
   ========================================================== */

/* El fondo ilustrado solo debe estar dentro del banner */
.container{
    background:#f3f8fa !important;
}

/* Banner completo y limpio */
.dashboard-welcome{
    height:290px !important;
    min-height:290px !important;
    background-size:100% 100% !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
    border-radius:18px !important;
}


/* =========================================================
   MEDCOSTA - LOGIN GESTION ADMINISTRATIVA
   Fondo corporativo + formulario independiente
   ========================================================= */

.login-page{
    position:relative!important;
    width:100vw!important;
    height:100vh!important;
    min-height:100vh!important;
    overflow:hidden!important;

    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;

    background:
        url("MEDCOSTA_LOGIN_FINAL.png")
        center center / cover
        no-repeat!important;
}

/* Ocultar el contenido visual anterior */
.login-visual{
    display:none!important;
}

/* Zona donde permanece el formulario */
.login-side{
    position:relative!important;
    z-index:10!important;

    width:420px!important;
    max-width:calc(100vw - 40px)!important;

    margin-right:6vw!important;

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

    background:transparent!important;
}

/* Tarjeta de acceso */
.login-box{
    width:100%!important;
    box-sizing:border-box!important;

    padding:38px!important;

    background:rgba(255,255,255,.94)!important;

    border:1px solid rgba(255,255,255,.75)!important;
    border-radius:22px!important;

    box-shadow:
        0 25px 60px rgba(0,35,70,.25),
        0 8px 25px rgba(0,0,0,.12)!important;

    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
}

.login-box h2{
    margin:0 0 8px!important;
    font-size:30px!important;
    font-weight:800!important;
    color:#123b5d!important;
}

.login-box .muted{
    margin-bottom:28px!important;
    color:#65798a!important;
}

.login-box .field{
    margin-bottom:18px!important;
}

.login-box .field label{
    display:block!important;
    margin-bottom:7px!important;
    font-weight:700!important;
    color:#31516a!important;
}

.login-box .field input{
    width:100%!important;
    height:48px!important;
    box-sizing:border-box!important;
    padding:0 15px!important;

    border:1px solid #d5e1e8!important;
    border-radius:11px!important;

    background:#f8fbfc!important;
    color:#173b55!important;

    outline:none!important;
    transition:.2s!important;
}

.login-box .field input:focus{
    border-color:#12a9b5!important;
    box-shadow:0 0 0 3px rgba(18,169,181,.12)!important;
    background:#fff!important;
}

.login-box .btn-primary{
    height:50px!important;
    border:0!important;
    border-radius:11px!important;

    background:linear-gradient(135deg,#08a6b5,#087fc1)!important;
    color:#fff!important;

    font-weight:800!important;
    letter-spacing:.4px!important;

    box-shadow:0 8px 18px rgba(8,127,193,.25)!important;
    cursor:pointer!important;
}

.login-box .login-note{
    margin-top:20px!important;
    text-align:center!important;
    font-size:12px!important;
    color:#8193a0!important;
}

@media(max-width:800px){

    .login-page{
        justify-content:center!important;
    }

    .login-side{
        width:420px!important;
        margin-right:0!important;
        padding:20px!important;
        box-sizing:border-box!important;
    }

}


/* =========================================================
   MEDCOSTA - BANNER FOTOGRÁFICO PARA MÓDULOS
   PRUEBA: GESTIÓN DE PERSONAL
   ========================================================= */

.personal-header{
    position:relative!important;
    min-height:250px!important;
    height:250px!important;
    box-sizing:border-box!important;

    display:flex!important;
    align-items:flex-end!important;
    justify-content:space-between!important;

    padding:32px 34px!important;
    margin-bottom:24px!important;

    border-radius:18px!important;
    overflow:hidden!important;

    background:
        linear-gradient(
            90deg,
            rgba(0,48,88,.72) 0%,
            rgba(0,70,110,.38) 45%,
            rgba(0,0,0,.05) 100%
        ),
        url("gestion-administrativa-fondo.png")
        center center / cover no-repeat!important;

    box-shadow:0 12px 30px rgba(0,50,80,.16)!important;
}

/* Capa sutil para integrar el contenido con la fotografía */
.personal-header::after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,.02) 35%,
        rgba(0,25,55,.38) 100%
    )!important;
    pointer-events:none!important;
}

/* Contenido del título */
.personal-header > div:first-child{
    position:relative!important;
    z-index:2!important;
    max-width:700px!important;
}

.personal-header small{
    display:block!important;
    margin-bottom:8px!important;

    color:#ffffff!important;
    font-size:11px!important;
    font-weight:800!important;
    letter-spacing:1.4px!important;
    text-transform:uppercase!important;
    text-shadow:0 2px 5px rgba(0,0,0,.35)!important;
}

.personal-header h1{
    margin:0!important;

    color:#ffffff!important;
    font-size:32px!important;
    line-height:1.1!important;
    font-weight:800!important;

    text-shadow:0 2px 7px rgba(0,0,0,.38)!important;
}

.personal-header p{
    margin:8px 0 0!important;

    color:#ffffff!important;
    font-size:14px!important;

    text-shadow:0 2px 5px rgba(0,0,0,.35)!important;
}

/* Botón sobre la fotografía */
.personal-header-action{
    position:relative!important;
    z-index:3!important;
}

.personal-new{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;

    min-height:44px!important;
    padding:0 20px!important;

    border-radius:11px!important;

    background:linear-gradient(
        135deg,
        #08aebd,
        #0788bd
    )!important;

    color:#ffffff!important;
    font-size:12px!important;
    font-weight:800!important;
    text-decoration:none!important;

    box-shadow:0 8px 18px rgba(0,50,80,.25)!important;
}

.personal-new:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 10px 22px rgba(0,50,80,.30)!important;
}

/* Responsive */
@media(max-width:700px){

    .personal-header{
        height:auto!important;
        min-height:300px!important;
        align-items:flex-end!important;
        flex-direction:column!important;
        justify-content:flex-end!important;
        gap:18px!important;
    }

    .personal-header-action{
        align-self:flex-start!important;
    }

}


/* CORRECCIÓN: evitar que se corte el contenido de la imagen */
.personal-header{
    background-size:100% auto!important;
    background-position:center top!important;
    background-repeat:no-repeat!important;
}


/* =========================================================
   CORRECCIÓN FINAL DEL BANNER DE MÓDULOS
   ========================================================= */

.personal-header{
    height:330px!important;
    min-height:330px!important;

    align-items:flex-end!important;

    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;

    padding:32px 34px!important;
}

/* Zona inferior para el título */
.personal-header > div:first-child{
    margin-bottom:4px!important;
    padding:18px 22px!important;

    border-radius:14px!important;

    background:rgba(0,45,75,.68)!important;
    backdrop-filter:blur(5px)!important;
    -webkit-backdrop-filter:blur(5px)!important;
}

/* Evitar que la capa anterior interfiera */
.personal-header::after{
    background:linear-gradient(
        180deg,
        rgba(0,0,0,0) 35%,
        rgba(0,20,45,.30) 100%
    )!important;
}


/* Ajuste final: título integrado en la fotografía */
.personal-header > div:first-child{
    background:rgba(0,45,75,.28)!important;
    backdrop-filter:blur(2px)!important;
    -webkit-backdrop-filter:blur(2px)!important;
    padding:14px 18px!important;
    border-radius:10px!important;
}


/* =========================================================
   MEDCOSTA - BANNER FOTOGRÁFICO UNIFICADO
   TODOS LOS MÓDULOS
   ========================================================= */

.turnos-header,
.planeador-header,
.reportes-header,
.usuarios-header,
.caja-menos-header{
    position:relative!important;
    height:330px!important;
    min-height:330px!important;
    box-sizing:border-box!important;

    display:flex!important;
    align-items:flex-end!important;
    justify-content:space-between!important;

    padding:32px 34px!important;
    margin-bottom:24px!important;

    border-radius:18px!important;
    overflow:hidden!important;

    background:
        linear-gradient(
            90deg,
            rgba(0,48,88,.38) 0%,
            rgba(0,70,110,.15) 55%,
            rgba(0,0,0,.03) 100%
        ),
        url("gestion-administrativa-fondo.png")
        center center / cover no-repeat!important;

    box-shadow:0 12px 30px rgba(0,50,80,.16)!important;
}

/* Capa de integración */
.turnos-header::after,
.planeador-header::after,
.reportes-header::after,
.usuarios-header::after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    pointer-events:none!important;

    background:linear-gradient(
        180deg,
        rgba(0,0,0,0) 35%,
        rgba(0,20,45,.30) 100%
    )!important;
}

/* Contenedor del título */
.turnos-header > div:first-child,
.planeador-header > div:first-child,
.reportes-header > div:first-child,
.usuarios-header > div:first-child{
    position:relative!important;
    z-index:2!important;

    padding:14px 18px!important;
    border-radius:10px!important;

    background:rgba(0,45,75,.28)!important;

    backdrop-filter:blur(2px)!important;
    -webkit-backdrop-filter:blur(2px)!important;
}

/* Texto superior */
.turnos-header small,
.planeador-header small,
.reportes-header small,
.usuarios-header small{
    color:#fff!important;
    text-shadow:0 2px 5px rgba(0,0,0,.35)!important;
}

/* Títulos */
.turnos-header h1,
.planeador-header h1,
.reportes-header h1,
.usuarios-header h1{
    color:#fff!important;
    text-shadow:0 2px 7px rgba(0,0,0,.40)!important;
}

/* Descripción */
.turnos-header p,
.planeador-header p,
.reportes-header p,
.usuarios-header p{
    color:#fff!important;
    text-shadow:0 2px 5px rgba(0,0,0,.35)!important;
}

/* Iconos antiguos: no los necesitamos */
.turnos-header-icon,
.planeador-header-icon,
.reportes-header-icon,
.usuarios-header-icon{
    display:none!important;
}

/* =========================================================
   CAJA MENOR
   ========================================================= */

.caja_menor .hero,
section.hero{
    position:relative!important;
    min-height:330px!important;
    height:330px!important;
    box-sizing:border-box!important;

    border-radius:18px!important;
    overflow:hidden!important;

    background:
        linear-gradient(
            90deg,
            rgba(0,48,88,.38),
            rgba(0,70,110,.12)
        ),
        url("gestion-administrativa-fondo.png")
        center center / cover no-repeat!important;

    box-shadow:0 12px 30px rgba(0,50,80,.16)!important;
}

/* =========================================================
   PERSONAL - conservar diseño aprobado
   ========================================================= */

.personal-header{
    height:330px!important;
    min-height:330px!important;
}


/* =========================================================
   MEDCOSTA - ESTANDARIZACIÓN DEFINITIVA DE BANNERS
   MISMA ALTURA + MISMO ZOOM + MISMA POSICIÓN
   ========================================================= */

.personal-header,
.turnos-header,
.planeador-header,
.reportes-header,
.usuarios-header,
.caja-wrap > .hero{

    height:330px!important;
    min-height:330px!important;
    max-height:330px!important;

    box-sizing:border-box!important;

    background-image:
        linear-gradient(
            90deg,
            rgba(0,48,88,.38) 0%,
            rgba(0,70,110,.15) 55%,
            rgba(0,0,0,.03) 100%
        ),
        url("gestion-administrativa-fondo.png")!important;

    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;

    border-radius:18px!important;
    overflow:hidden!important;
}

/* =========================================================
   MISMA ESCALA VISUAL PARA EL CONTENIDO
   ========================================================= */

.personal-header > div:first-child,
.turnos-header > div:first-child,
.planeador-header > div:first-child,
.reportes-header > div:first-child,
.usuarios-header > div:first-child,
.caja-wrap > .hero > div:first-child{

    position:relative!important;
    z-index:5!important;
}

/* =========================================================
   CAJA MENOR - OCULTAR ICONO ANTIGUO
   ========================================================= */

.caja-wrap > .hero .hero-badge{
    display:none!important;
}

/* =========================================================
   CAJA MENOR - TEXTO COMO LOS DEMÁS
   ========================================================= */

.caja-wrap > .hero > div:first-child{
    padding:14px 18px!important;
    border-radius:10px!important;
    background:rgba(0,45,75,.28)!important;

    backdrop-filter:blur(2px)!important;
    -webkit-backdrop-filter:blur(2px)!important;
}

.caja-wrap > .hero h1{
    color:#fff!important;
    text-shadow:0 2px 7px rgba(0,0,0,.40)!important;
}

.caja-wrap > .hero p{
    color:#fff!important;
    text-shadow:0 2px 5px rgba(0,0,0,.35)!important;
}


/* =========================================================
   CORRECCIÓN VISUAL 2026
   GESTIÓN ADMINISTRATIVA MEDCOSTA
   Lectura cómoda + sin scroll horizontal
   ========================================================= */

html{
  overflow-x:hidden;
}

body{
  overflow-x:hidden;
  font-size:15px;
}

/* ÁREA PRINCIPAL */
.container{
  width:auto;
  max-width:none;
  margin-left:260px;
  padding:30px 34px 50px;
}

/* TÍTULOS */
.hero h1{
  font-size:34px;
  line-height:1.2;
}

.hero p{
  font-size:16px;
  line-height:1.55;
}

.section-title{
  font-size:24px;
  line-height:1.3;
}

/* TARJETAS */
.grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.card{
  padding:26px;
  min-height:190px;
}

.card h3{
  font-size:21px;
  line-height:1.3;
}

.card p{
  font-size:15px;
  line-height:1.6;
}

.card-icon{
  width:58px;
  height:58px;
  font-size:29px;
}

/* ESTADÍSTICAS */
.stats{
  gap:20px;
}

.stat{
  padding:21px 22px;
}

.stat small{
  font-size:13px;
}

.stat strong{
  font-size:30px;
}

/* MENÚ LATERAL */
.sidebar-link{
  min-height:52px;
  padding:11px 15px;
  font-size:14px;
}

.sidebar-icon{
  width:32px;
  height:32px;
  font-size:18px;
}

.sidebar-title span{
  font-size:12px;
}

/* BARRA SUPERIOR */
.topbar{
  min-height:78px;
}

.brand-title{
  font-size:18px;
}

.brand-subtitle{
  font-size:12px;
}

.top-user-info strong{
  font-size:15px;
}

.top-user a{
  font-size:13px;
  padding:10px 14px;
}

/* TABLAS: MÁS LEGIBLES Y SIN DESBORDAMIENTO HORIZONTAL */
table{
  width:100%;
  border-collapse:collapse;
}

th{
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}

td{
  font-size:14px;
}

th,
td{
  padding:12px 10px;
}

/* EVITAR QUE ELEMENTOS GRANDES ROMPAN LA PANTALLA */
img,
video,
iframe{
  max-width:100%;
}

button,
input,
select,
textarea{
  max-width:100%;
}

/* EL SCROLL GENERAL PERMITIDO ES SOLO VERTICAL */
body{
  overflow-y:auto;
}

/* RESPONSIVE */
@media(max-width:1200px){

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

}

@media(max-width:900px){

  .sidebar{
    width:220px;
  }

  .topbar,
  .container,
  .footer{
    margin-left:220px;
  }

  .container{
    padding-left:24px;
    padding-right:24px;
  }

}

@media(max-width:760px){

  .sidebar{
    position:relative;
    width:100%;
  }

  .topbar,
  .container,
  .footer{
    margin-left:0;
  }

  .grid,
  .stats{
    grid-template-columns:1fr;
  }

  .container{
    padding:22px 18px 40px;
  }

  .hero{
    padding:24px;
  }

  .hero h1{
    font-size:28px;
  }

}

