/*
 * Capa visual moderna para los temas "temas" y "hostingtemas".
 * Se carga la ultima. El color de cada sitio llega en --brand (header.php, opcion color_web);
 * el resto de colores se deriva de el. No cambia el HTML ni el contenido.
 *
 * Idea: una sola hoja continua. Banner, menu y contenido comparten el mismo ancho y forman
 * un unico bloque; dentro no hay cajas flotantes, solo lineas finas y espacio.
 */

:root {
  --brand-d: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-l: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-m: color-mix(in srgb, var(--brand) 40%, #fff);
  --muted: #6b7686;
  /* --bg, --r, --fs, --w, --font y --hfont las imprime header.php desde las opciones del panel */
  --rs: calc(var(--r) * .55);
  --rm: calc(var(--r) * .75);
  --rp: calc(var(--r) * 5);
  --shadow-h: 0 4px 8px rgba(16, 24, 40, .08), 0 18px 40px rgba(16, 24, 40, .14);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: var(--fs);
  line-height: var(--lh, 1.7);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hfont, inherit);
  font-weight: var(--hw, 700);
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.25;
}
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
a, a:visited { color: var(--link, var(--brand)); transition: color .15s, background-color .15s; }
a:hover, a:focus { color: color-mix(in srgb, var(--link, var(--brand)) 78%, #000); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--brand-m) !important;
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; }
::selection { background: var(--brand-m); }

/* ---------- Barra superior ---------- */
.top { height: auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px 0; }
.top .row { display: flex; align-items: center; flex-wrap: wrap; }
.top .row::before, .top .row::after { display: none; }
.top img { height: 30px; width: auto; vertical-align: middle; }
a.inst { position: static; display: inline-block; padding: 0 0 0 10px; font-size: 11px; letter-spacing: .06em; color: var(--brand) !important; }
ul.menu-top { margin: 0; }
ul.menu-top a { color: var(--muted); font-size: 13px; font-weight: 500; padding: 4px 8px; border-radius: var(--rs); }
ul.menu-top a:hover { color: var(--brand-d); background: var(--brand-l); }

/* ---------- Hoja: banner + menu + contenido, mismo ancho ---------- */
body header { background: transparent; padding: 20px 0 0; }
header > .container { padding-left: 0; padding-right: 0; }
header .row { margin-left: 0; margin-right: 0; }
header .logo { background: var(--header-bg, var(--brand)); border-radius: var(--r) var(--r) 0 0; overflow: hidden; padding: 0; }
header .logo img { display: block; width: 100%; }
h1.site_title { margin: 0; padding: 22px 28px; }
h1.site_title a { color: #fff; font-size: var(--site-fs, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

body .navbar-inverse {
  background: transparent !important;
  border: 0 !important;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 0 !important;
}
body .navbar-inverse > .container {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
}

.blog { padding: 0; }
.blog > .container {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r) var(--r);
  padding-top: calc(32px * var(--d, 1));
  padding-bottom: 0;
}

/* ---------- Navegacion ---------- */
body .navbar-inverse .navbar-nav > li > a,
body .navbar .nav > li > a {
  color: var(--ink) !important;
  font-size: var(--navfs, 14px);
  font-weight: 600;
  padding: 10px 11px;
  margin: 6px 2px 6px 0;
  border: 0 !important;
  border-radius: var(--rs);
  background: transparent;
}
body .navbar-inverse .navbar-nav > li > a:hover,
body .navbar-inverse .navbar-nav > li > a:focus,
body .navbar-inverse .navbar-nav > .open > a,
body .navbar-inverse .navbar-nav > .open > a:hover,
body .navbar-inverse .navbar-nav > .open > a:focus,
body .navbar .nav > li > a:hover {
  background: var(--brand-l) !important;
  color: var(--brand-d) !important;
}
body .navbar .nav .active > a,
body .navbar .nav .active > a:hover,
body .navbar .nav .active > a:focus,
body .navbar-inverse .navbar-nav > .active > a {
  background: var(--brand) !important;
  color: #fff !important;
}
.navbar .caret { border-top-color: currentColor; }
.dropdown-menu {
  background: var(--paper) !important;
  border: 1px solid var(--line);
  border-radius: var(--rm);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .12);
  padding: 6px;
  margin-top: 4px;
}
.dropdown-menu > li > a { border-radius: var(--rs); padding: 7px 12px; color: var(--ink) !important; font-weight: 500; }
.dropdown-menu > li > a:hover,
.dropdown-menu a:hover { background: var(--brand-l) !important; color: var(--brand-d) !important; }
.navbar-inverse .navbar-toggle { border-color: var(--line); border-radius: var(--rs); }
.navbar-inverse .navbar-toggle .icon-bar { background-color: var(--ink); }
.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background: var(--brand-l); }
.navbar-inverse .navbar-collapse { border-color: var(--line); }

.form-navbar-search { margin: 8px 0; }
.form-navbar-search .form-control {
  border-radius: var(--rp) 0 0 var(--rp);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: none;
  height: 34px;
  padding-left: 16px;
}
.form-navbar-search .form-control:focus { background: var(--paper); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
body .search,
body .search:hover,
body .search:focus {
  background-color: var(--brand) !important;
  background-image: none !important;
  border-color: var(--brand) !important;
  border-radius: 0 var(--rp) var(--rp) 0;
  height: 34px;
  padding: 0 14px;
}
body .search:hover { background-color: var(--brand-d) !important; opacity: 1; }

@media (min-width: 768px) {
  body .navbar-inverse .navbar-collapse { display: flex !important; align-items: center; flex-wrap: wrap; padding-left: 0; padding-right: 0; }
  body .navbar-inverse .navbar-nav { float: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; flex: 1 1 auto; }
  body .navbar-inverse .navbar-nav > li { float: none; }
  body .navbar-inverse .form-navbar-search { margin: 0 0 0 auto !important; padding: 0; display: flex; align-items: center; float: none !important; }
  body .navbar-inverse .form-navbar-search .form-group { margin: 0; }
  body .navbar-inverse .form-navbar-search .form-control { width: 150px; }
}

/* ---------- Entradas: lista continua separada por lineas ---------- */
.entry {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 calc(28px * var(--d, 1));
  margin-bottom: calc(28px * var(--d, 1));
}
.entry h2, .entry h2 a, .entry h2 a:visited { font-size: var(--h2, 23px); font-weight: var(--hw, 700); color: var(--ink); letter-spacing: -.015em; padding: 0; margin: 0 0 10px; }
.entry h2 a:hover { color: var(--brand); }
.entry p { color: var(--text); }
.entry img { border-radius: var(--imgr, var(--rs)); margin: 6px 0; }
.entry .thumb img, .entry img.thumbnail { float: left; margin: 4px 20px 10px 0; box-shadow: none; border: 0; border-radius: var(--imgr, var(--rs)); }
.entry hr { border-top: 1px solid var(--line); margin: 14px 0; }
.entry ul, .entry ol { padding-left: 1.3em; }

.entry .meta {
  font-family: inherit;
  font-size: 13px;
  text-transform: none;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 6px 0 0;
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.entry .meta i { color: var(--brand); margin-right: 3px; }
.entry .meta a { font-weight: 500; }
body .entry .readmore,
body .entry .readmore:visited {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--rp);
  padding: 3px 16px;
  right: 0;
  position: static;
  margin-left: auto;
  font-weight: 600;
  font-size: 13px;
  float: none !important;
  transition: background-color .15s, color .15s;
}
body .entry .readmore:hover { background: var(--brand); color: #fff; opacity: 1; }

.entry .tags a, .entry .tags a:visited { background: var(--brand-l); color: var(--brand-d); border-radius: var(--rp); padding: 3px 12px; font-family: inherit; font-weight: 500; }
.entry .tags a:hover { background: var(--brand); color: #fff; }
.entry .post-tags a { border-radius: var(--rp); background: var(--bg); color: var(--muted); padding: 0 14px; height: 28px; line-height: 28px; }
.entry .post-tags a::before, .entry .post-tags a::after { display: none; }
.entry .post-tags a:hover { background: var(--brand-l); color: var(--brand-d); }

.entry table { width: 100%; margin: 12px 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--rs); overflow: hidden; }
.entry th { background: var(--brand-l); color: var(--brand-d); font-weight: 700; }
.entry th, .entry td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.entry tr:last-child td { border-bottom: 0; }
.entry blockquote { border-left: 4px solid var(--brand); background: var(--brand-l); border-radius: 0 var(--rs) var(--rs) 0; padding: 10px 16px; font-size: 15px; }

/* Carrusel */
.flexslider {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rm);
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 28px;
}
.flexslider a, .flexslider a:visited { color: var(--ink); }
.slides h3 a, .slides h3 { color: var(--ink) !important; }
.flexslider .flex-caption,
.flexslider .flex-caption a,
.flexslider .flex-caption p { color: var(--text) !important; opacity: 1; background: transparent; position: static; }
.flexslider .flex-caption { padding: 14px 20px 18px; margin: 0; }
.flexslider .slides img { border-radius: 0; margin: 0; width: 100%; }
.flex-control-paging li a { background: rgba(0, 0, 0, .25); box-shadow: none; }
.flex-control-paging li a.flex-active { background: var(--brand); }

/* Paginacion */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.pagination span, .pagination a {
  border: 1px solid var(--line);
  border-radius: var(--rs);
  background: var(--paper);
  color: var(--ink);
  padding: 4px 13px;
  line-height: 1.7;
  float: none;
  margin: 0;
  font-weight: 600;
}
.pagination a:hover { background: var(--brand-l); border-color: var(--brand-m); color: var(--brand-d); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Barra lateral: sin cajas ---------- */
.sidebar { background: transparent; }
.sidebar .padd { padding: 0; }
.sidebar .widget, .widget {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: calc(30px * var(--d, 1));
}
body .sidebar .widget h3, body .widget h3 {
  background: transparent;
  color: var(--brand-d);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 0 0 8px;
  margin: 0 0 6px;
  border: 0;
  border-bottom: 2px solid var(--brand);
  border-radius: 0;
  line-height: 1.4;
}
.sidebar a, .sidebar a:visited { color: var(--ink); }
.sidebar a:hover { color: var(--brand); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.widget ul li:last-child { border-bottom: 0; }
.widget ul ul { margin-left: 12px; }
.widget img { border-radius: var(--rs); }
.widget .btn { border-radius: var(--rs); }
.textwidget p { color: var(--text); }
.widget_search input[type=text], .widget_search input[type=search] { width: 100%; }

/* ---------- Formularios y botones ---------- */
input[type=text], input[type=email], input[type=url], input[type=search], input[type=password], input[type=number], textarea, select, .form-control {
  border: 1px solid #d5dae1;
  border-radius: var(--rs);
  padding: 8px 12px;
  background: var(--paper);
  box-shadow: none;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus, .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.btn, input[type=submit], button[type=submit], .wpcf7-submit { border-radius: var(--rs); font-weight: 600; }
input[type=submit], .wpcf7-submit, .btn-success, .btn-primary {
  background: var(--brand) !important;
  background-image: none !important;
  border: 1px solid var(--brand) !important;
  color: #fff !important;
  padding: 8px 18px;
  text-shadow: none;
}
input[type=submit]:hover, .wpcf7-submit:hover, .btn-success:hover, .btn-primary:hover { background: var(--brand-d) !important; border-color: var(--brand-d) !important; }
.btn-default { background: var(--paper); border: 1px solid var(--line); color: var(--ink); background-image: none; text-shadow: none; }
.btn-default:hover { background: var(--brand-l); border-color: var(--brand-m); color: var(--brand-d); }
.wpcf7-not-valid-tip { color: #b42318; font-size: 13px; }
.wpcf7-response-output { border-radius: var(--rs); }
.wpcf7-form p { margin-bottom: 14px; }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form input[type=url], .wpcf7-form input[type=tel], .wpcf7-form textarea, .wpcf7-form select { width: 100%; max-width: 560px; }
.wpcf7-form textarea { height: 160px; min-height: 120px; resize: vertical; }

/* Descargas (Download Monitor usa las clases de boton de bloque de WordPress) */
body .wp-block-button { margin: 0; }
body a.dlm-download-link,
body a.dlm-download-link.wp-element-button,
body .wp-block-button__link.dlm-download-link {
  display: block;
  background: var(--brand-l);
  color: var(--brand-d) !important;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, #fff);
  border-radius: var(--rs);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  word-break: break-word;
  transition: background-color .15s, color .15s;
}
body a.dlm-download-link:hover { background: var(--brand); color: #fff !important; border-color: var(--brand); }
.dlm-download-count-value { font-weight: 500; opacity: .8; }

/* ---------- Comentarios ---------- */
.comments h3 { border-left: 4px solid var(--brand); padding-left: 12px; }
.comments .avatar img, .commentlist .avatar { border-radius: 50%; }
.commentlist li { border: 1px solid var(--line); border-radius: var(--rm); background: var(--paper); }
#respond input, #respond textarea { border-radius: var(--rs); }

/* ---------- Pie ---------- */
footer {
  background: #101828;
  color: #cbd5e1;
  margin-top: 36px;
  padding-top: 34px;
  border-top: 0;
}
footer .footer-info { font-size: 13px; line-height: 1.7; }
footer p, footer .footer-info p { color: #cbd5e1; text-align: left; }
footer a, footer a:visited { color: var(--brand-m); }
footer a:hover { color: #fff; }
footer h4 { color: #fff; }
footer .copy { background: rgba(0, 0, 0, .28); color: #94a3b8; padding: 14px 0; margin-top: 24px; text-align: center; font-size: 13px; }
footer .copy a { color: #e2e8f0; }

/* ---------- Adaptable ---------- */
@media (max-width: 991px) {
  body .navbar-inverse { position: relative; }
  header .logo { border-radius: var(--rm) var(--rm) 0 0; }
  .top .menu-top { display: none; }
}
@media (max-width: 767px) {
  body header { padding-top: 12px; }
  .blog > .container { padding-top: 22px; border-radius: 0; }
  .entry h2, .entry h2 a, .entry h2 a:visited { font-size: calc(var(--h2, 23px) * .9); }
  .entry .thumb img { float: none; display: block; margin: 0 0 12px; }
  .form-navbar-search { display: block !important; margin: 8px 10px; }
  .form-navbar-search .form-group { display: block; width: calc(100% - 52px); float: left; }
  h1.site_title a { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .navbar, .sidebar, footer, .flexslider, .pagination { display: none !important; }
  body { background: var(--paper); }
  .blog > .container { border: 0; }
  .entry { border: 0; }
}

/* ====================================================================
   Opciones del panel (clases que anade body_class() desde el esquema)
   ==================================================================== */

/* Ancho del sitio (solo escritorio; en pantallas menores manda Bootstrap) */
@media (min-width: 1200px) {
  .container { width: var(--w, 1170px); }
}

/* Barra superior */
body.t-no-topbar .top { display: none; }
body.t-no-topbar header { padding-top: 0; }

/* Menu fijo / no fijo */
body.t-no-sticky .navbar-inverse { position: relative !important; }

/* Menu del color del sitio */
body.t-nav-brand .navbar-inverse > .container { background: var(--brand); border-color: var(--brand); }
body.t-nav-brand .navbar-inverse .navbar-nav > li > a,
body.t-nav-brand .navbar .nav > li > a { color: #fff !important; }
body.t-nav-brand .navbar-inverse .navbar-nav > li > a:hover,
body.t-nav-brand .navbar-inverse .navbar-nav > li > a:focus,
body.t-nav-brand .navbar-inverse .navbar-nav > .open > a,
body.t-nav-brand .navbar .nav > li > a:hover { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
body.t-nav-brand .navbar .nav .active > a,
body.t-nav-brand .navbar-inverse .navbar-nav > .active > a { background: rgba(255, 255, 255, .28) !important; }
body.t-nav-brand .navbar-inverse .navbar-toggle { border-color: rgba(255, 255, 255, .6); }
body.t-nav-brand .navbar-inverse .navbar-toggle .icon-bar { background-color: #fff; }
body.t-nav-brand .form-navbar-search .form-control { background: var(--paper); border-color: transparent; }
body.t-nav-brand .search, body.t-nav-brand .search:hover, body.t-nav-brand .search:focus { background-color: var(--brand-d) !important; border-color: var(--brand-d) !important; }

/* Menu oscuro */
body.t-nav-dark .navbar-inverse > .container { background: #101828; border-color: #101828; }
body.t-nav-dark .navbar-inverse .navbar-nav > li > a,
body.t-nav-dark .navbar .nav > li > a { color: #e5e7eb !important; }
body.t-nav-dark .navbar-inverse .navbar-nav > li > a:hover,
body.t-nav-dark .navbar-inverse .navbar-nav > li > a:focus,
body.t-nav-dark .navbar-inverse .navbar-nav > .open > a,
body.t-nav-dark .navbar .nav > li > a:hover { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
body.t-nav-dark .navbar .nav .active > a,
body.t-nav-dark .navbar-inverse .navbar-nav > .active > a { background: var(--brand) !important; color: #fff !important; }
body.t-nav-dark .navbar-inverse .navbar-toggle { border-color: rgba(255, 255, 255, .5); }
body.t-nav-dark .navbar-inverse .navbar-toggle .icon-bar { background-color: #fff; }
body.t-nav-dark .form-navbar-search .form-control { background: #1f2937; border-color: #374151; color: #fff; }

/* Fecha, categoria y comentarios ocultos (el boton "Leer mas" se conserva) */
body.t-no-meta .entry .meta { font-size: 0; }
body.t-no-meta .entry .meta .readmore { font-size: 13px; }

/* Publicaciones en tarjetas */
body.t-cards .entry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin-bottom: 22px;
}

/* Barra lateral en tarjetas */
body.t-side-cards .sidebar .widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 20px;
}

/* Pie del color del sitio / claro */
body.t-footer-light footer { background: var(--paper); color: var(--text); border-top: 1px solid var(--line); }
body.t-footer-light footer p, body.t-footer-light footer .footer-info p { color: var(--text); }
body.t-footer-light footer a, body.t-footer-light footer a:visited { color: var(--brand); }
body.t-footer-light footer .copy { background: var(--bg); color: var(--muted); }
body.t-footer-light footer .copy a { color: var(--ink); }

/* ====================================================================
   Opciones ampliadas del panel (v1.2): modo, marco, menu, contenido, pie
   ==================================================================== */

/* ---------- Modo oscuro (manual o segun el equipo del visitante) ---------- */
body.t-dark {
  --ink: #f1f5f9; --text: #cbd5e1; --muted: #94a3b8; --line: #2b3544; --paper: #171e2b; --bg: #0e131a;
  --brand-l: color-mix(in srgb, var(--brand) 24%, #171e2b);
  /* versiones claras del color del sitio: legibles sobre fondo oscuro aunque el color sea oscuro */
  --brand-d: color-mix(in srgb, var(--brand) 38%, #fff);
  --link: color-mix(in srgb, var(--brand) 45%, #fff);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body.t-scheme-auto {
    --ink: #f1f5f9; --text: #cbd5e1; --muted: #94a3b8; --line: #2b3544; --paper: #171e2b; --bg: #0e131a;
    --brand-l: color-mix(in srgb, var(--brand) 24%, #171e2b);
    --brand-d: color-mix(in srgb, var(--brand) 38%, #fff);
    --link: color-mix(in srgb, var(--brand) 45%, #fff);
    color-scheme: dark;
  }
}
body.t-dark .entry .readmore, body.t-dark .entry .readmore:visited { color: var(--brand-m); border-color: var(--brand-m); }
body.t-dark .entry .meta i, body.t-dark .entry .meta a { color: var(--brand-m); }
body.t-dark .sidebar .widget h3, body.t-dark .widget h3 { border-bottom-color: var(--brand-m); }
body.t-dark a.inst { color: var(--brand-m) !important; }
body.t-dark .top img { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) {
  body.t-scheme-auto .entry .readmore, body.t-scheme-auto .entry .readmore:visited { color: var(--brand-m); border-color: var(--brand-m); }
  body.t-scheme-auto .entry .meta i, body.t-scheme-auto .entry .meta a { color: var(--brand-m); }
  body.t-scheme-auto .sidebar .widget h3, body.t-scheme-auto .widget h3 { border-bottom-color: var(--brand-m); }
  body.t-scheme-auto a.inst { color: var(--brand-m) !important; }
  body.t-scheme-auto .top img { filter: invert(1) hue-rotate(180deg); }
}

/* ---------- Marco del bloque principal ---------- */
body.t-sheet-shadow .blog > .container,
body.t-sheet-shadow .navbar-inverse > .container { box-shadow: var(--shadow); }
body.t-sheet-flat .blog > .container,
body.t-sheet-flat .navbar-inverse > .container { background: transparent; border-color: transparent; box-shadow: none; }
body.t-sheet-flat .navbar-inverse > .container { border-bottom: 1px solid var(--line); }
body.t-sheet-flat .navbar-inverse { background: var(--bg) !important; }
body.t-sheet-flat header .logo { border-radius: var(--r); }

/* ---------- Lineas separadoras ---------- */
body.t-no-lines .entry { border-bottom-color: transparent; }
body.t-no-lines .widget ul li { border-bottom-color: transparent; }
body.t-no-lines .entry hr { border-top-color: transparent; }

/* ---------- Barra superior ---------- */
body.t-no-toplinks .top .menu-top,
body.t-no-toplinks .top .col-md-4 { display: none; }

/* ---------- Menu ---------- */
@media (min-width: 768px) {
  body.t-nav-center .navbar-inverse .navbar-nav { justify-content: center; }
  body.t-nav-right .navbar-inverse .navbar-nav { justify-content: flex-end; }
}
body.t-nav-upper .navbar-inverse .navbar-nav > li > a { text-transform: uppercase; letter-spacing: .05em; font-size: calc(var(--navfs, 14px) * .88); }
body.t-no-search .form-navbar-search { display: none !important; }
body.t-no-homeicon .navbar .homeplus { display: none; }

body.t-nav-underline .navbar-inverse .navbar-nav > li > a,
body.t-nav-underline .navbar .nav > li > a {
  border-radius: 0;
  border-bottom: 3px solid transparent !important;
  margin: 0 8px 0 0;
  padding: 14px 6px 11px;
}
body.t-nav-underline .navbar-inverse .navbar-nav > li > a:hover,
body.t-nav-underline .navbar-inverse .navbar-nav > li > a:focus,
body.t-nav-underline .navbar-inverse .navbar-nav > .open > a,
body.t-nav-underline .navbar .nav > li > a:hover { background: transparent !important; border-bottom-color: var(--brand) !important; }
body.t-nav-underline .navbar .nav .active > a,
body.t-nav-underline .navbar .nav .active > a:hover,
body.t-nav-underline .navbar-inverse .navbar-nav > .active > a { background: transparent !important; color: var(--brand) !important; border-bottom-color: var(--brand) !important; }

body.t-nav-bg .navbar-inverse > .container { background: var(--nav-bg); border-color: var(--nav-bg); }
body.t-nav-fg .navbar-inverse .navbar-nav > li > a,
body.t-nav-fg .navbar .nav > li > a { color: var(--nav-text) !important; }
body.t-nav-fg .navbar-inverse .navbar-toggle .icon-bar { background-color: var(--nav-text); }

/* ---------- Publicaciones ---------- */
body.t-hover-lift .entry { transition: transform .2s, box-shadow .2s; }
body.t-hover-lift .entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }

body.t-readmore-solid .entry .readmore,
body.t-readmore-solid .entry .readmore:visited { background: var(--brand); color: #fff; }
body.t-readmore-solid .entry .readmore:hover { background: var(--brand-d); color: #fff; }
body.t-readmore-link .entry .readmore,
body.t-readmore-link .entry .readmore:visited { border-color: transparent; padding-left: 0; padding-right: 0; }
body.t-readmore-link .entry .readmore:hover { background: transparent; color: var(--brand-d); text-decoration: underline; }

body.t-justify .entry p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
body.t-ul-always .entry a:not(.readmore):not(.dlm-download-link) { text-decoration: underline; }
body.t-ul-hover .entry a:hover { text-decoration: underline; }

/* ---------- Titulos de la barra lateral ---------- */
body.t-sbt-bar .sidebar .widget h3, body.t-sbt-bar .widget h3 { border-bottom: 0; border-left: 4px solid var(--brand); padding: 2px 0 2px 12px; }
body.t-sbt-solid .sidebar .widget h3, body.t-sbt-solid .widget h3 { background: var(--brand); color: #fff; border: 0; padding: 8px 12px; border-radius: var(--rs); }
body.t-sbt-plain .sidebar .widget h3, body.t-sbt-plain .widget h3 { border-bottom: 0; padding-bottom: 2px; }
body.t-sbt-normal .sidebar .widget h3, body.t-sbt-normal .widget h3 { text-transform: none; letter-spacing: 0; font-size: 16px; }

/* ---------- Pie ---------- */
body.t-footer-center footer, body.t-footer-center footer .footer-info p { text-align: center; }

/* ---------- Boton volver arriba ---------- */
.t-top-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040;
  width: 44px; height: 44px; border: 0; border-radius: var(--rp);
  background: var(--brand); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .25);
}
.t-top-btn:hover { background: var(--brand-d); }
.t-top-btn[hidden] { display: none; }

/* Color de los marcadores de posicion (forma estandar; sustituye a las reglas con prefijos de Bootstrap 3) */
.form-control::placeholder, input::placeholder, textarea::placeholder { color: #8a94a3; opacity: 1; }

/* Comentario del autor de la publicacion (antes en un bloque de estilos incrustado en header.php) */
.commentlist li.bypostauthor { border-color: var(--brand); border-left-width: 4px; }


/* ====================================================================
   Portada de "Hosting temas" y tarjetas de portales (v1.4)
   ==================================================================== */

/* ---------- Presentacion ---------- */
.hero {
  position: relative;
  padding: 36px 36px 32px;
  margin-bottom: calc(32px * var(--d, 1));
  overflow: hidden;
  color: #fff;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.hero::before { width: 260px; height: 260px; right: -70px; top: -90px; }
.hero::after { width: 150px; height: 150px; right: 90px; bottom: -80px; }
.hero__eyebrow { position: relative; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hero__title { position: relative; max-width: 560px; margin: 0 0 12px; padding: 0; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hero__lead { position: relative; max-width: 540px; margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.hero__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--rp);
  font-size: 14px; font-weight: 700; line-height: 1.4;
  text-decoration: none !important;
  transition: background-color .15s, color .15s, transform .15s;
}
.hero__btn:hover { transform: translateY(-1px); }
.hero__btn--solid, .hero__btn--solid:visited { background: #fff; color: var(--brand-d) !important; }
.hero__btn--solid:hover { background: var(--brand-l); }
.hero__btn--ghost, .hero__btn--ghost:visited { border: 1.5px solid rgba(255, 255, 255, .75); color: #fff !important; }
.hero__btn--ghost:hover { background: rgba(255, 255, 255, .16); }

/* ---------- Secciones ---------- */
.front-section { margin-bottom: calc(34px * var(--d, 1)); }
.front-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.front-section__title { margin: 0 0 14px; padding: 0; font-size: 19px; font-weight: var(--hw, 700); }
.front-section__more { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- Preguntas del servicio ---------- */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.step {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
}
.step:hover { border-color: var(--brand-m); box-shadow: var(--shadow); }
.step__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font-size: 18px; }
.step__title { margin: 0 0 6px; padding: 0; font-size: 16px; font-weight: var(--hw, 700); }
.step__text { font-size: 14px; line-height: 1.6; color: var(--text); }

/* ---------- Tarjetas de portales (portada y listado ?more=true) ---------- */
.portals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
a.portal, a.portal:visited {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.portal:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.portal__av {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-l); color: var(--brand-d);
  font-size: 14px; font-weight: 800; letter-spacing: .02em;
}
.portal__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.portal__name { font-size: 14.5px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.portal__desc { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.portal__meta { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.portals-count { margin: -4px 0 16px; font-size: 13px; color: var(--muted); }

/* ---------- Paginacion del listado de portales ---------- */
body .showpaginator, body .showpaginator_bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
body .showpaginator a.paginate, body .showpaginator a.current, body .showpaginator span.inactive,
body .showpaginator_bottom a.paginate, body .showpaginator_bottom a.current, body .showpaginator_bottom span.inactive {
  display: inline-block; margin: 0; padding: 4px 13px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rs);
  color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.6; text-decoration: none;
}
body .showpaginator a.paginate:hover, body .showpaginator_bottom a.paginate:hover { background: var(--brand-l); border-color: var(--brand-m); color: var(--brand-d); }
body .showpaginator a.current, body .showpaginator_bottom a.current { background: var(--brand); border-color: var(--brand); color: #fff; }
body .showpaginator .paginate_text, body .showpaginator_bottom .paginate_text { margin-left: auto; font-size: 13px; color: var(--muted); }
body select.paginate_select { height: 34px; padding: 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--rs); color: var(--ink); font-size: 13px; }

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 26px 22px; }
  .hero__title { font-size: 24px; }
}

/* El CSS original de showlastblogs sangraba el listado 30px con !important */
body .slb-all-blogs-list { margin: 0 !important; padding: 0; }


/* ====================================================================
   Portada de "Hosting temas": filas con titulo a la izquierda (prototipo de la red)
   Se mantiene el diseno original (titulos verdes condensados, lineas punteadas, texto a la
   derecha); los titulos ahora son texto real alineado en una misma columna.
   ==================================================================== */
.entry ul.z { list-style: none; margin: 0; padding: 0; }
.entry ul.z li[class] {
  position: relative;
  min-height: 88px;
  margin: 0;
  padding: 20px 0 20px 216px;
  background: none !important;
  border-bottom: 1px dashed color-mix(in srgb, var(--brand) 50%, #fff);
  list-style: none;
  line-height: 1.75;
}
.entry ul.z li[class]:last-child { min-height: 0; border-bottom: 0; }
.entry ul.z .z__title {
  position: absolute;
  top: 17px;
  left: 0;
  width: 184px;
  margin: 0;
  padding: 0;
  text-align: right;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.005em;
  color: var(--brand);
}
.entry ul.z .z__title span { display: block; }
.entry ul.z .z__title .z1 { font-size: 36px; }
.entry ul.z .z__title .z2 { font-size: 30px; }
.entry ul.z .z__title .z3 { font-size: 19px; font-weight: 600; }

@media (max-width: 700px) {
  .entry ul.z li[class] { min-height: 0; padding: 16px 0; }
  .entry ul.z .z__title { position: static; width: auto; margin-bottom: 8px; text-align: left; }
  .entry ul.z .z__title span { display: inline; }
  .entry ul.z .z__title span + span { margin-left: .28em; }
  .entry ul.z .z__title .z3 { font-size: 17px; }
}

/* ====================================================================
   Bloque pegado a la barra superior y al pie (opcion "Union del bloque con los bordes")
   Banner, menu y contenido forman un solo bloque continuo: el banner se une a la barra de
   Infomed y el contenido se une al pie, sin huecos ni esquinas redondeadas en esas uniones.
   ==================================================================== */
body.t-attached header { padding-top: 0; }
body.t-attached header .logo { border-radius: 0; }
body.t-attached .blog > .container { border-bottom: 0; border-radius: 0; }
body.t-attached footer { margin-top: 0; }
body.t-attached .top { border-bottom: 0; }
body.t-attached.t-sheet-flat header .logo { border-radius: 0; }

/* Hoja de contenido pegada al pie, con aire interior abajo (el ultimo elemento no toca el borde) */
.blog > .container > .row { margin-bottom: 0; }
.blog > .container :is(.entry, .widget, .posts > *):last-child { margin-bottom: 0; }
.blog > .container, body.t-attached .blog > .container { padding-bottom: calc(40px * var(--d, 1)); }

/* Cabecera de altura uniforme (110 px), tambien cuando el sitio muestra el titulo en texto en vez de banner */
header .logo { min-height: 110px; }
header .logo:not(:has(img)) { display: flex; flex-direction: column; justify-content: center; }
