/* style.css */

/*datos rentabilidad anual*/
#rentabilidadTable td {
    font-size: 12px; /* Ajusta el tamaño según necesites */
    text-align: center;
}
/*fin*/

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

header, nav, main, footer {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

h1, h2, h3 {
  margin-bottom: 10px;
}

form {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"], input[type="email"], input[type="password"], select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

button {
  background: #007BFF;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #0056b3;
}

p {
  margin-bottom: 10px;
}

.message {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 3px;
}

.message.success {
  background: #dff0d8;
  color: #3c763d;
}

.message.error {
  background: #f2dede;
  color: #a94442;
}

.message.info {
  background: #d9edf7;
  color: #31708f;
}

/* Barra de navegación */
.site-header {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 20px;
    margin: 0;
}

.user-menu {
    position: relative;
}

.user-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.user-icon .icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-icon .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
    text-align: right;
}

.user-icon .dropdown a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.user-icon .dropdown a:hover {
    background-color: #f1f1f1;
}

.user-icon:hover .dropdown {
    display: block;
}


/*check confirmación dato introducido*/
.feedback {
    margin-left: 10px;
    font-size: 0.9em;
    color: #28a745; /* Verde para éxito */
    font-weight: bold;
}

.feedback.error {
    color: #dc3545; /* Rojo para errores */
}


/*estilos menú horizontal*/
<style>
/* Estilo base para el menú */
.main-menu {
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-menu li {
    margin: 0 15px;
}

.main-menu a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.main-menu a:hover {
    text-decoration: underline;
}

/* Estilo responsive para móviles */
@media (max-width: 768px) {
    .main-menu {
        flex-direction: column;
        align-items: center;
    }

    .main-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .main-menu li {
        margin: 10px 0;
    }
}
</style>

