@font-face {
    font-family: 'movistar_headlinebold';
    src: url('../fonts/movistarheadline-bold-webfont.eot');
    src: url('../fonts/movistarheadline-bold-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/movistarheadline-bold-webfont.woff2') format('woff2'),
        url('../fonts/movistarheadline-bold-webfont.woff') format('woff'),
        url('../fonts/movistarheadline-bold-webfont.ttf') format('truetype'),
        url('../fonts/movistarheadline-bold-webfont.svg#movistar_headlinebold') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #ddd !important;
    width: 100%;
}        
.contenedor{
}
.p-top-25 { padding-top:25px}
.p-bottom-25 { padding-bottom:25px}

.panel-title { font-weight:700
}

.btn,
.help-block {
    transition: all 0.3s ease 0s;
}

.panel-login .panel-body {
    background-color:#fff ;
    padding: 15px 0px 15px 0px;
}
.panel-login .panel-heading {
    /*    background-color:#bc0792 ;*/
    color:#FFF
}
.input-group {
    padding-top: 0px;
    padding-bottom:30px;
    background-color: rgba(2555,255,255,.3);
}
.btn btn-primary pull-right{
    padding-top: 30px;
    background-color: rgba(2555,255,255,.3);
}

.panel {
    border: 0px solid transparent;
}
.panel-title{
    font-family: 'movistar_headlinebold';
    font-size:24px;
    color:#bc0792;
}
.btn{
    text-shadow: 0.05em 0.05em 0.0em #505050;
    width:120px;
    height:40px;
    border:0px;
    border-radius: inherit;
}
.logo1{
    margin:10px 0px 10px 0px;
    width: 95%;
    float:left;
}
.logoi{
    margin:10px 0px 10px 0px;
    width: 40%;
    float:left;
}
.logo2{
    margin:10px 50px 10px 0px;
    width: 15%;
    float:right;
}
h3{
    color:#000;
    text-align:center;
    padding:10px;
}
h5{
    color:#bc0792;
    padding:20px;
    font-size:12px;
}
h6{
    color:#000;
}
.titulo{
    font-family: 'movistar_headlinebold';
    font-size:24px;
    background-color:#f5f5f6;
    border-radius:6px;
    border:1px solid #f5f5f6;
    color:#777777;
    padding:6px 24px;
    text-decoration:none;
    text-shadow:1px 1px 0px #ffffff;
    margin-bottom:30px;

}
.select{
    margin-bottom:30px;
}
.invalid{
    color:#cc0000;
    border:1px solid #cf0e0e;
}
.valid{
    color:#009900;
    border:1px solid #0c9e0c;
}
.opcion-no{
    text-shadow: 0.05em 0.05em 0.0em #505050;
    width:120px;
    height:40px;
    background: -webkit-linear-gradient(#686868, #969696);
    border:0px;
}
.cerrar{
    text-align:center;

}
.cerrar a{
    color:#000 !important;
    font-size:14px;
    padding: 20% 0 0 30%;
    float:left;

}
#home{
    padding:0px;}
.subtitulo{
    text-align:center;
    font-size:24px;
    padding: 5px 0px 25px 0px;
    color:#bc0792;
}
.icono{
    font-size:24px
}
.text{
    text-align:center;
    color:#bc0792;
}
.header{
    background-color:#ffffff;
    overflow:hidden;
    margin: 0 auto;
}	
.banner{
    margin: 0 auto; 
    padding-left:0px !important;
    padding-right:0px !important;
}
.barra{
    height:3px;
    background-color:#24c1d0;
    margin: 0 auto;
    padding-bottom:5px;
}

.procesar{
    opacity: 0.4;
}

.normal{
    opacity: 100;
}

@media only screen and (max-width: 991px) {
    .banner{
        /*width: 98%;*/
    }
    .logo1{
        margin: 10px 0px 10px 0px;
        width: 30%;
    }
    .barra{
        /*width: 96%;*/
    }	
    .header {
        /*width: 96.7%;*/
    }
    .cerrar a {
        font-size: 14px;
        padding: 6% 0 0 53%;
    }
}
@media only screen and (max-width: 765px) {
    .cerrar a {
        font-size: 14px;
        padding: 5% 0 0 51%;
    }
    .banner{
        width: 97.2%;
    }
    .barra{
        width: 95.9%;
    }

}
@media only screen and (max-width: 694px) {
    .cerrar a {
        font-size: 14px;
        padding: 5% 0 0 50%;
    }
    .banner{
        width: 97%;
    }
    .barra{
        width: 95.5%;
    }
}
@media only screen and (max-width: 664px) {

    .nav-tabs li{
        width:100%;
        text-align:center;
        border-bottom:#cecece 1px dashed;
    }
    * {
        padding: 0px 5px 0px 5px;
    }
    .nav-tabs li.active a{
        border: 0px none #ddd;
        border-radius:0;
    }
    .nav-tabs{
        border-bottom: 0px solid #ddd;
    }
    .cerrar a {
        font-size: 14px;
        padding: 5% 0 0 41%;
    }
    .banner{
        width: 96.8%;
    }
    .barra{
        width: 95.2%;
    }
}
@media only screen and (max-width: 498px) {
    .cerrar a {
        font-size: 14px;
        padding: 5% 0 0 35%;
    }
    .banner{
        width: 96%;
    }
    .barra{
        width: 93.5%;
    }
}
@media only screen and (max-width: 480px) {
    .banner{
        width: 96%;
    }
    .logo1{
        margin: 10px 0px 10px 0px;
        width: 45%;
    }
    .barra{
    }
    .cerrar a {
        font-size: 14px;
        padding: 5% 0 0 10%;
    }
}
@media only screen and (max-width: 480px) {
    .banner{
        width: 96%;
    }
    .barra{
        width: 93.5%;
    }
}
@media only screen and (max-width: 330px) {
    .header {
        width: 90%;
    }
    .banner{
        width: 93.5%;
    }
    .logo1{
        margin: 10px 0px 10px 0px;
        width: 45%;
    }
    .barra{
        width: 89.7%;
    }
    .cerrar a {
        font-size: 14px;
        padding: 5% 0 0 10%;
    }
    .cerrar a {
        font-size: 14px;
        padding: 5% 0 0 3%;
    }

}
.nomostrar{
    display: none;
}

/* =========================================================
   UI moderna PHP 8.2 - sidebar colapsable
   ========================================================= */
:root {
    --app-bg: #f4f7fb;
    --sidebar-bg: #121a2f;
    --sidebar-bg-2: #17223d;
    --sidebar-text: #dbe5ff;
    --sidebar-muted: #8fa2c8;
    --accent: #24c1d0;
    --accent-2: #bc0792;
    --card-bg: #ffffff;
    --card-border: #e6ebf2;
    --text-main: #1f2937;
    --text-muted: #64748b;
}

body {
    background: var(--app-bg) !important;
    color: var(--text-main);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    background: var(--app-bg);
}

.sidebar {
    width: 270px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
    color: var(--sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    box-shadow: 12px 0 30px rgba(15, 23, 42, .18);
    transition: width .25s ease;
    overflow-x: hidden;
}

.sidebar-brand {
    height: 86px;
    padding: 18px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
}

.sidebar-title strong,
.sidebar-title small {
    display: block;
    white-space: nowrap;
}

.sidebar-title strong {
    font-size: 16px;
    letter-spacing: .3px;
}

.sidebar-title small {
    color: var(--sidebar-muted);
    font-size: 12px;
    margin-top: 2px;
}

.sidebar-toggle {
    width: calc(100% - 24px);
    margin: 14px 12px;
    padding: 11px 14px;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    color: var(--sidebar-text);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background .2s ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    background: rgba(255,255,255,.14);
    outline: none;
}

.sidebar-nav {
    padding: 6px 10px 12px;
    margin: 0;
}

.sidebar-nav > li {
    float: none !important;
    margin: 4px 0;
}

.sidebar-nav > li > a,
.sidebar-footer > a {
    color: var(--sidebar-text) !important;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex !important;
    align-items: center;
    gap: 13px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: .2px;
    border: 1px solid transparent !important;
    white-space: nowrap;
}

.sidebar-nav > li > a i,
.sidebar-footer > a i,
.sidebar-toggle i {
    width: 21px;
    text-align: center;
    font-size: 17px;
    flex: 0 0 21px;
}

.sidebar-nav > li.active > a,
.sidebar-nav > li > a:hover,
.sidebar-nav > li > a:focus {
    background: rgba(36,193,208,.15) !important;
    color: #fff !important;
    border-color: rgba(36,193,208,.35) !important;
    text-decoration: none;
}

.sidebar-nav > li.active > a i {
    color: var(--accent);
}

.sidebar-footer {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 12px;
}

.main-content {
    margin-left: 270px;
    width: calc(100% - 270px);
    min-height: 100vh;
    padding: 24px;
    transition: margin-left .25s ease, width .25s ease;
}

.topbar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    min-height: 92px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, .06);
    margin-bottom: 20px;
}

.topbar h1 {
    margin: 0;
    padding: 0;
    color: var(--text-main);
    text-align: left;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.topbar p {
    color: var(--text-muted);
    margin: 5px 0 0;
}

.btn-modern {
    width: auto !important;
    min-width: 96px;
    height: auto !important;
    padding: 10px 16px !important;
    border-radius: 14px !important;
    text-shadow: none !important;
    background: linear-gradient(135deg, var(--accent), #158aa0) !important;
    border: 0 !important;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, .06);
    overflow: auto;
}

.modern-tab-content:before,
.modern-tab-content:after {
    content: " ";
    display: table;
}
.modern-tab-content:after { clear: both; }

.app-footer {
    padding: 18px 6px 0;
    color: var(--text-muted);
    font-size: 12px;
}

body.sidebar-collapsed .sidebar {
    width: 82px;
}

body.sidebar-collapsed .main-content {
    margin-left: 82px;
    width: calc(100% - 82px);
}

body.sidebar-collapsed .menu-text,
body.sidebar-collapsed .sidebar-title {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-collapsed .sidebar-toggle,
body.sidebar-collapsed .sidebar-nav > li > a,
body.sidebar-collapsed .sidebar-footer > a {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-collapsed .sidebar-toggle {
    width: 58px;
    margin-left: 12px;
}

/* Login moderno */
.login-modern-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(36,193,208,.25), transparent 32%), linear-gradient(135deg, #eef6ff, #f8fafc);
}
.login-card-modern {
    margin-top: 7vh;
    border: 0 !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
}
.login-card-modern .panel-heading {
    background: #fff !important;
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--card-border);
    padding: 24px;
}
.login-card-modern .panel-body {
    padding: 28px !important;
}
.login-card-modern .input-group-addon {
    border-radius: 14px 0 0 14px;
    border-color: #dbe4ef;
    background: #f8fafc;
}
.login-card-modern .form-control {
    border-radius: 0 14px 14px 0;
    border-color: #dbe4ef;
    box-shadow: none;
}
.login-card-modern .input-group {
    background: transparent;
}

@media (max-width: 768px) {
    .sidebar {
        width: 82px;
    }
    .main-content {
        margin-left: 82px;
        width: calc(100% - 82px);
        padding: 14px;
    }
    .sidebar .menu-text,
    .sidebar .sidebar-title {
        display: none;
    }
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 18px;
    }
    .topbar h1 {
        font-size: 18px;
    }
    .content-card {
        padding: 14px;
        border-radius: 18px;
    }
}

/* === Mejoras PRO: Dashboard, UX y modo oscuro === */
:root {
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;
    --danger: #ef4444;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs {
    color: var(--text-muted);
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 700;
}

.btn-modern-light {
    width: auto !important;
    height: auto !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--text-main) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: none !important;
}

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

.subtitulo-modern {
    font-size: 22px !important;
    font-weight: 800;
    color: var(--text-main) !important;
    margin-bottom: 2px !important;
}

.dashboard-muted {
    color: var(--text-muted);
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.metric-card {
    position: relative;
    border-radius: 22px;
    padding: 20px;
    border: 1px solid var(--card-border);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.metric-card:after {
    content: "";
    position: absolute;
    right: -30px;
    top: -35px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    opacity: .12;
    background: currentColor;
}

.metric-card small {
    display: block;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-card strong {
    font-size: 34px;
    line-height: 1;
    color: var(--text-main);
}

.metric-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    margin-bottom: 14px;
    font-size: 19px;
}

.metric-primary { color: var(--accent); }
.metric-success { color: var(--success); }
.metric-warning { color: var(--warning); }
.metric-info { color: var(--info); }
.metric-primary .metric-icon { background: var(--accent); }
.metric-success .metric-icon { background: var(--success); }
.metric-warning .metric-icon { background: var(--warning); }
.metric-info .metric-icon { background: var(--info); }

.dashboard-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dashboard-panel {
    border: 1px solid var(--card-border);
    border-radius: 22px;
    background: #fff;
    padding: 18px;
    min-height: 270px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.panel-title-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
}
.status-info { background: rgba(59,130,246,.12); color: #2563eb; }
.status-success { background: rgba(34,197,94,.12); color: #16a34a; }
.status-warning { background: rgba(245,158,11,.12); color: #d97706; }
.status-danger { background: rgba(239,68,68,.12); color: #dc2626; }
.status-neutral { background: rgba(100,116,139,.12); color: #475569; }

.mt-20 { margin-top: 20px; }

.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.25);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}
.global-loader.is-visible { display: flex; }
.global-loader-box {
    background: #fff;
    color: var(--text-main);
    border-radius: 18px;
    padding: 16px 22px;
    box-shadow: 0 20px 60px rgba(15,23,42,.22);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

body.dark-mode {
    --body-bg: #0f172a;
    --card-bg: #111827;
    --card-border: rgba(148,163,184,.18);
    --text-main: #e5e7eb;
    --text-muted: #94a3b8;
    background: #0f172a !important;
}
body.dark-mode .topbar,
body.dark-mode .content-card,
body.dark-mode .metric-card,
body.dark-mode .dashboard-panel,
body.dark-mode .btn-modern-light,
body.dark-mode .breadcrumbs {
    background: #111827 !important;
    color: var(--text-main) !important;
    border-color: var(--card-border) !important;
}
body.dark-mode .table,
body.dark-mode .table td,
body.dark-mode .table th {
    color: var(--text-main);
    border-color: rgba(148,163,184,.18) !important;
}
body.dark-mode .table-striped > tbody > tr:nth-of-type(odd),
body.dark-mode .active,
body.dark-mode .info {
    background-color: rgba(148,163,184,.08) !important;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .form-control {
    background: #0b1220 !important;
    color: #e5e7eb !important;
    border-color: rgba(148,163,184,.25) !important;
}
body.dark-mode .global-loader-box {
    background: #111827;
    color: #e5e7eb;
}

@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
    .dashboard-panels { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-header { align-items: flex-start; flex-direction: column; }
    .topbar-actions { justify-content: flex-start; }
}
