#principal {
	width: 1000px;
	margin-right: auto;
	margin-left: auto;
	background-color: transparent;
}
.miniatura  {
	margin: 5px;
	float: left;
	height: 250px;
	width: 250px;
	text-align: center;
}
#principal #encabezado {
	width: 1000px;
	height: auto;
	margin-bottom: 15px;
	float: left;
	font-family: Arial, Helvetica, sans-serif;
}
#principal #encabezado #logo1 {
	float: left;
	height: auto;
	width: 1000px;
}
#principal #menu {
	width: 1000px;
	height: 40px;
	margin: 0px;
	float: left;
	font-family: Arial, Helvetica, sans-serif;
}
#principal #menu a{
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
	color: #658524;
	
	}
#principal #contenido #texto {
	float: none;
	width: 940px;
	margin-top: 15px;
	margin-right: 5px;
	margin-bottom: 15px;
	margin-left: 15px;
}
#menuadmin {
	float: none;
	width: 940px;
	margin-top: 15px;
	margin-right: 5px;
	margin-bottom: 15px;
	margin-left: 15px;
}

#principal #contenido #mapa {
	float: none;
	width: 940px;
	margin-top: 15px;
	margin-right: 5px;
	margin-bottom: 15px;
	margin-left: 15px;
}

#principal #contenido #imagenes {
	width: 940px;
	float: left;
	margin-top: 30px;
	margin-right: 15px;
	margin-bottom: 15px;
	margin-left: 15px;
}

#principal #contenido {
	width: 1000px;
	float: left;
	margin-top: 15px;
	margin-bottom: 15px;
	font-family: Arial, Helvetica, sans-serif;
	background-color: #FFF;
	-moz-box-shadow: 0px 1px 1px 1px #9f9f9f;
	-webkit-box-shadow: 0px 1px 1px 1px #9f9f9f;
	box-shadow: 0px 1px 1px 1px #9f9f9f;
	overflow: auto;
	-webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

#pie {
  width: 1000px;
  margin-top: 30px;
  padding: 20px 0;
  background-color: #366092;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.footer-column {
  width: 30%;
  min-width: 250px;
  text-align: center;
  margin-bottom: 10px;
}

#pie a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin: 2px 0;
}

#pie a:hover {
  text-decoration: underline;
}

#principal #contenido #todotexto {
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
	margin-left: 10px;
	padding-top: 10px;
	padding-right: 10px;
	padding-bottom: 20px;
	padding-left: 10px;
}
#principal #contenido #btnfacebook {
	margin: 5px;
}
.tablacuadro {
	border: 0px none #00F;
}
#tablafb {
	font-size: 12px;
}
#tablafb p {
	margin:0px;
}

#principal #contenido #todotexto #submenu {
	margin-left: 10px;
	width: 600px;
	border-bottom: 1px solid #ABABAB;
}

#principal #contenido #todotexto #submenu ul li, #principal #contenido #todotexto #submenu ul li a{
	font-family: Arial, Helvetica, sans-serif;
	color: #369;
}

#principal #contenido #todotexto #submenu ul ul li, #principal #contenido #todotexto #submenu ul ul li a{
	font-family: Arial, Helvetica, sans-serif;
	color: #69C;
}

#principal #contenido #todotexto #submenu ul ul ul li, #principal #contenido #todotexto #submenu ul ul ul li a{
	font-family: Arial, Helvetica, sans-serif;
	color: #9CF;
}

a:hover{
	text-decoration: underline
}
.ControlesTabla {
	width: 400px;
	margin-left: 200px;
	margin-top: 20px;
	margin-bottom: 0px;
	height: 30px;
	float: none;
	margin-right: 0px;
}
.PaginaAnterior {
	float: left;
	width: 80px;
}
.PaginaPosterior {
	float: right;
	width: 80px;
}
#todotexto #form {
	vertical-align: middle;
}
#todotexto table {
	font-family: Arial, Helvetica, sans-serif;
}

.tabla_contenidos {
	border-top-width: 3px;
	border-left-width: 3px;
	border-top-style: solid;
	border-left-style: solid;
	border-top-color: #C0C0C0;
	border-left-color: #C0C0C0;
	width: 800px;
	font-size: 16px;
}
.tabla_contenidos td {
	border-bottom-width: 3px;
	border-bottom-style: solid;
	border-bottom-color: #C0C0C0;
	border-right-width: 3px;
	border-right-style: solid;
	border-right-color: #C0C0C0;
}
.tabla_contenidos th {
	font-size: 16px;
	border-right-width: 3px;
	border-bottom-width: 3px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: #C0C0C0;
	border-bottom-color: #C0C0C0;
	font-family: Arial, Helvetica, sans-serif;
}
.tabla_contenidos a {
	font-size: 16px;
	font-family: Arial, Helvetica, sans-serif;
}
.tabla_contenidos p {
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
}

#TablaOculta {
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	font-family: Arial, Helvetica, sans-serif;
}
.TablaOculta {
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	font-family: Arial, Helvetica, sans-serif;
	text-align: center;
}
.brillo:hover{
	background-color: #F49FF2;
}
ul.numerosiniciar { 
    counter-reset: numero; 
}
ul.numerosiniciar li, ul.numeroscontinuar li {
    list-style: none;
}
ul.numerosiniciar li:before, ul.numeroscontinuar li:before { 
    content: counter(numero) ". "; 
    counter-increment: numero;
}

#carta-interes a {
    display: inline-block;
    background-color: #4CAF50; /* Cambia el color según tu esquema de colores */
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    margin: 10px;
    transition: background-color 0.3s;
}

#carta-interes a:hover {
    background-color: #45a049;
}

#carta-interes-embed {
    max-width: 100%;
    margin: 20px auto;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); /* Sombra para darle profundidad */
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden;
}

#carta-interes-embed iframe {
    width: 100%;
    min-height: 500px; /* Altura mínima, pero puedes ajustarla según tus necesidades */
}

@media screen and (max-width: 768px) {
    #carta-interes-embed iframe {
        min-height: 300px; /* Altura menor para dispositivos móviles */
    }
}

.carta-apoyo {
  text-align: center;
  margin: 30px 0;
}

.carta-apoyo img {
  width: 300px;
  max-width: 90%;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto 10px auto;
}

.boton-carta a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #366092;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.boton-carta a:hover {
  background-color: #2a4c76;
}

/* ==========================
   Páginas de AYUDA (GENERAL)
   ========================== */

.help-title { margin-top: 10px; }
.help-subtitle { margin: 8px 0 18px 0; }

.help-section {
  margin: 18px 0;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #c9d9ee;
  border-radius: 6px;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7f1ff;
  border: 1px solid #b9d3ff;
  color: #0b3a7a;
  font-size: 12px;
  font-weight: bold;
}

.note {
  background: #f4f8ff;
  border: 1px dashed #9fbde8;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 10px;
}

.kbd {
  font-family: "Courier New", Courier, monospace;
  background: #f1f1f1;
  border: 1px solid #cfcfcf;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Tabla de indicadores */
.help-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

.help-table th, .help-table td {
  border: 1px solid #c9d9ee;
  padding: 10px;
  vertical-align: top;
}

.help-table th {
  background: #eef5ff;
  text-align: left;
}

/* Dos columnas en escritorio, una columna en móvil */
.two-col { display: block; }
@media (min-width: 900px) {
  .two-col { display: flex; gap: 14px; }
  .two-col > div { flex: 1; }
}

/* Alinear título + pill en una misma línea de forma elegante */
.help-title{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* si no cabe, baja la pill a la línea siguiente */
}

/* Opcional: asegura que la pill no quede “aplastada” verticalmente dentro del h1 */
.help-title .pill{
  line-height: 1.6;
  padding: 2px 10px;
}

/* Fórmulas en ayuda */
.formula{
  margin: 8px 0 10px 0;
  padding: 8px 10px;
  background: #f7fbff;
  border: 1px solid #c9d9ee;
  border-radius: 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}

/* Tablas: que el valor numérico se vea bien */
.help-table td:nth-child(2),
.help-table th:nth-child(2){
  text-align: center;
  white-space: nowrap;
}

/* Evita desbordes en móvil */
.help-table{
  table-layout: fixed;
}
.help-table td, .help-table th{
  word-wrap: break-word;
}

/* Opcional: listas más compactas dentro de help-section */
.help-section ul { margin-top: 6px; margin-bottom: 6px; }
.help-section li { margin-bottom: 6px; line-height: 1.35; }

/* Opcional: etiqueta técnica reutilizable (si la quieres) */
.badge{
  display:inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background:#f1f6ff;
  border:1px solid #c9d9ee;
  font-size: 12px;
  font-weight: bold;
  color:#163b73;
}

/* Opcional: estilo para bloques por tecnología y tarjetas (si luego lo implementas en la app) */
.tech-block{
  margin: 14px 0;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #c9d9ee;
  border-radius: 6px;
}

.card-grid{
  display: block;
}
@media (min-width: 900px){
  .card-grid{ display: flex; gap: 12px; flex-wrap: wrap; }
  .card-grid .card{ flex: 1 1 300px; }
}

.card{
  padding: 10px 12px;
  background: #f7fbff;
  border: 1px solid #c9d9ee;
  border-radius: 6px;
}

/* Menú activo */
#menu td.active{
  background: #e7f1ff;
  border: 1px solid #b9d3ff;
}

.software-demo {
  margin: 40px auto;
  padding: 25px;
  max-width: 900px;
  background-color: #f4f8ff;
  border: 2px solid #3a6fb0;
  border-radius: 10px;
}

.software-demo h2 {
  color: #1f4e8c;
  text-align: center;
  margin-bottom: 15px;
}

.boton-descarga {
  text-align: center;
  margin: 20px 0;
}

.boton-descarga a {
  display: inline-block;
  padding: 12px 25px;
  background-color: #1f4e8c;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
}

.boton-descarga a:hover {
  background-color: #163b69;
}

.nota-software {
  font-size: 0.9em;
  color: #555;
  text-align: center;
}

/* Evitar desbordes horizontales */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* El contenedor principal no debe forzar ancho */
#principal {
  max-width: 100%;
  box-sizing: border-box;
}

/* ===== FIX MENÚ: que no desborde y pueda ir a 2 filas ===== */

/* El menú no debe tener altura fija */
#principal #menu{
  height: auto;           /* antes 40px */
  line-height: 1.2;
}

/* La tabla debe ocupar el ancho disponible y permitir saltos */
#principal #menu table{
  width: 100%;
  table-layout: fixed;    /* reparte el ancho entre celdas */
  border-collapse: collapse;
}

/* Las celdas deben poder partir en 2 líneas */
#principal #menu td{
  white-space: normal;    /* permite salto (clave) */
  word-break: break-word; /* por si hay palabras largas */
  padding: 6px 8px;       /* ajusta para 2 filas */
  text-align: center;
  vertical-align: middle;
  font-size: 13px;        /* un pelín más compacto */
}

/* Por estética: que el enlace sea “bloque” y use todo el td */
#principal #menu td a,
#principal #menu td strong{
  display: block;
}

/* En móvil: aún más compacto */
@media screen and (max-width: 768px){
  #principal #menu td{
    font-size: 12px;
    padding: 6px 6px;
  }
}
