/*
    #### INFOPES ####

    Estilos propios más específicos para cosas que no cubra la plantilla del tema css

    ----------------
*/

/* Botones de la zona congreso */
.btn-congress {
    background: linear-gradient(135deg, var(--theme-color), #ff6200);
    border-radius: 7px !important;
}

.btn-congress:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ffa167) !important;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5) !important;
}

/* */

/* .profile-img {
    width: 130px;
} */

/* Mensaje informativo sobre el estado de la participación en el congreso */
.parti-info {
    border: 1px solid #37a3fb;
    border-radius: 7px;
    background-color: #6eb8f9;
    transition: box-shadow 0.3s ease;
}

.parti-info:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.parti-info p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff !important;
}

.parti-info p span a {
    color: #fffe9a;
    font-size: 1.1rem;
    border: none;
    font-weight: bold;
    margin: 0;
}

.parti-info p span a:hover {
    color: var(--theme-color);
}

.parti-info .alert-warning {
    background-color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 4px solid #f0ad4e;
    border-radius: 7px;
    color: #4a3a12;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.parti-info .alert-warning b {
    color: #8a5a00;
}

.parti-info .alert-warning a {
    color: #0d4a9e;
    font-weight: bold;
    text-decoration: underline;
}

.parti-info .alert-warning a:hover {
    color: var(--theme-color);
}
/* */


/* Animación de carga para las peticiones "lentas" */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    margin-right: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* */


/* Tarjeta explicativa para la hora de grabar o subir vídeos de com oral o ponencia */
.info-card {
    background-color: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.info-card .card-header {
    background-color: #fafafa;
    padding: 15px 20px;
    border-bottom: 2px solid var(--theme-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-card .card-header i {
    font-size: 1.5em;
    color: var(--theme-color);
}

.info-card .card-header h5 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3em;
}

.info-card .card-body {
    padding: 20px;
}

.info-card .card-body p {
    color: #57606f;
    margin-bottom: 15px;
}

.info-card ol {
    margin: 0;
    padding-left: 20px;
    color: #2c3e50;
    line-height: 1.6;
}

.info-card li {
    margin-bottom: 12px;
    padding-left: 5px;
}

/* */


/* Estilos para el enlace a Laravel Telescope */
.telescope {
    background-color: #4040c8;
    transition: all 0.3s ease;
}

.telescope:hover {
    background-color: #1C1CC9FF;
    box-shadow: 4px 8px 16px rgba(64, 64, 200, 0.7) !important;
}

/* */


/* Toastr */
.toast-title {
    font-size: 2em;
}

.toast-message {
    font-size: 1.5em;
}

/* IMPORTANTE, esto evita que las toast queden por debajo del selector de idioma de Google Translate */
#gt_float_wrapper {
    z-index: 100 !important;
}

/* */


/* Botones de selección del tipo de ponencia a crear, individual o en simposio */
.tipo-ponencia {
    text-align: center;
    margin: 20px;
    padding: 5px;
    border-radius: 25px;
    border: 2px solid transparent;
}

.tipo-ponencia:hover {
    border-color: var(--theme-color);
    background: #cd024a17;
    cursor: pointer;
}

/* */


/* Interruptor tipo deslizante */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #4cbd34;
}

input:focus+.slider {
    box-shadow: 0 0 1px #4cbd34;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Switch mini */
.switch-sm {
    width: 34px !important;
    height: 20px !important;
}

.switch-sm .slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

.switch-sm input:checked+.slider:before {
    transform: translateX(14px) !important;
    -webkit-transform: translateX(14px) !important;
    -ms-transform: translateX(14px) !important;
}

.switch-sm .slider.round {
    border-radius: 20px;
}

.switch-sm .slider.round:before {
    border-radius: 50%;
}

/* */


/* Cards de categoría de póster y com orales */
.category-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-link {
    display: block;
    padding: 2rem;
    text-decoration: none;
    background: #ffffff;
    color: white;
    height: 100%;
}

.category-link:hover {
    color: white;
    text-decoration: none;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.poster-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgb(193 186 186 / 20%);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 1.1rem;
    color: black;
}

.category-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.9;
    color: black;
}

/* */


/* Boton de paypal */
.paypal-btn {
    background-color: #ffc439;
    width: 300px;
    height: 45px;
}

.paypal-btn:hover {
    background-color: #f2ba36;
}

/* */


/* Pasos a realizar */
.active-step {
    color: var(--theme-color) !important;
}

.active-step span {
    color: var(--theme-color);
    color: white;
    background-color: var(--theme-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 0.5rem;
    background-color: #e2e8f0;
    flex-shrink: 0;
    /* Evita que los círculos se deformen */
}

/* */

/* Inputs de tipo archivo */

/* input[type="file"] {
    font-size: 1.1em;
} */

/* */

/* Comentarios de capitulos de libro */
/* .comment-marker {
    font-weight: bold;
    border-radius: 3px;
    padding: 1px 3px;
    margin-right: 4px;
    font-size: 0.7em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comments-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background-color: #f1f3f5;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.comments-section-header h3 {
    margin: 0;
    font-weight: 600;
    color: #34495e;
    font-size: 0.9em;
}

.toggle-icon {
    font-size: 1em;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.comments-list {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    display: block;
    transition: max-height 0.3s ease-in-out;
}

.comments-list.open {
    display: block;
}

.comments-list.close {
    display: none;
}

.comments-list ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comments-list li {
    background-color: white;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 0.8em;
}

.comments-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.comments-list .comment-id {
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 0.7em;
    flex-shrink: 0;
}

.comments-list .commented-text {
    font-weight: 500;
    color: #2c3e50;
    flex-grow: 1;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comments-list .comment-text {
    color: #7f8c8d;
    font-style: italic;
    flex-grow: 2;
    max-width: 900px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} */

/* */


/* Tabla moderna */

.modern-table-wrapper {
    background: #fff;
    border: 1px solid #E8EDF3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
}

.modern-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    border: none;
}

.modern-table>thead>tr>th {
    padding: 15px 24px;
    background: #f9f9f9;
    border: none;
    border-bottom: 1px solid #EEF2F6;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.modern-table>tbody>tr>td {
    padding: 22px;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #F3F5F8;
    color: #1F2937;
    font-size: 15px;
}

.modern-table>tbody>tr:hover>td {
    background-color: #FAFBFC
}

.modern-table>tbody>tr:last-child>td {
    border-bottom: none;
}

.modern-table>tbody>tr:hover {
    background: #FAFBFC;
}

.modern-table td .btn-default {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    transition: .2s;
}

/* */

/* Gestión pósters (USUARIO) */

.posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.poster-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-grow: 1;
    align-items: center;
}

.poster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.poster-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 1rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.poster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: 1px solid #fff;
}

.poster-card:hover .poster-title {
    color: var(--theme-color);
}

.poster-image {
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.poster-image img:first-child {
    height: auto;
    max-width: 100%;
    border: none;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
}

.poster-image img:last-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.5;
    max-width: 165%;
}

/* */

/* Gestión capítulos (USUARIO) */
.text-card {
    background-image: url('../img/book_badge.svg');
    background-repeat: no-repeat;
    background-position: top -10px right -10px;
    background-size: 80px;
    border-radius: 7px;
    position: relative;
    transition: all 0.3s ease;
}

.text-card.autor:hover {
    cursor: pointer;
    box-shadow: 0 8px 12px rgba(240, 120, 16, 0.15) !important;
}

.text-card-title {
    transition: all 0.3s ease;
}

.text-card.autor:hover .text-card-title {
    color: var(--theme-color);
}

.text-card.add-text {
    background-image: none;
    border-radius: 7px;
    position: relative;
    border: 2px dashed #e0e0e0;
}

/* */