/*===========================================================*/
/* VARIABLES DE COLOR Y TIPOGRAFÍA */
/*===========================================================*/
:root {
    --color-fondo: #333F4F;
    --color-texto: #ffffff;
    --color-turquesa: #00CED1;
	--color-turquesa2: #008C8C;
    --color-positivo: lime;
    --color-negativo: red;
    --color-sombra: rgba(0,0,0,0.25);
    --fuente-base: Arial, sans-serif;
    --tamano-base: 14px;
}

.error-msg{
    color: #F0F;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
    font-weight:600;
}

.text-msg{
    color: #FFF;
	font-weight: bold;
	font-size:14px;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
    font-weight:600;
}

.text-msg1{
    color: #FFF;
	font-weight: bold;
	font-size:16px;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
    font-weight:600;
}

.sup-msg{
    color: #3FC;
	font-weight: bold;
	font-size:18px;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
	font-weight:600;
}

.sup-msg1{
    color: #3FC;
	font-weight: bold;
	font-size:14px;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
	font-weight:600;
}

/*===========================================================*/
/* BASE GENERAL */
/*===========================================================*/
body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-base);
    font-size: var(--tamano-base);
    margin: 0;
    padding: 0;
}

h2, h3 {
    color: var(--color-turquesa);
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

h4, h5 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
	font-size: 14px;
}

/*===========================================================*/
/* MENÚ PRINCIPAL */
/*===========================================================*/
nav {
/*    background-color: #1c1f26; */
    padding: 10px 0;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.btn-nav {
    display: inline-block;
    width: 160px;
    padding: 10px 0;
    border: 2px solid var(--color-turquesa);
    border-radius: 25px;
    background-color: #2a3440;
    color: var(--color-texto);
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav0 {
    display: inline-block;
    width: 30px;
    padding: 10px 0;
    border: 2px solid var(--color-turquesa);
    border-radius: 25px;
    background-color: #2a3440;
    color: var(--color-texto);
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav1 {
    display: inline-block;
    width: 80px;
    padding: 10px 0;
    border: 2px solid var(--color-turquesa);
    border-radius: 25px;
    background-color: #2a3440;
    color: var(--color-texto);
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav2 {
    display: inline-block;
    width: 50px;
    padding: 10px 0;
    border: 2px solid var(--color-turquesa);
    border-radius: 25px;
    background-color: #2a3440;
    color: var(--color-texto);
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav3 {
    display: inline-block;
    width: 100px;
    padding: 8px 0;
    border: 2px solid var(--color-turquesa);
    border-radius: 25px;
    background-color: #2a3440;
    color: var(--color-texto);
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: var(--color-turquesa2);
    color: #FFFFFF;
}
.btn-nav.activo {
    background-color: var(--color-turquesa);
    color: #000;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 0;
    z-index: 1000;
    text-align: center;
}

.dropdown-content li {
    margin: 6px 0;
	font-size: 0; /* oculta cualquier texto fuera del <a> */
}

.dropdown-content li a {
    font-size: 14px; /* restaura el tamaño del texto del botón */
}

.dropdown-content a {
    width: 160px;
    margin: 0 auto;
    background-color: #2a3440;
    border: 2px solid var(--color-turquesa);
    border-radius: 25px;
    color: var(--color-texto);
    display: inline-block;
    padding: 10px 0;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--color-turquesa2);
    color: #000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Botón de navegación (paginado) */
.btn-page {
    display: inline-block;
    width: 100px;              /* más corto que los del menú */
    padding: 6px 0;            /* más bajo */
    border: 2px solid #00CED1;
    border-radius: 20px;       /* mismo estilo redondeado */
    background-color: #2a3440;
    color: #fff;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 4px;
}

/* Hover y activo */
.btn-page:hover,
.btn-page.activo {
    background-color: #00CED1;
    color: #000;
}

/*===========================================================*/
/* CONTENEDORES */
/*===========================================================*/
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	margin: 0 auto 10px auto;
    min-height: 100vh;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.container1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.container2 {
	max-width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.menu-container {
    max-width: 95%;
    margin: 10px auto 5px;
    box-shadow: 0 4px 6px var(--color-sombra);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    gap: 15px;
}

.menu-container1 {
    max-width: 95%;
    margin: 4px auto 5px;
    box-shadow: 0 4px 6px var(--color-sombra);
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    gap: 15px;
}

.menu-container a {
    color: var(--color-texto);
    text-decoration: none;
    font-weight: bold;
}

.menu-container a:hover {
    color: var(--color-turquesa);
}

.zona-estrategia {
    width: 98%;
    margin: 0 auto 10px auto;
}


.btn-sell {
    display: inline-block;
    padding: 6px 12px;
    background-color: #00B2B2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.panel-activo {
    background-color: #444c5c;
    color: #fff;
    border: 2px solid #40E0D0;
    border-radius: 12px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: inline-block;
    width: 95%;
    text-align: center;
    transition: transform 0.3s ease;
}

.panel-activo1 {
    background-color: #444c5c;
    color: #fff;
    border: 2px solid #40E0D0;
    border-radius: 12px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: inline-block;
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.panel-activo0 {
    background-color: #444c5c;
    color: #fff;
    border: 3px solid #40E0D0;
    border-radius: 12px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: inline-block;
    width: 400px;
    text-align: left;
    transition: transform 0.3s ease;
}

.panel-activo2 {
    background-color: #444c5c;
    color: #fff;
    border: 2px solid #40E0D0;
    border-radius: 12px;
    padding: 10px;
    margin: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: inline-block;
    width: 80%;
    text-align: left;
    transition: transform 0.3s ease;
}

/*===========================================================*/
/* FORMULARIOS */
/*===========================================================*/
.form-small, .form-large, .form-zoom, .form-large2 {
    background: #2a3440;
    border-radius: 6px;
    box-shadow: 0 2px 4px var(--color-sombra);
}

.form-small {
    max-width: 300px;
    margin: 10px auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-large {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
	display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-large2 {
    max-width: 750px;
    margin: 20px auto;
    padding: 20px;
	display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-zoom {
    max-width: 94%;
    margin: 10px auto;
    padding: 10px;
}

.form-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="datetime-local"],
select {
    background-color: #222;
    color: #fff;
    border: 1px solid #00B2B2;
    border-radius: 8px;
    padding: 8px;
    width: 240px;
    box-sizing: border-box;
    text-align: center;
}

button {
    background-color: #5a6f87;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 160px;
    text-align: center;
}

button:hover {
    background-color: #6f849c;
}

/*===========================================================*/
/* CONSULTAS Y RESULTADOS */
/*===========================================================*/
.consulta-small, .consulta-large, .resultado-container {
    background: #2a3440;
    border-radius: 6px;
    box-shadow: 0 2px 4px var(--color-sombra);
}

.consulta-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin: 10px;
    padding: 10px;
}

.consulta-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px;
    padding: 15px;
}

.resultado-container {
    margin: 8px 16px;
    padding: 10px;
}

.resultado-container .fila-titulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    font-weight: bold;
    color: var(--color-turquesa);
}

.resultado-container .fila-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

        .tabla-uni {
            width: 94%;
            margin: 20px auto;
            border-collapse: collapse;
            background-color: #2a3440;
            box-shadow: 0 0 6px var(--color-sombra);
            border-radius: 8px;
            overflow: hidden;
        }
		
		.tabla-uni0 {
            width: 30%;
            margin: 20px auto;
            border-collapse: collapse;
            background-color: #444c5c;
            box-shadow: 0 0 6px var(--color-sombra);
            border-radius: 8px;
            overflow: hidden;
        }
		
        .tabla-uni th, .tabla-uni td {
            padding: 10px;
            text-align: center;
            border-bottom: 1px solid #444;
            color: #ccc;
        }
        .tabla-uni th {
            background-color: #1e1e1e;
            color: var(--color-turquesa);
        }
        .tabla-uni tr:last-child td {
            border-bottom: none;
        }
		
		        .tabla-tokens {
            width: 94%;
            margin: 20px auto;
            border-collapse: collapse;
            background-color: #2a3440;
            box-shadow: 0 0 6px var(--color-sombra);
            border-radius: 8px;
            overflow: hidden;
        }
        .tabla-tokens th, .tabla-tokens td {
            padding: 10px;
            text-align: center;
            border-bottom: 1px solid #444;
            color: #ccc;
        }
        .tabla-tokens th {
            background-color: #1e1e1e;
            color: var(--color-turquesa);
        }
        .tabla-tokens tr:last-child td {
            border-bottom: none;
        }
		
		        .tabla-brokers {
            width: 94%;
            margin: 20px auto;
            border-collapse: collapse;
            background-color: #2a3440;
            box-shadow: 0 0 6px var(--color-sombra);
            border-radius: 8px;
            overflow: hidden;
        }
        .tabla-brokers th, .tabla-brokers td {
            padding: 10px;
            text-align: center;
            border-bottom: 1px solid #444;
            color: #ccc;
        }
        .tabla-brokers th {
            background-color: #1e1e1e;
            color: var(--color-turquesa);
        }
        .tabla-brokers tr:last-child td {
            border-bottom: none;
        }
        .badge-activo {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 12px;
            font-weight: bold;
            background-color: rgba(0, 206, 209, 0.15);
            border: 1px solid var(--color-turquesa);
            color: var(--color-turquesa);
        }
        .badge-inactivo {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 12px;
            font-weight: bold;
            background-color: rgba(255, 0, 0, 0.12);
            border: 1px solid #ff4d4d;
            color: #ff4d4d;
        }
.operacion-box {
    background-color: #f9f9f9;
    border-left: 5px solid #3399ff;
    padding: 12px 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}
.operacion-box p {
    margin: 4px 0;
}
/*===========================================================*/
/* ESTADOS */
/*===========================================================*/
.positivo { color: var(--color-positivo); font-weight: bold; }
.negativo { color: var(--color-negativo); font-weight: bold; }



/*===========================================================*/
/* GRAFICO PROYECCION */
/*===========================================================*/
.resumen-grid2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

.panel-activo2 {
    width: calc(850px - 10px); /* dos por fila con margen */
    box-sizing: border-box;
    background-color: #444c5c; /* opcional si usás tema oscuro */
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
}

.chart-box2 {
    width: 100%;
    height: 400px;
}

.chart-box3 {
    width: 100%;
    height: 250px;
}

canvas#graficoTorta {
    max-width: 480px;
    margin: auto;
}

.chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: white;
    font-weight: bold;
}

.leyenda-dashboard {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: nowrap;
    color: white;
    font-weight: bold;
}

.leyenda-dashboard .cuadro {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border-radius: 3px;
}

.color-preview {
	display: inline-block;
	width: 100%;
	height: 20px;
	border-radius: 2px;
	border: 1px solid #333;
	box-sizing: border-box;
}
.tabla-cripto td { vertical-align: middle; }
.mini-label { font-size: 12px; color: #aaa; display:block; margin-top:4px;
}

.tabla-croma {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tabla-croma th, .tabla-croma td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.preview-croma {
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    min-width: 70px;
    text-align: center;
}

.etiquetas-k {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
    gap: 8px;
}

.etiqueta-k {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    min-width: 60px;
}