/* Paleta de colores----- */
:root {
  --color-azul-oscuro: #285260;  
  --color-azul-medio:  #548C92; 
  --color-azul-claro:  #B4D7D8;  
  --color-crema:       #E0D7CF; 
  --color-arena:       #AB9072;  
  --color-positivo:    #188038;  
  --color-negativo:    #d93025;
  --color-neutro:      #666666;       
  --color-texto-gen:   #1a1a1a;
  --color-texto-prin:  #2C3E50;
  --color-texto-sec:   #BDC3C7;
  --color-fondo:       #ffffff;
}

@font-face {
	font-family: 'Inter';
	src: url('../../../../paquetesDescargados/Inter/static/Inter_18pt-Light.ttf') format('truetype');
}

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: 'Inter';
}

a {
	text-decoration: none;
	color: var(--color-texto-gen);
}

/* Todo des-seleccionable */
html, body, * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Pero estos sí se pueden seleccionar */
input,
textarea {
  user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
}


.homeContainer {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--color-fondo);
}

/* Seccion arrriba----------------------------------------------------------------------------------------------------------- */
.seccionFija {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 98%;
	padding-top: 25px;
	position: fixed;
	z-index: 999;
	background-color: var(--color-fondo);
	max-width: 1500px;
}

.arriba {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.homeContainer .contenedorLogo {
	height: 60px;
}

.homeContainer .contenedorLogoEmpresa {
	height: 100%;
}

.homeContainer .logo::selection {
	background-color: rgb(200, 200, 200);
}

.homeContainer .arriba .logo {
	height: 100%;
}


/* Barra de busqueda */
.homeContainer .baraBusqueda {
  position: relative;
  width: 500px;
  max-width: 500px;
  min-width: 200px;
  flex-shrink: 1;
  height: 45px;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  border-radius: 20px;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(100, 100, 100, 0.1);
  margin-left: 28px;
  background: #fff;
}

.homeContainer .baraBusquedaactivada {
	border-radius: 20px 20px 0px 0px;
	box-shadow: none;
}

.homeContainer .baraBusqueda a {
	height: 100%;
	margin-left: 10px;
}

.homeContainer .baraBusqueda a .logoAlpha {
	height: 100%;
}

.logoAlpha:hover {
  transform: scale(1.05);
}

.homeContainer .baraBusqueda .input {
	outline: none;
	border: none;
	height: 80%;
	width: 40%;
	font-size: 16px;
	font-weight: normal;
	margin-left: 10px;
	background-color: inherit;
	text-transform: uppercase
}

.homeContainer .baraBusqueda .input::placeholder {
	text-transform: none;
	font-size: 16px;
	font-weight: normal;
}


/* ── AUTOCOMPLETE DROPDOWN — diseño rico ── */
.autocomplete-items {
  display: none; /* oculto por defecto — JS lo muestra con display:block */
  position: absolute;
  z-index: 9999;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(84, 140, 146, 0.18);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(40, 82, 96, 0.16);
}

/* Cada resultado */
.posibleResult {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  cursor: pointer;
  background: #fff;
  border-bottom: 1px solid rgba(84, 140, 146, 0.07);
  transition: background 0.12s ease;
}
.posibleResult:last-child { border-bottom: none; }

.posibleResult:hover,
.posibleResult.autocomplete-active {
  background: rgba(84, 140, 146, 0.07);
}

/* Texto: nombre + ticker */
.ac-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ac-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-ticker {
  font-size: 11.5px;
  font-weight: 700;
  color: #548C92;
  letter-spacing: 0.04em;
}

/* Highlight del texto buscado */
.posibleResult mark {
  background: none;
  color: #285260;
  font-weight: 800;
}

/* Flecha derecha */
.ac-arrow {
  flex-shrink: 0;
  color: #c0d5d7;
  display: flex;
  align-items: center;
  transition: color 0.12s;
}
.posibleResult:hover .ac-arrow,
.posibleResult.autocomplete-active .ac-arrow {
  color: #548C92;
}

/* Cuando hay lista abierta, la barra solo redondea arriba */
.homeContainer .contenido .baraBusquedaactivada {
  border-radius: 20px 20px 0 0;
  box-shadow: none;
}

.homeContainer .arriba .contenedorLogin {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}


.homeContainer .arriba .fa-user-circle {
	font-size: 40px;
	color: var(--color-azul-medio);
	transition: var(--transition) ease all;
}

/* Uusario conectado inicial */
.perfilUsuario {
    display: flex;
	flex-direction: row !important;
    align-items: center;
    gap: 8px; /* menos espacio entre ícono y nombre */
    padding: 4px 8px; /* más compacto */
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
	margin-right: 50px;
}

.perfilUsuario:hover {
    background-color: #e6f0f2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.perfilCirculo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-azul-medio, #548C92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(84,140,146,0.2);
    transition: transform 0.2s ease;
}

.perfilUsuario:hover .perfilCirculo {
    transform: scale(1.1);
}

.nombreUsuario {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* seccion navigacion------------------------------------------------------------------- */
.paginas {
	display: flex;
	flex-flow: row;
	justify-content:space-between;
	width: 92%;
	margin-top: 20px;
	border-bottom: 2px solid var(--color-azul-medio);
	background-color: #edefef;
}

.paginas .elementoNav {
	background-color: #edefef;
	width: 100%;
	font-size: 14px;
	display: flex;
	flex-flow: row;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	padding-top: 2px;
	padding-bottom: 2px;
	color: var(--color-texto-gen);
}

.paginas .elementoNav:hover {
	background-color: #f3f2f2 !important;
	border: 1px solid var(--color-azul-medio);
	background-color: var(--color-azul-medio) !important;
	color: rgb(255, 255, 255) !important;
	cursor: pointer;
}

.analysis {
	background-color: #f3f2f2 !important;
	border: 1px solid var(--color-azul-medio);
	background-color: var(--color-azul-medio) !important;
	color: rgb(255, 255, 255) !important;
}





/* Contenido */
.contenido {
	width: 90%;
	position: relative;
	margin-top: 180px;
	display: grid;
	grid-template-columns: 50% 50%;
    grid-template-areas: 'identidad       identidad'
						 'tipoAnalisis    tipoAnalisis'
	                     'titulo          titulo'
						 'resultado       resultado'
						 'arena           arena';
	align-items: center;
	justify-items: center;
	max-width: 1350px;
}

/* comp-arena ocupa las dos columnas del grid */
.comp-arena {
  grid-area: arena;
  grid-column: 1 / -1;
}

/* Contenedor del submenú */
.menuAnalysisContenedor {
	grid-area: tipoAnalisis;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	margin-bottom: 10px;
	width: 100%;
	max-width: 700px;
}

/* Todos los botones: fondo blanco, borde y texto azul Alpha */
.menuAnalysisContenedor .menuAnalysis {
	flex: 1;
	background-color: white;
	color: #548C92; /* Azul Alpha */
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	padding: 10px 0;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.25s ease;
	border: 1px solid #548C92;

	/* Sombra sutil */
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1),
				-2px -2px 5px rgba(0, 0, 0, 0.03);
}

/* Hover: tono más claro del azul */
.menuAnalysisContenedor .menuAnalysis:hover {
	background-color: #eaf2f3;
	color: #3b676c;
	transform: scale(1.03);
	box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.12),
				-3px -3px 8px rgba(0, 0, 0, 0.05);
	cursor: pointer;
}

/* Solo el botón activo (DCF en este caso): fondo azul y texto blanco */
.menuAnalysisContenedor .menuRelativeValuationModel {
	background-color: #548C92 !important;
	color: white !important;
	border: 1px solid #548C92 !important;
	box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.12),
				-3px -3px 8px rgba(0, 0, 0, 0.05);
}



/* Titulo */
.tituloDeSeccionContenedor {
	grid-area: titulo;
	width: 100%;
	display: flex;
	justify-content: center;
	color: #548C92;
    font-size: 30px;
	margin-top: 15px;
}

.logoEmpresa {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: 5%;
	width: 60px;
	padding: 5px;
	background-color: white;
	border-radius: 14px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),
				0 1px 2px rgba(0, 0, 0, 0.08);
	margin-right: 10px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Contenedor general del bloque resultado */
.resultado {
	grid-area: resultado;
	width: 60%;
	background: linear-gradient(135deg, #f0f8f8 0%, #f9f9f9 100%);
	border: 1px solid #B4D7D8;
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(84, 140, 146, 0.12);
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 20px 30px;
	margin-top: 40px;
	gap: 30px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Cada sección dentro del bloque (price, change, dcf) */
.resultado > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Título de cada sección */
.resultado div b {
	font-size: 16px;
	color: #2C3E50; /* Azul Alpha */
	margin-bottom: 6px;
}

/* Valor destacado */
.resultado div h2 {
	font-size: 20px;
	font-weight: bold;
	color: #548C92;
}

.resultado:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(84, 140, 146, 0.2);
}





/* Empresas a comparar */

.contenedorEmpresas {
	grid-area: empresas;
	width: 100%;
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}

.empresa {
	display: flex;
	flex-direction: column;
	width: 25%;
	padding: 5px;
}

/* === Estilo de los inputs de los tickers (empresa 1 y 2) === */
.tickerSymbolEmpresa {
	width: 100px;
	border-radius: 12px;
	border: 1px solid #ccc;
	padding: 6px 12px;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	background-color: #ffffff;
	color: #2C3E50;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
	text-transform: uppercase;
	align-self: center;
}

.tickerSymbolEmpresa:focus {
	border-color: #f2f20a;
	box-shadow: 0 0 8px rgba(242, 242, 10, 0.4);
	outline: none;
}

.tickerSymbolEmpresa:hover {
	transform: scale(1.015);
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

/* === Ticker central (Apple, no editable) === */
.tickerSymbolEmpresaAnalyzar {
	width: 100px;
	border-radius: 12px;
	padding: 6px 12px;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #548C92;
	background-color: #f5f9f9;
	border: 1.5px solid #548C92;
	box-shadow: 1px 1px 5px rgba(0,0,0,0.04);
	align-self: center;
	user-select: none;
}

.nombreEmpresa {
	text-align: center;
	margin: 18px 0 10px 0 !important;
	font-size: 17px !important;
	color: #548C92;
}


/* === Tablas de múltiplos === */
.tablaMultiplos {
	width: 100%;
	margin-top: 10px;
	border-collapse: collapse;
	font-size: 15px;
	box-shadow: 0 6px 14px rgba(84, 140, 146, 0.15);
	border-radius: 14px;
	overflow: hidden;
}

.tablaMultiplos th {
	text-align: left;
	background-color: #f0f4f4;
	color: #2C3E50;
	padding: 10px 14px;
	font-weight: 600;
	border-bottom: 1px solid #dcdcdc;
}

.tablaMultiplos td {
	text-align: center;
	padding: 10px 14px;
	background-color: #ffffff;
	border-bottom: 1px solid #eee;
}

/* Alternancia de fondo */
.tablaMultiplos tr:nth-child(odd) td {
	background-color: #f8fafa;
}


/* === Inputs de múltiplos === */
.tablaMultiplos input[type="text"] {
	width: 70%;
	padding: 6px 10px;
	font-size: 15px;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 10px;
	background-color: #ffffff;
	box-shadow: inset 1px 1px 3px rgba(0,0,0,0.03);
	transition: 0.2s ease;
}

.tablaMultiplos input[type="text"]:focus {
	outline: none;
	border-color: #548C92;
	box-shadow: 0 0 6px rgba(84, 140, 146, 0.3);
	transform: scale(1.03);
}

/*Resultados de supestos precios*/

.contenedorResultados {
	grid-area: resultados;
	width: 100%;
	display: flex;
	justify-content: space-around;
	margin-top: 20px;
	margin-bottom: 40px;
}

.tablaResultados {
	display: flex;
	flex-flow: column;
	align-items: center;
}

.tablaResultados th{
	width: 150px;
}


/* Cajas poner en verde si se escoe o en rojo si no */
input[type=checkbox] {
	accent-color: #24c700;
	left: 0;
	height: 20px; /* Adjust the size as needed */
	width: 20px; /* Adjust the size as needed */
	background-color: #4CAF50; /* Background color of the checkbox */
	border: 2px solid #4CAF50; /* Border color */
	border-radius: 4px; /* Rounded corners */
	transition: background-color 0.3s;
	cursor: pointer;
}

input[type=checkbox]:hover {
	transform: scale(1.1);
}

/* Cajas poner en verde si se escoe o en rojo si no */
input[type=checkbox] {
	transform: scale(1.2);
	margin-right: 8px;
}

input[type=checkbox]:hover {
	transform: scale(1.3);
}

/* =============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================= */

/* Botón hamburguesa - oculto en desktop */
.menu-hamburguesa {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	color: var(--color-azul-medio);
	cursor: pointer;
	padding: 10px;
	z-index: 1001;
}

/* Menú desplegable móvil - oculto por defecto */
.menu-mobile {
	display: none;
	position: fixed;
	top: 0;
	right: -100%;
	width: 280px;
	height: 100vh;
	background-color: white;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	transition: right 0.3s ease;
	z-index: 1000;
	padding-top: 80px;
	overflow-y: auto;
}

.menu-mobile.menu-abierto {
	right: 0;
}


	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
}

.menu-overlay.activo {
	display: block;
}

.menu-mobile-contenido {
	padding: 20px;
}

.menu-mobile-profile {
	padding: 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.menu-mobile-profile i {
	font-size: 32px;
	color: var(--color-azul-medio);
}

.menu-mobile-profile span {
	font-size: 16px;
	color: var(--color-texto-gen);
	font-weight: 500;
}

.menu-mobile-item {
	display: block;
	padding: 15px 20px;
	color: var(--color-texto-gen);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.3s ease;
}

.menu-mobile-item:hover {
	background-color: var(--color-azul-claro);
	color: var(--color-azul-oscuro);
}

.menu-mobile-item.activo {
	background-color: var(--color-azul-medio);
	color: white;
}

.menu-cerrar {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 24px;
	color: var(--color-azul-medio);
	cursor: pointer;
	padding: 10px;
}

.contenedorBotonLogin {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.botonesAuth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.botonLogin, .botonSignin {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--color-azul-medio);
}

.botonLogin {
    background-color: var(--color-azul-medio);
    color: white;
}

.botonLogin:hover {
    background-color: var(--color-azul-oscuro);
    border-color: var(--color-azul-oscuro);
    color: white;
}

.botonSignin {
    background-color: transparent;
    color: var(--color-azul-medio);
}

.botonSignin:hover {
    background-color: var(--color-azul-medio);
    color: white;
}

.perfilUsuario {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-left: 5px;
}


.contenedorLogin i {
    font-size: 28px;
    color: var(--color-azul-medio);
    transition: color 0.3s ease;
}

.contenedorLogin:hover i {
    color: var(--color-azul-oscuro);
}

.perfilUsuario{ display:none; }

.user-status-container {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.user-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.9em;
  font-weight: 600;
  background: #eee;
  color: #555;
  border: 1px solid #ddd;
  transition: background 0.3s, color 0.3s;
}

.user-status.online {
  background: #d2fbe4;
  color: #05984c;
  border-color: #41e17b;
}

.user-status.offline {
  background: #fbe2e2;
  color: #ce1d1d;
  border-color: #e15a5a;
}

/* Estado deshabilitado del botón AI */
.botonAI.disabled {
  background-color: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  pointer-events: all !important; /* Mantener eventos para capturar click y redirigir */
  box-shadow: none !important;
}

.botonAI.disabled:hover {
  background-color: #cccccc !important;
  transform: none !important;
}

/* ===== IDENTIDAD DE LA EMPRESA - MEJORADA ===== */
.identidad {
  grid-area: identidad;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  border: 1px solid rgba(84, 140, 146, 0.1);
}

/* Contenedor izquierdo: Logo + Nombre + Ticker */
.nombreTickerLogo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

/* Logo de la empresa */
.contenedorLogoEmpresa {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 80px;
  height: 80px;
}

.contenedorLogoEmpresa:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}

/* Contenedor de textos (Nombre y Ticker) */
.nombreTickerLogo > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Nombre de la empresa */
.nombreEmpresa {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-azul-oscuro, #285260);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Ticker de la empresa */
.tickerEmpresa {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-azul-medio, #548C92);
  margin: 0;
  padding: 4px 10px;
  background: rgba(84, 140, 146, 0.1);
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.05em;
}

/* Responsive - Móvil para identidad (caja 3D, centrada, logo arriba del nombre) */
@media (max-width: 768px) {
  .identidad {
    display: flex;
    flex-direction: column;       /* logo arriba del nombre */
    align-items: center;
    text-align: center;
    gap: 10px;
    width: clamp(260px, 92vw, 420px); /* compacta y centrada */
    margin: 0 auto 30px;          /* centrada horizontalmente */
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(84, 140, 146, 0.12);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    transform-style: preserve-3d; /* look 3D sutil */
  }

  .nombreTickerLogo {
    display: flex;
    flex-direction: column;       /* logo encima del nombre */
    align-items: center;
    gap: 8px;
  }

  .contenedorLogoEmpresa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10); /* relieve del logo */
    padding: 0;
  }

  .logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
  }

  .nombreEmpresa {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--color-azul-oscuro, #285260);
  }

  .tickerEmpresa { 
    display: none;                /* ocultar ticker en móvil */
  }
}


/* ==========================================================
   NAV (MODERNO) — override desktop; móvil se mantiene igual
   ========================================================== */
@media (min-width: 769px) {
  .paginas {
    position: sticky;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 92%;
    margin: 25px auto 16px auto;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--color-fondo) 82%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid color-mix(in srgb, var(--color-azul-claro) 45%, transparent);
    box-shadow: 0 8px 28px rgba(40, 82, 96, 0.10);
    border-radius: 16px;
  }
  .paginas .elementoNav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.1px;
    color: var(--color-texto-prin);
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
    background: transparent;
  }
  .paginas .elementoNav h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 600;
  }
  .paginas .elementoNav:hover {
    background: color-mix(in srgb, var(--color-azul-claro) 26%, transparent);
    border-color: color-mix(in srgb, var(--color-azul-claro) 55%, transparent);
    color: var(--color-azul-oscuro);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(84, 140, 146, 0.16);
  }
  .paginas .elementoNav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-azul-claro) 65%, transparent);
  }
  /* Activo con aria-current (opción recomendada) */
  .paginas .elementoNav[aria-current="page"] {
    background: linear-gradient(135deg, var(--color-azul-medio), var(--color-azul-oscuro));
    border-color: var(--color-azul-medio);
    color: #fff;
    box-shadow: 0 10px 24px rgba(40, 82, 96, 0.28);
  }
  /* Compatible con tu convención actual en esta página (Historical usa .analysis) */
  .paginas .analysis {
    background: linear-gradient(135deg, var(--color-azul-medio), var(--color-azul-oscuro)) !important;
    border-color: var(--color-azul-medio) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(40, 82, 96, 0.28);
  }
}

/* Version movil */
@media (max-width: 768px) {
	
	.seccionFija {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 98%;
		padding-top: 25px;
		position: fixed;
		z-index: 999;
		background-color: transparent;
	}
	.arriba {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}	
	/* Botones de autenticación en móvil */
	.botonesAuth {
		width: 100%;
		display: none;
		justify-content: center;
		margin-top: 15px;
		order: 1;
		justify-content: flex-end;
		position: absolute;
		top: 0;
		right: 0;
		width: auto;
	}

	.perfilUsuario{
		display: none;
		flex-direction: row;
		align-items: center;
		gap: 8px;
		border-radius: 8px;
		background-color: #f8f9fa;
		box-shadow: 0 1px 4px rgba(0,0,0,0.08);
		transition: all 0.2s ease-in-out;
		cursor: pointer;
		position: absolute;
		top: 13px;
		right: -20px;
		z-index: 15;
	}

	/* Barra de búsqueda en móvil: debajo de los botones de autenticación */
	.homeContainer .baraBusqueda {
		width: calc(100% - 30px);
		max-width: 450px;
		height: 40px;
		margin: 0 auto 0 auto;
		box-sizing: border-box;
		order: 2;
		display: flex;
		margin-top: 40px;
		z-index: 10;
		background-color: var(--color-fondo);
	}
	
	.menu-mobile,
	#menuMobile {
		display: block;         
		position: fixed;
		top: 0;
		right: -85%;
		width: 85%;
		max-width: 360px;
		height: 100vh;
		background: var(--color-fondo);
		box-shadow: -4px 0 16px rgba(0,0,0,0.18);
		padding: 20px;
		overflow-y: auto;
		transition: right 0.3s ease;
		z-index: 1300; /* encima del bottom-nav (1200) y su drawer (1199) */
	}

	/* ← regla que faltaba: abre el menú en móvil */
	.menu-mobile.menu-abierto,
	#menuMobile.menu-abierto {
		right: 0;
	}
	/* hacer menu deslizante */
	.paginas {
		display: flex;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none; /* Oculta la barra en Firefox */
		background-color: transparent; /* Quitar fondo gris */
		border-bottom: none; /* Quitar borde inferior */
		padding: 10px 15px; /* Añadir padding para separación */
		gap: 12px; /* Espacio entre burbujas */
		margin-top: 15px;
		transition: transform 0.3s ease, opacity 0.3s ease;
		transform: translateY(0);
		opacity: 1;
		width: 100%;
		z-index: 9;		
	}
	
	/* Estado oculto cuando se hace scroll hacia abajo */
	.paginas.hidden {
		transform: translateY(-100%);
		opacity: 0;
		pointer-events: none;
	}
	.paginas::-webkit-scrollbar {
		display: none; /* Oculta la barra en Chrome/Safari */
	}

	.paginas .elementoNav {
		background-color: white;
		border: 2px solid var(--color-azul-claro);
		border-radius: 20px;
		padding: 8px 8px;
		font-size: 13px;
		font-weight: 500;
		white-space: nowrap;
		min-width: fit-content;
		box-shadow: 0 2px 8px rgba(84, 140, 146, 0.15);
		transition: all 0.3s ease;
		color: var(--color-azul-medio);
		animation: paginas-scroll-hint 1.2s ease-in-out 0.3s 1 alternate;
	}

	.paginas .elementoNav:hover {
		background-color: var(--color-azul-claro) !important;
		border-color: var(--color-azul-medio) !important;
		color: var(--color-azul-oscuro) !important;
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(84, 140, 146, 0.25);
	}

	.paginas .elementoNavs{
		background-color: var(--color-azul-medio) !important;
		border-color: var(--color-azul-medio) !important;
		color: white !important;
		box-shadow: 0 3px 10px rgba(40, 82, 96, 0.4);
		transform: translateY(-1px);
	}

	@keyframes paginas-scroll-hint {
		0%   { transform: translateX(0); }
		20%  { transform: translateX(-30px); }
		40%  { transform: translateX(0); }
		60%  { transform: translateX(-20px); }
		80%  { transform: translateX(0); }
		100% { transform: translateX(0); }
	}


		/*Contenido*/

		.contenido {
		display: block;
		padding: 0 5px;
		width: 100%;
		max-width: 100vw;
		overflow-x: hidden;
	}

  .contenido {
    margin-top: 130px !important;
  }

  .alpha-footer {
    margin-top: 0px !important;
  }



		.resultado {
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  margin: 0px auto 0px auto !important
}

		.contenedorEmpresas {
		flex-direction: column;
		gap: 20px;
		margin: 20px 0;
	}

		.empresa {
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}

		.contenedorResultados {
		flex-direction: column;
		gap: 20px;
		margin: 20px 0;
		padding: 0px 20px;
	}
		.tablaMultiplos {
		font-size: 12px;
		min-width: 300px;
	}
	.tablaMultiplos th,
	.tablaMultiplos td {
		padding: 8px 4px;
	}
	.tablaMultiplos input[type="text"] {
		width: 80px;
		font-size: 12px;
		padding: 4px;
	}	

	/* Botones del menú analysis del mismo tamaño en móvil */
	.menuAnalysisContenedor {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 8px;
		width: 100%;
		padding: 0 10px;
	}
	
	.menuAnalysisContenedor .menuAnalysis {
		flex: 1;
		width: auto;
		height: 50px;
		font-size: 12px;
		padding: 8px 4px;
		margin: 0;
		border-radius: 15px;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	  	/* Logo empresa arriba del título en móvil */
	.logoEmpresa {
		position: static;
		left: auto;
		margin: 0 auto 20px auto;
		width: 60px;
	}

	/* Contenedor del título organizado verticalmente en móvil */
	.tituloDeSeccionContenedor {
		flex-direction: column;
		align-items: center;
		position: relative;
		padding: 30px 0 30px;
	}

	.tickerSymbolEmpresa, .tickerSymbolEmpresaAnalyzar {
		margin-bottom: 15px;
	}


}

/* === Identidad flotante/compacta en STATISTICS (desktop) === */
@media (min-width: 769px) {
  /* Suaviza la transición entre modo normal y compacto */
  .identidad {
    transition: all 180ms ease;
  }

  /* MODO COMPACTO: tarjeta flotante arriba a la derecha */
.identidad.identidad--compact {
    position: fixed;
    top: 170px;
    left: 90px;      /* ahora a la izquierda */
    right: auto;     /* anulamos la posición derecha */
    width: auto;
    max-width: 420px;
    box-sizing: border-box;
    padding: 8px 14px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--color-fondo) 82%, transparent);
    box-shadow: 0 8px 24px rgba(40, 82, 96, 0.18);
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 10px;
}


  .identidad.identidad--compact .contenedorLogoEmpresa {
    flex-shrink: 0;
  }

  .identidad.identidad--compact .logo {
    width: 30px;
    height: 30px;
    border-radius: 12px;
  }

  .identidad.identidad--compact .nombreEmpresa {
    font-size: 16px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px; /* para que nombres largos no rompan el layout */
  }

  .identidad.identidad--compact .tickerEmpresa {
    font-size: 13px;
    white-space: nowrap;
  }
}

/* === Identidad compacta también en teléfono === */
@media (max-width: 768px) {
  .identidad {
    transition: all 180ms ease;
  }

  .identidad--compact {
    position: fixed;
    top: 140px;                /* ajusta según la altura de tu navbar en móvil */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);  /* margen a los lados */
    max-width: 480px;
    box-sizing: border-box;
    padding: 8px 14px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--color-fondo) 82%, transparent);
    box-shadow: 0 8px 24px rgba(40, 82, 96, 0.18);
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .identidad--compact .logo {
    width: 30px;
    height: 30px;
    border-radius: 12px;
  }

  .identidad--compact .nombreEmpresa {
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .identidad--compact .tickerEmpresa {
    font-size: 13px;
    white-space: nowrap;
  }
}


/* === Quitar animacion de tabs en telefono === */
@media (max-width: 768px) {
  .paginas .elementoNav {
    animation: none !important;
  }
}

/* Asegura que .contenido use position: relative */
body .contenido {
    position: relative !important;
    top: 0;
    margin-bottom: 0px;
}


/* =============================================
   FOOTER
   ============================================= */
.alpha-footer {
  grid-area: footer;
  width: 100%;
  margin-top: 40px;
  background: #F4F9FA;
  border-top: 2px solid var(--color-azul-medio);
  font-size: 0.875rem;
}

.alpha-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Home (logo + texto) */
.alpha-footer__home-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-azul-oscuro);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}
.alpha-footer__home-link:hover { opacity: 0.7; }
.alpha-footer__home-link:hover .alpha-footer__logo { transform: scale(1.08); }

.alpha-footer__logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform .2s ease;
}

.alpha-footer__home-text {
  font-size: 0.875rem;
}

/* Navegacion central */
.alpha-footer__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.alpha-footer__sep {
  color: var(--color-azul-medio);
  font-size: 0.8rem;
  padding: 0 2px;
  opacity: 0.4;
}

.alpha-footer__link {
  text-decoration: none;
  color: var(--color-azul-medio);
  font-weight: 400;
  font-size: 0.875rem;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.alpha-footer__link:hover {
  color: var(--color-azul-oscuro);
  background: rgba(84,140,146,0.08);
}

/* Iconos sociales */
.alpha-footer__social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.alpha-footer__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-azul-medio);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-azul-medio);
  transition: color 0.15s ease, border-color 0.15s ease,
              background 0.15s ease, transform 0.15s ease;
}
.alpha-footer__icon i { font-size: 0.82rem; }
.alpha-footer__icon:hover {
  color: #ffffff;
  background: var(--color-azul-medio);
  border-color: var(--color-azul-medio);
  transform: translateY(-1px);
}

.footer-logo-link {
  display: flex;
  align-items: center;
}

/* Mobile */
@media (max-width: 600px) {
  .alpha-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    text-align: center;
  }
  .alpha-footer__nav { flex-wrap: wrap; justify-content: center; }
}


/* =============================================
   BOTTOM TAB BAR - MOVIL
   ============================================= */
@media (max-width: 768px) {

  .seccionFija .paginas {
    display: none !important;
  }

  .menu-hamburguesa {
    display: none !important;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: stretch;
    background: var(--color-fondo);
    border-top: 1px solid rgba(84, 140, 146, 0.18);
    box-shadow: 0 -4px 20px rgba(40, 82, 96, 0.10);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px 8px;
    gap: 3px;
    cursor: pointer;
    border: none;
    background: none;
    border-top: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
    text-decoration: none;
    color: var(--color-neutro);
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav__item.activo,
  .bottom-nav__item[aria-current="page"] {
    border-top-color: var(--color-azul-medio);
    color: var(--color-azul-oscuro);
  }

  .bottom-nav__icon {
    font-size: 18px;
    line-height: 1;
  }

  .bottom-nav__label {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
  }

  .bottom-nav__drawer {
    position: fixed;
    bottom: 58px;
    left: 0;
    right: 0;
    z-index: 1199;
    background: var(--color-fondo);
    border-top: 0.5px solid rgba(84, 140, 146, 0.2);
    box-shadow: 0 -4px 20px rgba(40, 82, 96, 0.12);
    padding: 10px 16px 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }

  .bottom-nav__drawer.abierto {
    transform: translateY(0);
  }

  .bottom-nav__drawer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 10px;
    border: 0.5px solid rgba(84, 140, 146, 0.2);
    background: #f5f9f9;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-azul-medio);
    font-size: 10px;
    font-weight: 500;
  }

  .bottom-nav__drawer-item i {
    font-size: 16px;
  }

  .alpha-footer {
    margin-bottom: 60px !important;
  }
}

/* Ocultar el bottom-nav en desktop */
@media (min-width: 769px) {
  .bottom-nav,
  .bottom-nav__drawer {
    display: none !important;
  }
}


.perfilUsuario {
  display: none;
  align-items: center;
  gap: 5px;
  margin-left: 5px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid transparent;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.perfilUsuario:hover {
  background: #e6f0f2;
}
.perfilUsuario a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}
.nombreUsuario {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.perfilCirculo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-azul-medio);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

/* === Premium gold === */
.perfilUsuario.is-premium {
  background: linear-gradient(135deg, rgba(182,138,58,0.13), rgba(210,178,95,0.06));
  border-color: rgba(182,138,58,0.38);
  box-shadow: 0 2px 10px rgba(182,138,58,0.15);
}
.perfilUsuario.is-premium:hover {
  background: linear-gradient(135deg, rgba(182,138,58,0.20), rgba(210,178,95,0.10));
}
.perfilUsuario.is-premium .perfilCirculo {
  background: linear-gradient(135deg, #B68A3A, #D2B25F);
  box-shadow: 0 0 0 2px rgba(182,138,58,0.22);
}
.perfilUsuario.is-premium .nombreUsuario {
  color: #8A6423;
}
/* ============================================================
   COMPARABLE VALUATION — NUEVO DISEÑO (comp-arena)
   ============================================================ */

/* El comp-arena ocupa todo el ancho en grid, reemplazando empresas+resultados */
.comp-arena {
  width: 100%;
  margin-top: 28px;
  margin-bottom: 20px;
}

/* Hint text */
.comp-hint {
  text-align: center;
  font-size: 13.5px;
  color: #7a9fa4;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.comp-hint i { color: #548C92; }
.comp-hint strong { color: #2C3E50; }

/* Row de tres cards */
.comp-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}

/* ── BASE CARD ── */
.comp-card {
  background: #ffffff;
  border: 1.5px solid rgba(84, 140, 146, 0.18);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(40, 82, 96, 0.08);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.comp-card:hover {
  box-shadow: 0 8px 28px rgba(40, 82, 96, 0.13);
  transform: translateY(-2px);
}

/* Target card accent */
.comp-card--target {
  border-color: #548C92;
  border-width: 2px;
  background: linear-gradient(160deg, #f5fafa 0%, #ffffff 100%);
  box-shadow: 0 6px 24px rgba(84, 140, 146, 0.18);
  z-index: 1;
  padding: 24px 22px 26px;
}

/* ── HEADER ── */
.comp-card__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* Badge */
.comp-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.comp-card__badge--peer {
  background: rgba(84, 140, 146, 0.10);
  color: #548C92;
  border: 1px solid rgba(84, 140, 146, 0.25);
}
.comp-card__badge--target {
  background: #548C92;
  color: #fff;
}

/* Ticker input en peers */
.comp-ticker-input-wrap {
  position: relative;
  width: 100%;
  max-width: 160px;
}
.comp-ticker-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #aac5c8;
  pointer-events: none;
}
.comp-ticker-input {
  width: 100%;
  border: 1.5px solid rgba(84, 140, 146, 0.3);
  border-radius: 10px;
  padding: 8px 12px 8px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: #2C3E50;
  background: #f8fbfb;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
  /* override base styles */
  margin: 0 !important;
  box-shadow: none !important;
}
.comp-ticker-input:focus {
  border-color: #548C92;
  box-shadow: 0 0 0 3px rgba(84, 140, 146, 0.15) !important;
  background: #fff;
  transform: none !important;
}
.comp-ticker-input::placeholder {
  color: #c0d5d7;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

/* Ticker label del target */
.comp-ticker-target {
  font-size: 20px;
  font-weight: 800;
  color: #285260;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  text-align: center;
}

/* ── LOGO ── */
.comp-card__logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f0f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(40,82,96,0.08);
}
.comp-card--target .comp-card__logo-wrap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 2px solid rgba(84, 140, 146, 0.2);
}
.comp-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.comp-card__logo-placeholder {
  font-size: 22px;
  color: #c0d5d7;
}

/* ── NAME ── */
.comp-card__name {
  font-size: 12.5px;
  font-weight: 600;
  color: #4a7a7f;
  text-align: center;
  min-height: 18px;
  margin-bottom: 16px;
  padding: 0 4px;
  line-height: 1.3;
}
.comp-card__name--target {
  font-size: 13px;
  color: #285260;
}

/* ── MULTIPLES TABLE ── */
.comp-multiples {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(84, 140, 146, 0.12);
}
.comp-multiple-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(84, 140, 146, 0.08);
}
.comp-multiple-row:last-child { border-bottom: none; }
.comp-multiple-row:nth-child(odd) { background: #f7fbfb; }
.comp-multiple-row:nth-child(even) { background: #fff; }
.comp-multiples--target .comp-multiple-row:nth-child(odd) { background: rgba(84,140,146,0.05); }
.comp-multiples--target .comp-multiple-row:nth-child(even) { background: #fff; }

.comp-multiple-label {
  font-size: 12px;
  font-weight: 600;
  color: #5a7a80;
  letter-spacing: 0.02em;
}
.comp-multiple-value {
  font-size: 14px;
  font-weight: 700;
  color: #2C3E50;
  font-variant-numeric: tabular-nums;
}

/* ── RESULTS SECTION (inside peer card) ── */
.comp-results {
  width: 100%;
  margin-top: 18px;
  border-top: 1.5px solid rgba(84, 140, 146, 0.15);
  padding-top: 14px;
}
.comp-results__title {
  font-size: 11px;
  font-weight: 600;
  color: #8aabb0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.5;
}
.comp-results__title strong { color: #285260; font-size: 12px; }
.comp-results__title span   { color: #548C92; font-weight: 700; }

.comp-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(84, 140, 146, 0.07);
  gap: 6px;
}
.comp-result-row:last-child { border-bottom: none; }
.comp-result-row--avg {
  padding-top: 10px;
  border-top: 1.5px solid rgba(84, 140, 146, 0.18);
  border-bottom: none;
  margin-top: 4px;
}

.comp-result-label {
  font-size: 11.5px;
  color: #7a9fa4;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}
.comp-result-value {
  font-size: 13px;
  font-weight: 700;
  color: #2C3E50;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: right;
}
.comp-result-value--avg {
  font-size: 15px;
  color: #548C92;
}

/* ── ALPHA TOGGLE (reemplaza checkbox) ── */
.comp-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.comp-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  transform: none !important;
}
.comp-toggle__track {
  display: block;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #d0dfe0;
  transition: background 0.2s ease;
  position: relative;
}
.comp-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.comp-toggle input:checked + .comp-toggle__track {
  background: #548C92;
}
.comp-toggle input:checked + .comp-toggle__track::after {
  transform: translateX(14px);
}
.comp-toggle:hover .comp-toggle__track {
  background: #b5cdd0;
}
.comp-toggle input:checked:hover + .comp-toggle__track {
  background: #3d7076;
}

/* Override: hide old input[type=checkbox] styles for comp-toggle */
.comp-toggle input[type=checkbox]:hover {
  transform: none !important;
}

/* =============================================
   PREMIUM LOCK — ETIQUETAS DORADAS (Multiples)
   Mismo sistema que avrageValue.css / benGraham.css
   ============================================= */

/* 1) Cancelar blur del blocker.css global */
body #posibleChange[data-lock="premium"],
body #dcfValuation[data-lock="premium"],
body .comp-result-value[data-lock="premium"] {
  filter: none !important;
}

/* 2) Estado bloqueado — tarjeta superior */
body[data-online="0"] #posibleChange[data-lock="premium"],
body[data-online="0"] #dcfValuation[data-lock="premium"],
body[data-online="1"][data-premium="0"] #posibleChange[data-lock="premium"],
body[data-online="1"][data-premium="0"] #dcfValuation[data-lock="premium"] {
  color: transparent !important;
  position: relative;
  display: block;
  min-height: 1.5em;
  pointer-events: auto !important;
  cursor: pointer !important;
  overflow: visible;
}

/* 3) Contenido etiqueta tarjeta superior */
body[data-online="0"] #posibleChange[data-lock="premium"]::before,
body[data-online="1"][data-premium="0"] #posibleChange[data-lock="premium"]::before {
  content: 'Unlock Possible Upside/Downside';
}
body[data-online="0"] #dcfValuation[data-lock="premium"]::before,
body[data-online="1"][data-premium="0"] #dcfValuation[data-lock="premium"]::before {
  content: 'Unlock Intrinsic Value';
}

/* 4) Estilo visual del badge dorado — tarjeta superior */
body[data-online="0"] #posibleChange[data-lock="premium"]::before,
body[data-online="0"] #dcfValuation[data-lock="premium"]::before,
body[data-online="1"][data-premium="0"] #posibleChange[data-lock="premium"]::before,
body[data-online="1"][data-premium="0"] #dcfValuation[data-lock="premium"]::before {
  display: inline-block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #B68A3A 0%, #D2B25F 60%, #E8C97A 100%);
  background-size: 200% 100%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 50px;
  padding: 3px 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(182,138,58,0.35);
  animation: multGoldShimmer 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

/* 5) Estado bloqueado — valores de múltiplos por método */
body[data-online="0"] .comp-result-value[data-lock="premium"],
body[data-online="1"][data-premium="0"] .comp-result-value[data-lock="premium"] {
  color: transparent !important;
  position: relative;
  pointer-events: auto !important;
  cursor: pointer !important;
  overflow: visible;
  min-width: 50px;
}
body[data-online="0"] .comp-result-value[data-lock="premium"]::before,
body[data-online="1"][data-premium="0"] .comp-result-value[data-lock="premium"]::before {
  content: 'Unlock';
  display: inline-block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #B68A3A 0%, #D2B25F 60%, #E8C97A 100%);
  background-size: 200% 100%;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 50px;
  padding: 2px 8px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(182,138,58,0.35);
  animation: multGoldShimmer 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes multGoldShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* 6) Estado desbloqueado (premium) — tarjeta superior */
body[data-premium="1"] #posibleChange[data-lock="premium"],
body[data-premium="1"] #dcfValuation[data-lock="premium"] {
  filter: none !important;
  cursor: default !important;
}
body[data-premium="1"] #posibleChange[data-lock="premium"]::before,
body[data-premium="1"] #dcfValuation[data-lock="premium"]::before {
  display: none !important;
}

/* 7) Estado desbloqueado (premium) — valores de múltiplos */
body[data-premium="1"] .comp-result-value[data-lock="premium"] {
  filter: none !important;
  color: inherit !important;
  cursor: default !important;
}
body[data-premium="1"] .comp-result-value[data-lock="premium"]::before {
  display: none !important;
}

/* Evitar que h2 pise color inline del JS */
body[data-premium="1"] .resultado div h2#posibleChange {
  color: revert;
}

/* Tooltip premium */
.premium-upgrade-tooltip {
  position: fixed;
  z-index: 99999;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #B68A3A, #D2B25F);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.premium-upgrade-tooltip--visible {
  visibility: visible;
  opacity: 1;
}
.premium-upgrade-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #D2B25F transparent transparent;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .comp-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .comp-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .comp-card--target {
    order: -1;
  }
}

@media (max-width: 768px) {
  .comp-arena {
    margin-top: 12px;
    margin-bottom: 80px;
    width: 100%;
  }
  .comp-row {
    gap: 12px;
  }
  .comp-card {
    padding: 16px 14px 18px;
    max-width: 100%;
    border-radius: 14px;
  }
  .comp-ticker-input-wrap {
    max-width: 100%;
  }
  .comp-card__badge--target {
    font-size: 9px;
  }
  .comp-hint {
    font-size: 12px;
    padding: 0 8px;
  }
}
/* ============================================================
   PEER AUTOCOMPLETE DROPDOWN
   ============================================================ */
.comp-ticker-input-wrap {
  position: relative;
}

.comp-ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(84, 140, 146, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(40, 82, 96, 0.14);
  z-index: 500;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}

.comp-ac-item {
  padding: 9px 14px;
  font-size: 12.5px;
  color: #2C3E50;
  cursor: pointer;
  border-bottom: 1px solid rgba(84, 140, 146, 0.07);
  transition: background 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comp-ac-item:last-child { border-bottom: none; }
.comp-ac-item:hover,
.comp-ac-item--active {
  background: rgba(84, 140, 146, 0.08);
  color: #285260;
}
.comp-ac-item strong {
  color: #548C92;
  font-weight: 700;
}

/* Spinner state on ticker inputs */
.comp-ticker-input:disabled {
  opacity: 0.5;
  cursor: wait;
  background: #f0f7f7;
}

/* ── Global site nav ── */
.busqueda-af-nav {
  display: flex; gap: 4px; align-items: center; flex-shrink: 0;
}
.busqueda-af-nav .af-nav__link {
  display: inline-flex; align-items: center; text-decoration: none;
  color: rgba(26,26,26,0.70); font-size: 14px; font-weight: 600;
  padding: 8px 10px; border-radius: 12px; border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap; cursor: pointer;
}
.busqueda-af-nav .af-nav__link:hover {
  background: rgba(0,0,0,0.04); color: rgba(26,26,26,0.92);
}
.busqueda-af-nav .af-nav__link.is-active {
  background: rgba(84,140,146,0.12); color: #285260;
  border: 1px solid rgba(84,140,146,0.35);
}
.busqueda-nav-toggle {
  display: none; border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.7); backdrop-filter: blur(10px);
  border-radius: 12px; padding: 10px 12px; cursor: pointer; line-height: 1; flex-shrink: 0;
}
.busqueda-nav-toggle i { font-size: 16px; color: rgba(26,26,26,0.75); }
.busqueda-nav-mobile {
  display: none; position: absolute; top: calc(100% + 8px);
  left: 16px; right: 16px; background: #fff;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.12); padding: 10px; z-index: 4000;
}
.busqueda-nav-mobile .af-nav__link { display: block; padding: 11px 12px; border-radius: 12px; }

@media (max-width: 768px) {
  .seccionFija .paginas { display: none !important; }
  .menu-hamburguesa { display: none !important; }
  .busqueda-af-nav { display: none; }
  .busqueda-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .seccionFija.is-open .busqueda-nav-mobile { display: block; }
  .seccionFija.is-open .busqueda-nav-toggle { border-color: rgba(84,140,146,0.35); }
  .menu-mobile-section-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--color-azul-medio, #548C92);
    padding: 16px 16px 6px; opacity: 0.7;
  }
  .menu-mobile-item i { width: 18px; text-align: center; margin-right: 8px; opacity: 0.7; }
}

@media (max-width: 1100px) {
  .baraBusqueda {
    width: 340px;
  }
  .busqueda-af-nav .af-nav__link {
    font-size: 13px;
    padding: 7px 8px;
  }
}

@media (max-width: 900px) {
  .baraBusqueda {
    width: 260px;
  }
  .busqueda-af-nav {
    gap: 2px;
  }
  .busqueda-af-nav .af-nav__link {
    font-size: 12px;
    padding: 6px 7px;
  }
}