@charset "ISO-8859-1";

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
	--lighter-fafafa: #FAFAFA;
	--unnamed-font-family-roboto: Roboto;
  	--unnamed-font-style-normal: normal;
  	--unnamed-font-weight-medium: medium;
  	--unnamed-font-weight-normal: normal;
  	--unnamed-font-weight-bold: bold;
  	--normal-d5007f-primario: #D5007F;
}

.layout-main {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.layout-main > * {
    width: 100%;
    max-width: 1100px; /* ajusta según gusto */
    background: #ffffff;
    padding: 40px 60px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

section.container {
    text-align: center;
}

table {
    margin: 0 auto;
}

table td {
    padding: 20px;
}


html, body {
  height: 100%;
  margin: 0;
  font-family: var(--unnamed-font-family-roboto);
  background-color: var(--lighter-fafafa);
}

/* Contenedor principal de la Topbar */
.topbar {
    display: flex;
    justify-content: space-between; /* Logo a la izquierda, resto a la derecha */
    align-items: center;
    background-color: #f8f9fa; /* Ajusta al color de tu tema */
    padding: 0 1rem;
    height: 60px; /* Altura fija sugerida */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
}

/* Sección izquierda (Logo) */
.topbar-left {
    flex: 0 0 auto;
    width: 180px;
}

/* Sección derecha (Menú, Títulos y Usuario) */
.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 15px; 
}

/* Contenedor de los textos del sistema y usuario */
.wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: flex-end;
}

/* Alineación vertical para el título y los datos pequeños */
.app-header {
    display: flex;
    flex-direction: column; 
    text-align: right;
}

.app-header .main {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.app-header .small {
    color: #666;
    line-height: 1;
}

/* Botón de menú (hamburguesa) */
#topbar-menu-button {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Ajuste para el logo */
.img-aud {
    max-height: 45px;
    width: auto !important;
}

/* Estilo para el botón de cerrar sesión */
.topbar-right a {
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    gap: 15px;
}

/* Contenedor principal del Footer */
.footer-dark {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    background: #3f2251;
    color: white;
    padding: 6px 15px;
    font-size: 12px;
    gap: 20px; 
}

/* Logo */
.footer-left {
    flex: 0 0 auto;
}

.footer-logo{
    max-height:30px;
}

/* Centro */
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 3px;
    flex: 1; 
}
/* Links */
.footer-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap; 
    align-items: center;
}

.footer-links a{
    color:white;
    text-decoration:none;
}

.footer-links a:hover{
    text-decoration:underline;
}

/* Info sistema */
.footer-info{
    font-size:11px;
}

/* Derechos */
.footer-right {
    white-space: nowrap;
    text-align: right;
}
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1;              
    display: flex;
    background-color: #f4f7f9;
    width: 100%;
    min-width: 0; /* Asegura que el contenedor base permita cálculos elásticos */
}

.landing-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;   
    background-color: #f4f7f9;
}

/* ================= LANDING ================= */

.landing-body {
    background-color: #f1f3f6; 
    margin: 0;
}

/* Contenedor central */
.landing-container {
    max-width: 1200px;
    margin: 25px auto;
    text-align: center;
}

.landing-logo {
    margin-bottom: 25px;
}

.landing-logo img {
    max-height: 80px;
    filter: drop-shadow(0px 4px 4px rgba(0,0,0,0.1));
}

/* Grid de Tarjetas Estilo Imagen 1 */
.landing-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.landing-card {
    background: #ffffff;
    border-radius: 20px; 
    padding: 30px 20px 30px 20px;
    width: 350px;
    min-height: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: transform 0.3s ease;
    border-style: solid;    
    border-color: #e0e0e0;     
    border-width: 3px;
}

.landing-card:hover {
    transform: translateY(-8px);
}

.landing-card img {
	width: 60px;
}

.landing-card h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #1a1a1a;
    margin: 0;
}

/* Estilo para los textos informativos */
.landing-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Estilo para los Selectores (Minimalistas) */
.landing-card select, .landing-card .ui-selectonemenu {
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
}

.landing-card .ui-selectoneradio label {
    margin-right: 15px;
    font-size: 14px;
}

.content-area {
    flex-grow: 1;
    padding: 40px;
    /* Evita que este contenedor crezca más que la pantalla */
    min-width: 0; 
}

.content-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 0 auto;
    border-style: solid;    
    border-color: #e0e0e0;     
    border-width: 3px;
    border-radius: 20px; 
    
    /* CAMBIOS CRUCIALES */
    width: 100%;        /* Ocupa todo el espacio que te dé el padre */
    max-width: 100%;    /* Olvídate de los 900px, el contenido debe mandar o usar toda la pantalla disponible */
    min-width: 0;       /* Permite al contenedor encogerse con flexbox */
    overflow-x: auto;   /* ¡AQUÍ SE QUEDA EL SCROLL! Si la tabla mide 1840px, el scroll sale dentro del cuadro blanco */
}

/* Estilo del disparador en la topbar */
.user-profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.3s;
}

.user-profile-link:hover {
    background: rgba(0,0,0,0.05);
}

.user-profile-link img {
	width: 30px;
}

/* Estilo de la tarjeta flotante */
.profile-overlay {
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border: none !important;
    width: 280px;
}

.profile-card-content {
    padding: 0px;
    text-align: center;
}

.profile-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
}

.profile-header p {
    font-size: 13px;
    color: #666;
    margin: 0px;
}

.profile-header img {
    width:40px;
}

.profile-actions {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center; 
    width: 100%;            
    gap: 5px;    
    margin-top: 10px;
}

/* Enlaces y botones internos */
.change-pwd-link {
    display: block;
    color: #D3006D;
    text-decoration: underline !important;
    font-size: 13px;
}

.btn-logout-card {
    width: 100%;
    background-color: #fce4ec !important; 
    color: #1a1a1a !important;
    border: none !important;
    font-weight: bold !important;
    padding: 0px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.btn-logout-card:hover {
    background-color: #f8bbd0 !important;
}

/* Contenedor dentro de la tarjeta blanca */
.welcome-container {
    text-align: center;
    padding: 40px 20px;
    position: relative; 
}

.welcome-header h3 {
    font-weight: 700;
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.welcome-footer {
	margin-top: 40px;
}

.welcome-desc {
    max-width: 650px;
    margin: 0 auto 40px;
    color: #444;
    line-height: 1.6;
    font-size: 16px;
}

.area-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.area-name {
    color: #000;
    margin: 0;
}

/* Botón de Ayuda Flotante */
.help-floating-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.help-floating-btn i {
    font-size: 24px;
    color: #D3006D;
    background: #fdf2f8;
    padding: 12px;
    border-radius: 50%;
    transition: 0.3s;
}

.help-floating-btn i:hover {
    background: #fce4ec;
    transform: scale(1.1);
}

.sidebar {
    width: 250px;
    background-color: #351C45 !important; 
    min-height: calc(100vh - 100px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    color: white;
}

/* Estilo para el Menú de PrimeFaces dentro del Sidebar */
.sidebar .ui-menu {
    background: transparent !important;
    border: none !important;
    width: 100% !important;
}

/* Encabezados del menú (Configuración, Usuarios, etc.) */
.sidebar .ui-menu-slidetoggle {
    background: transparent !important;
    color: rgba(255,255,255,0.7) !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    padding: 15px 10px 5px 20px !important;
}

/* Items del menú */
.sidebar .ui-menuitem-link {
    padding: 12px 20px !important;
    transition: background 0.3s;
}

/* El efecto lila cuando pasas el mouse o seleccionas (como en la Imagen 2) */
.sidebar .ui-menuitem-link.ui-state-hover,
.sidebar .ui-menuitem-link.ui-state-active {
    background-color: #4b2c5e !important; /* Púrpura más claro para selección */
    border-left: 4px solid #D3006D; /* Línea rosa de acento */
}

/* Iconos del menú */
.sidebar .ui-menuitem-icon {
    color: white !important;
    margin-right: 10px;
}

body .ui-menu.ui-menu-toggleable .ui-menu-list .ui-widget-header h3 {
	color: #fff;
	font-weight: 400;
}

.ui-menu.ui-menu-toggleable li.ui-widget-header {
	background-color: #351C45 !important;
}

body .ui-menu .ui-menu-list .ui-menuitem .ui-menuitem-link.menu-item-white .ui-menuitem-text {
    color: #fff;
}

body .ui-menu .ui-menu-list .ui-menuitem .ui-menuitem-link .ui-menuitem-text {
    color: #1e1f20;
}

body .ui-menu .ui-menu-list .ui-menuitem:not(:first-child) .ui-menuitem-link {
	background-color: #CBBED4;
	font-size: 15px;
}

body .ui-menu .ui-menu-list .ui-menuitem .ui-menuitem-link:hover .ui-menuitem-text {
	color: #1e1f20 !important;
}

.ui-menu .ui-menuitem-link .ui-menuitem-icon, .ui-menu .ui-submenu-icon{
    display: none !important;
}

body .ui-menu .ui-menu-list .ui-menuitem .ui-menuitem-link.ui-state-hover {
	background-color: #B5A7C2 !important; 
    color: white !important;
}

body .ui-menu.ui-menu-toggleable .ui-menu-list .ui-widget-header:hover .ui-icon-triangle-1-e,
body .ui-menu.ui-menu-toggleable .ui-menu-list .ui-widget-header:hover .ui-icon-triangle-1-s {
	color: white !important;
}

/*Contenedor mensaje de errores*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: system-ui, -apple-system, sans-serif;
    background:#f6f6f6;
}

.container{
    display:flex;
    min-height:100vh;
}

/* IZQUIERDA */
.left{
    flex:1;
    background:#f1ecee;
    padding:60px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.logo{
    position:absolute;
    top:40px;
}

.logo img{
    width:140px;
}

.content{
    max-width:420px;
}

h1{
    font-size:96px;
    color:#5a2a72;
    font-weight:700;
    margin-bottom:20px;
}

h2 {
	color: #D5007F;
	font-family: 'Roboto';
	font-size: 16px;
}

.message{
    font-size:28px;
    color:#111;
    line-height:1.4;
    margin-bottom:30px;
}

.btn{
    background:#e1007a;
    border:none;
    padding:14px 30px;
    border-radius:8px;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.btn:hover{
    background:#c50069;
}

/* DERECHA */
.right{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#ffffff;
}

.right img{
    width:70%;
    max-width:420px;
}

body .ui-panelmenu .ui-panelmenu-content .ui-menuitem-link > span.ui-icon {
	display: none !important;
}

body .ui-panelmenu h3.ui-panelmenu-header.ui-state-active,
body .ui-panelmenu h3.ui-panelmenu-header {
	color: #fff !important;
	background-color: #351C45;
	border: none !important;
}

body .ui-panelmenu h3.ui-panelmenu-header:hover {
	color: #fff !important;
	background-color: #3f2251 !important;
	border: none !important;
}

body .ui-panelmenu h3.ui-panelmenu-header.ui-state-hover {
	background:#351C45 !important;
}

body .ui-panelmenu h3.ui-panelmenu-header.ui-state-hover:hover {
	background:#3f2251 !important;
}

body .ui-panelmenu .ui-panelmenu-content .ui-menuitem-link:hover,
body .ui-panelmenu .ui-panelmenu-content .ui-menuitem-link:hover span {
	background-color: #e9ecef !important;
}

body .ui-panelmenu .ui-panelmenu-content .ui-menuitem-link,
body .ui-panelmenu .ui-panelmenu-content .ui-menuitem-link {
	border: none !important;
	background-color: #CBBED4 !important;
}

body .ui-panelmenu .ui-panelmenu-content .ui-menuitem-link:hover span,
body .ui-panelmenu .ui-panelmenu-content .ui-menuitem-link span {
	background-color: transparent !important;
}

body .ui-panelmenu .ui-panelmenu-content {
    padding: 0 !important;
    margin: 0 !important;
}

.btn-directo-home{
    display:block;
    background:#351C45; 
    color:white !important;
    padding:16px 16px;
    font-weight:700;
    text-decoration:none !important;
    border-radius:0;
}

.btn-directo-home:hover{
    background:#3f2251;
}

.btn-directo-home i{
    margin-right:8px;
}

.ui-panelmenu .ui-menuitem {
    margin: 0 0 0 0 !important;
    padding: 0;
}

/*LOGIN INTERNO**/
.container-login {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    height: 90vh;
}

.logo-login img {
    width: 90px;
}

.logo-login p {
    margin: 5px 0 20px;
    color: #666;
    font-size: 14px;
}

.card-login {
    background: #ffffff;
    width: 400px;
    margin: 0 auto;
    padding: 15px 30px 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
}

.card-login h2 {
    text-align: center;
    font-size: 20px;
    color: #000 !important;
}

.card-login-content {
	padding: 0 50px !important;
}

label {
    font-size: 14px;
    color: #333;
}

.required {
    color: #d10073;
}

.input-group {
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.help-text {
    color: #999;
    font-size: 12px;
}

.link-login {
    float: right;
    font-size: 12px;
    color: #d10073;
    text-decoration: underline;
}

.ligapublica-login {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.btn {
    width: 100%;
    background-color: #d10073;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background-color: #a8005c;
}

.create-account {
    text-align: center;
    margin-top: 15px;
}

.create-account a {
    color: #d10073;
    text-decoration: none;
    font-size: 14px;
}

.footer-login img {
    width: 100px;
}

.error {
    color: red;
    font-size: 12px;
}

.input-dato-obligatorio-login {
	font-size: 10px !important;
    color: #333;
}

.div-dato-obligatorio-login {
	margin-bottom: 5px !important;
}

.btn-login {
    width: 100%;
    background-color: #d10073;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    height: 40px;
    margin-top: 5px !important;
}

.btn-login:hover {
    background-color: #a8005c;
}

.login-recaptcha {
	display: block !important
}

.login-recaptcha-turnstile {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    overflow: hidden;
}

.login-recaptcha-turnstile > div {
    transform: scale(0.80);
    transform-origin: center;
}

.login-password-container {
    position: relative;
    width: 100%;
}

.login-password-container .input {
    width: 100%;
    padding-right: 40px; 
    box-sizing: border-box;
}

.login-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666; 
    font-size: 1.1rem;
    z-index: 10;
}

.login-toggle-password:hover {
    color: #333;
}

/*LOGIN LIGA PUBLICA**/
.container-login-liga-publica {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    height: 92vh;
}

.btn-login-liga-publica {
    width: 100%;
    background-color: #d10073;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    height: 40px;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.link-login-liga-publica-registrate {
	float: center;
    font-size: 12px;
    color: #8a8a8a;
    text-decoration: underline;
}

.display-liga-publica-registrate {
	display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

.container-login-liga-publica-registrate {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    height: 82vh;
}