
/*===========================================================*/
/* BASE GLOBAL */
/*===========================================================*/
body {
    background-color: #333F4F;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Tipografía */
h2, h3 {
    text-align: center;
    margin-bottom: 10px;
    font-weight: normal;
}

/* Mensajes */
.message {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #ccc;
}

/*===========================================================*/
/* GRÁFICOS */
/*===========================================================*/
.chart-box {
    width: 100%;
    height: 350px;
    margin: 0 auto; /* centra el gráfico */
}

/*===========================================================*/
/* CONTENEDORES */
/*===========================================================*/
.container {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.container-m {
    max-width: 95%;
    margin: 10px auto 5px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.container-mt {
    max-width: 95%;
    margin: 5px auto;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
}

.container-r {
    max-width: 50%;
    margin: 20px auto;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.container-r1 {
	background-color: #444c5c;
    max-width: 50%;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
	margin-bottom: 20px;
    color: #fff;
}

.container-r2 {
    background-color: #444c5c;
    padding: 0px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(102, 178, 255, 0.3);
    margin-bottom: 20px;
    color: #fff;
}

/* Contenedores de resumen */
.contenedor-pre {
    background-color: #444c5c;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(102, 178, 255, 0.3);
    margin-bottom: 20px;
    color: #fff;
}

.contenedor-pre1 {
    max-width: 300px;
    background-color: #444c5c;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(102, 178, 255, 0.3);
    margin: 20px auto;
    color: #00CED1;
}

.contenedor-pre2 {
    max-width: 85%;
    background-color: #444c5c;
    text-align: center;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(102, 178, 255, 0.3);
    margin: 20px auto;
    color: #00CED1;
}

.contenedor-pre3 {
    max-width: 85%;
    background-color: #444c5c;
    text-align: center;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(102, 178, 255, 0.3);
    margin: 10px auto;
    color: #FFFFFF;
}

.contenedor-pre4 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.contenedor-pre5 {
    max-width: 50%;
    background-color: #444c5c;
    text-align: center;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(102, 178, 255, 0.3);
    margin: 20px auto;
    color: #00CED1;
}
.contenedor-pre5-1 {
    max-width: 50%;
    background-color: #444c5c;
    text-align: center;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(102, 178, 255, 0.3);
    margin: 10px auto;
    color: #FFFFFF;
}

.contenedor-graficos {
    display: flex;
    justify-content: space-around; /* separa los gráficos */
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap; /* para que en pantallas chicas se acomoden */
}

.grafico-box {
    flex: 1 1 30%; /* cada gráfico ocupa aprox 1/3 */
    min-width: 300px; /* evita que se achiquen demasiado */
    background: #444c5c; /* opcional: fondo institucional */
    padding: 10px;
    border-radius: 8px;
	box-shadow: 0 0 6px rgba(102, 178, 255, 0.3);
    text-align: center;
}
.grafico-box canvas {
    width: 100% !important;
    height: 300px !important;
    aspect-ratio: 1 / 1; /* mantiene proporción cuadrada */
    max-width: 300px;    /* tamaño máximo */
    margin: 0 auto;
}
/*===========================================================*/
/* FILAS Y COLUMNAS */
/*===========================================================*/
/* Pagina ver_resumen.php */
.col {
    flex: 0 0 100px;
    padding: 3px;
    text-align: center;
}
.fila-titulos {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;   /* scroll si hay muchas columnas */
    margin-bottom: 6px;
	align-items: center;
}
.fila-valores { display: grid; grid-template-columns: 120px 120px 100px 100px 120px 130px 130px 130px 130px 130px; gap: 8px; align-items: right; 
}

/* Pagina ver_movimientos.php */
.col1 {
    flex: 0 0 100px;
    padding: 3px;
    text-align: center;
}

.fila-titulos1 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;   /* scroll si hay muchas columnas */
    margin-bottom: 6px;
	align-items: center;
}
.fila-valores1 { display: grid; grid-template-columns: 50px 120px 50px 50px 120px 100px 100px 120px 120px 120px 150px 100px; gap: 8px; align-items: right; 
}
/* Pagina ver_brokers.php */
.col2 {
  flex: 1 1 150px;
  min-width: 120px;
}

.fila-titulos2 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;   /* scroll si hay muchas columnas */
    margin-bottom: 6px;
	align-items: center;
}
.fila-valores2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}


/* Pagina ver_ratios.php */
.col3 {
    flex: 0 0 100px;
    padding: 3px;
    text-align: right;
}

.fila-titulos3 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 6px;
    align-items: right;
}

.fila-valores3 {
    display: grid;
    grid-template-columns: 100px 100px 250px;
    gap: 8px;
    align-items: center;
}






/* Columnas específicas */
.col-id					{ flex: 0 0 50px; }
.col-tipo				{ flex: 0 0 50px; }
.col-moneda				{ flex: 0 0 50px; }
.col-dolar				{ flex: 0 0 120px; text-align: right; }
.col-valor				{ flex: 0 0 120px; text-align: right; }
.col-comision			{ flex: 0 0 80px; }
.col-iva				{ flex: 0 0 60px; }
.col-fecha				{ flex: 0 0 120px; }
.col-registro			{ flex: 0 0 150px; }
.col-final				{ font-weight: bold; color: #3FC; }
.col-observaciones		{ flex: 0 0 250px; text-align: right; }
.col-observaciones1		{ flex: 0 0 250px; text-align: center; }

.col-broker_nombre		{ flex: 0 0 120px; }
.col-activo				{ flex: 0 0 120px; }
.col-ticker				{ flex: 0 0 100px; }
.col-cantidad			{ flex: 0 0 100px; text-align: right; }
.col-promedio			{ flex: 0 0 120px; text-align: right; }
.col-total-usd			{ flex: 0 0 130px; text-align: right; }
.col-pnl-usd			{ flex: 0 0 130px; text-align: right; }
.col-valor-actual-usd	{ flex: 0 0 130px; text-align: right; }
.col-precio-usa			{ flex: 0 0 130px; text-align: right; }
.col-ratio				{ flex: 0 0 130px; text-align: right; }
.col-acciones			{ flex: 0 0 100px; text-align: right; }

.positivo { color: lime; font-weight: bold; }
.negativo { color: red; font-weight: bold; }

/*===========================================================*/
/* FORMULARIOS */
/*===========================================================*/
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-size: 13px;
    color: #ddd;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 250px;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #5a6f87;
    background-color: #222;
    color: #fff;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3FC;
    box-shadow: 0 0 5px #3FC;
}

input[type="submit"] {
    width: 250px;
    background-color: #5a6f87;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #6f849c;
}

/* Formularios horizontales */
.form-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px auto;
    padding: 15px;
    background-color: #444C5C;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.form-horizontal .campo {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.form-horizontal label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #ddd;
}

.form-horizontal input {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
}

/* Radio buttons */
.radio-group label {
    background-color: #444c5c;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.radio-group input[type="radio"] {
    accent-color: #5a6f87;
}

.radio-group label:hover {
    background-color: #5a6f87;
}

/* Input con autocompletado de guiones */
input.fecha-auto {
    letter-spacing: 1px;
}





/*===========================================================*/
/* TABLAS */
/*===========================================================*/
table.tabla,
table.tabla1 {
    border-collapse: collapse;
    margin-top: 20px;
    color: #fff;
}

table.tabla {
    width: 100%;
}
table.tabla1 {
    width: 75%;
}

table.tabla th, table.tabla td,
table.tabla1 th, table.tabla1 td {
    padding: 10px;
    border: 1px solid #5a6f87;
    text-align: left;
}

table.tabla th, table.tabla1 th {
    background-color: #444c5c;
    font-weight: bold;
}

table.tabla tr:nth-child(even),
table.tabla1 tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

/*===========================================================*/
/* PANELES DE COTIZACIÓN */
/*===========================================================*/
.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: 220px;
    text-align: center;
    transition: transform 0.3s ease;
}

.panel-activo:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.precio {
    font-size: 20px;
    font-weight: bold;
}

.positivo {
    color: #3FC;
}

.negativo {
    color: #FF4C4C;
}

.contenedor-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}
.panel-izquierdo {
	flex: 1 1 60%;
	min-width: 300px;
}
.panel-derecho {
	flex: 1 1 10%;
	min-width: 250px;
	text-align: center;
}

/*===========================================================*/
/* NAVEGACIÓN */
/*===========================================================*/
.paginacion {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.btn-nav {
    display: inline-block;
    padding: 3px 12px;
    background-color: #444c5c;
    color: #fff;
    width: 100px;       /* todos iguales */
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.btn-nav:hover {
    background-color: #5a6f87;
}

.btn-nav.activo {
    background-color: #3FC;
    color: #000;
    font-weight: bold;
}

/* Barra de navegación moderna */
.menu {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.menu li {
    display: inline-block;
    position: relative;
}

.menu a {
    display: inline-block;
    padding: 10px 18px;
    background-color: #444c5c;
    color: #fff;
    text-decoration: none;
    border-radius: 25px; /* estilo pill */
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    border: 2px solid #40E0D0; /* Turquesa */
    width: 100px;
    text-align: center;
}

.menu a:hover {
    background-color: #5a6f87;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    border-color: #00CED1; /* DarkTurquoise */
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-45%);
    min-width: 180px;
    border-radius: 6px;
    z-index: 99;
    text-align: center;
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #34495e;
}

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

/*===========================================================*/
/* COTIZACIONES DÓLAR */
/*===========================================================*/
.cotizaciones-dolar {
    width: 100%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.dolar-box {
    background: #444c5c;
    border: 2px solid #00CED1;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 206, 209, 0.25);
    color: #FFFFFF;
    text-align: center;
    min-width: 160px;
}

.dolar-box h3 {
    margin: 0 0 8px;
    font-weight: 600;
}

.dolar-box .precio {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00CED1;
}

.totales-flex {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.total-box {
    background: #444c5c;
	border: 2px solid #40E0D0;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    min-width: 220px;
    text-align: center;
}