/* ====== Barra de la derecha ====== */

/* Boton de preinscripcion */
.preinscription-button {
    background: linear-gradient(135deg, #ff8c00, #fd7e14);
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(253, 126, 20, 0.45);
    transition: all 0.25s ease;
}

    .preinscription-button:hover {
        background: linear-gradient(135deg, #fd7e14, #e06800);
        box-shadow: 0 6px 24px rgba(253, 126, 20, 0.55);
        transform: translateY(-1px);
    }

@media (max-width: 960px) {
    .preinscription-button {
        box-shadow: none;
    }
}

/* Informacion */
.curso-info {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.1), 0 1px 4px rgba(0,0,0,0.06);
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 30px;
}

    .curso-info:hover {
        box-shadow: 0 12px 40px rgba(26, 115, 232, 0.18);
        transform: translateY(-2px);
    }

    .curso-info .card-body {
        padding-top: 0;
        padding-bottom: 0;
    }

.curso-info-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    width: 100%;
    text-align: center;
    padding: 22px 16px;
    position: relative;
    overflow: hidden;
}

    .curso-info-header::before {
        content: '';
        position: absolute;
        top: -30px;
        right: -30px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.07);
    }

    .curso-info-header::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: -20px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }

.curso-info-title {
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.curso-info-body-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.curso-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f4fa;
    transition: background 0.18s ease, padding-left 0.18s ease;
}

    .curso-info-row:last-child {
        border-bottom: none;
    }

    .curso-info-row:hover {
        background: linear-gradient(90deg, #f0f6ff, #f8fbff);
        padding-left: 22px;
    }

.curso-info-row-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8f0fe, #c7d9fd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.12);
}

    .curso-info-row-icon svg {
        width: 20px;
        height: 20px;
        stroke: #1a73e8;
    }

.curso-info-row-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.curso-info-row-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a73e8;
}

.curso-info-row-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

    .curso-info-row-value small {
        display: block;
        font-weight: 400;
        color: #555;
        font-size: 0.82rem;
    }

.schedule {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.week {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.weekday {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f0fe, #c7d9fd);
    color: #1a73e8;
    font-size: 0.72rem;
    font-weight: 700;
}

.schedule-time {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .grid {
        display: flex;
        flex-direction: column;
    }

    .grid-sidebar {
        order: -1;
    }
}

/* ====== Tabs ====== */

.tabs-container {
    max-width: 100%;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #dce8fb, #e4edf8);
    border-radius: 16px;
    padding: 5px;
    box-shadow: inset 0 2px 6px rgba(26, 115, 232, 0.12), 0 1px 3px rgba(0,0,0,0.06);
}

.tabs-wrapper {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

.tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #4b6080;
    font-size: 15px; /* antes: 13px */
    font-weight: 600;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.22s ease;
    outline: none;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: max-content;
}

    .tab-button svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        stroke: currentColor;
        transition: all 0.22s ease;
    }

    .tab-button:hover {
        background: rgba(255, 255, 255, 0.75);
        color: #1a73e8;
    }

    .tab-button.active {
        background: linear-gradient(135deg, #1a73e8, #0d47a1);
        color: #ffffff;
        font-weight: 700;
        box-shadow: 0 4px 14px rgba(26, 115, 232, 0.40), 0 1px 3px rgba(0,0,0,0.1);
    }

        .tab-button.active svg {
            stroke: #ffffff;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
        }

@media (max-width: 520px) {
    .tab-button {
        display: flex;
        flex-direction: column;
        padding: 9px 10px;
        font-size: 13px;
        gap: 4px;
    }

        .tab-button .tab-label {
            display: none;
        }

        .tab-button.active .tab-label {
            display: block;
        }

        .tab-button svg {
            width: 17px;
            height: 17px;
        }
}

.tab-content {
    display: none;
    padding: 8px 4px;
    color: #374151;
}

    .tab-content.active {
        display: block;
        animation: fadeIn 0.22s ease-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Ubicacion card ====== */

.ubi-info-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.1), 0 1px 4px rgba(0,0,0,0.06);
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .ubi-info-card:hover {
        box-shadow: 0 12px 40px rgba(26, 115, 232, 0.18);
        transform: translateY(-2px);
    }

.ubi-info-card-header {
    background: #ffffff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #e8f0fe;
    position: relative;
}

    .ubi-info-card-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 22px;
        width: 48px;
        height: 2px;
        background: linear-gradient(90deg, #1a73e8, #0d47a1);
        border-radius: 2px;
    }

    .ubi-info-card-header svg {
        stroke: #1a73e8;
        flex-shrink: 0;
        filter: drop-shadow(0 1px 3px rgba(26, 115, 232, 0.3));
    }

.ubi-info-card-title {
    color: #1a73e8;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ubi-info-card iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

/* Botón de compartir */
.social-share {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.floating-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #7287d1;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-appearance: none;
    user-select: none;
    -webkit-user-select: none;
}

    .floating-social-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .floating-social-icon.open {
        transform: rotate(90deg);
        background: #5650ac;
    }

        .floating-social-icon.open:hover {
            transform: rotate(90deg) scale(1.1);
        }

    .floating-social-icon .icon-social-svg {
        color: #fff;
        display: block;
        transition: opacity 0.2s ease;
    }

    .floating-social-icon .icon-close-svg {
        display: none;
        transition: opacity 0.2s ease;
    }

    .floating-social-icon.open .icon-social-svg {
        display: none;
    }

    .floating-social-icon.open .icon-close-svg {
        display: block;
    }

.social-dropdown {
    display: flex;
    flex-direction: row;
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 8px;
    overflow: hidden;
    border: 2px solid #5650ac;
    animation: slideRight 0.3s ease-out;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 960px) {
    .social-share {
        bottom: 70px;
        left: 15px;
    }

    .floating-social-icon {
        width: 56px;
        height: 56px;
    }

        .floating-social-icon:hover {
            transform: scale(1);
        }
}