html {
  min-height: 100%;
  background-color: #f1f1f1;
  position: relative;
}

body .navbar-light .navbar-nav .nav-link {
  color: rgb(0 0 0 / 60%);
}

img.personage-portrait {
  max-height: 100px;
}

.personage-description,
.alias-description {
  max-width: 420px;
  white-space: normal;
}

/* El pie de página del marco público vive en site.css (.site-footer). */

.content-wrapper {
  background-color: #f1f1f1 !important;
}

.frame-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: center;
  justify-content: space-around;
  align-items: baseline;
  font-size: 14px;
  color: #333;
}

.frame-container.frame-container-video {
  justify-content: center;
  align-items: center;
}

.content-header>.container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.navbar-brand {
  font-weight: 400;
  line-height: 1.5;
  margin: 0 20px 0 0;
  padding: 0;
}

.navbar-nav {
  text-align: right;
}

.navbar-brand .brand-text {
  font-size: 1.75rem;
  margin: 0;
}

@media (max-width: 600px) {
  .navbar-brand .brand-text {
    font-size: 1rem;
  }
}

.card-body::after,
.card-footer::after,
.card-header::after {
  display: block;
  clear: both;
  content: "";
}


.frame-container .card {
  position: relative;
  width: min(330px, 100%);
  /* Remove for full width */
  height: 450px;
  /* Remove for full width */
  margin: 30px 1px;
  box-shadow: 0 0 50px rgba(0, 0, 0, .3);
  border: 0 solid rgba(0, 0, 0, .125);
  overflow: hidden;
  /* required  for ribbon*/
}





.frame-container .card-header {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: top;
  background-color: transparent;

  padding: 0.65rem 1.25rem;

  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;

}

.frame-container .card-header:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 85, 134, 0.5), rgba(181, 181, 181, 0.1));
  margin-left: -20px;
  margin-top: -9px;
  z-index: 6;
}


.frame-container .card-header-bar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
  width: 100%;
}

.frame-container .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  border: none;
  overflow: hidden;
}

.frame-container .btn-message {
  display: inline-block;
  background: url(https://res.cloudinary.com/dj14cmwoz/image/upload/v1491077483/profile-card/images/message.svg) no-repeat;
  width: 19.37px;
  height: 16.99px;
  margin-right: 10px;
  margin-top: 10px;

}

.frame-container .btn-menu {
  display: inline-block;
  background: url(https://res.cloudinary.com/dj14cmwoz/image/upload/v1491077483/profile-card/images/menu.svg) no-repeat;
  width: 19px;
  height: 12.16px;
  margin-left: 10px;
  margin-top: 10px;

}

.frame-container svg .polygon {
  fill: #fff;
}

.frame-container .card-header-slanted-edge {
  position: absolute;
  bottom: -3px;
  z-index: 7;
  width: 100%;
  right: 0;
  left: 0;
}

.frame-container .btn-follow {
  position: absolute;
  top: -15px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: linear-gradient(to left, #2D77C1, #68FAC2);
  border-radius: 100%;
  box-shadow: 0 10px 15px rgba(110, 221, 235, .53);
  cursor: pointer;
}

.frame-container .btn-follow.saved-like {
  opacity: 0.2;
  cursor: default;

}

.frame-container .btn-follow:after {
  content: '';
  position: absolute;
  background: url(https://res.cloudinary.com/dj14cmwoz/image/upload/v1491077480/profile-card/images/add.svg) no-repeat;
  width: 17px;
  height: 17px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.frame-container .card-body {
  text-align: center;
  height: 160px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 22px 8px 0;
}

.frame-container ::-webkit-scrollbar {
  width: 6px;
}

/* Ribbon */


.ribbon {
  margin: 0;
  padding: 0;
  background: red;
  color: white;
  padding: 0.5em 0;
  position: absolute;
  top: 0;
  font-weight: bold;
  right: 0;
  transform: translateX(30%) translateY(0%) rotate(45deg);
  transform-origin: top left;
  z-index: 5;
}

.ribbon:before,
.ribbon:after {
  content: '';
  position: absolute;
  top: 0;
  margin: 0 -1px;
  /* tweak */
  width: 100%;
  height: 100%;
  background: red;
}

.ribbon:before {
  right: 100%;
}

.ribbon:after {
  left: 100%;
}


/* Track */
.frame-container ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

/* Handle */
.frame-container ::-webkit-scrollbar-thumb {
  background: darkgrey;
  border-radius: 10px;
}

/* Handle on hover */
.frame-container ::-webkit-scrollbar-thumb:hover {
  background: grey;
}

.frame-container .name {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin: -20px auto 0;
}

.card-body .alias-link {
  color: #333;
  text-decoration-color: #333;
}

.frame-container .job-title {
  font-size: 18px;
  font-weight: 300;
  margin-top: 5px;
  color: #001081;
}

.frame-container .job-title:hover {
  color: #0018ce;
}

.frame-container .bio {
  font-size: 14px;
  color: #585858;
  font-weight: 300;
  margin: 0 auto;
  line-height: 20px;
  text-align: justify;
}

.frame-container .card-footer {
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, .03);
  border-top: 0 solid rgba(0, 0, 0, .125);

  left: 0;
  width: 100%;
  bottom: 0px;
}

.frame-container .stats {
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-container .stat {
  box-sizing: border-box;
  text-align: center;
}

.frame-container .stat-likes {
  border-left: 1px solid #EBEBEB;
  width: 60px;
}

.frame-container .stat-tags {
  flex-grow: 1;
}

.stat.stat-video {
  display: flex;

  width: 40px;
  border-right: 1px solid #EBEBEB;
  padding-right: 10px;
  height: 40px;
}

.frame-container .stat .label {
  display: block;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 1px;
  color: #6c6c6c;
}

.frame-container .stat .value {
  display: block;
  font-weight: 700;
  font-size: 16px;

}

.tag-badge {
  padding: 2px 3px;
  color: white;
  border-radius: 5px;
  vertical-align: middle;
  line-height: normal;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Enlaces: se mantiene el subrayado al pasar el ratón en todo el sitio (panel incluido). */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/** LOAD MORE CARDS **/

#loading-more.hidden {
  display: none;
}

body .btn-outline-success {
  color: #237851;
}

/** VIDEO MODAL **/
.videomodal .modal-dialog {
  max-width: 800px;
  margin: 30px auto;
}

.videomodal .modal-body {
  position: relative;
  padding: 0px;
}

.videomodal .btn-close {
  position: absolute;
  right: -30px;
  top: 0;
  z-index: 999;

}

.cursor-pointer {
  cursor: pointer;
}

body .select2-container .select2-selection--single {
  height: 36px;
}

body .fedenews {
  align-items: normal;
}

body .fedenews article {
  font-size: 1.4rem;
  font-weight: 599;
  line-height: 1;
  padding: 2rem;
  border-bottom: 2px solid #e3e3e3;

}

body .fedenews article header {
  color: #000;
}

body .fedenews article .fecha-articulo {
  font-family: "Roboto-Regular", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: #999;
}

body .fedenews article.slot1 {
  border-right: 2px solid #e3e3e3;
}

body .fedenews article.slot1 img {
  display: none;
}

body .fedenews article.slot1 header {
  font-weight: 700;
  font-size: 2.8rem;
}


body .fedenews article.slot2 .position-relative header {
  position: absolute;
  bottom: 1rem;
  padding: 1rem 5rem;
  font-size: 2.1rem;
  color: #EEE;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
  text-align: center;

}

body .fedenews article.slot2 .fecha-articulo {
  display: none;
}

body .fedenews article.slot3,
body .fedenews article.slot4 {
  border-right: 2px solid #e3e3e3;
}

body .fedenews article.slot3 img,
body .fedenews article.slot4 img,
body .fedenews article.slot5 img {
  margin-bottom: 0.5rem;
}

.fedenew h1 {
  font-weight: 700;
  font-size: 3.3rem;
  line-height: 4rem;
}

.fedenew article .fecha-articulo {
  font-family: "Roboto-Regular", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: #999;
}

.fedenew article img {
  padding: 1rem 0;
  max-width: 100%;
}

.fedenew article .cuerpo {
  margin-bottom: 2rem;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 2.5rem;
}

/* El login vive en site.css (body.site .login-*): es una página pública y sigue el mismo
   lenguaje visual que el resto del marco. */

/* Admin tables: keep the actions column visible while scrolling horizontally */
.table-sticky-actions {
  border-collapse: separate;
  border-spacing: 0;
}

.table-sticky-actions th.actions-column,
.table-sticky-actions td.actions-column {
  position: sticky;
  right: 0;
  z-index: 1;
  background-color: #F1F1F1;
  box-shadow: -4px 0 6px -4px rgb(0 0 0 / 15%);
}

.table-sticky-actions thead th.actions-column {
  z-index: 2;
}

.table-sticky-actions tbody tr:hover td.actions-column {
  background-color: #DFDFDF;
}

.message-username,
.message-title,
.message-body {
  max-width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.message-detail-body {
  overflow-wrap: anywhere;
}

/* Admin panel: mobile responsiveness */

/* Smooth scrolling for horizontally scrollable admin tables */
.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* Action links/buttons grouped after forms and detail tables */
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Admin navbar: let links wrap instead of overflowing on narrow screens */
.main-header .navbar-collapse,
.main-header .navbar-nav {
  flex-wrap: wrap;
}

/* Admin pagination: wrap instead of overflowing on small screens */
.pagination {
  flex-wrap: wrap;
}

/* YouTube player used in the video reference admin form */
#player {
  max-width: 100%;
}

#player iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* Segment rows in the video reference admin form */
.segment-row {
  flex-wrap: wrap;
}

.segment-row label {
  margin-bottom: 0;
}

.segment-row input {
  width: 110px;
  max-width: 100%;
}

/* Search engine results: transcriptions side by side, stacked on mobile */
.transcription-container > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.transcription-clean {
  width: 32.4%;
}

.transcription-raw {
  width: 67.6%;
}

@media (max-width: 767.98px) {
  .transcription-container {
    flex-direction: column;
  }

  .transcription-clean,
  .transcription-raw {
    width: 100%;
  }

  /* Give the collapsed admin menu a solid, readable panel */
  .main-header .navbar-collapse {
    padding: 6px 0;
    border-top: 1px solid rgb(0 0 0 / 8%);
  }

  .main-header .navbar-nav .nav-link {
    padding: 8px 0;
  }

  /* Form controls and buttons never overflow the viewport */
  .content .btn,
  .content .form-control {
    max-width: 100%;
  }
}
