/* Datamovilidad v2: capa visual sobre la plantilla Bootstrap 3 existente */
:root {
    --dm-blue: #0058b8;
    --dm-blue-dark: #003f85;
    --dm-blue-deep: #0a2547;
    --dm-blue-soft: #e8f1fb;
    --dm-gray: #585858;
    --dm-ink: #1d2733;
    --dm-muted: #5d6b7a;
    --dm-line: #e3e8ef;
    --dm-bg: #f5f7fa;
    --dm-radius: 12px;
    --dm-shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 8px 24px rgba(16, 32, 56, .06);
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--dm-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: inherit; color: var(--dm-ink); letter-spacing: -.01em; }
a { color: var(--dm-blue); }
a:hover, a:focus { color: var(--dm-blue-dark); }

/* ---------- Barra superior ---------- */
.top { background: var(--dm-blue-deep); border: 0; padding: 0; min-height: 0; }
.top .contact { display: none; }
.top .submenu { width: 100%; text-align: right; }
.top .loginbar { margin: 0; padding: 8px 0; }
.top .loginbar li a.login-btn,
.top .loginbar li a { color: #fff !important; font-size: 13px; font-weight: 500; opacity: .9; }
.top .loginbar li a:hover { opacity: 1; text-decoration: none; }
.top .socials-content { margin: 0 0 0 12px; display: inline-block; }
.top .socials-content a { color: #fff; opacity: .8; }

/* ---------- Encabezado y menu ---------- */
.header {
    background: #fff;
    border-bottom: 1px solid var(--dm-line);
    box-shadow: 0 2px 12px rgba(16, 32, 56, .04);
    position: sticky; top: 0; z-index: 1000;
}
.header .navbar { margin: 0; min-height: 72px; border: 0; }
.header .navbar-brand { display: block !important; padding: 12px 15px; height: auto; }
.header .navbar-brand img { height: 48px; width: auto; }
.header .navbar-nav > li > a {
    color: var(--dm-ink) !important;
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    padding: 26px 12px; border: 0 !important; background: transparent !important;
    transition: color .2s;
}
.header .navbar-nav > li > a:hover { color: var(--dm-blue) !important; }
.header .navbar-nav > li.active > a { color: var(--dm-blue) !important; box-shadow: inset 0 -3px 0 var(--dm-blue); }
.header .dropdown-menu { border: 1px solid var(--dm-line); border-radius: 10px; box-shadow: var(--dm-shadow); padding: 6px; border-top: 0; }
.header .dropdown-menu > li > a { border-radius: 6px; padding: 8px 12px; color: var(--dm-ink); }
.header .dropdown-menu > li > a:hover { background: var(--dm-blue-soft); color: var(--dm-blue); }
.header .navbar-toggle { margin-top: 18px; border-color: var(--dm-line); }
.header .navbar-toggle .icon-bar { background: var(--dm-ink); }
.header .caret-out { display: none; }
@media (min-width: 992px) {
    .header .navbar-collapse.navbar-left { float: right !important; }
}

/* ---------- Botones ---------- */
.btn-dm, .btn-success, .btn-u {
    background: var(--dm-blue); border: 0; color: #fff !important; border-radius: 8px;
    font-weight: 600; padding: 11px 22px; transition: background .2s, transform .2s;
}
.btn-dm:hover, .btn-success:hover, .btn-u:hover { background: var(--dm-blue-dark); transform: translateY(-1px); }
.btn-dm-outline {
    border: 1.5px solid rgba(255, 255, 255, .7); color: #fff !important; border-radius: 8px;
    font-weight: 600; padding: 10px 22px; background: transparent;
}
.btn-dm-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; text-decoration: none; }
.form-control { border-radius: 8px; border-color: var(--dm-line); box-shadow: none; height: 44px; }
.form-control:focus { border-color: var(--dm-blue); box-shadow: 0 0 0 3px rgba(0, 88, 184, .15); }

/* ---------- Portada ---------- */
.dm-hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 500px at 85% 20%, #0b6ad6 0%, transparent 60%),
                linear-gradient(135deg, var(--dm-blue-dark) 0%, var(--dm-blue-deep) 100%);
    padding: 88px 0 96px;
}
.dm-hero .dm-waves { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 560px; max-width: 60%; opacity: .9; pointer-events: none; }
.dm-hero .container { position: relative; z-index: 1; }
.dm-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9cc7ff; margin-bottom: 18px; }
.dm-hero h1 { color: #fff; font-size: 46px; line-height: 1.12; font-weight: 800; margin: 0 0 20px; max-width: 640px; }
.dm-hero .dm-lead { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 600px; margin-bottom: 32px; }
.dm-hero .dm-lead b, .dm-hero .dm-lead strong { color: #fff; }
.dm-actions .btn { margin: 0 10px 10px 0; }
.dm-stats { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.dm-stats li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.dm-stats strong { display: block; color: #fff; font-size: 15px; }

.dm-section { padding: 72px 0; }
.dm-section.dm-alt { background: var(--dm-bg); }
.dm-section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.dm-section-head h2 { font-size: 32px; font-weight: 800; margin: 6px 0 10px; }
.dm-section-head p { color: var(--dm-muted); font-size: 16px; margin: 0; }
.dm-kicker { color: var(--dm-blue); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.dm-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.dm-grid > .dm-col { padding: 12px; width: 25%; display: flex; }
.dm-grid.dm-grid-3 > .dm-col { width: 33.333%; }
@media (max-width: 991px) { .dm-grid > .dm-col, .dm-grid.dm-grid-3 > .dm-col { width: 50%; } }
@media (max-width: 600px) { .dm-grid > .dm-col, .dm-grid.dm-grid-3 > .dm-col { width: 100%; } }

.dm-card {
    background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius);
    box-shadow: var(--dm-shadow); overflow: hidden; width: 100%;
    display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.dm-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 32, 56, .06), 0 16px 32px rgba(16, 32, 56, .10); }
.dm-card-media { aspect-ratio: 16 / 11; background: var(--dm-blue-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dm-card-media img { width: 100%; height: 100%; object-fit: cover; }
.dm-card-media.dm-contain img { object-fit: contain; padding: 14px; background: #fff; }
.dm-card-media .dm-icon { width: 64px; height: 64px; color: var(--dm-blue); }
.dm-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.dm-card-body h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; line-height: 1.35; }
.dm-card-body h3 a { color: var(--dm-ink); }
.dm-card-body h3 a:hover { color: var(--dm-blue); text-decoration: none; }
.dm-card-body .dm-text { color: var(--dm-muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.dm-card-body .dm-text p { margin: 0 0 8px; }
.dm-more { margin-top: 14px; font-weight: 600; font-size: 14px; }
.dm-more:after { content: " \2192"; }

.dm-panel { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); box-shadow: var(--dm-shadow); padding: 28px; height: 100%; }
.dm-panel h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.dm-panel .nav-tabs { border-bottom: 1px solid var(--dm-line); margin-bottom: 18px; }
.dm-panel .nav-tabs > li > a { border: 0 !important; color: var(--dm-muted); font-weight: 600; border-radius: 0; padding: 10px 14px; background: transparent !important; }
.dm-panel .nav-tabs > li.active > a { color: var(--dm-blue); box-shadow: inset 0 -2px 0 var(--dm-blue); }
.dm-panel .tab-content { color: var(--dm-muted); line-height: 1.7; }
.dm-register { background: linear-gradient(135deg, var(--dm-blue) 0%, var(--dm-blue-dark) 100%); color: #fff; border: 0; }
.dm-register h3 { color: #fff; }
.dm-register p { color: rgba(255, 255, 255, .85); }
.dm-register .form-control { border: 0; }
.dm-register .btn-dm { background: #fff; color: var(--dm-blue) !important; width: 100%; }
.dm-register .btn-dm:hover { background: var(--dm-blue-soft); }
.dm-row-eq { display: flex; flex-wrap: wrap; }
.dm-row-eq > [class*="col-"] { display: flex; margin-bottom: 24px; }
.dm-row-eq > [class*="col-"] > * { width: 100%; }

.dm-cta { background: var(--dm-blue-deep); color: #fff; border-radius: 16px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.dm-cta h2 { color: #fff; font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.dm-cta p { color: rgba(255, 255, 255, .8); margin: 0; }

/* Clientes */
.clients, #clients-flexslider { background: transparent; border: 0; box-shadow: none; margin: 0; }
#clients-flexslider .content-title { display: none; }
#clients-flexslider li img { max-height: 70px; width: auto !important; margin: 0 auto; }

/* Titulos de contenido en paginas internas */
.content-title, .headline h2, .headline h3 { font-weight: 800; color: var(--dm-ink); }
.headline { border-bottom: 1px solid var(--dm-line); }
.headline h2, .headline h3 { border-bottom: 2px solid var(--dm-blue); }
.breadcrumbs { background: var(--dm-bg); border-bottom: 1px solid var(--dm-line); }

/* ---------- Apps de clientes (telemetria, data-table) ---------- */
.breadcrumbs.app { padding: 22px 0; margin-bottom: 28px; border-bottom: 1px solid var(--dm-line); }
.breadcrumbs.app .row { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs.app h1 { color: var(--dm-ink); font-size: 30px; font-weight: 800; padding: 0; }
.breadcrumbs.app a.back { margin-top: 0; font-weight: 600; }
#telemetria h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
#telemetria h2 a { font-family: inherit; font-size: 20px; font-weight: 600; }
#telemetria form { margin-bottom: 18px; }
#telemetria label { font-size: 13px; font-weight: 600; color: var(--dm-muted); margin-bottom: 6px; }
#telemetria .form-control,
#telemetria .form-control[readonly] {
    height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--dm-line); border-radius: 8px;
    color: var(--dm-ink); font-family: inherit; font-size: 14px; line-height: 42px;
}
#telemetria .datepicker[readonly] { cursor: pointer; }
#telemetria .form-control:focus { border-color: var(--dm-blue); box-shadow: 0 0 0 3px rgba(0, 88, 184, .15); }
#telemetria button.btn-primary {
    height: 44px; line-height: 44px; border-radius: 8px; font-weight: 600; font-size: 15px;
    background: var(--dm-blue); transition: background .2s;
}
#telemetria button.btn-primary:hover { background: var(--dm-blue-dark); }
@media (max-width: 991px) {
    #telemetria .col-md-3 { margin-bottom: 14px; }
    #telemetria .col-md-3:last-child label { display: none; }
}

/* ---------- Pie de pagina ---------- */
.footer { background: var(--dm-blue-deep); color: rgba(255, 255, 255, .78); padding-top: 56px; font-size: 14.5px; line-height: 1.7; }
.footer h3 { color: #fff; font-size: 16px; font-weight: 700; text-transform: none; border: 0; margin-bottom: 16px; }
.footer a { color: #9cc7ff; }
.footer a:hover { color: #fff; }
.footer img { max-width: 220px; height: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 12px; }
.footer ul { padding-left: 0; list-style: none; }
.copyright { background: #071a33; color: rgba(255, 255, 255, .6); border: 0; font-size: 13px; line-height: 1.7; padding: 22px 0; }
.copyright a { color: #9cc7ff; }
.copyright p, .copyright div, .copyright span { color: rgba(255, 255, 255, .62) !important; }
.copyright .col-md-6 { width: 100%; }

@media (max-width: 767px) {
    .dm-hero { padding: 56px 0 64px; }
    .dm-hero h1 { font-size: 32px; }
    .dm-hero .dm-lead { font-size: 16px; }
    .dm-hero .dm-waves { opacity: .25; max-width: 100%; right: -160px; }
    .dm-section { padding: 52px 0; }
    .dm-section-head h2 { font-size: 26px; }
    .header .navbar-nav > li > a { padding: 12px 15px; }
    .header .navbar-nav > li.active > a { box-shadow: inset 3px 0 0 var(--dm-blue); }
    .dm-cta { padding: 28px; }
}

/* Tablet: menu compacto en una linea y ondas detras del texto */
@media (min-width: 992px) and (max-width: 1199px) {
    .header .navbar-nav > li > a { padding: 26px 7px; font-size: 11.5px; letter-spacing: .02em; }
    .header .navbar-brand img { height: 40px; }
}
@media (max-width: 991px) {
    .dm-hero .dm-waves { opacity: .3; right: -120px; }
}

/* Menu hamburguesa hasta 991px (Bootstrap 3 lo hace solo hasta 767px) */
@media (max-width: 991px) {
    .header .navbar-header { float: none; }
    .header .navbar-toggle { display: block; }
    .header .navbar-collapse { border-top: 1px solid var(--dm-line); }
    .header .navbar-collapse.collapse { display: none !important; }
    .header .navbar-collapse.collapse.in { display: block !important; }
    .header .navbar-collapse.navbar-left { float: none !important; }
    .header .navbar-nav { float: none !important; margin: 6px -15px; }
    .header .navbar-nav > li { float: none; }
    .header .navbar-nav > li > a { padding: 12px 15px; }
    .header .navbar-nav > li.active > a { box-shadow: inset 3px 0 0 var(--dm-blue); }
}
