/* ============================================================
   Base propia que sustituye a Bootstrap 3.0.3 en las paginas de
   lector. Reproduce solo lo que usan esas paginas, con los mismos
   valores para no mover la maqueta: tipografia base, .container,
   .row y columnas col-sm-* / col-md-*, formularios, botones, alertas,
   .nav, utilidades (pull-*, text-center, sr-only) y paginacion.
   La cabecera nueva (includes/header.php) no depende de nada de esto.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px; line-height: 1.428571429; color: #333; background-color: #fff;
}
article, aside, details, figcaption, figure, footer, header, main, nav, section, summary { display: block; }
[hidden], template { display: none; }
a { background: transparent; color: #428bca; text-decoration: none; }
a:hover, a:focus { color: #2a6496; text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--on-surface-strong, #3a4045); outline-offset: 2px; }
b, strong { font-weight: bold; }
small { font-size: 85%; }
img { border: 0; vertical-align: middle; }
hr { height: 0; margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee; }
figure { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; color: inherit; }
button, select { text-transform: none; }
button, html input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
button[disabled], html input[disabled] { cursor: default; }
textarea { overflow: auto; vertical-align: top; }
table { border-collapse: collapse; border-spacing: 0; }

h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; }
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }
h1 { font-size: 36px; } h2 { font-size: 30px; } h3 { font-size: 24px; }
h4 { font-size: 18px; } h5 { font-size: 14px; } h6 { font-size: 12px; }
p { margin: 0 0 10px; }
ul, ol { margin-top: 0; margin-bottom: 10px; }
ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; }
label { display: inline-block; margin-bottom: 5px; font-weight: bold; }

/* ---------- Rejilla (mismos cortes que Bootstrap 3) ---------- */
.container { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; }
.row { margin-left: -15px; margin-right: -15px; }
.container::before, .container::after, .row::before, .row::after,
.nav::before, .nav::after, .clearfix::before, .clearfix::after { content: " "; display: table; }
.container::after, .row::after, .nav::after, .clearfix::after { clear: both; }
[class*="col-sm-"], [class*="col-md-"] { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; }
@media (min-width: 768px) {
    .container { width: 750px; }
    .col-sm-3, .col-sm-4, .col-sm-6, .col-sm-8, .col-sm-9, .col-sm-12 { float: left; }
    .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.33333333%; } .col-sm-6 { width: 50%; }
    .col-sm-8 { width: 66.66666667%; } .col-sm-9 { width: 75%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
    .container { width: 970px; }
    .col-md-6, .col-md-12 { float: left; }
    .col-md-6 { width: 50%; } .col-md-12 { width: 100%; }
}
@media (min-width: 1200px) { .container { width: 1170px; } }

/* ---------- Utilidades ---------- */
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 15px; }
.form-control {
    display: block; width: 100%; height: 34px; padding: 6px 12px;
    font-size: 14px; line-height: 1.428571429; color: #555; background-color: #fff;
    border: 1px solid #ccc; border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus { border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6); }
.form-control::placeholder { color: #999; }
textarea.form-control { height: auto; }

/* ---------- Botones ---------- */
.btn {
    display: inline-block; margin-bottom: 0; padding: 6px 12px;
    font-size: 14px; font-weight: normal; line-height: 1.428571429; text-align: center;
    white-space: nowrap; vertical-align: middle; cursor: pointer; user-select: none;
    background-image: none; border: 1px solid transparent; border-radius: 4px;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--on-surface-strong, #3a4045); outline-offset: 2px; }
.btn-default { color: #333; background-color: #fff; border-color: #ccc; }
.btn-default:hover, .btn-default:focus { color: #333; background-color: #ebebeb; border-color: #adadad; }
.btn-primary { color: #fff; background-color: #428bca; border-color: #357ebd; }
.btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; }

/* ---------- Alertas ---------- */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; }
.alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; }

/* ---------- Navegacion en lista (sidebar de categorias) ---------- */
.nav { margin-bottom: 0; padding-left: 0; list-style: none; }
.nav > li { position: relative; display: block; }
.nav > li > a { position: relative; display: block; padding: 10px 15px; }
.nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eee; }
.nav-pills > li { float: left; }
.nav-pills > li > a { border-radius: 4px; }
.nav-pills > li + li { margin-left: 2px; }
.nav-stacked > li { float: none; }
.nav-stacked > li + li { margin-top: 2px; margin-left: 0; }

/* ---------- Paginacion (el aspecto final lo da refresh.css) ---------- */
.pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; }
.pagination > li { display: inline; }
.pagination > li > a, .pagination > li > span {
    position: relative; float: left; padding: 6px 12px; margin-left: -1px;
    line-height: 1.428571429; text-decoration: none; background-color: #fff; border: 1px solid #ddd;
}
