/* ------------------------------------- */
/* Estilos del Overlay del Popup */
/* ------------------------------------- */
.recurso-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
}

.recurso-popup-centrr{
        display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* ------------------------------------- */
/* Estilos del Contenido del Popup */
/* ------------------------------------- */
.recurso-popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    width: 90%;
    max-width: 90%;
}
/* Regla para pantallas grandes (> 769px) */
@media (min-width: 600px) {
    .recurso-popup-content {
        width: 50%;
    }
}


/* Regla para pantallas grandes (> 769px) */
@media (min-width: 1140px) {
    .recurso-popup-content {
      width: 30%;
    }
}

/* Botón de cerrar */
.recurso-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

/* ------------------------------------- */
/* Estilos del Formulario */
/* ------------------------------------- */
.popup-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.popup-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.form-group-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.recurso-card-content p {
    line-height: 18px;
    font-size: 15px;
    margin: 0px;
    padding: 0px;
}

.recurso-card-button, .recurso-card-actions a {
    width: 100%;
    padding: 8px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
}
.recurso-card-button:hover {
    background-color: #0056b3;
    color: #fff;
}


.recurso-card-title {
    font-size: 17px;
}

/* Estilos para cada tarjeta */
.recurso-card {
    display: flex;
    height: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    flex-wrap: wrap;
    padding:10px;
}


.recurso-card-thumbnail {
width: 30%;
padding: 7px;
}

.recurso-card-thumbnail img {
    width:100%;
    height: auto;
    display: block;
    border-radius: 5px!important;
}

.recurso-card-content {
    width: 70%;
    padding: 7px;
    flex-grow: 1; /* Para que el contenido crezca y empuje las acciones hacia abajo */
}

.recurso-card-actions {
    padding: 7px;
    margin-top: auto; /* Empuja el botón hacia la parte inferior */
    width: 100%;
}

button.recurso-card-button {
    background: var(--tg-theme-primary);
    width: 100%;
    display: flex;
    border-radius: 10px;
    padding: 5px;
    color: #fff;
    justify-content: center;
    border:none!important;
}


button.recurso-card-button:hover {
    color: #fff;
    background: var(--tg-theme-secondary);
}

.loading-dots span {
    opacity: 0;
    animation: blink 1s infinite;
    font-weight: bold;
    font-size: 16px; /* ajusta tamaño si quieres */
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}