/* Logo del encabezado: tamaño fijo para que se vea nítido (mismo tamaño que el anterior) */
.top_bar .logo_wrapper img,
#logo_normal .logo_wrapper img,
#logo_transparent .logo_wrapper img,
.logo_container .logo_wrapper img {
    height: 52px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Toast: mensaje en pantalla (sustituye alert) */
.matchso-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.matchso-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.matchso-toast--success {
    background: #00a32a;
}
.matchso-toast--error {
    background: #d63638;
}
.matchso-toast--info {
    background: #2271b1;
}

/* Mensaje encima del botón Save (Selected Startups y carrito) */
.matchso-save-message,
.matchso-cart-save-message {
    min-height: 0;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #00a32a;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.25s;
}
.matchso-save-message--show,
.matchso-cart-save-message.matchso-save-message--show {
    opacity: 1;
}
.matchso-save-actions {
    margin: 1.25rem 0 0 0;
}
.matchso-save-selection-btn {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.matchso-save-selection-btn:hover {
    background: #135e96;
}
.matchso-cart-save-message {
    margin-bottom: 10px;
}
.matchso-cart-save-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.matchso-cart-save-btn:hover {
    background: #135e96;
}

/* Ocultar barra superior (submenú arriba) del tema */
.above_top_bar {
    display: none !important;
}

/* Login form on home when not logged in */
.matchso-login-wrap {
    max-width: 380px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.matchso-login-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.35rem;
    text-align: center;
    color: #333;
}
.matchso-login-wrap label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #444;
}
.matchso-login-wrap input[type="text"],
.matchso-login-wrap input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}
.matchso-login-wrap input[type="checkbox"] {
    margin-right: 0.5rem;
}
.matchso-login-wrap .login-remember {
    margin-bottom: 1rem;
}
.matchso-login-wrap input[type="submit"] {
    width: 100%;
    padding: 0.6rem 1rem;
    margin-top: 0.25rem;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}
.matchso-login-wrap input[type="submit"]:hover {
    background: #135e96;
}
.matchso-login-register {
    margin: 1.25rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}
.matchso-login-register a {
    color: #2271b1;
    text-decoration: none;
}
.matchso-login-register a:hover {
    text-decoration: underline;
}
.matchso-login-message {
    margin: 0 0 1rem 0;
    color: #555;
    font-size: 0.95rem;
}
.matchso-login-actions {
    margin: 1rem 0 0 0;
}
.matchso-login-button {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
}
.matchso-login-button:hover {
    background: #135e96;
    color: #fff !important;
    text-decoration: none;
}

/* My Account page: notice and register link (WooCommerce or custom page) */
.matchso-my-account-notice {
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    color: #1d2327;
    font-size: 0.95rem;
}
.matchso-my-account-register {
    margin: 1rem 0 0 0;
    padding-top: 1rem;
    font-size: 0.95rem;
    color: #50575e;
}
.matchso-my-account-register a {
    color: #2271b1;
    text-decoration: none;
}
.matchso-my-account-register a:hover {
    text-decoration: underline;
}

/* Formulario de login My Account: más compacto (menos espacio entre Remember me, Lost password, Log in, Register) */
.woocommerce form.woocommerce-form-login .form-row,
.woocommerce-form.woocommerce-form-login.login .form-row,
form.woocommerce-form-login .form-row {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}
.woocommerce form.woocommerce-form-login .form-row:last-of-type,
.woocommerce-form.woocommerce-form-login.login .form-row:last-of-type,
form.woocommerce-form-login .form-row:last-of-type {
    margin-bottom: 0 !important;
}
.woocommerce form.woocommerce-form-login .lost_password,
.woocommerce form.woocommerce-form-login p.lost_password,
.woocommerce form.woocommerce-form-login .woocommerce-LostPassword,
.woocommerce-form.woocommerce-form-login .lost_password,
form.woocommerce-form-login .lost_password {
    margin: 0.15rem 0 0.35rem 0 !important;
    padding: 0 !important;
}
.woocommerce form.woocommerce-form-login .matchso-my-account-register,
form.woocommerce-form-login .matchso-my-account-register {
    margin: 0.35rem 0 0 0 !important;
    padding: 0 !important;
}

/* ========== Selected Startups cart (e-commerce style) ========== */
#matchso-selected-cart-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
}
/* Ocultar todo el carrito (icono incluido) cuando el menú hamburguesa está abierto */
#matchso-selected-cart-wrapper.matchso-cart-hidden {
    display: none !important;
    transition: none !important;
}
/* Mostrar carrito al quitar .matchso-cart-hidden: sin transición para que sea instantáneo */
#matchso-selected-cart-wrapper:not(.matchso-cart-hidden) {
    transition: none !important;
}
/* Tablet y móvil: carrito en top-center, más arriba en el header (incl. Safari/iOS) */
@media (max-width: 1024px) {
    #matchso-selected-cart-wrapper {
        top: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    #matchso-selected-cart-wrapper .matchso-cart-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}
@media (max-width: 768px) {
    #matchso-selected-cart-wrapper {
        top: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    #matchso-selected-cart-wrapper .matchso-cart-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}
.matchso-cart-float {
    position: relative;
}
.matchso-cart-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.matchso-cart-toggle:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #2271b1;
}
.matchso-cart-toggle[aria-expanded="true"] {
    border-color: #2271b1;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.2);
}
.matchso-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2271b1;
}
.matchso-cart-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2271b1;
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}
.matchso-cart-badge[data-count="0"] {
    background: #a7aaad;
}
.matchso-cart-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 40px);
    max-height: 70vh;
    overflow: hidden;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.matchso-cart-dropdown.matchso-cart-dropdown--open {
    display: flex !important;
}
.matchso-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    font-size: 14px;
    color: #1d2327;
}
.matchso-cart-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #646970;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.matchso-cart-close:hover {
    background: #e0e0e0;
    color: #1d2327;
}
.matchso-cart-list {
    padding: 10px 0;
    overflow-y: auto;
    max-height: 50vh;
}
.matchso-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.matchso-cart-item:hover {
    background: #f8f9fa;
}
.matchso-cart-item-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}
.matchso-cart-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.matchso-cart-item-no-logo {
    font-size: 18px;
    color: #a7aaad;
}
.matchso-cart-item-name {
    flex: 1;
    font-size: 13px;
    color: #1d2327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.matchso-cart-item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: #dc3545;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.matchso-cart-item-remove:hover {
    background: #c82333;
    color: #fff;
}
.matchso-cart-item-remove.matchso-remove-loading,
.matchso-cart-item-remove:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.matchso-cart-empty {
    margin: 0;
    padding: 16px;
    font-size: 13px;
    color: #646970;
    text-align: center;
    line-height: 1.5;
}
.matchso-cart-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}
.matchso-cart-footer .matchso-cart-view-all {
    margin-top: 0;
}
.matchso-cart-view-all {
    display: block;
    text-align: center;
    padding: 10px;
    background: #2271b1;
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.matchso-cart-view-all:hover {
    background: #135e96;
    color: #fff !important;
    text-decoration: none;
}

.startups-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.startup-item {
    flex: 1 0 calc(33.33% - 20px);
    text-align: center;
    border: 1px solid #ccc;
    padding: 20px;
    box-sizing: border-box;
    max-width: calc(33.33% - 20px);
}

.startup-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Aspect ratio 1:1 */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.startup-image {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%; /* Centra verticalmente */
    left: 50%; /* Centra horizontalmente */
    transform: translate(-50%, -50%); /* Ajusta para centrar */
    object-fit: contain; /* Mantener las proporciones de la imagen */
}

.startup-name {
    margin-top: 10px;
    font-size: 1.2em;
}

/* Tarjeta de startup ya seleccionada (en Selected Startups): mismo azul que el badge del carrito (#2271b1) */
.startup-item.matchso-startup-selected {
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.35), 0 4px 12px rgba(34, 113, 177, 0.12);
    border-color: rgba(34, 113, 177, 0.45);
}

/* Tablet (incl. mínimo Elementor): 2 startups por fila */
@media (max-width: 1024px) {
    .startups-grid .startup-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}
/* Móvil estrecho: 1 startup por fila */
@media (max-width: 480px) {
    .startups-grid .startup-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.modal {
    visibility: hidden; /* El modal está oculto inicialmente */
    opacity: 0; /* Completamente transparente */
    transition: opacity 1s ease, visibility 1s ease; /* Transición de 0.5s para visibilidad y opacidad */
    display: none; /* Ocultarlo por defecto */
    position: fixed; /* Fijo en la pantalla */
    z-index: 1000; /* Encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%; /* Ocupa el ancho completo */
    height: 100%; /* Ocupa la altura completa */
    overflow: auto; /* Añadir scroll si es necesario */
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semitransparente */
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 1000px; /* Máximo ancho del modal */
    width: 90%; /* Ancho del modal */
    height: 80vh; /* Altura del modal al 80% de la vista */
    overflow-y: auto; /* Añadir scroll vertical */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: auto; /* Centrar horizontalmente */
    top: 10%; /* Espaciado superior */
}

.modal.show {
    visibility: visible; /* Ahora es visible */
    opacity: 1; /* Completamente opaco */
}


.modal-inner {
    display: flex; /* Usar flexbox para alinear logo y texto */
}

/* Bloque nombre + logo: en escritorio a la izquierda; en móvil/tablet nombre arriba, logo debajo */
.modal-title-and-logo {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 280px;
    margin-right: 10px;
}
.modal-title-and-logo #modal-name,
.modal-title-and-logo h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.modal-title-and-logo .modal-logo-container {
    margin-left: 0;
    margin-right: 0;
}

.modal-logo-container {
    flex: 0 0 auto;
    max-width: 250px; /* Max ancho del logo */
    width: 250px;
    min-height: 180px; /* Reservar altura para la img en position:absolute */
    height: 200px; /* Altura fija para que el contenedor no colapse */
    max-height: 250px;
    position: relative; /* Para que el contenedor actúe como referencia */
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden; /* Ocultar cualquier exceso */
    margin-right: 10px;
    margin-left: 10px;
    display: flex; /* Usar flexbox para alinear elementos */
    flex-direction: column; /* Apilar elementos verticalmente */
    align-items: center; /* Centrar elementos horizontalmente */
    justify-content: center;
    gap: 10px; /* Espacio entre la imagen y el botón */
}

.modal-logo-container img {
    width: 250px;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%; /* Centra verticalmente */
    left: 50%; /* Centra horizontalmente */
    transform: translate(-50%, -50%); /* Ajusta para centrar */
    object-fit: contain; /* Mantener las proporciones de la imagen */
}

#modal-video{
    width: revert-layer;
}


.modal-text-container {
    flex: 2; /* Texto ocupa 2 partes */
}

.modal-text-container h3 {
    margin-top: 0; /* Quitar margen superior */
}

.modal-text-container p {
    margin: 10px 0 0; /* Margen para la descripción */

}

.modal-text-container a {
    word-wrap: break-word; /* Corta la palabra larga para que continúe en la siguiente línea */
    word-break: break-all; /* Rompe el enlace si es muy largo */
    white-space: normal; /* Permite que el texto se ajuste a las líneas siguientes */
    display: inline-block; /* Asegura que el link se comporte como un bloque dentro del contenedor */
    max-width: 100%; /* Asegura que el link no exceda el ancho del contenedor */
    overflow-wrap: break-word; /* Alternativa a word-wrap para compatibilidad */
}

/* Móvil y tablet: modal con nombre arriba y logo debajo, luego el resto del contenido */
@media (max-width: 1024px) {
    .modal-inner {
        flex-direction: column;
    }
    .modal-title-and-logo {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
        align-items: center;
    }
    .modal-title-and-logo #modal-name {
        margin-bottom: 12px;
        text-align: center;
    }
    .modal-title-and-logo .modal-logo-container {
        max-width: 100%;
    }
}


.filters-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    grid-gap: 20px; /* Espacio entre los elementos */
    margin-bottom: 20px; /* Espacio debajo de los filtros */
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.filter-item label {
    font-weight: bold; /* Negrita para el texto del filtro */
    margin-bottom: 5px;
}

.filter-item select {
    width: 100%; /* Asegura que el selector ocupe todo el ancho del contenedor */
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Filtro con valor seleccionado (no por defecto): resaltar en rojo */
.filter-item select.matchso-filter-active {
    border-color: #c00;
    color: #b00;
    background-color: #fff5f5;
}

/* Contenedor del botón limpiar filtros */
.matchso-filters-actions {
    grid-column: 1 / -1;
    margin-top: 8px;
}
.matchso-clear-filters-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #2271b1;
    background: #2271b1;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
}
.matchso-clear-filters-btn:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Tablet y móvil [mostrar_startups]: solo 3 filas de filtros visibles, el resto con scroll */
@media (max-width: 1024px) {
    .filters-container {
        grid-template-columns: repeat(2, 1fr);
        max-height: 260px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (max-width: 768px) {
    .filters-container {
        grid-template-columns: 1fr;
        max-height: 260px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.modal-logo-container {
    flex: 0 0 auto;
    max-width: 250px;
    width: 250px;
    min-height: 180px;
    height: 200px;
    max-height: 250px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-logo-container img {
    width: 250px;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* Mensaje encima del botón Request Meeting (dentro del modal) */
.matchso-modal-message {
    margin: 12px 0 10px 0;
    padding: 0;
    min-height: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.25s;
}
.matchso-modal-message.matchso-modal-message--show {
    opacity: 1;
    color: #00a32a;
}
.matchso-modal-message.matchso-modal-message--error {
    color: #d63638;
}

/* Request Meeting arriba en el modal, mismo azul que el badge del carrito */
.matchso-modal-request-wrap {
    margin: 12px 0 16px 0;
}
.request-meeting-button {
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
}
.request-meeting-button:hover {
    background-color: #135e96;
}


/* Filas "Your Selected Startups": logo+nombre ocupa como mucho la mitad; la cruz queda hacia la mitad de la fila */
#matchso-selected-list-wrapper .startup-list > li,
#matchso-selected-list-wrapper ul > li {
    justify-content: flex-start !important;
}
#matchso-selected-list-wrapper .startup-info {
    flex: 1;
    max-width: 50%;
    min-width: 0;
}

/* .remove-startup comparte estilo con .matchso-cart-item-remove (cruz roja igual que en el carrito) */
#matchso-selected-list-wrapper .remove-startup.matchso-cart-item-remove,
.matchso-selected-list-wrapper .remove-startup.matchso-cart-item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin-left: 20px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: #dc3545;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
#matchso-selected-list-wrapper .remove-startup.matchso-cart-item-remove:hover,
.matchso-selected-list-wrapper .remove-startup.matchso-cart-item-remove:hover {
    background: #c82333;
    color: #fff;
}

/* Logos en lista "Selected Startups": centrados; mantienen proporción; imágenes alargadas se ven algo alargadas */
.matchso-selected-logo-wrap {
    min-width: 50px;
    justify-content: center;
}
.matchso-selected-logo {
    max-width: 100px;
    max-height: 50px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 auto;
}




#startup-modal .close {
    font-size: 32px;
}

/* Botón rojo cerrar menú hamburguesa (tema): visible en tablet y móvil, bien colocado para que no se corte */
@media (max-width: 1024px) {
    .mobile_menu_wrapper #mobile_menu_close.button,
    .mobile_menu_wrapper #close_mobile_menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 30px !important;
        right: 30px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        z-index: 99999 !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
        line-height: 42px !important;
        font-size: 16px !important;
        border-radius: 250px !important;
        box-shadow: 0 8px 8px -6px rgba(0,0,0,0.15) !important;
    }
    body.js_nav .mobile_menu_wrapper #mobile_menu_close.button {
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
    }
}
@media (max-width: 768px) {
    .mobile_menu_wrapper #mobile_menu_close.button,
    .mobile_menu_wrapper #close_mobile_menu {
        right: auto !important;
        left: 16px !important;
        top: 16px !important;
    }
}

/* Log Out del menú hamburguesa (añadido por el plugin): en mayúsculas como el resto del menú */
.mobile_menu_wrapper .matchso-menu-logout a,
.mobile_main_nav .matchso-menu-logout a {
    text-transform: uppercase;
}

/* Cruz cerrar modal startup: arriba derecha, visible al hacer scroll, estilizada */
#startup-modal .matchso-modal-close,
.modal#startup-modal .matchso-modal-close {
    position: sticky;
    top: 10px;
    float: right;
    display: block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    margin: -8px -8px 12px 12px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
#startup-modal .matchso-modal-close:hover,
.modal#startup-modal .matchso-modal-close:hover {
    color: #1d2327;
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.modal-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.modal-content > .matchso-modal-close {
    order: -1;
    align-self: flex-end;
}

.agenda-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.usuario {
    border: 2px solid #ccc;
    padding: 10px;
    width: 250px;
}

.dropzone {
    border: 2px dashed #aaa;
    min-height: 40px;
    padding: 5px;
    margin-bottom: 5px;
    text-align: center;
}

.dropzone.dragover {
    border-color: blue;
}

.draggable {
    background-color: #f4f4f4;
    padding: 8px;
    cursor: grab;
}

.drag-cell {
    background: #f0f0f0;
    cursor: move;
}

/* ✅ OPTIMIZACIÓN: Clase para filtros (mejor rendimiento que style.display) */
.hidden-by-filter {
    display: none !important;
}

/* ✅ MEJORA: Animaciones para toast notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ✅ MEJORA: Estilos para notificaciones toast */
.matchso-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.matchso-toast-success {
    background: #4caf50;
}

.matchso-toast-error {
    background: #f44336;
}

.matchso-toast-info {
    background: #2196f3;
}

/* Footer: copyright IZQUIERDA sí o sí, redes a la derecha. DOM: copyright primero, nav segundo. */
.footer_bar .footer_bar_wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem;
}

/* Copyright pegado a la izquierda: no crece, margin-right auto empuja las redes a la derecha */
.footer_bar .footer_bar_wrapper #copyright {
    order: 1;
    margin: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    flex: 0 1 auto;
    max-width: none;
    float: none !important;
    width: auto !important;
}

.footer_bar .footer_bar_wrapper .matchso-footer-bar-social {
    order: 2;
    text-align: right;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: auto;
}

.matchso-footer-bar-social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.matchso-footer-bar-social-icons a {
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.matchso-footer-bar-social-icons a:hover {
    opacity: 1;
    color: #fff;
}

.matchso-footer-bar-social-icons svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.matchso-footer-bar-social-icons path {
    fill: currentColor;
}

@media (max-width: 768px) {
    .footer_bar .footer_bar_wrapper {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .footer_bar .footer_bar_wrapper .matchso-footer-bar-social {
        text-align: left;
    }
    .matchso-footer-bar-social-icons {
        justify-content: flex-start;
    }
}

/* ========== Página externa "Approve investors" ========== */
.matchso-approve-investors-wrap {
    max-width: 900px;
    margin: 1.5em 0;
}
.matchso-approve-notice {
    padding: 1em 1.25em;
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    border-radius: 4px;
}
.matchso-approve-notice.matchso-approve-denied {
    background: #fff5f5;
    border-left-color: #c00;
}
.matchso-approve-success {
    padding: 0.75em 1em;
    background: #e7f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: 4px;
    color: #1b5e20;
}
.matchso-approve-error {
    padding: 0.75em 1em;
    background: #ffebee;
    border-left: 4px solid #c62828;
    border-radius: 4px;
    color: #b71c1c;
}
.matchso-approve-empty {
    padding: 1em;
    background: #f0f0f0;
    border-radius: 4px;
}
.matchso-approve-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
}
.matchso-approve-table th,
.matchso-approve-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.matchso-approve-table th {
    background: #2271b1;
    color: #fff;
    font-weight: 600;
}
.matchso-approve-table tr:hover td {
    background: #f8f9fa;
}
.matchso-approve-btn {
    padding: 6px 14px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}
.matchso-approve-btn:hover {
    background: #135e96;
    color: #fff;
}
.matchso-approve-footer {
    margin-top: 2em;
    color: #666;
}

/* ========== Página "Registration completed" (registration-completed) ========== */
.matchso-registration-completed-content {
    max-width: 720px;
    margin: 2em auto;
    padding: 0 1em;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #1e1e1e;
}
.matchso-registration-completed-content p {
    margin: 0 0 1.25em 0;
}

/* Mensaje principal (solo este párrafo lleva el recuadro amarillo/azul): "must be approved" */
.matchso-registration-completed-content .matchso-reg-pending-notice {
    margin: 0 0 1.5em 0 !important;
    padding: 1.35em 1.5em !important;
    font-size: 1.25em !important;
    line-height: 1.5 !important;
    background: #f0f6fc !important;
    border-left: 5px solid #2271b1 !important;
    border-radius: 6px;
    color: #1a1a1a !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-weight: 500;
}
.matchso-registration-completed-content .matchso-reg-pending-notice strong {
    font-size: 1.05em;
    color: #135e96;
    font-weight: 700;
}

/* Gracias: sin recuadro (solo el primer párrafo .matchso-reg-pending-notice lleva el recuadro) */
.matchso-registration-completed-content .matchso-reg-thanks {
    margin-top: 1em;
    font-size: 1rem;
    color: #646970;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}