
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
    --ccoo-red: #941D20; --ccoo-dark-red: #7A1719;
    --bs-primary: var(--ccoo-red); --bs-primary-rgb: 148, 29, 32;
    --primary-hover: var(--ccoo-dark-red);
    --secondary: #6c757d; --light: #f8f9fa; --dark: #212529;
    --font-family-sans-serif: 'Poppins', sans-serif;
}
body { font-family: var(--font-family-sans-serif); background-color: #f4f7f6; }
.btn { border-radius: 0.5rem; transition: all 0.2s ease-in-out; font-weight: 500; }
.btn-primary { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }
.card { border: none; border-radius: 0.75rem; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.table-hover > tbody > tr:hover > * { background-color: #fdecec; }


.wrapper { width: 100%; }
#sidebar { min-width: 270px; max-width: 270px; background: var(--dark); color: #fff; transition: all 0.3s; }
#sidebar.active { margin-left: -270px; }
#content { flex-grow: 1; min-height: 100vh; transition: all 0.3s; overflow-x: hidden; }
@media (max-width: 768px) { #sidebar { margin-left: -270px; } #sidebar.active { margin-left: 0; } }
#sidebar .components a { padding: 15px 30px; display: block; color: rgba(255, 255, 255, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; transition: all 0.2s; position: relative; }
#sidebar .components a:hover { color: #fff; background: var(--ccoo-red); }
#sidebar ul li a[aria-expanded="true"]::after { transform: rotate(180deg); }
#sidebar ul ul a { font-size: 0.9em !important; padding-left: 50px !important; background: #343a40; border-bottom: none; }
#sidebar .navbar-brand img { max-height: 45px; width: auto; transition: transform 0.3s ease; }
#sidebar .navbar-brand img:hover { transform: scale(1.05); }


.breadcrumb { background-color: transparent; padding: 0; margin: 0; font-size: 0.9rem; }
.breadcrumb-item a { text-decoration: none; color: var(--ccoo-red); }
.breadcrumb-item.active { color: var(--secondary); font-weight: 500; }


.portal-card { text-decoration: none; color: var(--dark); transition: all 0.3s ease; border: 1px solid #dee2e6; }
.portal-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); color: var(--primary-hover); }
.avatar-sm { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }


.news-card { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important; }
.news-card .card-img-top { height: 200px; object-fit: cover; }
.news-card .card-title a:hover { color: var(--ccoo-red) !important; }
.article-post .article-body { font-size: 1.1rem; line-height: 1.8; }
.article-post .article-body h2, .article-post .article-body h3 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }
.article-post .article-body img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1.5rem 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }


.login { min-height: 100vh; }
.bg-image-login {
  background-image: linear-gradient(rgba(100, 20, 22, 0.7), rgba(45, 45, 45, 0.7)), url('../assets/fons.jpeg?q=80&w=1932&auto=format&fit=crop');
  background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center;
}
.login-form-panel { padding: 2rem; animation: slideInFromRight 0.7s ease-in-out; }
.branding-panel { padding: 2rem; color: white; animation: fadeIn 1.2s ease-in-out; }
.branding-panel img { 
	max-height: 250px; 
    width: auto;
    max-width: 60%; 
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.branding-panel h1 { font-weight: 700; font-size: 2.8rem; text-shadow: 0 2px 4px rgba(0,0,0,0.4); }
.login-heading { font-weight: 300; }
.btn-tcat { background-color: #f8f9fa; border: 1px solid #dee2e6; color: #212529; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.btn-tcat:hover { background-color: #e9ecef; border-color: #adb5bd; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.tcat-logo { height: 24px; margin-right: 12px; }
.login-or-separator { text-align: center; border-bottom: 1px solid #dee2e6; line-height: 0.1em; margin: 2rem 0; }
.login-or-separator span { background: #f4f7f6; padding: 0 10px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInFromRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }


.bg-custom-primary {
    background-color: var(--ccoo-red);
    color: white;
}




.logo-widget-container {
  background-color: #ffffff; 
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 1rem;
  width: 95%;
  margin: 0 auto;
}


.main-logo-wrapper {
  padding: 0 .5rem;
}

.main-logo-img {
  width: 100%; 
  height: auto; 
}


#logoCarousel .carousel-inner {
  height: 80px;
  position: relative;
}

#logoCarousel .carousel-item {
  height: 150%; 
  width: 100%
 
}

.secondary-logo-img {

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 100%; 
  max-width: 100%;  
  object-fit: contain; 
}