@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.indice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.indice-card {
    background-color: #f9f9f9;
    margin: 0 !important;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.indice-card:hover {
    transform: scale(1.03);
}

.nombre-ticker-cell {
    white-space: nowrap;
    font-size: 0.85rem;
    line-height: 1.3;
}

.nombre-ticker {
    text-decoration: none;
    color: #434343;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 500;
    font-size: 1rem;
}

.ticker-container {
    width: 40%;
    overflow: hidden;
    background: transparent;
    position: relative;
    height: 30px;
    margin-top: 15px;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    font-size: 16px;
    color: #fff;
    padding-left: 100%;
    animation-name: scroll-ticker;
    animation-duration: 60s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.nombre-link {
    text-decoration: none;
    color: #ff3b61;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 500;
    font-size: 1.2rem;
}

.nombre-text {
    max-width: 160px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
    margin-bottom: 10px;
}

.nombre-text-ancho {
    width: 360px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
    margin-bottom: 5px;
}

.ratios-cell {
    font-size: 0.8rem;
    line-height: 1.4;
    padding-top: 6px;
    padding-bottom: 6px;
    white-space: nowrap;
}

.ratio-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ratio-row .label {
    color: #8b8b8b;
    font-weight: 500;
    min-width: 35px;
}

.ratio-row .value {
    font-weight: 500;
}

.grafico-mini {
    width: 100%;
    max-height: 60px !important;
    height: 60px !important;
    margin-top: 10px;
}

.grafico-in {
    width: 100%;
    max-height: 350px !important;
    margin-top: 10px;
}

.grafico-mini-tabla {
    width: 150px !important;
    height: 50px !important;
    max-height: 70px !important;
    margin-top: 5px;
}

.ticker-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 6px;
    font-weight: 600;
    width: 80px;
    height: 30px;
    text-align: center;
}

.ticker-box-grafico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 6px;
    font-weight: 600;
    width: 80px;
    height: 30px;
    text-align: center;
}

.indice-card {
    display: flex;
    align-items: center;
    border: 2px solid white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 1rem;
    background-color: #ffffff;
    transition: transform 0.2s ease-in-out;
}

.indice-card:hover {
    transform: scale(1.03);
}

.indice-card-logo {
    background-color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 100%;
}

.indice-card-logo img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
}

.indice-card-nombre {
    flex: 1;
    color: #ff3b61;
    font-weight: 600;
    font-size: 1.4rem;
    padding: 15px;
    text-align: center;
}

.icon-group .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.modal-escritorio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-escritorio.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-escritorio-dialog {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-escritorio-header h5 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.8rem;
}

.modal-escritorio-body p {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

.modal-escritorio-footer {
    margin-top: 20px;
}

.btn-cerrar-modal-escritorio {
    padding: 8px 16px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #ff3b61;
    color: white;
    cursor: pointer;
}

.btn-servicios {
    display: block;
    padding: 5px;
    width: 150px;
    border: 1px solid #2d2d2d;
    color: #2d2d2d;
    font-size: 15px;
    font-weight: 400;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.tarjetas-planes-movil {
    flex-direction: column;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tarjeta-plan {
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    color: #4a4a4a;
    width: 80%;
    background-color: #ffffff;
}

.tarjeta-plan h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tarjeta-plan h5 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tarjeta-plan ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.tarjeta-plan ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #dcdcdc;
}

.tarjeta-plan .boton {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.boton {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.boton.gratis {
    background-color: #22c55e;
}

.boton.basico {
    background-color: #3b82f6;
}

.boton.pro {
    background-color: #a855f7;
}

.btn-detalles {
    display: block;
    padding: 5px;
    width: 150px;
    border: 1px solid #4a4a4a;
    font-size: 15px;
    font-weight: 400;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.colores {
    color: #ff3b61;
}

.text-success {
    color: #00b04c !important;
    font-weight: bold;
}
.text-danger {
    color: rgb(255, 36, 36) !important;
    font-weight: bold;
}

[x-cloak] {
    display: none !important;
}

.solo-m {
    display: none;
}

/* Chat IA */

.oculto {
    display: none;
}

.visible {
    display: block;
    margin-top: 0.5rem;
    color: #4b5563; /* Gris oscuro */
}

.boton-flotante-asesor {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background-color: #ff3b61;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-flotante-asesor:hover {
    background-color: #ff466b;
}

.chat-historial {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px; /* ⬅️ Borde redondeado */
    overflow: hidden; /* Para que los items no sobresalgan */
    margin-bottom: 1rem;
    padding: 0.8rem;
}

.chat-historial .chat-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.chat-historial .chat-item:hover {
    background-color: #f9f9f9;
}

.disclaimer-chat {
    font-size: 0.85rem;
    color: #9d9d9d; /* Gris medio */
    text-align: center;
    margin-top: 1rem;
    padding: 0 1rem;
}

.chat-box-invertida {
    display: none; /* Oculto por defecto */
    flex-direction: column-reverse;
    overflow-y: auto;
    min-height: 150px; /* ✅ Tamaño mínimo visible */
    max-height: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.input-chat {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.input-text { 
    margin: 0.5rem 0; 
    width: 200px;
}

.select-rojo {
    width: 190px;
    background-color: #ff3b61;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    appearance: none;
}

.btn-rojo-fila {
    width: 150px;
    background-color: #ff3b61;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-weight: 500;
}

.btn-peque {
    width: 35px;
    height: 35px;
    background-color: #ff3b61;
    color: #fff;
    padding: 4px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    margin-left: auto; /* ✅ esto lo empuja a la derecha */
    text-align: center; /* ✅ centra el texto dentro del botón */
    font-weight: 500;
    text-decoration: none;
}

.btn-peque-2 {
    width: 35px;
    height: 35px;
    background-color: #ff3b61;
    color: #fff;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    margin-left: auto; /* ✅ esto lo empuja a la derecha */
    text-align: center; /* ✅ centra el texto dentro del botón */
    font-weight: 500;
    text-decoration: none;
}

.btn-rojo-chat {
    width: 200px;
    background-color: #ff3b61;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: block; /* 👈 importante para permitir margen automático */
    margin-left: auto; /* ✅ esto lo empuja a la derecha */
    text-align: center; /* ✅ centra el texto dentro del botón */
    font-weight: 500;
    text-decoration: none;
}

.btn-eliminar-chat {
    width: 50px;
    background-color: #ff3b61;
    color: #fff;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    margin-left: auto; /* ✅ esto lo empuja a la derecha */
    text-align: center; /* ✅ centra el texto dentro del botón */
    font-weight: 500;
    text-decoration: none;
}

/* Gráfico */

#activosChart {
    background-color: transparent !important;
}

:root {
    --chart-label-color: #000;
    --chart-tooltip-bg: #fff;
    --chart-tooltip-text: #000;
}

.texto-verde {
    color: #28a745;
    font-weight: bold;
}
.texto-rojo {
    color: #dc3545;
    font-weight: bold;
}

.txt-scroll {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgb(74, 74, 74);
    margin-left: 15px;
}

/* Colores dinámicos */
.card-estado-ok {
    background-color: #ffffff;
    color: #000;
}

.card-estado-ok2 {
    border: 2px solid #e3e3e3;
    background-color: #ebebeb;
    color: #fff;
    padding: 10px;
}

.card-estado-alerta {
    background-color: #efffd3;
    color: #000;
}

.card-estado-amarillo {
    background-color: #efffd3;
    color: #000;
}

.card-estado-gana {
    background-color: #d4edda;
    color: #4a4a4a;
}

/* Estilos bancos */

.main-content {
    padding: 20px; /* Espaciado alrededor del contenido */
    max-width: 800px; /* Ancho máximo */
    margin: 0 auto; /* Centrado horizontal */
    padding-bottom: 70px;
}

.main-content-peq {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.main-content-rk {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 90px;
}

.main-content-form {
    padding: 20px; /* Espaciado alrededor del contenido */
    max-width: 600px; /* Ancho máximo */
    margin: 0 auto; /* Centrado horizontal */
    padding-bottom: 70px;
}

.main-content-tabla {
    padding: 20px; /* Espaciado alrededor del contenido */
    max-width: 750px; /* Ancho máximo */
    margin: 0 auto; /* Centrado horizontal */
    padding-bottom: 70px;
}

/* login */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Asegurar que la tarjeta ocupa todo el ancho */
.banco-card,
.total-card {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f6f6f6;
}

.text-decoration-none:hover {
    color: #474747;
}

.card-body {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 0;
}

/* Asegurar que la fila no tenga espacios laterales */
.row {
    margin: 0;
}

/* Estilo de tarjetas con colores según estado del saldo */
.bg-danger {
    background-color: #ffc7c7 !important; /* Color rojo claro */
}

.bg-light {
    background-color: #ffffff !important; /* Blanco */
}

/* Estilos de la tarjeta de saldo total */
.total-card {
    background-color: #ff3b61 !important;
    color: white !important;
}

.total-card-2 {
    background-color: #a5a5a5 !important;
    color: white !important;
}

.total-card-2 {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: none;
    width: 100%; /* Ocupar todo el ancho del contenedor */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.total-card-valoracion {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.bg-verde {
    background-color: #d4edda !important;
    color: white;
}

.bg-rojo {
    background-color: #f8d7da !important;
    color: white;
}

.alert-inversor {
    width: 100%;
    display: block;
    margin: 20px auto;
    padding: 10px;
    background-color: #ffffff;
    color: #2c2c2c;
    border: 1px solid #ff3b61;
    border-radius: 5px;
    text-align: left;
}

/* Modal datos financieros */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.bullet {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 10px;
    margin-left: 10px;
}

.d-flex {
    display: flex;
    align-items: center;
}

.mr-2 {
    margin-right: 8px;
}

.mb-2 {
    margin-bottom: 4px;
}

/* Estilos de modal para el fondo oscuro */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

td {
    white-space: wrap;
}

/* Botón de cierre */
.modal-close {
    float: right;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.row-home {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 10px 0;
}

.col-6 {
    flex: 0 0 48%; /* Cada columna ocupa el 48% con un pequeño margen */
    margin: 5px 0;
}

.card-home {
    border-radius: 8px;
    padding: 15px;
    margin: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card-efectivo {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Colores para las tarjetas de valoración */
.card-verde {
    background-color: #d4edda; /* Verde clarito */
    color: #155724;
}

.card-rojo {
    background-color: #f8d7da; /* Rojo clarito */
    color: #721c24;
}

.saldo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.banco-nombre {
    font-weight: bold;
    font-size: 16px;
    margin-top: 5px;
}

/* Botón de cierre al pasar el ratón */
.modal-close:hover {
    color: red;
}

/* Mostrar el modal */
.show-modal {
    display: flex;
}

/* Botones */
.btn-modal {
    margin: 5px;
    padding: 8px 16px;
    border-radius: 5px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-modal:hover {
    background-color: #555;
}

/* Estilos de los textos dentro de la tarjeta */
.saldo {
    font-size: 2rem;
    font-weight: 600;
    margin-top: -5px;
}

.total-saldo {
    font-size: 2.2rem;
}

.total-saldo-blanco {
    font-size: 2.2rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
}

.total-saldo-home {
    font-size: 2rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
}

.table-info {
    max-width: 400px;
    min-width: 180px;
    margin: 0 auto;
    border-collapse: collapse;
}

.banco-nombre {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ff3b61;
}

.titulo-guia {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ff3b61;
}

.leyenda-home {
    font-size: 1rem;
    font-weight: 500;
    color: gray;
}

.leyenda-home-blanco {
    font-size: 1rem;
    font-weight: 500;
    color: rgb(255, 255, 255);
}

.leyenda-home-amarillo {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fa0606;

}

.accion-nombre {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ff3b61;
    line-height: 1.8rem;
    margin-bottom: 5px;
}

.title-datos {
    font-size: 1.4rem;
    font-weight: 500;
    color: #ff3b61;
    line-height: 1.8rem;
}

.valor-nombre-up {
    font-size: 1.8rem;
    font-weight: 600;
    color: rgb(31, 187, 0);
}

.flecha-up {
    font-size: 1rem;
    font-weight: 600;
    color: rgb(31, 187, 0);
}

.valor-nombre-down {
    font-size: 1.8rem;
    font-weight: 600;
    color: rgb(253, 25, 0);
}

.flecha-down {
    font-size: 1rem;
    font-weight: 600;
    color: rgb(253, 25, 0);
}

.txt-info {
    font-size: 1rem;
    font-weight: 500;
    color: gray;
}

.txt-parrafo {
    font-size: 1rem;
    font-weight: 400;
    color: gray;
    text-align: left;
    line-height: 1.6rem;
    margin-bottom: 1rem;
    margin-left: 5px;
}

.txt-beta {
    font-size: 1rem;
    font-weight: 500;
    color: rgb(255, 255, 255);
    margin-bottom: 20px;
}

.txt-criterio {
    font-size: 1.1rem;
    font-weight: 400;
    color: gray;
}

.table-info td {
    padding: 4px 0px; /* Espacio vertical y horizontal */
}

.txt-nota {
    font-size: 0.9rem;
    font-weight: 500;
    color: gray;
    margin-left: 15px;
}

.icon-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.icon-group a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    margin: 0;
    border-radius: 5px;
    background-color: #ff3b61;
    color: white;
    text-decoration: none;
}

.icon-group a:hover {
    background-color: #ff3b61;
}

.icon-group i {
    margin-right: 2px;
}

.icon-group form {
    display: inline-block;
    margin: 0;
}

.total-texto {
    color: #ffffff;
}

.centrar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chart-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 200px !important;
    position: relative !important;
    margin-bottom: 15px;
}

.chart-wrapper-home {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 300px !important;
    position: relative !important;
    margin-bottom: 20px;
}

.chart-wrapper-home2 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 200px !important;
    position: relative !important;
    margin-bottom: 15px;
}

.checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    margin-top: -0.5rem;
}

.chart-controls select {
    padding-left: 0.8rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    border-radius: 5px;
    margin-left: rem;
}

#activosChart2 {
    max-width: 60% !important;
    max-height: 250px !important;
}

.grupo-activos {
    margin-bottom: 1.5rem;
}

.grupo-activos h4 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.grupo-activos label {
    display: block;
    margin-left: 1rem;
}

.col-empresa {
    width: 30%;
    min-width: 200px;
    text-align: left;
}
.col-per,
.col-roe,
.col-cotizacion {
    width: 10%;
    min-width: 80px;
    text-align: right;
}
.col-rk-per,
.col-rk-roe {
    width: 10%;
    min-width: 60px;
    text-align: center;
}

.cabecera-fija-tabla {
    position: sticky;
    top: 0px;
    z-index: 50;
}

.custom-table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    table-layout: auto;
    word-break: break-word;
    font-size: 1rem;
}

.custom-table-info {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-top: 1rem;
    color: #fff;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    color: #333;
    font-size: 15px;
    background-color: #ffffff;
    line-height: 1.4rem;
    white-space: nowrap;
}

.custom-table th {
    padding: 12px 0px;
    padding-left: 10px;
    color: #333;
    font-size: 14px;
    background-color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.custom-table-info th,
.custom-table-info td {
    border-bottom: 1px solid #666;
    padding: 10px 20px; /* Aumentamos vertical y horizontal */
    text-align: right;
}

.custom-table-info td:first-child,
.custom-table-info th:first-child {
    text-align: left;
    font-weight: 600;
}

.custom-table tr:hover {
    background-color: #f1f1f1;
}
.custom-table .btn {
    margin: 0 5px;
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 5px 10px;
    cursor: pointer;
}

.custom-table thead th,
.tabla-sticky thead th {
	background: linear-gradient(180deg, #4A4A4A 0%, #2F2F2F 100%) !important;
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,0.06) !important;
	box-shadow: 0 1px 2px rgba(0,0,0,0.12) !important;
}

.custom-table th.left {
    text-align: left;
}

.custom-table th.right {
    text-align: right;
}

.custom-table th.center {
    text-align: center;
}

.custom-table td.left {
    text-align: left;
}

.custom-table td.right {
    text-align: right;
}

.custom-table td.center {
    text-align: center;
}

/* Redondear esquinas superiores */
.custom-table thead th:first-child {
    border-top-left-radius: 10px;
}

.custom-table thead th:last-child {
    border-top-right-radius: 10px;
}

.custom-table thead th,
.tabla-sticky thead th {
	border-left: none !important;
}


/* Pie de la tabla */
.custom-table tfoot td {
    background-color: #fff;
    color: #171717;
    height: 20px; /* Altura ajustable */
    border-bottom: none;
}

/* Redondear esquinas inferiores */
.custom-table tfoot td:first-child {
    border-bottom-left-radius: 10px;
}

.custom-table tfoot td:last-child {
    border-bottom-right-radius: 10px;
}

.chart-wrapper {
    width: 100%;
    height: 400px !important;
}

.chart-canvas {
    width: 100% !important;
    height: 100% !important;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Nuevos estilos */

body {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #d1d1d1;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px; /* Ajusta el ancho de la caja */
    background: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Sombra para la caja */
}

.content-image {
    max-width: 600px; /* Ancho máximo */
    margin: 0 auto; /* Centrado horizontal */
}

.logo-login {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

h1,
h2 {
    color: #181818; /* Color turquesa */
    font-size: 1.5em;
    margin-bottom: 20px;
}

.form-box {
    width: 90%; /* Uso en el login*/
    max-width: 400px;
    background: rgba(255, 255, 255);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.form-label {
    font-size: 1em !important;
    color: #757575 !important;
    font-weight: 500 !important;
    text-align: left;
    display: block;
    margin-bottom: 8px;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    display: block; /* Asegura que el label esté arriba del campo */
    font-size: 0.9em;
    color: #757575; /* Color gris */
    margin-bottom: 5px; /* Espacio entre el label y el campo */
}

.form-group {
    text-align: left; /* Alinea todo el contenido del grupo a la izquierda */
}

.form-control {
    width: 100%; /* Ocupa todo el ancho */
    padding: 10px; /* Espaciado interno */
    font-size: 1em;
    border: 1px solid #ccc; /* Borde gris claro */
    border-radius: 5px; /* Bordes redondeados */
    background-color: #fff; /* Fondo blanco */
    box-shadow: none; /* Sin sombra */
}

.form-input:focus,
.form-control:focus {
    outline: none;
    border-color: #ccc;
}

.form-control-estrecho {
    width: 200px;
}

.btn-usuario {
    display: block;
    padding: 10px;
    width: 100%; /* Hace que el botón ocupe todo el ancho del contenedor */
    border: 1px solid #4d8a67;
    background-color: #ffffff;
    color: #333333;
    font-size: 18px;
    font-weight: 500;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    text-align: center; /* Centra el texto dentro del botón */
}

.btn-usuario-borrar {
    display: block;
    padding: 10px;
    width: 100%; /* Hace que el botón ocupe todo el ancho del contenedor */
    border: 1px solid #4d8a67;
    color: #333333;
    font-size: 18px;
    font-weight: 500;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    text-align: center; /* Centra el texto dentro del botón */
}

.btn-usuario:hover {
    background-color: #4d8a67;
    color: #fff;
}

.btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.button-text {
    flex: 1; /* Tomar el espacio disponible */
    text-align: left; /* Alinear texto a la izquierda */
}

.inline-flex {
    display: flex; /* Asegura que los elementos internos estén en línea y alineados */
    align-items: center; /* Centra verticalmente el checkbox y el texto */
    gap: 8px; /* Espacio entre el checkbox y el texto */
}

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

.header {
    position: relative;
    display: flex;
    background-color: transparent;
    margin-bottom: 0px;
}

.user-initial-circle {
    width: 40px;
    height: 40px;
    right: 10px;
    background-color: #07aeaf;
    color: white;
    border-radius: 50%;
    display: flex;
    position: absolute;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 10px;
}

.total {
    font-size: 1.4rem;
    font-weight: 400;
    color: #2c2c2c;
    text-align: left;
}

.title-grande {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.sector {
    font-size: 1.3rem;
    font-weight: 400;
    color: #ff3b61;
    margin-bottom: -10px;
    margin-top: 5px;
    border-bottom: 1px solid #ddd;
}

.title-info {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 20px;
    margin-top: 10px;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
    margin-left: 5px;
    color: #2c2c2c;
}

.nombre-usuario {
    color: #2c2c2c;
    font-size: 35px;
    font-weight: 400;
    margin-top: 30px;
    text-align: center;
}

.user-circle {
    width: 40px;
    height: 40px;
    background-color: #2c2c2c;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
}

.user-initial-circle {
    width: 100px;
    height: 100px;
    background-color: #2c2c2c;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.background-image {
    position: relative;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.header-container {
    position: relative;
    height: 130px;
    background-color: #fff;
}

.ocultar-en-movil {
    display: block;
}

@media screen and (max-width: 500px) {
    .solo-m {
        display: block;
    }

    .ticker-container {
        width: 90%;
    }
    .header-container {
        height: 150px;
    }
    .icon-group a.hide-mobile {
        display: none;
    }
    .hide-mobile {
        display: none;
    }
    .main-content {
        padding: 20px;
        max-width: 600px;
        margin: 0 auto;
        padding-bottom: 70px;
    }
    .chart-wrapper-home {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 220px !important;
        position: relative !important;
        margin-bottom: 5px;
    }

    .chart-wrapper-home2 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 220px !important;
        position: relative !important;
        margin-bottom: 5px;
    }

    .main-content-tabla {
        max-width: 600px; /* Ancho máximo */
    }

    .ocultar-en-movil {
        display: none !important;
    }
}

/* Estilo para los íconos del menú */
.ico-nav {
    font-size: 20px; /* Tamaño del ícono */
    color: #ffffff; /* Color del ícono */
}

.nav-item.active span {
    font-weight: 500;
    color: #58beac;
    text-decoration: none;
}

.footer-menu,
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c2c2c;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 10px;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    height: 50px;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px 15px 0 0;
}

@media screen and (max-width: 500px) {
    .footer-menu,
    .bottom-nav {
        border-radius: 0px 0px 0 0;
        max-width: 600px;
        height: 60px;
    }
}

.styled-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    color: #2c2c2c;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.styled-button:hover {
    background-color: #f0f0f0; /* Fondo al pasar el cursor */
    color: #07aeaf; /* Color del texto al pasar el cursor */
}

.styled-button-borrar {
    background-color: #efefef; /* Fondo al pasar el cursor */
    color: #ff0202; /* Color del texto al pasar el cursor */
    border: 1px solid #ff7878;
}

.button-text {
    flex: 1; /* Tomar el espacio disponible */
    text-align: left; /* Alinear texto a la izquierda */
}

.button-icon {
    font-size: 20px; /* Tamaño del ícono */
    color: #ff3b61; /* Color del ícono */
}

.nav-item {
    display: flex; /* Habilitar flexbox para alinear Ã­cono y texto horizontalmente */
    align-items: center; /* Centrar Ã­cono y texto verticalmente */
    flex-direction: row; /* Asegurar que los Ã­conos y textos estÃ©n en fila */
    text-decoration: none; /* Quitar subrayado */
    color: white; /* Color del texto y del Ã­cono */
    font-size: 16px; /* TamaÃ±o del texto */
    gap: 10px; /* Espacio entre Ã­cono y texto */
}

.nav-item:hover {
    text-decoration: none; /* Quitar subrayado */
    color: #58beac;
}

.logo-login img {
    width: 300px;
    height: auto;
}

/************************ Estilos generales versión antigua ********************/

/* Colores */
.colores {
    background-color: #a8d5ba; /* verde pastel */
    background-color: #4d8a67; /* verde oscuro */
    background-color: #ffa726; /* naranja brillante */
    background-color: #6ec4e8; /* azul cielo */
    background-color: #eaeaea; /* gris suave */
    color: #6c757d; /* textos */
}

.publicidad-container {
    text-align: center;
    padding: 20px;
    padding-top: 0px;
    overflow-y: auto;
}

.publicidad-text {
    margin: 10px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.banner-img {
    margin-top: 5px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Botón Guardar */
.btn-submit {
    width: 100%; /* Botón ocupa todo el ancho */
    background-color: #58beac;
    color: #fff; /* Texto blanco */
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.btn-verde {
    width: 100%;
    background-color: #28a745 !important;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.btn-submit-2 {
    width: 100%;
    background-color: #15d367;
    color: #fff; /* Texto blanco */
    padding: 5px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.btn-submit:focus {
    outline: none;
}

.btn-submit-criterio {
    width: 100%; /* Botón ocupa todo el ancho */
    background-color: #ff3b61;
    color: #fff; /* Texto blanco */
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    height: 30px;
}

.btn-eliminar {
    width: 100%;
    margin-top: 15px;
    color: #ef4444;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ef4444;
    font-size: 1em;
    cursor: pointer;
}

.contenedor-botones {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente los botones */
    gap: 15px; /* Espacio entre los botones */
    margin-top: 10px;
}

.contenedor-centrar {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
}

.contenedor-botones-sup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-bottom: 20px;
}

.btn-negro {
    width: 200px;
    background-color: #000000;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-weight: 500;
}

.btn-rojo {
    width: 190px;
    background-color: #ff3b61;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-weight: 500;
}

.btn-rojo-ancho {
    width: 230px;
    background-color: #ff3b61;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-weight: 500;
}

.btn-gris {
    width: 190px;
    background-color: #adadad;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-weight: 500;
}

.btn-gris i {
    font-size: 1em;
    margin-left: 8px; /* Espacio entre el texto y el icono */
}

.btn-verde {
    width: 100%; /* Botón ocupa todo el ancho */
    background-color: rgb(31, 187, 0);
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #6ed0be; /* Color más oscuro al pasar el mouse */
}

.body-legal {
    background-color: #4d8a67; /* gris suave */
}

body,
html {
    height: 100%;
    margin: 0;
    display: block;
    flex-direction: column;
}

.ico-plus {
    color: #ff3b61;
    font-size: 24px;
    position: absolute;
    right: 60px;
}

.ico-plus2 {
    color: #ff3b61;
    font-size: 24px;
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 1rem;
}

.add-new-mascota {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: #4d8a67;
}

.ico-plus-2 {
    color: #4d8a67;
    font-size: 18px;
    margin-left: 5px; /* Espacio entre el texto y el icono */
}

.add-pet-container {
    display: flex;
    justify-content: center;
    width: 90%; /* O ajusta a tu preferencia */
    margin: 10px auto;
}

.add-pet-link {
    color: #4d8a67;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.add-pet-link i {
    margin-left: 5px; /* Espacio entre el texto y el icono */
    font-size: 20px;
}

/* Contenedor principal */

.ico-user {
    padding: 0px;
    color: #ffa726;
    width: 45px;
    height: 45px;
}

.logo-image {
    width: 35px;
}

/* Textos */

.title-salud {
    font-size: 1.5rem;
    font-weight: 500;
    color: #4d8a67;
    margin-left: 0px;
}

.title-login {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-top: 0px;
}

.title-blanco {
    font-size: 1.6rem;
    font-weight: 400;
    color: #ffffff;
    margin-left: 5px;
    margin-top: 20px;
}

.title-seccion {
    font-size: 1.3rem;
    font-weight: 500;
    color: #4d8a67;
    margin-left: 6px;
    margin-top: 3px;
}

.title-tarjetas {
    font-size: 1.4rem;
    font-weight: 500;
    color: #4d8a67;
    width: 90%;
    line-height: 1.5rem;
    margin-bottom: 10px;
}

.txt-leyenda {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 4px;
    margin-top: 3px;
}

.txt-leyenda-center {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 4px;
    margin-top: -2px;
    text-align: center;
}

.title-usuario {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1d4ed8;
}

/* tabla home */

.fecha {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    padding: 0px !important;
    font-weight: 500 !important;
    text-align: left;
    width: 20%;
}

.mascota {
    font-size: 1.2em !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    padding: 8px !important;
    width: 30%;
}

.edad {
    font-size: 1.2em !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    margin-left: 5px !important;
}

.formulario {
    font-size: 1.1em !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

.titulo {
    font-size: 1.4em !important;
    color: #414141 !important;
    font-weight: 600 !important;
    padding: 0px !important;
    width: 100%;
}

.titulo-grupo {
    font-size: 1.2rem;
    font-weight: 500;
    color: #474747;
    width: 90%;
    line-height: 1.5rem;
    margin-bottom: 10px;
}

/* Formulario */

.box {
    width: 90%;
    max-width: 400px;
    margin: 0px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Etiquetas de formulario alineadas a la izquierda */

.btn-borrar {
    width: 100%;
    margin-top: 15px;
    border: 1px solid #ef4444;
    color: #ef4444;
    font-weight: 500;
    padding: 6px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}

.btn-link {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    display: block;
    width: 100%;
    margin-top: 15px;
}

.btn-regist,
.btn-nueva {
    width: 90%;
    color: #ffffff;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.btn-verificacion {
    width: 60%;
    background-color: #ffa726;
    color: #ffffff;
    font-weight: 500;
    padding: 6px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 10px;
}

.btn-orange {
    background-color: #f90; /* Por ejemplo, el color del fondo */
    color: white;
    border: none;
    padding: 5px 40px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
}

.btn-orange:hover {
    background-color: #e68a00;
}

.btn-ancho {
    width: 100%; /* Para ocupar todo el ancho del contenedor */
    background-color: #ffa726;
    color: #ffffff;
    font-weight: 500;
    padding: 6px;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    margin-top: 10px;
}

.btn-adoptar {
    width: 90%;
    background-color: #ffa726;
    color: #ffffff;
    font-weight: 500;
    padding: 6px;
    border-radius: 9999px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}

.filter-container {
    display: flex;
    justify-content: center;
    padding: 0px 0px;
    margin-bottom: 0px;
    margin-right: 20px;
    margin-left: 20px;
    margin-top: 10px;
    justify-content: space-between;
}

.filter-button,
.add-button {
    padding: 8px 16px;
    border-radius: 8px;
    margin-left: 0px;
    font-weight: 500;
    cursor: pointer;
}

.filter-button:focus {
    outline: none;
    box-shadow: none;
}

.fixed-right {
    position: absolute;
    right: 60px;
    top: 20px;
}

.filter-button {
    background-color: #ffffff;
    color: #374151;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-button-ad {
    background-color: #ffa726;
    color: #ffffff;
    margin-left: 50px;
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.add-button {
    background-color: #ffa726;
    color: #ffffff;
    border-radius: 9999px;
}

/* Tarjeta de salud */

.icon-hc {
    font-size: 1.4rem;
    color: #4d8a67;
    position: absolute;
    top: 15px;
    right: 15px;
}

.active-filter {
    background-color: #4d8a67;
    color: #ffffff;
}

.filter-button.active {
    background-color: #4d8a67;
    color: white;
}

.telefono-contactar {
    text-decoration: underline;
    font-size: 18px;
    margin-top: 10px;
}

.telefono-mostrar {
    font-size: 18px;
    margin-top: 10px;
}

.contact-icons {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.phone-icon {
    position: absolute;
    top: -22px;
    left: 0;
    color: #f8bbd0;
    font-size: 24px;
}

.whatsapp-icon {
    position: absolute;
    top: 7px;
    right: -6px;
    color: #f8bbd0;
    font-size: 32px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.modal-content-info {
    background-color: #2c2c2c;
    margin: 8% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.modal-close-button {
    position: absolute;
    top: 0rem;
    right: 0.8rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    z-index: 10;
}

.close-modal-comparativa {
    position: absolute;
    top: 0rem;
    right: 0.8rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    z-index: 10;
}

.modal-content-info-wide {
    background-color: #2c2c2c;
    margin: 8% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 750px;
    text-align: center;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.usuario-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f2f2f2; /* Color de fondo */
    border-radius: 10px;
    text-align: center;
}

.usuario-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto; /* Centrado horizontal */
}

.support-description {
    font-size: 1em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.support-textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    background-color: #fff;
    margin-bottom: 10px;
}

.support-button {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    color: #333;
    background-color: #fff;
    border: 2px solid #f97316;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.support-button:hover {
    background-color: #f97316;
    color: #fff;
}

.alert-success-oculto {
    width: 90%;
    display: none;
    max-width: 400px;
    margin: 10px auto;
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    width: 90%;
    max-width: 400px;
    margin: 10px auto;
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
}

.alert-danger {
    width: 90%;
    max-width: 400px;
    margin: 10px auto;
    padding: 10px;
    background-color: #fa7a7a;
    color: #ffffff;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
}

.main-content-home {
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 100px;
    height: calc(
        100vh - 80px
    ); /* Ajusta 80px según la altura de la cabecera y el menú inferior */
    overflow-y: auto;
}

/* Estilos de la sección de alertas de salud */
.alertas-salud {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Título de la sección */
.alertas-salud h2 {
    font-size: 1.5em;
    color: #4d8a67;
    margin-bottom: 15px;
    padding-left: 10px;
}

/* Tabla de recordatorios */
.alertas-salud-table {
    width: 100%;
    border-collapse: collapse;
}

.alertas-salud-table th,
.alertas-salud-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

/* Filas de la tabla */
.alertas-salud-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.alertas-salud-table tr:hover {
    background-color: #e0e0e0;
}

/* Celdas de la tabla */
.alertas-salud-table td {
    color: #555;
    font-size: 0.9em;
}
/* Celdas de la tabla */
.alertas-salud-table th {
    color: #555;
    font-size: 0.9em;
    line-height: 0.5em;
}
.ico-home {
    color: #4d8a67;
    font-size: 20px;
    margin-bottom: 12px;
}

.icon-title-container {
    display: flex;
    align-items: center;
    gap: 5px; /* Ajusta el espacio entre el icono y el título */
    margin-left: 5px;
    margin-bottom: 10px;
}

.icon-title-container i {
    color: #4d8a67; /* Color del icono */
}

.icon-title-container h2 {
    margin: 0; /* Elimina el margen del título */
}

.contact-info {
    margin-bottom: 10px;
}

.contact-info i {
    color: #4d8a67;
    font-size: 18px;
    vertical-align: middle;
    margin-right: 8px;
}

.contact-link {
    text-decoration: none;
    display: inline-block;
    margin-top: 3px;
    margin-bottom: 3px;
}

.health-card {
    width: 90%;
    max-width: 400px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: relative;
}

.health-card-1 {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff; /* Fondo blanco */
    border-radius: 8px; /* Equivalente a rounded-lg */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Sombra similar a shadow-md */
    padding: 15px; /* Espaciado interno, equivalente a p-4 */
    margin-bottom: 16px; /* Margen inferior */
    display: flex; /* Estructura flex */
    flex-direction: column; /* Estructura vertical */
    align-items: left; /* Alinear al centro */
    text-align: left; /* Texto centrado */
    position: relative; /* Para que los íconos puedan posicionarse dentro */
}

/* Estilo para las filas de la tabla */
.alertas-salud-table tr:hover {
    background-color: #e0e0e0 !important;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #60a5fa;
    color: white;
    padding: 5px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

.btn-login i {
    margin-right: 8px; /* Espacio entre el icono y el texto */
}

.btn-login:hover {
    background-color: #559ed6; /* Color de fondo más oscuro en hover */
}

.btn-apple {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

.btn-google {
    display: block;
    padding: 5px;
    width: 100%;
    justify-content: center;
    align-items: center;
    border: 1px solid #60a5fa;
    background-color: #ffffff;
    color: #60a5fa;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.hidden {
    display: none;
}

.alert-warning {
    background-color: #fff8db;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    line-height: 22px;
    font-size: 15px;
    font-weight: bold;
}

/* ---  */

.legal-links {
    text-align: center;
    margin-top: auto;
    width: 100%;
    padding-bottom: 20px;
    align-items: left;
    color: #ffffff;
}

.footer {
    padding: 0rem; /* Añade un poco de espacio alrededor del pie */
    margin-top: 40px;
    margin-bottom: 10px;
    align-items: center;
}

.footer .legal-links {
    flex-direction: row; /* Asegura que estén en una sola línea */
    gap: 1rem; /* Espacio entre los enlaces */
}

.footer .legal-links a {
    text-decoration: none; /* Opcional: elimina el subrayado */
    color: inherit; /* Asegura que hereden el color del footer */
}

.legal-links a {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    margin-left: 10px;
    text-decoration: none;
    color: #ffffff;
}

/* Contenedor principal */
.legal-container {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    padding-bottom: 50px;
    text-align: left;
    color: #ffffff;
    background-color: #2c2c2c;
    overflow-y: auto;
    position: relative;
}

/* Estilos para el título */
.legal-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 20px;
    color: #ffffff;
    padding: 10px 0;
}

/* Botón de cierre */
.close-button {
    position: absolute;
    top: 0px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Contenido de la página */
.legal-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
}

.epigrafe {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 20px;
    font-weight: bold;
}

.legal-content a {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    text-decoration: none;
    color: #ffffff;
}

.btn-flotante {
    position: fixed;
    bottom: 75px;
    left: 15px;
    width: 50px;
    height: 50px;
    background-color: #ffa726;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-decoration: none;
    font-size: 22px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-flotante:hover {
    background-color: #fbad39; /* Color al pasar el cursor */
    transform: scale(1.1); /* Efecto de zoom al pasar el cursor */
}

.logo-spain {
    display: flex;
    align-items: center;
    margin-top: 40px;
    width: 160px;
}

/* plantilla de tarjetas limpia */

.main-content-ok {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 15px;
    padding-bottom: 120px;
    margin-top: 20px;
}

/* Card */
.card {
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    gap: 0px;
}

.card-content {
    flex-grow: 1;
}

.titulo-ok {
    font-size: 1.4rem;
    font-weight: 500;
    color: #4d8a67;
    width: 90%;
    line-height: 1.5rem;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #555;
}

.subtitle {
    font-size: 1.2rem;
    color: #282828;
}

.card-detail {
    font-size: 0.8rem;
    color: #777;
}

.card-action {
    background-color: #e0e0e0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Preloader Seguimientos (modo claro) */
#preloader-seguimientos { position: fixed; inset: 0; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity .2s ease; }
#preloader-seguimientos .spinner { margin-bottom:10px; width:32px; height:32px; border:3px solid #FF3B61; border-top-color: transparent; border-radius:50%; animation: spin 1s linear infinite; margin-left:auto; margin-right:auto; }
#preloader-seguimientos .label { text-align:center; font-weight:600; color:#333; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Modal Configurar Pesos (modo claro) */
.modal-overlay {
    background: rgba(0, 0, 0, 0.45) !important;
}

.modal-card {
    background: #ffffff !important;
    color: #333 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25) !important;
}

.modal-card .lista-pesos label {
    color: #444;
    font-weight: 600;
}

.modal-card .inp-peso {
    background: #ffffff;
    color: #222222;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 8px 10px;
}

.modal-card .btn-eliminar {
    background: #FF3B61;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
}

.modal-card .btn-eliminar:hover {
    filter: brightness(0.95);
}

/* Modal Configurar Pesos: layout en dos columnas (modo claro) */
.modal-card {
    max-width: 680px !important;
    max-height: 80vh !important;
    overflow: auto !important;
}

.modal-card .lista-pesos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 540px) {
    .modal-card {
        max-width: 92vw !important;
    }
    .modal-card .lista-pesos {
        grid-template-columns: 1fr;
    }
}

/* KPI bar (acciones, etfs mobile) */
.kpi-bar { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; margin:12px 0 8px 0; }
@media (max-width: 768px){ .kpi-bar{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
.kpi { background:#fff; border:1px solid #EEEEEE; border-radius:8px; padding:10px 12px; box-shadow:0 1px 2px rgba(0,0,0,0.03); }
.kpi-label { font-size:12px; color:#666; margin-bottom:4px; }
.kpi-value { font-size:18px; font-weight:600; color:#222; }
.kpi-positive { color:#2e7d32; }
.kpi-negative { color:#c62828; }

/* utilidades tarjetas */
.textos {
    font-size: 1rem;
    color: #111827;
    line-height: 1.5rem;
}
.textos .fila { margin-bottom: 0px; }

/* Botones de acción redondos responsive */
.btn-accion { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; background: #58beac; }
.btn-accion i { color:#fff; font-size: 1rem; }
@media (max-width: 520px) { .btn-accion { width: 40px; height: 40px; } .btn-accion i { font-size: 1rem; } }
